text
stringlengths
8
4.13M
pub fn square_of_sum(num: u64) -> u64 { (1..num+1) .fold(0, |acc, num| acc + num) .pow(2) } pub fn sum_of_squares(num: u64) -> u64 { (1..num+1) .map(|num| num.pow(2)) .fold(0, |acc, num| acc + num) } pub fn difference(num: u64) -> u64 { square_of_sum(num) - sum_of_squares(num) }
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // 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. //! New recursive solver modeled on Chalk's recursive solver. Most of //! the guts are broken up into modules; see the comments in those modules. #![feature(crate_in_paths)] #![feature(crate_visibility_modifier)] #![feature(extern_prelude)] #![feature(iterator_find_map)] #![feature(in_band_lifetimes)] #![cfg_attr(not(stage0), feature(nll))] #![recursion_limit="256"] extern crate chalk_engine; #[macro_use] extern crate log; #[macro_use] extern crate rustc; extern crate rustc_data_structures; extern crate syntax; extern crate syntax_pos; mod chalk_context; mod dropck_outlives; mod evaluate_obligation; mod implied_outlives_bounds; mod normalize_projection_ty; mod normalize_erasing_regions; pub mod lowering; mod type_op; use rustc::ty::query::Providers; pub fn provide(p: &mut Providers) { dropck_outlives::provide(p); evaluate_obligation::provide(p); implied_outlives_bounds::provide(p); lowering::provide(p); normalize_projection_ty::provide(p); normalize_erasing_regions::provide(p); type_op::provide(p); }
use clap::{App, Arg}; use std::fs; mod git; mod web_dev; use git::{add_commit_push, make_github_repo}; use std::io::{Error, ErrorKind}; use web_dev::{create_web_dev_folder, open_stackoverflow}; #[tokio::main] async fn main() -> std::io::Result<()> { let matches = App::new("Ms.Hudson") .version("1.0") .author("ProCode <bpro249@gmail.com>") .about("lets sherlock focus on whats important, meanwhile I'll make the hot water!") .arg( Arg::with_name("New_Project") .short("n") .long("newproject") .value_name("filename") .help("creates a project folder for you") .takes_value(true), ) .arg( Arg::with_name("Webdev project") .short("w") .long("webdev") .help("creates html, css, js files within project") .takes_value(false), ) .arg( Arg::with_name("github project") .short("g") .long("git") .help("creates a github repository(requires token)") .takes_value(false), ) .arg( Arg::with_name("gacp") .short("p") .long("push") .help("Stage/add files to commit, commit and push to given branch") .takes_value(false), ) .arg( Arg::with_name("git_branch") .short("b") .long("branch") .help("Commits and push changes to given branch") .takes_value(true), ) .arg( Arg::with_name("git_commit") .short("m") .long("message") .help("The commit message") .takes_value(true), ) .arg( Arg::with_name("Search_Stackoverflow") .short("e") .long("error") .help("Opens and search stack overflow for given error message") .takes_value(true) ) .get_matches(); if matches.is_present("New_Project") { let filename = matches.value_of("New_Project").unwrap_or("newproject"); if matches.is_present("github project") { //create a github repository match make_github_repo(&filename).await { Ok(_) => { if matches.is_present("Webdev project") { //making a general web dev file structure match create_web_dev_folder(&filename) { Ok(_) => { println!("Created Web Dev directory"); } Err(_) => { println!("Could not create a web dev directory"); } } } } Err(_) => { return Err(Error::new(ErrorKind::Other, "Could Not Create File")); } } } else { match fs::create_dir(filename) { Ok(_) => { if matches.is_present("Webdev project") { //making a general web dev file structure match create_web_dev_folder(&filename) { Ok(_) => println!("Created a web dev directory"), Err(_) => println!("Could not create a web dev directory"), } } } Err(_) => { return Err(Error::new(ErrorKind::Other, "Could Not Create File")); } } } } if matches.is_present("gacp") { let branch = matches.value_of("git_branch").unwrap_or("master"); let message = matches.value_of("git_commit").unwrap_or("Initial Commit"); match add_commit_push(&branch, &message) { Ok(_) => { println!("{}", format!("Pushed to {}", branch)); }, Err(_) => { println!("Something went wrong, cannot push changes"); } } } if matches.is_present("Search_Stackoverflow") { let error = matches.value_of("Search_Stackoverflow").unwrap_or(""); match open_stackoverflow(&error) { Ok(_) => { println!("Opening StackOverflow"); }, Err(_) => { println!("Something went wrong, cannot open StackOverflow"); } } } Ok(()) }
// 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. // This code is generated by src/query/codegen/src/writes/register.rs. DO NOT EDIT. #![allow(unused_parens)] #![allow(unused_variables)] #![allow(clippy::redundant_closure)] use crate::property::Domain; use crate::types::nullable::NullableColumn; use crate::types::nullable::NullableDomain; use crate::types::*; use crate::values::Value; use crate::values::ValueRef; use crate::EvalContext; use crate::Function; use crate::FunctionDomain; use crate::FunctionEval; use crate::FunctionRegistry; use crate::FunctionSignature; impl FunctionRegistry { pub fn register_1_arg<I1: ArgType, O: ArgType, F, G>( &mut self, name: &str, calc_domain: F, func: G, ) where F: Fn(&I1::Domain) -> FunctionDomain<O> + 'static + Clone + Copy + Send + Sync, G: Fn(I1::ScalarRef<'_>, &mut EvalContext) -> O::Scalar + 'static + Clone + Copy + Send + Sync, { self.register_passthrough_nullable_1_arg::<I1, O, _, _>( name, calc_domain, vectorize_1_arg(func), ) } pub fn register_2_arg<I1: ArgType, I2: ArgType, O: ArgType, F, G>( &mut self, name: &str, calc_domain: F, func: G, ) where F: Fn(&I1::Domain, &I2::Domain) -> FunctionDomain<O> + 'static + Clone + Copy + Send + Sync, G: Fn(I1::ScalarRef<'_>, I2::ScalarRef<'_>, &mut EvalContext) -> O::Scalar + 'static + Clone + Copy + Send + Sync, { self.register_passthrough_nullable_2_arg::<I1, I2, O, _, _>( name, calc_domain, vectorize_2_arg(func), ) } pub fn register_3_arg<I1: ArgType, I2: ArgType, I3: ArgType, O: ArgType, F, G>( &mut self, name: &str, calc_domain: F, func: G, ) where F: Fn(&I1::Domain, &I2::Domain, &I3::Domain) -> FunctionDomain<O> + 'static + Clone + Copy + Send + Sync, G: Fn( I1::ScalarRef<'_>, I2::ScalarRef<'_>, I3::ScalarRef<'_>, &mut EvalContext, ) -> O::Scalar + 'static + Clone + Copy + Send + Sync, { self.register_passthrough_nullable_3_arg::<I1, I2, I3, O, _, _>( name, calc_domain, vectorize_3_arg(func), ) } pub fn register_4_arg<I1: ArgType, I2: ArgType, I3: ArgType, I4: ArgType, O: ArgType, F, G>( &mut self, name: &str, calc_domain: F, func: G, ) where F: Fn(&I1::Domain, &I2::Domain, &I3::Domain, &I4::Domain) -> FunctionDomain<O> + 'static + Clone + Copy + Send + Sync, G: Fn( I1::ScalarRef<'_>, I2::ScalarRef<'_>, I3::ScalarRef<'_>, I4::ScalarRef<'_>, &mut EvalContext, ) -> O::Scalar + 'static + Clone + Copy + Send + Sync, { self.register_passthrough_nullable_4_arg::<I1, I2, I3, I4, O, _, _>( name, calc_domain, vectorize_4_arg(func), ) } pub fn register_5_arg< I1: ArgType, I2: ArgType, I3: ArgType, I4: ArgType, I5: ArgType, O: ArgType, F, G, >( &mut self, name: &str, calc_domain: F, func: G, ) where F: Fn(&I1::Domain, &I2::Domain, &I3::Domain, &I4::Domain, &I5::Domain) -> FunctionDomain<O> + 'static + Clone + Copy + Send + Sync, G: Fn( I1::ScalarRef<'_>, I2::ScalarRef<'_>, I3::ScalarRef<'_>, I4::ScalarRef<'_>, I5::ScalarRef<'_>, &mut EvalContext, ) -> O::Scalar + 'static + Clone + Copy + Send + Sync, { self.register_passthrough_nullable_5_arg::<I1, I2, I3, I4, I5, O, _, _>( name, calc_domain, vectorize_5_arg(func), ) } pub fn register_passthrough_nullable_1_arg<I1: ArgType, O: ArgType, F, G>( &mut self, name: &str, calc_domain: F, func: G, ) where F: Fn(&I1::Domain) -> FunctionDomain<O> + 'static + Clone + Copy + Send + Sync, G: for<'a> Fn(ValueRef<'a, I1>, &mut EvalContext) -> Value<O> + 'static + Clone + Copy + Send + Sync, { let has_nullable = &[I1::data_type(), O::data_type()] .iter() .any(|ty| ty.as_nullable().is_some() || ty.is_null()); assert!( !has_nullable, "Function {} has nullable argument or output, please use register_1_arg_core instead", name ); self.register_1_arg_core::<I1, O, _, _>(name, calc_domain, func); self.register_1_arg_core::<NullableType<I1>, NullableType<O>, _, _>( name, move |arg1| match (&arg1.value) { (Some(value1)) => { if let Some(domain) = calc_domain(value1).normalize() { FunctionDomain::Domain(NullableDomain { has_null: arg1.has_null, value: Some(Box::new(domain)), }) } else { FunctionDomain::MayThrow } } _ => FunctionDomain::Domain(NullableDomain { has_null: true, value: None, }), }, passthrough_nullable_1_arg(func), ); } pub fn register_passthrough_nullable_2_arg<I1: ArgType, I2: ArgType, O: ArgType, F, G>( &mut self, name: &str, calc_domain: F, func: G, ) where F: Fn(&I1::Domain, &I2::Domain) -> FunctionDomain<O> + 'static + Clone + Copy + Send + Sync, G: for<'a> Fn(ValueRef<'a, I1>, ValueRef<'a, I2>, &mut EvalContext) -> Value<O> + 'static + Clone + Copy + Send + Sync, { let has_nullable = &[I1::data_type(), I2::data_type(), O::data_type()] .iter() .any(|ty| ty.as_nullable().is_some() || ty.is_null()); assert!( !has_nullable, "Function {} has nullable argument or output, please use register_2_arg_core instead", name ); self.register_2_arg_core::<I1, I2, O, _, _>(name, calc_domain, func); self.register_2_arg_core::<NullableType<I1>, NullableType<I2>, NullableType<O>, _, _>( name, move |arg1, arg2| match (&arg1.value, &arg2.value) { (Some(value1), Some(value2)) => { if let Some(domain) = calc_domain(value1, value2).normalize() { FunctionDomain::Domain(NullableDomain { has_null: arg1.has_null || arg2.has_null, value: Some(Box::new(domain)), }) } else { FunctionDomain::MayThrow } } _ => FunctionDomain::Domain(NullableDomain { has_null: true, value: None, }), }, passthrough_nullable_2_arg(func), ); } pub fn register_passthrough_nullable_3_arg< I1: ArgType, I2: ArgType, I3: ArgType, O: ArgType, F, G, >( &mut self, name: &str, calc_domain: F, func: G, ) where F: Fn(&I1::Domain, &I2::Domain, &I3::Domain) -> FunctionDomain<O> + 'static + Clone + Copy + Send + Sync, G: for<'a> Fn( ValueRef<'a, I1>, ValueRef<'a, I2>, ValueRef<'a, I3>, &mut EvalContext, ) -> Value<O> + 'static + Clone + Copy + Send + Sync, { let has_nullable = &[ I1::data_type(), I2::data_type(), I3::data_type(), O::data_type(), ] .iter() .any(|ty| ty.as_nullable().is_some() || ty.is_null()); assert!( !has_nullable, "Function {} has nullable argument or output, please use register_3_arg_core instead", name ); self.register_3_arg_core::<I1, I2, I3, O, _, _>(name, calc_domain, func); self.register_3_arg_core::<NullableType<I1>, NullableType<I2>, NullableType<I3>, NullableType<O>, _, _>( name, move |arg1,arg2,arg3| { match (&arg1.value,&arg2.value,&arg3.value) { (Some(value1),Some(value2),Some(value3)) => { if let Some(domain) = calc_domain(value1,value2,value3).normalize() { FunctionDomain::Domain(NullableDomain { has_null: arg1.has_null||arg2.has_null||arg3.has_null, value: Some(Box::new(domain)), }) } else { FunctionDomain::MayThrow } }, _ => { FunctionDomain::Domain(NullableDomain { has_null: true, value: None, }) }, } }, passthrough_nullable_3_arg(func), ); } pub fn register_passthrough_nullable_4_arg< I1: ArgType, I2: ArgType, I3: ArgType, I4: ArgType, O: ArgType, F, G, >( &mut self, name: &str, calc_domain: F, func: G, ) where F: Fn(&I1::Domain, &I2::Domain, &I3::Domain, &I4::Domain) -> FunctionDomain<O> + 'static + Clone + Copy + Send + Sync, G: for<'a> Fn( ValueRef<'a, I1>, ValueRef<'a, I2>, ValueRef<'a, I3>, ValueRef<'a, I4>, &mut EvalContext, ) -> Value<O> + 'static + Clone + Copy + Send + Sync, { let has_nullable = &[ I1::data_type(), I2::data_type(), I3::data_type(), I4::data_type(), O::data_type(), ] .iter() .any(|ty| ty.as_nullable().is_some() || ty.is_null()); assert!( !has_nullable, "Function {} has nullable argument or output, please use register_4_arg_core instead", name ); self.register_4_arg_core::<I1, I2, I3, I4, O, _, _>(name, calc_domain, func); self.register_4_arg_core::<NullableType<I1>, NullableType<I2>, NullableType<I3>, NullableType<I4>, NullableType<O>, _, _>( name, move |arg1,arg2,arg3,arg4| { match (&arg1.value,&arg2.value,&arg3.value,&arg4.value) { (Some(value1),Some(value2),Some(value3),Some(value4)) => { if let Some(domain) = calc_domain(value1,value2,value3,value4).normalize() { FunctionDomain::Domain(NullableDomain { has_null: arg1.has_null||arg2.has_null||arg3.has_null||arg4.has_null, value: Some(Box::new(domain)), }) } else { FunctionDomain::MayThrow } }, _ => { FunctionDomain::Domain(NullableDomain { has_null: true, value: None, }) }, } }, passthrough_nullable_4_arg(func), ); } pub fn register_passthrough_nullable_5_arg< I1: ArgType, I2: ArgType, I3: ArgType, I4: ArgType, I5: ArgType, O: ArgType, F, G, >( &mut self, name: &str, calc_domain: F, func: G, ) where F: Fn(&I1::Domain, &I2::Domain, &I3::Domain, &I4::Domain, &I5::Domain) -> FunctionDomain<O> + 'static + Clone + Copy + Send + Sync, G: for<'a> Fn( ValueRef<'a, I1>, ValueRef<'a, I2>, ValueRef<'a, I3>, ValueRef<'a, I4>, ValueRef<'a, I5>, &mut EvalContext, ) -> Value<O> + 'static + Clone + Copy + Send + Sync, { let has_nullable = &[ I1::data_type(), I2::data_type(), I3::data_type(), I4::data_type(), I5::data_type(), O::data_type(), ] .iter() .any(|ty| ty.as_nullable().is_some() || ty.is_null()); assert!( !has_nullable, "Function {} has nullable argument or output, please use register_5_arg_core instead", name ); self.register_5_arg_core::<I1, I2, I3, I4, I5, O, _, _>(name, calc_domain, func); self.register_5_arg_core::<NullableType<I1>, NullableType<I2>, NullableType<I3>, NullableType<I4>, NullableType<I5>, NullableType<O>, _, _>( name, move |arg1,arg2,arg3,arg4,arg5| { match (&arg1.value,&arg2.value,&arg3.value,&arg4.value,&arg5.value) { (Some(value1),Some(value2),Some(value3),Some(value4),Some(value5)) => { if let Some(domain) = calc_domain(value1,value2,value3,value4,value5).normalize() { FunctionDomain::Domain(NullableDomain { has_null: arg1.has_null||arg2.has_null||arg3.has_null||arg4.has_null||arg5.has_null, value: Some(Box::new(domain)), }) } else { FunctionDomain::MayThrow } }, _ => { FunctionDomain::Domain(NullableDomain { has_null: true, value: None, }) }, } }, passthrough_nullable_5_arg(func), ); } pub fn register_combine_nullable_1_arg<I1: ArgType, O: ArgType, F, G>( &mut self, name: &str, calc_domain: F, func: G, ) where F: Fn(&I1::Domain) -> FunctionDomain<NullableType<O>> + 'static + Clone + Copy + Send + Sync, G: for<'a> Fn(ValueRef<'a, I1>, &mut EvalContext) -> Value<NullableType<O>> + 'static + Clone + Copy + Send + Sync, { let has_nullable = &[I1::data_type(), O::data_type()] .iter() .any(|ty| ty.as_nullable().is_some() || ty.is_null()); assert!( !has_nullable, "Function {} has nullable argument or output, please use register_1_arg_core instead", name ); self.register_1_arg_core::<I1, NullableType<O>, _, _>(name, calc_domain, func); self.register_1_arg_core::<NullableType<I1>, NullableType<O>, _, _>( name, move |arg1| match (&arg1.value) { (Some(value1)) => { if let Some(domain) = calc_domain(value1).normalize() { FunctionDomain::Domain(NullableDomain { has_null: arg1.has_null || domain.has_null, value: domain.value, }) } else { FunctionDomain::MayThrow } } _ => FunctionDomain::Domain(NullableDomain { has_null: true, value: None, }), }, combine_nullable_1_arg(func), ); } pub fn register_combine_nullable_2_arg<I1: ArgType, I2: ArgType, O: ArgType, F, G>( &mut self, name: &str, calc_domain: F, func: G, ) where F: Fn(&I1::Domain, &I2::Domain) -> FunctionDomain<NullableType<O>> + 'static + Clone + Copy + Send + Sync, G: for<'a> Fn( ValueRef<'a, I1>, ValueRef<'a, I2>, &mut EvalContext, ) -> Value<NullableType<O>> + 'static + Clone + Copy + Send + Sync, { let has_nullable = &[I1::data_type(), I2::data_type(), O::data_type()] .iter() .any(|ty| ty.as_nullable().is_some() || ty.is_null()); assert!( !has_nullable, "Function {} has nullable argument or output, please use register_2_arg_core instead", name ); self.register_2_arg_core::<I1, I2, NullableType<O>, _, _>(name, calc_domain, func); self.register_2_arg_core::<NullableType<I1>, NullableType<I2>, NullableType<O>, _, _>( name, move |arg1, arg2| match (&arg1.value, &arg2.value) { (Some(value1), Some(value2)) => { if let Some(domain) = calc_domain(value1, value2).normalize() { FunctionDomain::Domain(NullableDomain { has_null: arg1.has_null || arg2.has_null || domain.has_null, value: domain.value, }) } else { FunctionDomain::MayThrow } } _ => FunctionDomain::Domain(NullableDomain { has_null: true, value: None, }), }, combine_nullable_2_arg(func), ); } pub fn register_combine_nullable_3_arg< I1: ArgType, I2: ArgType, I3: ArgType, O: ArgType, F, G, >( &mut self, name: &str, calc_domain: F, func: G, ) where F: Fn(&I1::Domain, &I2::Domain, &I3::Domain) -> FunctionDomain<NullableType<O>> + 'static + Clone + Copy + Send + Sync, G: for<'a> Fn( ValueRef<'a, I1>, ValueRef<'a, I2>, ValueRef<'a, I3>, &mut EvalContext, ) -> Value<NullableType<O>> + 'static + Clone + Copy + Send + Sync, { let has_nullable = &[ I1::data_type(), I2::data_type(), I3::data_type(), O::data_type(), ] .iter() .any(|ty| ty.as_nullable().is_some() || ty.is_null()); assert!( !has_nullable, "Function {} has nullable argument or output, please use register_3_arg_core instead", name ); self.register_3_arg_core::<I1, I2, I3, NullableType<O>, _, _>(name, calc_domain, func); self.register_3_arg_core::<NullableType<I1>, NullableType<I2>, NullableType<I3>, NullableType<O>, _, _>( name, move |arg1,arg2,arg3| { match (&arg1.value,&arg2.value,&arg3.value) { (Some(value1),Some(value2),Some(value3)) => { if let Some(domain) = calc_domain(value1,value2,value3).normalize() { FunctionDomain::Domain(NullableDomain { has_null: arg1.has_null||arg2.has_null||arg3.has_null || domain.has_null, value: domain.value, }) } else { FunctionDomain::MayThrow } } _ => { FunctionDomain::Domain(NullableDomain { has_null: true, value: None, }) }, } }, combine_nullable_3_arg(func), ); } pub fn register_combine_nullable_4_arg< I1: ArgType, I2: ArgType, I3: ArgType, I4: ArgType, O: ArgType, F, G, >( &mut self, name: &str, calc_domain: F, func: G, ) where F: Fn( &I1::Domain, &I2::Domain, &I3::Domain, &I4::Domain, ) -> FunctionDomain<NullableType<O>> + 'static + Clone + Copy + Send + Sync, G: for<'a> Fn( ValueRef<'a, I1>, ValueRef<'a, I2>, ValueRef<'a, I3>, ValueRef<'a, I4>, &mut EvalContext, ) -> Value<NullableType<O>> + 'static + Clone + Copy + Send + Sync, { let has_nullable = &[ I1::data_type(), I2::data_type(), I3::data_type(), I4::data_type(), O::data_type(), ] .iter() .any(|ty| ty.as_nullable().is_some() || ty.is_null()); assert!( !has_nullable, "Function {} has nullable argument or output, please use register_4_arg_core instead", name ); self.register_4_arg_core::<I1, I2, I3, I4, NullableType<O>, _, _>(name, calc_domain, func); self.register_4_arg_core::<NullableType<I1>, NullableType<I2>, NullableType<I3>, NullableType<I4>, NullableType<O>, _, _>( name, move |arg1,arg2,arg3,arg4| { match (&arg1.value,&arg2.value,&arg3.value,&arg4.value) { (Some(value1),Some(value2),Some(value3),Some(value4)) => { if let Some(domain) = calc_domain(value1,value2,value3,value4).normalize() { FunctionDomain::Domain(NullableDomain { has_null: arg1.has_null||arg2.has_null||arg3.has_null||arg4.has_null || domain.has_null, value: domain.value, }) } else { FunctionDomain::MayThrow } } _ => { FunctionDomain::Domain(NullableDomain { has_null: true, value: None, }) }, } }, combine_nullable_4_arg(func), ); } pub fn register_combine_nullable_5_arg< I1: ArgType, I2: ArgType, I3: ArgType, I4: ArgType, I5: ArgType, O: ArgType, F, G, >( &mut self, name: &str, calc_domain: F, func: G, ) where F: Fn( &I1::Domain, &I2::Domain, &I3::Domain, &I4::Domain, &I5::Domain, ) -> FunctionDomain<NullableType<O>> + 'static + Clone + Copy + Send + Sync, G: for<'a> Fn( ValueRef<'a, I1>, ValueRef<'a, I2>, ValueRef<'a, I3>, ValueRef<'a, I4>, ValueRef<'a, I5>, &mut EvalContext, ) -> Value<NullableType<O>> + 'static + Clone + Copy + Send + Sync, { let has_nullable = &[ I1::data_type(), I2::data_type(), I3::data_type(), I4::data_type(), I5::data_type(), O::data_type(), ] .iter() .any(|ty| ty.as_nullable().is_some() || ty.is_null()); assert!( !has_nullable, "Function {} has nullable argument or output, please use register_5_arg_core instead", name ); self.register_5_arg_core::<I1, I2, I3, I4, I5, NullableType<O>, _, _>( name, calc_domain, func, ); self.register_5_arg_core::<NullableType<I1>, NullableType<I2>, NullableType<I3>, NullableType<I4>, NullableType<I5>, NullableType<O>, _, _>( name, move |arg1,arg2,arg3,arg4,arg5| { match (&arg1.value,&arg2.value,&arg3.value,&arg4.value,&arg5.value) { (Some(value1),Some(value2),Some(value3),Some(value4),Some(value5)) => { if let Some(domain) = calc_domain(value1,value2,value3,value4,value5).normalize() { FunctionDomain::Domain(NullableDomain { has_null: arg1.has_null||arg2.has_null||arg3.has_null||arg4.has_null||arg5.has_null || domain.has_null, value: domain.value, }) } else { FunctionDomain::MayThrow } } _ => { FunctionDomain::Domain(NullableDomain { has_null: true, value: None, }) }, } }, combine_nullable_5_arg(func), ); } pub fn register_0_arg_core<O: ArgType, F, G>(&mut self, name: &str, calc_domain: F, func: G) where F: Fn() -> FunctionDomain<O> + 'static + Clone + Copy + Send + Sync, G: for<'a> Fn(&mut EvalContext) -> Value<O> + 'static + Clone + Copy + Send + Sync, { let func = Function { signature: FunctionSignature { name: name.to_string(), args_type: vec![], return_type: O::data_type(), }, eval: FunctionEval::Scalar { calc_domain: Box::new(erase_calc_domain_generic_0_arg::<O>(calc_domain)), eval: Box::new(erase_function_generic_0_arg(func)), }, }; self.register_function(func); } pub fn register_1_arg_core<I1: ArgType, O: ArgType, F, G>( &mut self, name: &str, calc_domain: F, func: G, ) where F: Fn(&I1::Domain) -> FunctionDomain<O> + 'static + Clone + Copy + Send + Sync, G: for<'a> Fn(ValueRef<'a, I1>, &mut EvalContext) -> Value<O> + 'static + Clone + Copy + Send + Sync, { let func = Function { signature: FunctionSignature { name: name.to_string(), args_type: vec![I1::data_type()], return_type: O::data_type(), }, eval: FunctionEval::Scalar { calc_domain: Box::new(erase_calc_domain_generic_1_arg::<I1, O>(calc_domain)), eval: Box::new(erase_function_generic_1_arg(func)), }, }; self.register_function(func); } pub fn register_2_arg_core<I1: ArgType, I2: ArgType, O: ArgType, F, G>( &mut self, name: &str, calc_domain: F, func: G, ) where F: Fn(&I1::Domain, &I2::Domain) -> FunctionDomain<O> + 'static + Clone + Copy + Send + Sync, G: for<'a> Fn(ValueRef<'a, I1>, ValueRef<'a, I2>, &mut EvalContext) -> Value<O> + 'static + Clone + Copy + Send + Sync, { let func = Function { signature: FunctionSignature { name: name.to_string(), args_type: vec![I1::data_type(), I2::data_type()], return_type: O::data_type(), }, eval: FunctionEval::Scalar { calc_domain: Box::new(erase_calc_domain_generic_2_arg::<I1, I2, O>(calc_domain)), eval: Box::new(erase_function_generic_2_arg(func)), }, }; self.register_function(func); } pub fn register_3_arg_core<I1: ArgType, I2: ArgType, I3: ArgType, O: ArgType, F, G>( &mut self, name: &str, calc_domain: F, func: G, ) where F: Fn(&I1::Domain, &I2::Domain, &I3::Domain) -> FunctionDomain<O> + 'static + Clone + Copy + Send + Sync, G: for<'a> Fn( ValueRef<'a, I1>, ValueRef<'a, I2>, ValueRef<'a, I3>, &mut EvalContext, ) -> Value<O> + 'static + Clone + Copy + Send + Sync, { let func = Function { signature: FunctionSignature { name: name.to_string(), args_type: vec![I1::data_type(), I2::data_type(), I3::data_type()], return_type: O::data_type(), }, eval: FunctionEval::Scalar { calc_domain: Box::new(erase_calc_domain_generic_3_arg::<I1, I2, I3, O>( calc_domain, )), eval: Box::new(erase_function_generic_3_arg(func)), }, }; self.register_function(func); } pub fn register_4_arg_core< I1: ArgType, I2: ArgType, I3: ArgType, I4: ArgType, O: ArgType, F, G, >( &mut self, name: &str, calc_domain: F, func: G, ) where F: Fn(&I1::Domain, &I2::Domain, &I3::Domain, &I4::Domain) -> FunctionDomain<O> + 'static + Clone + Copy + Send + Sync, G: for<'a> Fn( ValueRef<'a, I1>, ValueRef<'a, I2>, ValueRef<'a, I3>, ValueRef<'a, I4>, &mut EvalContext, ) -> Value<O> + 'static + Clone + Copy + Send + Sync, { let func = Function { signature: FunctionSignature { name: name.to_string(), args_type: vec![ I1::data_type(), I2::data_type(), I3::data_type(), I4::data_type(), ], return_type: O::data_type(), }, eval: FunctionEval::Scalar { calc_domain: Box::new(erase_calc_domain_generic_4_arg::<I1, I2, I3, I4, O>( calc_domain, )), eval: Box::new(erase_function_generic_4_arg(func)), }, }; self.register_function(func); } pub fn register_5_arg_core< I1: ArgType, I2: ArgType, I3: ArgType, I4: ArgType, I5: ArgType, O: ArgType, F, G, >( &mut self, name: &str, calc_domain: F, func: G, ) where F: Fn(&I1::Domain, &I2::Domain, &I3::Domain, &I4::Domain, &I5::Domain) -> FunctionDomain<O> + 'static + Clone + Copy + Send + Sync, G: for<'a> Fn( ValueRef<'a, I1>, ValueRef<'a, I2>, ValueRef<'a, I3>, ValueRef<'a, I4>, ValueRef<'a, I5>, &mut EvalContext, ) -> Value<O> + 'static + Clone + Copy + Send + Sync, { let func = Function { signature: FunctionSignature { name: name.to_string(), args_type: vec![ I1::data_type(), I2::data_type(), I3::data_type(), I4::data_type(), I5::data_type(), ], return_type: O::data_type(), }, eval: FunctionEval::Scalar { calc_domain: Box::new(erase_calc_domain_generic_5_arg::<I1, I2, I3, I4, I5, O>( calc_domain, )), eval: Box::new(erase_function_generic_5_arg(func)), }, }; self.register_function(func); } } pub fn vectorize_1_arg<I1: ArgType, O: ArgType>( func: impl Fn(I1::ScalarRef<'_>, &mut EvalContext) -> O::Scalar + Copy + Send + Sync, ) -> impl Fn(ValueRef<I1>, &mut EvalContext) -> Value<O> + Copy + Send + Sync { move |arg1, ctx| match (arg1) { (ValueRef::Scalar(arg1)) => Value::Scalar(func(arg1, ctx)), (ValueRef::Column(arg1)) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let iter = arg1_iter.map(|arg1| func(arg1, ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } } } pub fn vectorize_2_arg<I1: ArgType, I2: ArgType, O: ArgType>( func: impl Fn(I1::ScalarRef<'_>, I2::ScalarRef<'_>, &mut EvalContext) -> O::Scalar + Copy + Send + Sync, ) -> impl Fn(ValueRef<I1>, ValueRef<I2>, &mut EvalContext) -> Value<O> + Copy + Send + Sync { move |arg1, arg2, ctx| match (arg1, arg2) { (ValueRef::Scalar(arg1), ValueRef::Scalar(arg2)) => Value::Scalar(func(arg1, arg2, ctx)), (ValueRef::Column(arg1), ValueRef::Scalar(arg2)) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let iter = arg1_iter.map(|arg1| func(arg1, arg2.clone(), ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } (ValueRef::Scalar(arg1), ValueRef::Column(arg2)) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let iter = arg2_iter.map(|arg2| func(arg1.clone(), arg2, ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } (ValueRef::Column(arg1), ValueRef::Column(arg2)) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let iter = arg1_iter .zip(arg2_iter) .map(|(arg1, arg2)| func(arg1, arg2, ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } } } pub fn vectorize_3_arg<I1: ArgType, I2: ArgType, I3: ArgType, O: ArgType>( func: impl Fn( I1::ScalarRef<'_>, I2::ScalarRef<'_>, I3::ScalarRef<'_>, &mut EvalContext, ) -> O::Scalar + Copy + Send + Sync, ) -> impl Fn(ValueRef<I1>, ValueRef<I2>, ValueRef<I3>, &mut EvalContext) -> Value<O> + Copy + Send + Sync { move |arg1, arg2, arg3, ctx| match (arg1, arg2, arg3) { (ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3)) => { Value::Scalar(func(arg1, arg2, arg3, ctx)) } (ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3)) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let iter = arg1_iter.map(|arg1| func(arg1, arg2.clone(), arg3.clone(), ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } (ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3)) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let iter = arg2_iter.map(|arg2| func(arg1.clone(), arg2, arg3.clone(), ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } (ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3)) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let iter = arg1_iter .zip(arg2_iter) .map(|(arg1, arg2)| func(arg1, arg2, arg3.clone(), ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } (ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3)) => { let generics = &(ctx.generics.to_owned()); let arg3_iter = I3::iter_column(&arg3); let iter = arg3_iter.map(|arg3| func(arg1.clone(), arg2.clone(), arg3, ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } (ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3)) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg3_iter = I3::iter_column(&arg3); let iter = arg1_iter .zip(arg3_iter) .map(|(arg1, arg3)| func(arg1, arg2.clone(), arg3, ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } (ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3)) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let iter = arg2_iter .zip(arg3_iter) .map(|(arg2, arg3)| func(arg1.clone(), arg2, arg3, ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } (ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3)) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let iter = arg1_iter .zip(arg2_iter) .zip(arg3_iter) .map(|((arg1, arg2), arg3)| func(arg1, arg2, arg3, ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } } } pub fn vectorize_4_arg<I1: ArgType, I2: ArgType, I3: ArgType, I4: ArgType, O: ArgType>( func: impl Fn( I1::ScalarRef<'_>, I2::ScalarRef<'_>, I3::ScalarRef<'_>, I4::ScalarRef<'_>, &mut EvalContext, ) -> O::Scalar + Copy + Send + Sync, ) -> impl Fn(ValueRef<I1>, ValueRef<I2>, ValueRef<I3>, ValueRef<I4>, &mut EvalContext) -> Value<O> + Copy + Send + Sync { move |arg1, arg2, arg3, arg4, ctx| match (arg1, arg2, arg3, arg4) { ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ) => Value::Scalar(func(arg1, arg2, arg3, arg4, ctx)), ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let iter = arg1_iter.map(|arg1| func(arg1, arg2.clone(), arg3.clone(), arg4.clone(), ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let iter = arg2_iter.map(|arg2| func(arg1.clone(), arg2, arg3.clone(), arg4.clone(), ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let iter = arg1_iter .zip(arg2_iter) .map(|(arg1, arg2)| func(arg1, arg2, arg3.clone(), arg4.clone(), ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg3_iter = I3::iter_column(&arg3); let iter = arg3_iter.map(|arg3| func(arg1.clone(), arg2.clone(), arg3, arg4.clone(), ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg3_iter = I3::iter_column(&arg3); let iter = arg1_iter .zip(arg3_iter) .map(|(arg1, arg3)| func(arg1, arg2.clone(), arg3, arg4.clone(), ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let iter = arg2_iter .zip(arg3_iter) .map(|(arg2, arg3)| func(arg1.clone(), arg2, arg3, arg4.clone(), ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let iter = arg1_iter .zip(arg2_iter) .zip(arg3_iter) .map(|((arg1, arg2), arg3)| func(arg1, arg2, arg3, arg4.clone(), ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg4_iter = I4::iter_column(&arg4); let iter = arg4_iter.map(|arg4| func(arg1.clone(), arg2.clone(), arg3.clone(), arg4, ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg4_iter = I4::iter_column(&arg4); let iter = arg1_iter .zip(arg4_iter) .map(|(arg1, arg4)| func(arg1, arg2.clone(), arg3.clone(), arg4, ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let arg4_iter = I4::iter_column(&arg4); let iter = arg2_iter .zip(arg4_iter) .map(|(arg2, arg4)| func(arg1.clone(), arg2, arg3.clone(), arg4, ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let arg4_iter = I4::iter_column(&arg4); let iter = arg1_iter .zip(arg2_iter) .zip(arg4_iter) .map(|((arg1, arg2), arg4)| func(arg1, arg2, arg3.clone(), arg4, ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let iter = arg3_iter .zip(arg4_iter) .map(|(arg3, arg4)| func(arg1.clone(), arg2.clone(), arg3, arg4, ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let iter = arg1_iter .zip(arg3_iter) .zip(arg4_iter) .map(|((arg1, arg3), arg4)| func(arg1, arg2.clone(), arg3, arg4, ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let iter = arg2_iter .zip(arg3_iter) .zip(arg4_iter) .map(|((arg2, arg3), arg4)| func(arg1.clone(), arg2, arg3, arg4, ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let iter = arg1_iter .zip(arg2_iter) .zip(arg3_iter) .zip(arg4_iter) .map(|(((arg1, arg2), arg3), arg4)| func(arg1, arg2, arg3, arg4, ctx)); let col = O::column_from_iter(iter, generics); Value::Column(col) } } } pub fn vectorize_5_arg< I1: ArgType, I2: ArgType, I3: ArgType, I4: ArgType, I5: ArgType, O: ArgType, >( func: impl Fn( I1::ScalarRef<'_>, I2::ScalarRef<'_>, I3::ScalarRef<'_>, I4::ScalarRef<'_>, I5::ScalarRef<'_>, &mut EvalContext, ) -> O::Scalar + Copy + Send + Sync, ) -> impl Fn( ValueRef<I1>, ValueRef<I2>, ValueRef<I3>, ValueRef<I4>, ValueRef<I5>, &mut EvalContext, ) -> Value<O> + Copy + Send + Sync { move |arg1, arg2, arg3, arg4, arg5, ctx| match (arg1, arg2, arg3, arg4, arg5) { ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ) => Value::Scalar(func(arg1, arg2, arg3, arg4, arg5, ctx)), ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let iter = arg1_iter.map(|arg1| { func( arg1, arg2.clone(), arg3.clone(), arg4.clone(), arg5.clone(), ctx, ) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let iter = arg2_iter.map(|arg2| { func( arg1.clone(), arg2, arg3.clone(), arg4.clone(), arg5.clone(), ctx, ) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let iter = arg1_iter.zip(arg2_iter).map(|(arg1, arg2)| { func(arg1, arg2, arg3.clone(), arg4.clone(), arg5.clone(), ctx) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg3_iter = I3::iter_column(&arg3); let iter = arg3_iter.map(|arg3| { func( arg1.clone(), arg2.clone(), arg3, arg4.clone(), arg5.clone(), ctx, ) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg3_iter = I3::iter_column(&arg3); let iter = arg1_iter.zip(arg3_iter).map(|(arg1, arg3)| { func(arg1, arg2.clone(), arg3, arg4.clone(), arg5.clone(), ctx) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let iter = arg2_iter.zip(arg3_iter).map(|(arg2, arg3)| { func(arg1.clone(), arg2, arg3, arg4.clone(), arg5.clone(), ctx) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let iter = arg1_iter .zip(arg2_iter) .zip(arg3_iter) .map(|((arg1, arg2), arg3)| { func(arg1, arg2, arg3, arg4.clone(), arg5.clone(), ctx) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg4_iter = I4::iter_column(&arg4); let iter = arg4_iter.map(|arg4| { func( arg1.clone(), arg2.clone(), arg3.clone(), arg4, arg5.clone(), ctx, ) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg4_iter = I4::iter_column(&arg4); let iter = arg1_iter.zip(arg4_iter).map(|(arg1, arg4)| { func(arg1, arg2.clone(), arg3.clone(), arg4, arg5.clone(), ctx) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let arg4_iter = I4::iter_column(&arg4); let iter = arg2_iter.zip(arg4_iter).map(|(arg2, arg4)| { func(arg1.clone(), arg2, arg3.clone(), arg4, arg5.clone(), ctx) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let arg4_iter = I4::iter_column(&arg4); let iter = arg1_iter .zip(arg2_iter) .zip(arg4_iter) .map(|((arg1, arg2), arg4)| { func(arg1, arg2, arg3.clone(), arg4, arg5.clone(), ctx) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let iter = arg3_iter.zip(arg4_iter).map(|(arg3, arg4)| { func(arg1.clone(), arg2.clone(), arg3, arg4, arg5.clone(), ctx) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let iter = arg1_iter .zip(arg3_iter) .zip(arg4_iter) .map(|((arg1, arg3), arg4)| { func(arg1, arg2.clone(), arg3, arg4, arg5.clone(), ctx) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let iter = arg2_iter .zip(arg3_iter) .zip(arg4_iter) .map(|((arg2, arg3), arg4)| { func(arg1.clone(), arg2, arg3, arg4, arg5.clone(), ctx) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let iter = arg1_iter.zip(arg2_iter).zip(arg3_iter).zip(arg4_iter).map( |(((arg1, arg2), arg3), arg4)| func(arg1, arg2, arg3, arg4, arg5.clone(), ctx), ); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg5_iter = I5::iter_column(&arg5); let iter = arg5_iter.map(|arg5| { func( arg1.clone(), arg2.clone(), arg3.clone(), arg4.clone(), arg5, ctx, ) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg5_iter = I5::iter_column(&arg5); let iter = arg1_iter.zip(arg5_iter).map(|(arg1, arg5)| { func(arg1, arg2.clone(), arg3.clone(), arg4.clone(), arg5, ctx) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let arg5_iter = I5::iter_column(&arg5); let iter = arg2_iter.zip(arg5_iter).map(|(arg2, arg5)| { func(arg1.clone(), arg2, arg3.clone(), arg4.clone(), arg5, ctx) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let arg5_iter = I5::iter_column(&arg5); let iter = arg1_iter .zip(arg2_iter) .zip(arg5_iter) .map(|((arg1, arg2), arg5)| { func(arg1, arg2, arg3.clone(), arg4.clone(), arg5, ctx) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg3_iter = I3::iter_column(&arg3); let arg5_iter = I5::iter_column(&arg5); let iter = arg3_iter.zip(arg5_iter).map(|(arg3, arg5)| { func(arg1.clone(), arg2.clone(), arg3, arg4.clone(), arg5, ctx) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg3_iter = I3::iter_column(&arg3); let arg5_iter = I5::iter_column(&arg5); let iter = arg1_iter .zip(arg3_iter) .zip(arg5_iter) .map(|((arg1, arg3), arg5)| { func(arg1, arg2.clone(), arg3, arg4.clone(), arg5, ctx) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let arg5_iter = I5::iter_column(&arg5); let iter = arg2_iter .zip(arg3_iter) .zip(arg5_iter) .map(|((arg2, arg3), arg5)| { func(arg1.clone(), arg2, arg3, arg4.clone(), arg5, ctx) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let arg5_iter = I5::iter_column(&arg5); let iter = arg1_iter.zip(arg2_iter).zip(arg3_iter).zip(arg5_iter).map( |(((arg1, arg2), arg3), arg5)| func(arg1, arg2, arg3, arg4.clone(), arg5, ctx), ); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg4_iter = I4::iter_column(&arg4); let arg5_iter = I5::iter_column(&arg5); let iter = arg4_iter.zip(arg5_iter).map(|(arg4, arg5)| { func(arg1.clone(), arg2.clone(), arg3.clone(), arg4, arg5, ctx) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg4_iter = I4::iter_column(&arg4); let arg5_iter = I5::iter_column(&arg5); let iter = arg1_iter .zip(arg4_iter) .zip(arg5_iter) .map(|((arg1, arg4), arg5)| { func(arg1, arg2.clone(), arg3.clone(), arg4, arg5, ctx) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let arg4_iter = I4::iter_column(&arg4); let arg5_iter = I5::iter_column(&arg5); let iter = arg2_iter .zip(arg4_iter) .zip(arg5_iter) .map(|((arg2, arg4), arg5)| { func(arg1.clone(), arg2, arg3.clone(), arg4, arg5, ctx) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let arg4_iter = I4::iter_column(&arg4); let arg5_iter = I5::iter_column(&arg5); let iter = arg1_iter.zip(arg2_iter).zip(arg4_iter).zip(arg5_iter).map( |(((arg1, arg2), arg4), arg5)| func(arg1, arg2, arg3.clone(), arg4, arg5, ctx), ); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let arg5_iter = I5::iter_column(&arg5); let iter = arg3_iter .zip(arg4_iter) .zip(arg5_iter) .map(|((arg3, arg4), arg5)| { func(arg1.clone(), arg2.clone(), arg3, arg4, arg5, ctx) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let arg5_iter = I5::iter_column(&arg5); let iter = arg1_iter.zip(arg3_iter).zip(arg4_iter).zip(arg5_iter).map( |(((arg1, arg3), arg4), arg5)| func(arg1, arg2.clone(), arg3, arg4, arg5, ctx), ); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let arg5_iter = I5::iter_column(&arg5); let iter = arg2_iter.zip(arg3_iter).zip(arg4_iter).zip(arg5_iter).map( |(((arg2, arg3), arg4), arg5)| func(arg1.clone(), arg2, arg3, arg4, arg5, ctx), ); let col = O::column_from_iter(iter, generics); Value::Column(col) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let arg5_iter = I5::iter_column(&arg5); let iter = arg1_iter .zip(arg2_iter) .zip(arg3_iter) .zip(arg4_iter) .zip(arg5_iter) .map(|((((arg1, arg2), arg3), arg4), arg5)| { func(arg1, arg2, arg3, arg4, arg5, ctx) }); let col = O::column_from_iter(iter, generics); Value::Column(col) } } } pub fn vectorize_with_builder_1_arg<I1: ArgType, O: ArgType>( func: impl Fn(I1::ScalarRef<'_>, &mut O::ColumnBuilder, &mut EvalContext) + Copy + Send + Sync, ) -> impl Fn(ValueRef<I1>, &mut EvalContext) -> Value<O> + Copy + Send + Sync { move |arg1, ctx| match (arg1) { (ValueRef::Scalar(arg1)) => { let generics = &(ctx.generics.to_owned()); let mut builder = O::create_builder(1, generics); func(arg1, &mut builder, ctx); Value::Scalar(O::build_scalar(builder)) } (ValueRef::Column(arg1)) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let iter = arg1_iter; let mut builder = O::create_builder(iter.size_hint().0, generics); for arg1 in iter { func(arg1, &mut builder, ctx); } Value::Column(O::build_column(builder)) } } } pub fn vectorize_with_builder_2_arg<I1: ArgType, I2: ArgType, O: ArgType>( func: impl Fn(I1::ScalarRef<'_>, I2::ScalarRef<'_>, &mut O::ColumnBuilder, &mut EvalContext) + Copy + Send + Sync, ) -> impl Fn(ValueRef<I1>, ValueRef<I2>, &mut EvalContext) -> Value<O> + Copy + Send + Sync { move |arg1, arg2, ctx| match (arg1, arg2) { (ValueRef::Scalar(arg1), ValueRef::Scalar(arg2)) => { let generics = &(ctx.generics.to_owned()); let mut builder = O::create_builder(1, generics); func(arg1, arg2, &mut builder, ctx); Value::Scalar(O::build_scalar(builder)) } (ValueRef::Column(arg1), ValueRef::Scalar(arg2)) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let iter = arg1_iter; let mut builder = O::create_builder(iter.size_hint().0, generics); for arg1 in iter { func(arg1, arg2.clone(), &mut builder, ctx); } Value::Column(O::build_column(builder)) } (ValueRef::Scalar(arg1), ValueRef::Column(arg2)) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let iter = arg2_iter; let mut builder = O::create_builder(iter.size_hint().0, generics); for arg2 in iter { func(arg1.clone(), arg2, &mut builder, ctx); } Value::Column(O::build_column(builder)) } (ValueRef::Column(arg1), ValueRef::Column(arg2)) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let iter = arg1_iter.zip(arg2_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (arg1, arg2) in iter { func(arg1, arg2, &mut builder, ctx); } Value::Column(O::build_column(builder)) } } } pub fn vectorize_with_builder_3_arg<I1: ArgType, I2: ArgType, I3: ArgType, O: ArgType>( func: impl Fn( I1::ScalarRef<'_>, I2::ScalarRef<'_>, I3::ScalarRef<'_>, &mut O::ColumnBuilder, &mut EvalContext, ) + Copy + Send + Sync, ) -> impl Fn(ValueRef<I1>, ValueRef<I2>, ValueRef<I3>, &mut EvalContext) -> Value<O> + Copy + Send + Sync { move |arg1, arg2, arg3, ctx| match (arg1, arg2, arg3) { (ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3)) => { let generics = &(ctx.generics.to_owned()); let mut builder = O::create_builder(1, generics); func(arg1, arg2, arg3, &mut builder, ctx); Value::Scalar(O::build_scalar(builder)) } (ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3)) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let iter = arg1_iter; let mut builder = O::create_builder(iter.size_hint().0, generics); for arg1 in iter { func(arg1, arg2.clone(), arg3.clone(), &mut builder, ctx); } Value::Column(O::build_column(builder)) } (ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3)) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let iter = arg2_iter; let mut builder = O::create_builder(iter.size_hint().0, generics); for arg2 in iter { func(arg1.clone(), arg2, arg3.clone(), &mut builder, ctx); } Value::Column(O::build_column(builder)) } (ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3)) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let iter = arg1_iter.zip(arg2_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (arg1, arg2) in iter { func(arg1, arg2, arg3.clone(), &mut builder, ctx); } Value::Column(O::build_column(builder)) } (ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3)) => { let generics = &(ctx.generics.to_owned()); let arg3_iter = I3::iter_column(&arg3); let iter = arg3_iter; let mut builder = O::create_builder(iter.size_hint().0, generics); for arg3 in iter { func(arg1.clone(), arg2.clone(), arg3, &mut builder, ctx); } Value::Column(O::build_column(builder)) } (ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3)) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg3_iter = I3::iter_column(&arg3); let iter = arg1_iter.zip(arg3_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (arg1, arg3) in iter { func(arg1, arg2.clone(), arg3, &mut builder, ctx); } Value::Column(O::build_column(builder)) } (ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3)) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let iter = arg2_iter.zip(arg3_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (arg2, arg3) in iter { func(arg1.clone(), arg2, arg3, &mut builder, ctx); } Value::Column(O::build_column(builder)) } (ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3)) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let iter = arg1_iter.zip(arg2_iter).zip(arg3_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for ((arg1, arg2), arg3) in iter { func(arg1, arg2, arg3, &mut builder, ctx); } Value::Column(O::build_column(builder)) } } } pub fn vectorize_with_builder_4_arg< I1: ArgType, I2: ArgType, I3: ArgType, I4: ArgType, O: ArgType, >( func: impl Fn( I1::ScalarRef<'_>, I2::ScalarRef<'_>, I3::ScalarRef<'_>, I4::ScalarRef<'_>, &mut O::ColumnBuilder, &mut EvalContext, ) + Copy + Send + Sync, ) -> impl Fn(ValueRef<I1>, ValueRef<I2>, ValueRef<I3>, ValueRef<I4>, &mut EvalContext) -> Value<O> + Copy + Send + Sync { move |arg1, arg2, arg3, arg4, ctx| match (arg1, arg2, arg3, arg4) { ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ) => { let generics = &(ctx.generics.to_owned()); let mut builder = O::create_builder(1, generics); func(arg1, arg2, arg3, arg4, &mut builder, ctx); Value::Scalar(O::build_scalar(builder)) } ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let iter = arg1_iter; let mut builder = O::create_builder(iter.size_hint().0, generics); for arg1 in iter { func( arg1, arg2.clone(), arg3.clone(), arg4.clone(), &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let iter = arg2_iter; let mut builder = O::create_builder(iter.size_hint().0, generics); for arg2 in iter { func( arg1.clone(), arg2, arg3.clone(), arg4.clone(), &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let iter = arg1_iter.zip(arg2_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (arg1, arg2) in iter { func(arg1, arg2, arg3.clone(), arg4.clone(), &mut builder, ctx); } Value::Column(O::build_column(builder)) } ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg3_iter = I3::iter_column(&arg3); let iter = arg3_iter; let mut builder = O::create_builder(iter.size_hint().0, generics); for arg3 in iter { func( arg1.clone(), arg2.clone(), arg3, arg4.clone(), &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg3_iter = I3::iter_column(&arg3); let iter = arg1_iter.zip(arg3_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (arg1, arg3) in iter { func(arg1, arg2.clone(), arg3, arg4.clone(), &mut builder, ctx); } Value::Column(O::build_column(builder)) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let iter = arg2_iter.zip(arg3_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (arg2, arg3) in iter { func(arg1.clone(), arg2, arg3, arg4.clone(), &mut builder, ctx); } Value::Column(O::build_column(builder)) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let iter = arg1_iter.zip(arg2_iter).zip(arg3_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for ((arg1, arg2), arg3) in iter { func(arg1, arg2, arg3, arg4.clone(), &mut builder, ctx); } Value::Column(O::build_column(builder)) } ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg4_iter = I4::iter_column(&arg4); let iter = arg4_iter; let mut builder = O::create_builder(iter.size_hint().0, generics); for arg4 in iter { func( arg1.clone(), arg2.clone(), arg3.clone(), arg4, &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg4_iter = I4::iter_column(&arg4); let iter = arg1_iter.zip(arg4_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (arg1, arg4) in iter { func(arg1, arg2.clone(), arg3.clone(), arg4, &mut builder, ctx); } Value::Column(O::build_column(builder)) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let arg4_iter = I4::iter_column(&arg4); let iter = arg2_iter.zip(arg4_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (arg2, arg4) in iter { func(arg1.clone(), arg2, arg3.clone(), arg4, &mut builder, ctx); } Value::Column(O::build_column(builder)) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let arg4_iter = I4::iter_column(&arg4); let iter = arg1_iter.zip(arg2_iter).zip(arg4_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for ((arg1, arg2), arg4) in iter { func(arg1, arg2, arg3.clone(), arg4, &mut builder, ctx); } Value::Column(O::build_column(builder)) } ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let iter = arg3_iter.zip(arg4_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (arg3, arg4) in iter { func(arg1.clone(), arg2.clone(), arg3, arg4, &mut builder, ctx); } Value::Column(O::build_column(builder)) } ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let iter = arg1_iter.zip(arg3_iter).zip(arg4_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for ((arg1, arg3), arg4) in iter { func(arg1, arg2.clone(), arg3, arg4, &mut builder, ctx); } Value::Column(O::build_column(builder)) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let iter = arg2_iter.zip(arg3_iter).zip(arg4_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for ((arg2, arg3), arg4) in iter { func(arg1.clone(), arg2, arg3, arg4, &mut builder, ctx); } Value::Column(O::build_column(builder)) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let iter = arg1_iter.zip(arg2_iter).zip(arg3_iter).zip(arg4_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (((arg1, arg2), arg3), arg4) in iter { func(arg1, arg2, arg3, arg4, &mut builder, ctx); } Value::Column(O::build_column(builder)) } } } pub fn vectorize_with_builder_5_arg< I1: ArgType, I2: ArgType, I3: ArgType, I4: ArgType, I5: ArgType, O: ArgType, >( func: impl Fn( I1::ScalarRef<'_>, I2::ScalarRef<'_>, I3::ScalarRef<'_>, I4::ScalarRef<'_>, I5::ScalarRef<'_>, &mut O::ColumnBuilder, &mut EvalContext, ) + Copy + Send + Sync, ) -> impl Fn( ValueRef<I1>, ValueRef<I2>, ValueRef<I3>, ValueRef<I4>, ValueRef<I5>, &mut EvalContext, ) -> Value<O> + Copy + Send + Sync { move |arg1, arg2, arg3, arg4, arg5, ctx| match (arg1, arg2, arg3, arg4, arg5) { ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let mut builder = O::create_builder(1, generics); func(arg1, arg2, arg3, arg4, arg5, &mut builder, ctx); Value::Scalar(O::build_scalar(builder)) } ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let iter = arg1_iter; let mut builder = O::create_builder(iter.size_hint().0, generics); for arg1 in iter { func( arg1, arg2.clone(), arg3.clone(), arg4.clone(), arg5.clone(), &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let iter = arg2_iter; let mut builder = O::create_builder(iter.size_hint().0, generics); for arg2 in iter { func( arg1.clone(), arg2, arg3.clone(), arg4.clone(), arg5.clone(), &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let iter = arg1_iter.zip(arg2_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (arg1, arg2) in iter { func( arg1, arg2, arg3.clone(), arg4.clone(), arg5.clone(), &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg3_iter = I3::iter_column(&arg3); let iter = arg3_iter; let mut builder = O::create_builder(iter.size_hint().0, generics); for arg3 in iter { func( arg1.clone(), arg2.clone(), arg3, arg4.clone(), arg5.clone(), &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg3_iter = I3::iter_column(&arg3); let iter = arg1_iter.zip(arg3_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (arg1, arg3) in iter { func( arg1, arg2.clone(), arg3, arg4.clone(), arg5.clone(), &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let iter = arg2_iter.zip(arg3_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (arg2, arg3) in iter { func( arg1.clone(), arg2, arg3, arg4.clone(), arg5.clone(), &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let iter = arg1_iter.zip(arg2_iter).zip(arg3_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for ((arg1, arg2), arg3) in iter { func( arg1, arg2, arg3, arg4.clone(), arg5.clone(), &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg4_iter = I4::iter_column(&arg4); let iter = arg4_iter; let mut builder = O::create_builder(iter.size_hint().0, generics); for arg4 in iter { func( arg1.clone(), arg2.clone(), arg3.clone(), arg4, arg5.clone(), &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg4_iter = I4::iter_column(&arg4); let iter = arg1_iter.zip(arg4_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (arg1, arg4) in iter { func( arg1, arg2.clone(), arg3.clone(), arg4, arg5.clone(), &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let arg4_iter = I4::iter_column(&arg4); let iter = arg2_iter.zip(arg4_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (arg2, arg4) in iter { func( arg1.clone(), arg2, arg3.clone(), arg4, arg5.clone(), &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let arg4_iter = I4::iter_column(&arg4); let iter = arg1_iter.zip(arg2_iter).zip(arg4_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for ((arg1, arg2), arg4) in iter { func( arg1, arg2, arg3.clone(), arg4, arg5.clone(), &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let iter = arg3_iter.zip(arg4_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (arg3, arg4) in iter { func( arg1.clone(), arg2.clone(), arg3, arg4, arg5.clone(), &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let iter = arg1_iter.zip(arg3_iter).zip(arg4_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for ((arg1, arg3), arg4) in iter { func( arg1, arg2.clone(), arg3, arg4, arg5.clone(), &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let iter = arg2_iter.zip(arg3_iter).zip(arg4_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for ((arg2, arg3), arg4) in iter { func( arg1.clone(), arg2, arg3, arg4, arg5.clone(), &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Scalar(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let iter = arg1_iter.zip(arg2_iter).zip(arg3_iter).zip(arg4_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (((arg1, arg2), arg3), arg4) in iter { func(arg1, arg2, arg3, arg4, arg5.clone(), &mut builder, ctx); } Value::Column(O::build_column(builder)) } ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg5_iter = I5::iter_column(&arg5); let iter = arg5_iter; let mut builder = O::create_builder(iter.size_hint().0, generics); for arg5 in iter { func( arg1.clone(), arg2.clone(), arg3.clone(), arg4.clone(), arg5, &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg5_iter = I5::iter_column(&arg5); let iter = arg1_iter.zip(arg5_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (arg1, arg5) in iter { func( arg1, arg2.clone(), arg3.clone(), arg4.clone(), arg5, &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let arg5_iter = I5::iter_column(&arg5); let iter = arg2_iter.zip(arg5_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (arg2, arg5) in iter { func( arg1.clone(), arg2, arg3.clone(), arg4.clone(), arg5, &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let arg5_iter = I5::iter_column(&arg5); let iter = arg1_iter.zip(arg2_iter).zip(arg5_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for ((arg1, arg2), arg5) in iter { func( arg1, arg2, arg3.clone(), arg4.clone(), arg5, &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg3_iter = I3::iter_column(&arg3); let arg5_iter = I5::iter_column(&arg5); let iter = arg3_iter.zip(arg5_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (arg3, arg5) in iter { func( arg1.clone(), arg2.clone(), arg3, arg4.clone(), arg5, &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg3_iter = I3::iter_column(&arg3); let arg5_iter = I5::iter_column(&arg5); let iter = arg1_iter.zip(arg3_iter).zip(arg5_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for ((arg1, arg3), arg5) in iter { func( arg1, arg2.clone(), arg3, arg4.clone(), arg5, &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let arg5_iter = I5::iter_column(&arg5); let iter = arg2_iter.zip(arg3_iter).zip(arg5_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for ((arg2, arg3), arg5) in iter { func( arg1.clone(), arg2, arg3, arg4.clone(), arg5, &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let arg5_iter = I5::iter_column(&arg5); let iter = arg1_iter.zip(arg2_iter).zip(arg3_iter).zip(arg5_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (((arg1, arg2), arg3), arg5) in iter { func(arg1, arg2, arg3, arg4.clone(), arg5, &mut builder, ctx); } Value::Column(O::build_column(builder)) } ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg4_iter = I4::iter_column(&arg4); let arg5_iter = I5::iter_column(&arg5); let iter = arg4_iter.zip(arg5_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (arg4, arg5) in iter { func( arg1.clone(), arg2.clone(), arg3.clone(), arg4, arg5, &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg4_iter = I4::iter_column(&arg4); let arg5_iter = I5::iter_column(&arg5); let iter = arg1_iter.zip(arg4_iter).zip(arg5_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for ((arg1, arg4), arg5) in iter { func( arg1, arg2.clone(), arg3.clone(), arg4, arg5, &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let arg4_iter = I4::iter_column(&arg4); let arg5_iter = I5::iter_column(&arg5); let iter = arg2_iter.zip(arg4_iter).zip(arg5_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for ((arg2, arg4), arg5) in iter { func( arg1.clone(), arg2, arg3.clone(), arg4, arg5, &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let arg4_iter = I4::iter_column(&arg4); let arg5_iter = I5::iter_column(&arg5); let iter = arg1_iter.zip(arg2_iter).zip(arg4_iter).zip(arg5_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (((arg1, arg2), arg4), arg5) in iter { func(arg1, arg2, arg3.clone(), arg4, arg5, &mut builder, ctx); } Value::Column(O::build_column(builder)) } ( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let arg5_iter = I5::iter_column(&arg5); let iter = arg3_iter.zip(arg4_iter).zip(arg5_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for ((arg3, arg4), arg5) in iter { func( arg1.clone(), arg2.clone(), arg3, arg4, arg5, &mut builder, ctx, ); } Value::Column(O::build_column(builder)) } ( ValueRef::Column(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let arg5_iter = I5::iter_column(&arg5); let iter = arg1_iter.zip(arg3_iter).zip(arg4_iter).zip(arg5_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (((arg1, arg3), arg4), arg5) in iter { func(arg1, arg2.clone(), arg3, arg4, arg5, &mut builder, ctx); } Value::Column(O::build_column(builder)) } ( ValueRef::Scalar(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let arg5_iter = I5::iter_column(&arg5); let iter = arg2_iter.zip(arg3_iter).zip(arg4_iter).zip(arg5_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for (((arg2, arg3), arg4), arg5) in iter { func(arg1.clone(), arg2, arg3, arg4, arg5, &mut builder, ctx); } Value::Column(O::build_column(builder)) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let generics = &(ctx.generics.to_owned()); let arg1_iter = I1::iter_column(&arg1); let arg2_iter = I2::iter_column(&arg2); let arg3_iter = I3::iter_column(&arg3); let arg4_iter = I4::iter_column(&arg4); let arg5_iter = I5::iter_column(&arg5); let iter = arg1_iter .zip(arg2_iter) .zip(arg3_iter) .zip(arg4_iter) .zip(arg5_iter); let mut builder = O::create_builder(iter.size_hint().0, generics); for ((((arg1, arg2), arg3), arg4), arg5) in iter { func(arg1, arg2, arg3, arg4, arg5, &mut builder, ctx); } Value::Column(O::build_column(builder)) } } } pub fn passthrough_nullable_1_arg<I1: ArgType, O: ArgType>( func: impl for<'a> Fn(ValueRef<'a, I1>, &mut EvalContext) -> Value<O> + Copy + Send + Sync, ) -> impl for<'a> Fn(ValueRef<'a, NullableType<I1>>, &mut EvalContext) -> Value<NullableType<O>> + Copy + Send + Sync { move |arg1, ctx| match (arg1) { (ValueRef::Scalar(None)) => Value::Scalar(None), (ValueRef::Scalar(Some(arg1))) => Value::Scalar(Some( func(ValueRef::Scalar(arg1), ctx).into_scalar().unwrap(), )), (ValueRef::Column(arg1)) => { let and_validity = arg1.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func(ValueRef::Column(arg1.column), ctx) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } } } pub fn passthrough_nullable_2_arg<I1: ArgType, I2: ArgType, O: ArgType>( func: impl for<'a> Fn(ValueRef<'a, I1>, ValueRef<'a, I2>, &mut EvalContext) -> Value<O> + Copy + Send + Sync, ) -> impl for<'a> Fn( ValueRef<'a, NullableType<I1>>, ValueRef<'a, NullableType<I2>>, &mut EvalContext, ) -> Value<NullableType<O>> + Copy + Send + Sync { move |arg1, arg2, ctx| match (arg1, arg2) { (ValueRef::Scalar(None), _) | (_, ValueRef::Scalar(None)) => Value::Scalar(None), (ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2))) => Value::Scalar(Some( func(ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ctx) .into_scalar() .unwrap(), )), (ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2))) => { let and_validity = arg1.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func(ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ctx) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } (ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2)) => { let and_validity = arg2.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func(ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ctx) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } (ValueRef::Column(arg1), ValueRef::Column(arg2)) => { let and_validity = common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } } } pub fn passthrough_nullable_3_arg<I1: ArgType, I2: ArgType, I3: ArgType, O: ArgType>( func: impl for<'a> Fn( ValueRef<'a, I1>, ValueRef<'a, I2>, ValueRef<'a, I3>, &mut EvalContext, ) -> Value<O> + Copy + Send + Sync, ) -> impl for<'a> Fn( ValueRef<'a, NullableType<I1>>, ValueRef<'a, NullableType<I2>>, ValueRef<'a, NullableType<I3>>, &mut EvalContext, ) -> Value<NullableType<O>> + Copy + Send + Sync { move |arg1, arg2, arg3, ctx| match (arg1, arg2, arg3) { (ValueRef::Scalar(None), _, _) | (_, ValueRef::Scalar(None), _) | (_, _, ValueRef::Scalar(None)) => Value::Scalar(None), ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ) => Value::Scalar(Some( func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ctx, ) .into_scalar() .unwrap(), )), (ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3))) => { let and_validity = arg1.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } (ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3))) => { let and_validity = arg2.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } (ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3))) => { let and_validity = common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } (ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3)) => { let and_validity = arg3.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } (ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3)) => { let and_validity = common_arrow::arrow::bitmap::and(&arg1.validity, &arg3.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } (ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Column(arg3)) => { let and_validity = common_arrow::arrow::bitmap::and(&arg2.validity, &arg3.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } (ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3)) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity), &arg3.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } } } pub fn passthrough_nullable_4_arg< I1: ArgType, I2: ArgType, I3: ArgType, I4: ArgType, O: ArgType, >( func: impl for<'a> Fn( ValueRef<'a, I1>, ValueRef<'a, I2>, ValueRef<'a, I3>, ValueRef<'a, I4>, &mut EvalContext, ) -> Value<O> + Copy + Send + Sync, ) -> impl for<'a> Fn( ValueRef<'a, NullableType<I1>>, ValueRef<'a, NullableType<I2>>, ValueRef<'a, NullableType<I3>>, ValueRef<'a, NullableType<I4>>, &mut EvalContext, ) -> Value<NullableType<O>> + Copy + Send + Sync { move |arg1, arg2, arg3, arg4, ctx| match (arg1, arg2, arg3, arg4) { (ValueRef::Scalar(None), _, _, _) | (_, ValueRef::Scalar(None), _, _) | (_, _, ValueRef::Scalar(None), _) | (_, _, _, ValueRef::Scalar(None)) => Value::Scalar(None), ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ) => Value::Scalar(Some( func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ctx, ) .into_scalar() .unwrap(), )), ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ) => { let and_validity = arg1.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ) => { let and_validity = arg2.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ) => { let and_validity = arg3.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg1.validity, &arg3.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg2.validity, &arg3.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity), &arg3.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ) => { let and_validity = arg4.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg1.validity, &arg4.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg2.validity, &arg4.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity), &arg4.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Column(arg4), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg3.validity, &arg4.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Column(arg4), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg3.validity), &arg4.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg2.validity, &arg3.validity), &arg4.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity), &arg3.validity, ), &arg4.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } } } pub fn passthrough_nullable_5_arg< I1: ArgType, I2: ArgType, I3: ArgType, I4: ArgType, I5: ArgType, O: ArgType, >( func: impl for<'a> Fn( ValueRef<'a, I1>, ValueRef<'a, I2>, ValueRef<'a, I3>, ValueRef<'a, I4>, ValueRef<'a, I5>, &mut EvalContext, ) -> Value<O> + Copy + Send + Sync, ) -> impl for<'a> Fn( ValueRef<'a, NullableType<I1>>, ValueRef<'a, NullableType<I2>>, ValueRef<'a, NullableType<I3>>, ValueRef<'a, NullableType<I4>>, ValueRef<'a, NullableType<I5>>, &mut EvalContext, ) -> Value<NullableType<O>> + Copy + Send + Sync { move |arg1, arg2, arg3, arg4, arg5, ctx| match (arg1, arg2, arg3, arg4, arg5) { (ValueRef::Scalar(None), _, _, _, _) | (_, ValueRef::Scalar(None), _, _, _) | (_, _, ValueRef::Scalar(None), _, _) | (_, _, _, ValueRef::Scalar(None), _) | (_, _, _, _, ValueRef::Scalar(None)) => Value::Scalar(None), ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ValueRef::Scalar(Some(arg5)), ) => Value::Scalar(Some( func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ctx, ) .into_scalar() .unwrap(), )), ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = arg1.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = arg2.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = arg3.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg1.validity, &arg3.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg2.validity, &arg3.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity), &arg3.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = arg4.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg1.validity, &arg4.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg2.validity, &arg4.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity), &arg4.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg3.validity, &arg4.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg3.validity), &arg4.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg2.validity, &arg3.validity), &arg4.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity), &arg3.validity, ), &arg4.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ValueRef::Column(arg5), ) => { let and_validity = arg5.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg1.validity, &arg5.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg2.validity, &arg5.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity), &arg5.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg3.validity, &arg5.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg3.validity), &arg5.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg2.validity, &arg3.validity), &arg5.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity), &arg3.validity, ), &arg5.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg4.validity, &arg5.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg4.validity), &arg5.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg2.validity, &arg4.validity), &arg5.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity), &arg4.validity, ), &arg5.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg3.validity, &arg4.validity), &arg5.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg3.validity), &arg4.validity, ), &arg5.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg2.validity, &arg3.validity), &arg4.validity, ), &arg5.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity), &arg3.validity, ), &arg4.validity, ), &arg5.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); Value::Column(NullableColumn { column, validity }) } } } pub fn combine_nullable_1_arg<I1: ArgType, O: ArgType>( func: impl for<'a> Fn(ValueRef<'a, I1>, &mut EvalContext) -> Value<NullableType<O>> + Copy + Send + Sync, ) -> impl for<'a> Fn(ValueRef<'a, NullableType<I1>>, &mut EvalContext) -> Value<NullableType<O>> + Copy + Send + Sync { move |arg1, ctx| match (arg1) { (ValueRef::Scalar(None)) => Value::Scalar(None), (ValueRef::Scalar(Some(arg1))) => { Value::Scalar(func(ValueRef::Scalar(arg1), ctx).into_scalar().unwrap()) } (ValueRef::Column(arg1)) => { let and_validity = arg1.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func(ValueRef::Column(arg1.column), ctx) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } } } pub fn combine_nullable_2_arg<I1: ArgType, I2: ArgType, O: ArgType>( func: impl for<'a> Fn( ValueRef<'a, I1>, ValueRef<'a, I2>, &mut EvalContext, ) -> Value<NullableType<O>> + Copy + Send + Sync, ) -> impl for<'a> Fn( ValueRef<'a, NullableType<I1>>, ValueRef<'a, NullableType<I2>>, &mut EvalContext, ) -> Value<NullableType<O>> + Copy + Send + Sync { move |arg1, arg2, ctx| match (arg1, arg2) { (ValueRef::Scalar(None), _) | (_, ValueRef::Scalar(None)) => Value::Scalar(None), (ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2))) => Value::Scalar( func(ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ctx) .into_scalar() .unwrap(), ), (ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2))) => { let and_validity = arg1.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func(ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ctx) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } (ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2)) => { let and_validity = arg2.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func(ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ctx) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } (ValueRef::Column(arg1), ValueRef::Column(arg2)) => { let and_validity = common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } } } pub fn combine_nullable_3_arg<I1: ArgType, I2: ArgType, I3: ArgType, O: ArgType>( func: impl for<'a> Fn( ValueRef<'a, I1>, ValueRef<'a, I2>, ValueRef<'a, I3>, &mut EvalContext, ) -> Value<NullableType<O>> + Copy + Send + Sync, ) -> impl for<'a> Fn( ValueRef<'a, NullableType<I1>>, ValueRef<'a, NullableType<I2>>, ValueRef<'a, NullableType<I3>>, &mut EvalContext, ) -> Value<NullableType<O>> + Copy + Send + Sync { move |arg1, arg2, arg3, ctx| match (arg1, arg2, arg3) { (ValueRef::Scalar(None), _, _) | (_, ValueRef::Scalar(None), _) | (_, _, ValueRef::Scalar(None)) => Value::Scalar(None), ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ) => Value::Scalar( func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ctx, ) .into_scalar() .unwrap(), ), (ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3))) => { let and_validity = arg1.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } (ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3))) => { let and_validity = arg2.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } (ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3))) => { let and_validity = common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } (ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3)) => { let and_validity = arg3.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } (ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3)) => { let and_validity = common_arrow::arrow::bitmap::and(&arg1.validity, &arg3.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } (ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Column(arg3)) => { let and_validity = common_arrow::arrow::bitmap::and(&arg2.validity, &arg3.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } (ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3)) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity), &arg3.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } } } pub fn combine_nullable_4_arg<I1: ArgType, I2: ArgType, I3: ArgType, I4: ArgType, O: ArgType>( func: impl for<'a> Fn( ValueRef<'a, I1>, ValueRef<'a, I2>, ValueRef<'a, I3>, ValueRef<'a, I4>, &mut EvalContext, ) -> Value<NullableType<O>> + Copy + Send + Sync, ) -> impl for<'a> Fn( ValueRef<'a, NullableType<I1>>, ValueRef<'a, NullableType<I2>>, ValueRef<'a, NullableType<I3>>, ValueRef<'a, NullableType<I4>>, &mut EvalContext, ) -> Value<NullableType<O>> + Copy + Send + Sync { move |arg1, arg2, arg3, arg4, ctx| match (arg1, arg2, arg3, arg4) { (ValueRef::Scalar(None), _, _, _) | (_, ValueRef::Scalar(None), _, _) | (_, _, ValueRef::Scalar(None), _) | (_, _, _, ValueRef::Scalar(None)) => Value::Scalar(None), ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ) => Value::Scalar( func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ctx, ) .into_scalar() .unwrap(), ), ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ) => { let and_validity = arg1.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ) => { let and_validity = arg2.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ) => { let and_validity = arg3.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg1.validity, &arg3.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg2.validity, &arg3.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity), &arg3.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ) => { let and_validity = arg4.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg1.validity, &arg4.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg2.validity, &arg4.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity), &arg4.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Column(arg4), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg3.validity, &arg4.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Column(arg4), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg3.validity), &arg4.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg2.validity, &arg3.validity), &arg4.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity), &arg3.validity, ), &arg4.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } } } pub fn combine_nullable_5_arg< I1: ArgType, I2: ArgType, I3: ArgType, I4: ArgType, I5: ArgType, O: ArgType, >( func: impl for<'a> Fn( ValueRef<'a, I1>, ValueRef<'a, I2>, ValueRef<'a, I3>, ValueRef<'a, I4>, ValueRef<'a, I5>, &mut EvalContext, ) -> Value<NullableType<O>> + Copy + Send + Sync, ) -> impl for<'a> Fn( ValueRef<'a, NullableType<I1>>, ValueRef<'a, NullableType<I2>>, ValueRef<'a, NullableType<I3>>, ValueRef<'a, NullableType<I4>>, ValueRef<'a, NullableType<I5>>, &mut EvalContext, ) -> Value<NullableType<O>> + Copy + Send + Sync { move |arg1, arg2, arg3, arg4, arg5, ctx| match (arg1, arg2, arg3, arg4, arg5) { (ValueRef::Scalar(None), _, _, _, _) | (_, ValueRef::Scalar(None), _, _, _) | (_, _, ValueRef::Scalar(None), _, _) | (_, _, _, ValueRef::Scalar(None), _) | (_, _, _, _, ValueRef::Scalar(None)) => Value::Scalar(None), ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ValueRef::Scalar(Some(arg5)), ) => Value::Scalar( func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ctx, ) .into_scalar() .unwrap(), ), ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = arg1.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = arg2.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = arg3.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg1.validity, &arg3.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg2.validity, &arg3.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity), &arg3.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = arg4.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg1.validity, &arg4.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg2.validity, &arg4.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity), &arg4.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg3.validity, &arg4.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg3.validity), &arg4.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg2.validity, &arg3.validity), &arg4.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Scalar(Some(arg5)), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity), &arg3.validity, ), &arg4.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ValueRef::Scalar(arg5), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ValueRef::Column(arg5), ) => { let and_validity = arg5.validity; let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg1.validity, &arg5.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg2.validity, &arg5.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Scalar(Some(arg4)), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity), &arg5.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Scalar(arg4), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg3.validity, &arg5.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg3.validity), &arg5.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg2.validity, &arg3.validity), &arg5.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Scalar(Some(arg4)), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity), &arg3.validity, ), &arg5.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Scalar(arg4), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and(&arg4.validity, &arg5.validity); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg4.validity), &arg5.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg2.validity, &arg4.validity), &arg5.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Scalar(Some(arg3)), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity), &arg4.validity, ), &arg5.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Scalar(arg3), ValueRef::Column(arg4.column), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg3.validity, &arg4.validity), &arg5.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Column(arg1), ValueRef::Scalar(Some(arg2)), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg3.validity), &arg4.validity, ), &arg5.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Scalar(arg2), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Scalar(Some(arg1)), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg2.validity, &arg3.validity), &arg4.validity, ), &arg5.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Scalar(arg1), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } ( ValueRef::Column(arg1), ValueRef::Column(arg2), ValueRef::Column(arg3), ValueRef::Column(arg4), ValueRef::Column(arg5), ) => { let and_validity = common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and( &common_arrow::arrow::bitmap::and(&arg1.validity, &arg2.validity), &arg3.validity, ), &arg4.validity, ), &arg5.validity, ); let validity = ctx .validity .as_ref() .map(|valid| valid & (&and_validity)) .unwrap_or(and_validity); ctx.validity = Some(validity.clone()); let nullable_column = func( ValueRef::Column(arg1.column), ValueRef::Column(arg2.column), ValueRef::Column(arg3.column), ValueRef::Column(arg4.column), ValueRef::Column(arg5.column), ctx, ) .into_column() .unwrap(); let combine_validity = common_arrow::arrow::bitmap::and(&validity, &nullable_column.validity); Value::Column(NullableColumn { column: nullable_column.column, validity: combine_validity, }) } } } fn erase_calc_domain_generic_0_arg<O: ArgType>( func: impl Fn() -> FunctionDomain<O>, ) -> impl Fn(&[Domain]) -> FunctionDomain<AnyType> { move |args| func().map(O::upcast_domain) } fn erase_calc_domain_generic_1_arg<I1: ArgType, O: ArgType>( func: impl Fn(&I1::Domain) -> FunctionDomain<O>, ) -> impl Fn(&[Domain]) -> FunctionDomain<AnyType> { move |args| { let arg1 = I1::try_downcast_domain(&args[0]).unwrap(); func(&arg1).map(O::upcast_domain) } } fn erase_calc_domain_generic_2_arg<I1: ArgType, I2: ArgType, O: ArgType>( func: impl Fn(&I1::Domain, &I2::Domain) -> FunctionDomain<O>, ) -> impl Fn(&[Domain]) -> FunctionDomain<AnyType> { move |args| { let arg1 = I1::try_downcast_domain(&args[0]).unwrap(); let arg2 = I2::try_downcast_domain(&args[1]).unwrap(); func(&arg1, &arg2).map(O::upcast_domain) } } fn erase_calc_domain_generic_3_arg<I1: ArgType, I2: ArgType, I3: ArgType, O: ArgType>( func: impl Fn(&I1::Domain, &I2::Domain, &I3::Domain) -> FunctionDomain<O>, ) -> impl Fn(&[Domain]) -> FunctionDomain<AnyType> { move |args| { let arg1 = I1::try_downcast_domain(&args[0]).unwrap(); let arg2 = I2::try_downcast_domain(&args[1]).unwrap(); let arg3 = I3::try_downcast_domain(&args[2]).unwrap(); func(&arg1, &arg2, &arg3).map(O::upcast_domain) } } fn erase_calc_domain_generic_4_arg< I1: ArgType, I2: ArgType, I3: ArgType, I4: ArgType, O: ArgType, >( func: impl Fn(&I1::Domain, &I2::Domain, &I3::Domain, &I4::Domain) -> FunctionDomain<O>, ) -> impl Fn(&[Domain]) -> FunctionDomain<AnyType> { move |args| { let arg1 = I1::try_downcast_domain(&args[0]).unwrap(); let arg2 = I2::try_downcast_domain(&args[1]).unwrap(); let arg3 = I3::try_downcast_domain(&args[2]).unwrap(); let arg4 = I4::try_downcast_domain(&args[3]).unwrap(); func(&arg1, &arg2, &arg3, &arg4).map(O::upcast_domain) } } fn erase_calc_domain_generic_5_arg< I1: ArgType, I2: ArgType, I3: ArgType, I4: ArgType, I5: ArgType, O: ArgType, >( func: impl Fn(&I1::Domain, &I2::Domain, &I3::Domain, &I4::Domain, &I5::Domain) -> FunctionDomain<O>, ) -> impl Fn(&[Domain]) -> FunctionDomain<AnyType> { move |args| { let arg1 = I1::try_downcast_domain(&args[0]).unwrap(); let arg2 = I2::try_downcast_domain(&args[1]).unwrap(); let arg3 = I3::try_downcast_domain(&args[2]).unwrap(); let arg4 = I4::try_downcast_domain(&args[3]).unwrap(); let arg5 = I5::try_downcast_domain(&args[4]).unwrap(); func(&arg1, &arg2, &arg3, &arg4, &arg5).map(O::upcast_domain) } } fn erase_function_generic_0_arg<O: ArgType>( func: impl for<'a> Fn(&mut EvalContext) -> Value<O>, ) -> impl Fn(&[ValueRef<AnyType>], &mut EvalContext) -> Value<AnyType> { move |args, ctx| Value::upcast(func(ctx)) } fn erase_function_generic_1_arg<I1: ArgType, O: ArgType>( func: impl for<'a> Fn(ValueRef<'a, I1>, &mut EvalContext) -> Value<O>, ) -> impl Fn(&[ValueRef<AnyType>], &mut EvalContext) -> Value<AnyType> { move |args, ctx| { let arg1 = args[0].try_downcast().unwrap(); Value::upcast(func(arg1, ctx)) } } fn erase_function_generic_2_arg<I1: ArgType, I2: ArgType, O: ArgType>( func: impl for<'a> Fn(ValueRef<'a, I1>, ValueRef<'a, I2>, &mut EvalContext) -> Value<O>, ) -> impl Fn(&[ValueRef<AnyType>], &mut EvalContext) -> Value<AnyType> { move |args, ctx| { let arg1 = args[0].try_downcast().unwrap(); let arg2 = args[1].try_downcast().unwrap(); Value::upcast(func(arg1, arg2, ctx)) } } fn erase_function_generic_3_arg<I1: ArgType, I2: ArgType, I3: ArgType, O: ArgType>( func: impl for<'a> Fn( ValueRef<'a, I1>, ValueRef<'a, I2>, ValueRef<'a, I3>, &mut EvalContext, ) -> Value<O>, ) -> impl Fn(&[ValueRef<AnyType>], &mut EvalContext) -> Value<AnyType> { move |args, ctx| { let arg1 = args[0].try_downcast().unwrap(); let arg2 = args[1].try_downcast().unwrap(); let arg3 = args[2].try_downcast().unwrap(); Value::upcast(func(arg1, arg2, arg3, ctx)) } } fn erase_function_generic_4_arg<I1: ArgType, I2: ArgType, I3: ArgType, I4: ArgType, O: ArgType>( func: impl for<'a> Fn( ValueRef<'a, I1>, ValueRef<'a, I2>, ValueRef<'a, I3>, ValueRef<'a, I4>, &mut EvalContext, ) -> Value<O>, ) -> impl Fn(&[ValueRef<AnyType>], &mut EvalContext) -> Value<AnyType> { move |args, ctx| { let arg1 = args[0].try_downcast().unwrap(); let arg2 = args[1].try_downcast().unwrap(); let arg3 = args[2].try_downcast().unwrap(); let arg4 = args[3].try_downcast().unwrap(); Value::upcast(func(arg1, arg2, arg3, arg4, ctx)) } } fn erase_function_generic_5_arg< I1: ArgType, I2: ArgType, I3: ArgType, I4: ArgType, I5: ArgType, O: ArgType, >( func: impl for<'a> Fn( ValueRef<'a, I1>, ValueRef<'a, I2>, ValueRef<'a, I3>, ValueRef<'a, I4>, ValueRef<'a, I5>, &mut EvalContext, ) -> Value<O>, ) -> impl Fn(&[ValueRef<AnyType>], &mut EvalContext) -> Value<AnyType> { move |args, ctx| { let arg1 = args[0].try_downcast().unwrap(); let arg2 = args[1].try_downcast().unwrap(); let arg3 = args[2].try_downcast().unwrap(); let arg4 = args[3].try_downcast().unwrap(); let arg5 = args[4].try_downcast().unwrap(); Value::upcast(func(arg1, arg2, arg3, arg4, arg5, ctx)) } }
use oauth2::{ reqwest::async_http_client, url::Url, AccessToken, ClientId, ClientSecret, CsrfToken, RedirectUrl, Scope, }; use openidconnect::{ core::{CoreClient, CoreIdToken, CoreProviderMetadata, CoreResponseType}, AuthenticationFlow, IssuerUrl, Nonce, }; use serde::{Deserialize, Serialize}; use crate::errors::OidcApplicationError; #[derive(Clone, Debug, Serialize, Deserialize)] pub(crate) struct OidcSessionCookie { pub(crate) access_token: AccessToken, pub(crate) id_token: Option<CoreIdToken>, } /// State for an application utilizing OpenID Connect /// /// This structure is mainly used internally by `rocket_oidc` to interface with the OpenID Connect /// provider, and doesn't require usage beyond initial creation and attachment by consumers of /// `rocket_oidc`. pub struct OidcApplication { pub(crate) client: CoreClient, pub(crate) authorize_url: Url, pub(crate) csrf_state: CsrfToken, pub(crate) nonce: Nonce, } impl OidcApplication { /// Create a new OpenID Connect application from the provided components. /// /// `base_url` is the base URL of this application. /// `issuer` is the base URL of the OpenID Connect provider. /// `client_id` is the client ID provided to this application by the OpenID Connect provider. /// `client_secret` is the client secret provided to this application by the OpenID Connect /// provider. pub async fn new( base_url: Url, issuer: IssuerUrl, client_id: ClientId, client_secret: ClientSecret, ) -> Result<OidcApplication, OidcApplicationError> { let provider_metadata = CoreProviderMetadata::discover_async(issuer, async_http_client) .await .map_err(|_| OidcApplicationError::OidcDiscovery)?; let client = CoreClient::from_provider_metadata(provider_metadata, client_id, Some(client_secret)) .set_redirect_uri(RedirectUrl::new( base_url.join("/oidc_redirect")?.to_string(), )?); // Generate the authorization URL to which we'll redirect the user. let (authorize_url, csrf_state, nonce) = client .authorize_url( AuthenticationFlow::<CoreResponseType>::AuthorizationCode, CsrfToken::new_random, Nonce::new_random, ) // This example is requesting access to the "calendar" features and the user's profile. .add_scope(Scope::new("email".to_string())) .add_scope(Scope::new("profile".to_string())) .url(); Ok(OidcApplication { client, authorize_url, csrf_state, nonce, }) } }
#![allow(unused_variables, non_upper_case_globals, non_snake_case, unused_unsafe, non_camel_case_types, dead_code, clippy::all)] #[cfg(feature = "Win32_UI_Shell_Common")] pub mod Common; #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub mod PropertiesSystem; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct AASHELLMENUFILENAME { pub cbTotal: i16, pub rgbReserved: [u8; 12], pub szFileName: [u16; 1], } impl AASHELLMENUFILENAME {} impl ::core::default::Default for AASHELLMENUFILENAME { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for AASHELLMENUFILENAME { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("AASHELLMENUFILENAME").field("cbTotal", &self.cbTotal).field("rgbReserved", &self.rgbReserved).field("szFileName", &self.szFileName).finish() } } impl ::core::cmp::PartialEq for AASHELLMENUFILENAME { fn eq(&self, other: &Self) -> bool { self.cbTotal == other.cbTotal && self.rgbReserved == other.rgbReserved && self.szFileName == other.szFileName } } impl ::core::cmp::Eq for AASHELLMENUFILENAME {} unsafe impl ::windows::core::Abi for AASHELLMENUFILENAME { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct AASHELLMENUITEM { pub lpReserved1: *mut ::core::ffi::c_void, pub iReserved: i32, pub uiReserved: u32, pub lpName: *mut AASHELLMENUFILENAME, pub psz: super::super::Foundation::PWSTR, } #[cfg(feature = "Win32_Foundation")] impl AASHELLMENUITEM {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for AASHELLMENUITEM { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for AASHELLMENUITEM { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("AASHELLMENUITEM").field("lpReserved1", &self.lpReserved1).field("iReserved", &self.iReserved).field("uiReserved", &self.uiReserved).field("lpName", &self.lpName).field("psz", &self.psz).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for AASHELLMENUITEM { fn eq(&self, other: &Self) -> bool { self.lpReserved1 == other.lpReserved1 && self.iReserved == other.iReserved && self.uiReserved == other.uiReserved && self.lpName == other.lpName && self.psz == other.psz } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for AASHELLMENUITEM {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for AASHELLMENUITEM { type Abi = Self; } pub const ABE_BOTTOM: u32 = 3u32; pub const ABE_LEFT: u32 = 0u32; pub const ABE_RIGHT: u32 = 2u32; pub const ABE_TOP: u32 = 1u32; pub const ABM_ACTIVATE: u32 = 6u32; pub const ABM_GETAUTOHIDEBAR: u32 = 7u32; pub const ABM_GETAUTOHIDEBAREX: u32 = 11u32; pub const ABM_GETSTATE: u32 = 4u32; pub const ABM_GETTASKBARPOS: u32 = 5u32; pub const ABM_NEW: u32 = 0u32; pub const ABM_QUERYPOS: u32 = 2u32; pub const ABM_REMOVE: u32 = 1u32; pub const ABM_SETAUTOHIDEBAR: u32 = 8u32; pub const ABM_SETAUTOHIDEBAREX: u32 = 12u32; pub const ABM_SETPOS: u32 = 3u32; pub const ABM_SETSTATE: u32 = 10u32; pub const ABM_WINDOWPOSCHANGED: u32 = 9u32; pub const ABN_FULLSCREENAPP: u32 = 2u32; pub const ABN_POSCHANGED: u32 = 1u32; pub const ABN_STATECHANGE: u32 = 0u32; pub const ABN_WINDOWARRANGE: u32 = 3u32; pub const ABS_ALWAYSONTOP: u32 = 2u32; pub const ABS_AUTOHIDE: u32 = 1u32; pub const ACDD_VISIBLE: u32 = 1u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct ACENUMOPTION(pub i32); pub const ACEO_NONE: ACENUMOPTION = ACENUMOPTION(0i32); pub const ACEO_MOSTRECENTFIRST: ACENUMOPTION = ACENUMOPTION(1i32); pub const ACEO_FIRSTUNUSED: ACENUMOPTION = ACENUMOPTION(65536i32); impl ::core::convert::From<i32> for ACENUMOPTION { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for ACENUMOPTION { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct ACTIVATEOPTIONS(pub i32); pub const AO_NONE: ACTIVATEOPTIONS = ACTIVATEOPTIONS(0i32); pub const AO_DESIGNMODE: ACTIVATEOPTIONS = ACTIVATEOPTIONS(1i32); pub const AO_NOERRORUI: ACTIVATEOPTIONS = ACTIVATEOPTIONS(2i32); pub const AO_NOSPLASHSCREEN: ACTIVATEOPTIONS = ACTIVATEOPTIONS(4i32); pub const AO_PRELAUNCH: ACTIVATEOPTIONS = ACTIVATEOPTIONS(33554432i32); impl ::core::convert::From<i32> for ACTIVATEOPTIONS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for ACTIVATEOPTIONS { type Abi = Self; } pub const ADDURL_SILENT: u32 = 1u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct ADJACENT_DISPLAY_EDGES(pub i32); pub const ADE_NONE: ADJACENT_DISPLAY_EDGES = ADJACENT_DISPLAY_EDGES(0i32); pub const ADE_LEFT: ADJACENT_DISPLAY_EDGES = ADJACENT_DISPLAY_EDGES(1i32); pub const ADE_RIGHT: ADJACENT_DISPLAY_EDGES = ADJACENT_DISPLAY_EDGES(2i32); impl ::core::convert::From<i32> for ADJACENT_DISPLAY_EDGES { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for ADJACENT_DISPLAY_EDGES { type Abi = Self; } pub const AD_APPLY_BUFFERED_REFRESH: u32 = 16u32; pub const AD_APPLY_DYNAMICREFRESH: u32 = 32u32; pub const AD_APPLY_FORCE: u32 = 8u32; pub const AD_APPLY_HTMLGEN: u32 = 2u32; pub const AD_APPLY_REFRESH: u32 = 4u32; pub const AD_APPLY_SAVE: u32 = 1u32; pub const AD_GETWP_BMP: u32 = 0u32; pub const AD_GETWP_IMAGE: u32 = 1u32; pub const AD_GETWP_LAST_APPLIED: u32 = 2u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct AHE_TYPE(pub i32); pub const AHE_DESKTOP: AHE_TYPE = AHE_TYPE(0i32); pub const AHE_IMMERSIVE: AHE_TYPE = AHE_TYPE(1i32); impl ::core::convert::From<i32> for AHE_TYPE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for AHE_TYPE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct AHTYPE(pub i32); pub const AHTYPE_UNDEFINED: AHTYPE = AHTYPE(0i32); pub const AHTYPE_USER_APPLICATION: AHTYPE = AHTYPE(8i32); pub const AHTYPE_ANY_APPLICATION: AHTYPE = AHTYPE(16i32); pub const AHTYPE_MACHINEDEFAULT: AHTYPE = AHTYPE(32i32); pub const AHTYPE_PROGID: AHTYPE = AHTYPE(64i32); pub const AHTYPE_APPLICATION: AHTYPE = AHTYPE(128i32); pub const AHTYPE_CLASS_APPLICATION: AHTYPE = AHTYPE(256i32); pub const AHTYPE_ANY_PROGID: AHTYPE = AHTYPE(512i32); impl ::core::convert::From<i32> for AHTYPE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for AHTYPE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct APPACTIONFLAGS(pub i32); pub const APPACTION_INSTALL: APPACTIONFLAGS = APPACTIONFLAGS(1i32); pub const APPACTION_UNINSTALL: APPACTIONFLAGS = APPACTIONFLAGS(2i32); pub const APPACTION_MODIFY: APPACTIONFLAGS = APPACTIONFLAGS(4i32); pub const APPACTION_REPAIR: APPACTIONFLAGS = APPACTIONFLAGS(8i32); pub const APPACTION_UPGRADE: APPACTIONFLAGS = APPACTIONFLAGS(16i32); pub const APPACTION_CANGETSIZE: APPACTIONFLAGS = APPACTIONFLAGS(32i32); pub const APPACTION_MODIFYREMOVE: APPACTIONFLAGS = APPACTIONFLAGS(128i32); pub const APPACTION_ADDLATER: APPACTIONFLAGS = APPACTIONFLAGS(256i32); pub const APPACTION_UNSCHEDULE: APPACTIONFLAGS = APPACTIONFLAGS(512i32); impl ::core::convert::From<i32> for APPACTIONFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for APPACTIONFLAGS { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[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 = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl APPBARDATA {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for APPBARDATA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for APPBARDATA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("APPBARDATA").field("cbSize", &self.cbSize).field("hWnd", &self.hWnd).field("uCallbackMessage", &self.uCallbackMessage).field("uEdge", &self.uEdge).field("rc", &self.rc).field("lParam", &self.lParam).finish() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for APPBARDATA { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.hWnd == other.hWnd && self.uCallbackMessage == other.uCallbackMessage && self.uEdge == other.uEdge && self.rc == other.rc && self.lParam == other.lParam } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for APPBARDATA {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for APPBARDATA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(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(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl APPBARDATA {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for APPBARDATA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for APPBARDATA { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for APPBARDATA {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for APPBARDATA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct APPCATEGORYINFO { pub Locale: u32, pub pszDescription: super::super::Foundation::PWSTR, pub AppCategoryId: ::windows::core::GUID, } #[cfg(feature = "Win32_Foundation")] impl APPCATEGORYINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for APPCATEGORYINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for APPCATEGORYINFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("APPCATEGORYINFO").field("Locale", &self.Locale).field("pszDescription", &self.pszDescription).field("AppCategoryId", &self.AppCategoryId).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for APPCATEGORYINFO { fn eq(&self, other: &Self) -> bool { self.Locale == other.Locale && self.pszDescription == other.pszDescription && self.AppCategoryId == other.AppCategoryId } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for APPCATEGORYINFO {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for APPCATEGORYINFO { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct APPCATEGORYINFOLIST { pub cCategory: u32, pub pCategoryInfo: *mut APPCATEGORYINFO, } #[cfg(feature = "Win32_Foundation")] impl APPCATEGORYINFOLIST {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for APPCATEGORYINFOLIST { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for APPCATEGORYINFOLIST { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("APPCATEGORYINFOLIST").field("cCategory", &self.cCategory).field("pCategoryInfo", &self.pCategoryInfo).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for APPCATEGORYINFOLIST { fn eq(&self, other: &Self) -> bool { self.cCategory == other.cCategory && self.pCategoryInfo == other.pCategoryInfo } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for APPCATEGORYINFOLIST {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for APPCATEGORYINFOLIST { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct APPDOCLISTTYPE(pub i32); pub const ADLT_RECENT: APPDOCLISTTYPE = APPDOCLISTTYPE(0i32); pub const ADLT_FREQUENT: APPDOCLISTTYPE = APPDOCLISTTYPE(1i32); impl ::core::convert::From<i32> for APPDOCLISTTYPE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for APPDOCLISTTYPE { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct APPINFODATA { pub cbSize: u32, pub dwMask: u32, pub pszDisplayName: super::super::Foundation::PWSTR, pub pszVersion: super::super::Foundation::PWSTR, pub pszPublisher: super::super::Foundation::PWSTR, pub pszProductID: super::super::Foundation::PWSTR, pub pszRegisteredOwner: super::super::Foundation::PWSTR, pub pszRegisteredCompany: super::super::Foundation::PWSTR, pub pszLanguage: super::super::Foundation::PWSTR, pub pszSupportUrl: super::super::Foundation::PWSTR, pub pszSupportTelephone: super::super::Foundation::PWSTR, pub pszHelpLink: super::super::Foundation::PWSTR, pub pszInstallLocation: super::super::Foundation::PWSTR, pub pszInstallSource: super::super::Foundation::PWSTR, pub pszInstallDate: super::super::Foundation::PWSTR, pub pszContact: super::super::Foundation::PWSTR, pub pszComments: super::super::Foundation::PWSTR, pub pszImage: super::super::Foundation::PWSTR, pub pszReadmeUrl: super::super::Foundation::PWSTR, pub pszUpdateInfoUrl: super::super::Foundation::PWSTR, } #[cfg(feature = "Win32_Foundation")] impl APPINFODATA {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for APPINFODATA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for APPINFODATA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("APPINFODATA") .field("cbSize", &self.cbSize) .field("dwMask", &self.dwMask) .field("pszDisplayName", &self.pszDisplayName) .field("pszVersion", &self.pszVersion) .field("pszPublisher", &self.pszPublisher) .field("pszProductID", &self.pszProductID) .field("pszRegisteredOwner", &self.pszRegisteredOwner) .field("pszRegisteredCompany", &self.pszRegisteredCompany) .field("pszLanguage", &self.pszLanguage) .field("pszSupportUrl", &self.pszSupportUrl) .field("pszSupportTelephone", &self.pszSupportTelephone) .field("pszHelpLink", &self.pszHelpLink) .field("pszInstallLocation", &self.pszInstallLocation) .field("pszInstallSource", &self.pszInstallSource) .field("pszInstallDate", &self.pszInstallDate) .field("pszContact", &self.pszContact) .field("pszComments", &self.pszComments) .field("pszImage", &self.pszImage) .field("pszReadmeUrl", &self.pszReadmeUrl) .field("pszUpdateInfoUrl", &self.pszUpdateInfoUrl) .finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for APPINFODATA { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.dwMask == other.dwMask && self.pszDisplayName == other.pszDisplayName && self.pszVersion == other.pszVersion && self.pszPublisher == other.pszPublisher && self.pszProductID == other.pszProductID && self.pszRegisteredOwner == other.pszRegisteredOwner && self.pszRegisteredCompany == other.pszRegisteredCompany && self.pszLanguage == other.pszLanguage && self.pszSupportUrl == other.pszSupportUrl && self.pszSupportTelephone == other.pszSupportTelephone && self.pszHelpLink == other.pszHelpLink && self.pszInstallLocation == other.pszInstallLocation && self.pszInstallSource == other.pszInstallSource && self.pszInstallDate == other.pszInstallDate && self.pszContact == other.pszContact && self.pszComments == other.pszComments && self.pszImage == other.pszImage && self.pszReadmeUrl == other.pszReadmeUrl && self.pszUpdateInfoUrl == other.pszUpdateInfoUrl } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for APPINFODATA {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for APPINFODATA { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct APPINFODATAFLAGS(pub i32); pub const AIM_DISPLAYNAME: APPINFODATAFLAGS = APPINFODATAFLAGS(1i32); pub const AIM_VERSION: APPINFODATAFLAGS = APPINFODATAFLAGS(2i32); pub const AIM_PUBLISHER: APPINFODATAFLAGS = APPINFODATAFLAGS(4i32); pub const AIM_PRODUCTID: APPINFODATAFLAGS = APPINFODATAFLAGS(8i32); pub const AIM_REGISTEREDOWNER: APPINFODATAFLAGS = APPINFODATAFLAGS(16i32); pub const AIM_REGISTEREDCOMPANY: APPINFODATAFLAGS = APPINFODATAFLAGS(32i32); pub const AIM_LANGUAGE: APPINFODATAFLAGS = APPINFODATAFLAGS(64i32); pub const AIM_SUPPORTURL: APPINFODATAFLAGS = APPINFODATAFLAGS(128i32); pub const AIM_SUPPORTTELEPHONE: APPINFODATAFLAGS = APPINFODATAFLAGS(256i32); pub const AIM_HELPLINK: APPINFODATAFLAGS = APPINFODATAFLAGS(512i32); pub const AIM_INSTALLLOCATION: APPINFODATAFLAGS = APPINFODATAFLAGS(1024i32); pub const AIM_INSTALLSOURCE: APPINFODATAFLAGS = APPINFODATAFLAGS(2048i32); pub const AIM_INSTALLDATE: APPINFODATAFLAGS = APPINFODATAFLAGS(4096i32); pub const AIM_CONTACT: APPINFODATAFLAGS = APPINFODATAFLAGS(16384i32); pub const AIM_COMMENTS: APPINFODATAFLAGS = APPINFODATAFLAGS(32768i32); pub const AIM_IMAGE: APPINFODATAFLAGS = APPINFODATAFLAGS(131072i32); pub const AIM_READMEURL: APPINFODATAFLAGS = APPINFODATAFLAGS(262144i32); pub const AIM_UPDATEINFOURL: APPINFODATAFLAGS = APPINFODATAFLAGS(524288i32); impl ::core::convert::From<i32> for APPINFODATAFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for APPINFODATAFLAGS { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] pub type APPLET_PROC = unsafe extern "system" fn(hwndcpl: super::super::Foundation::HWND, msg: u32, lparam1: super::super::Foundation::LPARAM, lparam2: super::super::Foundation::LPARAM) -> i32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct APPLICATION_VIEW_MIN_WIDTH(pub i32); pub const AVMW_DEFAULT: APPLICATION_VIEW_MIN_WIDTH = APPLICATION_VIEW_MIN_WIDTH(0i32); pub const AVMW_320: APPLICATION_VIEW_MIN_WIDTH = APPLICATION_VIEW_MIN_WIDTH(1i32); pub const AVMW_500: APPLICATION_VIEW_MIN_WIDTH = APPLICATION_VIEW_MIN_WIDTH(2i32); impl ::core::convert::From<i32> for APPLICATION_VIEW_MIN_WIDTH { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for APPLICATION_VIEW_MIN_WIDTH { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct APPLICATION_VIEW_ORIENTATION(pub i32); pub const AVO_LANDSCAPE: APPLICATION_VIEW_ORIENTATION = APPLICATION_VIEW_ORIENTATION(0i32); pub const AVO_PORTRAIT: APPLICATION_VIEW_ORIENTATION = APPLICATION_VIEW_ORIENTATION(1i32); impl ::core::convert::From<i32> for APPLICATION_VIEW_ORIENTATION { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for APPLICATION_VIEW_ORIENTATION { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct APPLICATION_VIEW_SIZE_PREFERENCE(pub i32); pub const AVSP_DEFAULT: APPLICATION_VIEW_SIZE_PREFERENCE = APPLICATION_VIEW_SIZE_PREFERENCE(0i32); pub const AVSP_USE_LESS: APPLICATION_VIEW_SIZE_PREFERENCE = APPLICATION_VIEW_SIZE_PREFERENCE(1i32); pub const AVSP_USE_HALF: APPLICATION_VIEW_SIZE_PREFERENCE = APPLICATION_VIEW_SIZE_PREFERENCE(2i32); pub const AVSP_USE_MORE: APPLICATION_VIEW_SIZE_PREFERENCE = APPLICATION_VIEW_SIZE_PREFERENCE(3i32); pub const AVSP_USE_MINIMUM: APPLICATION_VIEW_SIZE_PREFERENCE = APPLICATION_VIEW_SIZE_PREFERENCE(4i32); pub const AVSP_USE_NONE: APPLICATION_VIEW_SIZE_PREFERENCE = APPLICATION_VIEW_SIZE_PREFERENCE(5i32); pub const AVSP_CUSTOM: APPLICATION_VIEW_SIZE_PREFERENCE = APPLICATION_VIEW_SIZE_PREFERENCE(6i32); impl ::core::convert::From<i32> for APPLICATION_VIEW_SIZE_PREFERENCE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for APPLICATION_VIEW_SIZE_PREFERENCE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct APPLICATION_VIEW_STATE(pub i32); pub const AVS_FULLSCREEN_LANDSCAPE: APPLICATION_VIEW_STATE = APPLICATION_VIEW_STATE(0i32); pub const AVS_FILLED: APPLICATION_VIEW_STATE = APPLICATION_VIEW_STATE(1i32); pub const AVS_SNAPPED: APPLICATION_VIEW_STATE = APPLICATION_VIEW_STATE(2i32); pub const AVS_FULLSCREEN_PORTRAIT: APPLICATION_VIEW_STATE = APPLICATION_VIEW_STATE(3i32); impl ::core::convert::From<i32> for APPLICATION_VIEW_STATE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for APPLICATION_VIEW_STATE { type Abi = Self; } pub const APPNAMEBUFFERLEN: u32 = 40u32; pub const ARCONTENT_AUDIOCD: u32 = 4u32; pub const ARCONTENT_AUTOPLAYMUSIC: u32 = 256u32; pub const ARCONTENT_AUTOPLAYPIX: u32 = 128u32; pub const ARCONTENT_AUTOPLAYVIDEO: u32 = 512u32; pub const ARCONTENT_AUTORUNINF: u32 = 2u32; pub const ARCONTENT_BLANKBD: u32 = 8192u32; pub const ARCONTENT_BLANKCD: u32 = 16u32; pub const ARCONTENT_BLANKDVD: u32 = 32u32; pub const ARCONTENT_BLURAY: u32 = 16384u32; pub const ARCONTENT_CAMERASTORAGE: u32 = 32768u32; pub const ARCONTENT_CUSTOMEVENT: u32 = 65536u32; pub const ARCONTENT_DVDAUDIO: u32 = 4096u32; pub const ARCONTENT_DVDMOVIE: u32 = 8u32; pub const ARCONTENT_MASK: u32 = 131070u32; pub const ARCONTENT_NONE: u32 = 0u32; pub const ARCONTENT_PHASE_FINAL: u32 = 1073741824u32; pub const ARCONTENT_PHASE_MASK: u32 = 1879048192u32; pub const ARCONTENT_PHASE_PRESNIFF: u32 = 268435456u32; pub const ARCONTENT_PHASE_SNIFFING: u32 = 536870912u32; pub const ARCONTENT_PHASE_UNKNOWN: u32 = 0u32; pub const ARCONTENT_SVCD: u32 = 2048u32; pub const ARCONTENT_UNKNOWNCONTENT: u32 = 64u32; pub const ARCONTENT_VCD: u32 = 1024u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct ASSOCCLASS(pub i32); pub const ASSOCCLASS_SHELL_KEY: ASSOCCLASS = ASSOCCLASS(0i32); pub const ASSOCCLASS_PROGID_KEY: ASSOCCLASS = ASSOCCLASS(1i32); pub const ASSOCCLASS_PROGID_STR: ASSOCCLASS = ASSOCCLASS(2i32); pub const ASSOCCLASS_CLSID_KEY: ASSOCCLASS = ASSOCCLASS(3i32); pub const ASSOCCLASS_CLSID_STR: ASSOCCLASS = ASSOCCLASS(4i32); pub const ASSOCCLASS_APP_KEY: ASSOCCLASS = ASSOCCLASS(5i32); pub const ASSOCCLASS_APP_STR: ASSOCCLASS = ASSOCCLASS(6i32); pub const ASSOCCLASS_SYSTEM_STR: ASSOCCLASS = ASSOCCLASS(7i32); pub const ASSOCCLASS_FOLDER: ASSOCCLASS = ASSOCCLASS(8i32); pub const ASSOCCLASS_STAR: ASSOCCLASS = ASSOCCLASS(9i32); pub const ASSOCCLASS_FIXED_PROGID_STR: ASSOCCLASS = ASSOCCLASS(10i32); pub const ASSOCCLASS_PROTOCOL_STR: ASSOCCLASS = ASSOCCLASS(11i32); impl ::core::convert::From<i32> for ASSOCCLASS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for ASSOCCLASS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct ASSOCDATA(pub i32); pub const ASSOCDATA_MSIDESCRIPTOR: ASSOCDATA = ASSOCDATA(1i32); pub const ASSOCDATA_NOACTIVATEHANDLER: ASSOCDATA = ASSOCDATA(2i32); pub const ASSOCDATA_UNUSED1: ASSOCDATA = ASSOCDATA(3i32); pub const ASSOCDATA_HASPERUSERASSOC: ASSOCDATA = ASSOCDATA(4i32); pub const ASSOCDATA_EDITFLAGS: ASSOCDATA = ASSOCDATA(5i32); pub const ASSOCDATA_VALUE: ASSOCDATA = ASSOCDATA(6i32); pub const ASSOCDATA_MAX: ASSOCDATA = ASSOCDATA(7i32); impl ::core::convert::From<i32> for ASSOCDATA { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for ASSOCDATA { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct ASSOCENUM(pub i32); pub const ASSOCENUM_NONE: ASSOCENUM = ASSOCENUM(0i32); impl ::core::convert::From<i32> for ASSOCENUM { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for ASSOCENUM { type Abi = Self; } pub const ASSOCF_APP_TO_APP: i32 = 65536i32; pub const ASSOCF_IGNOREBASECLASS: i32 = 512i32; pub const ASSOCF_INIT_BYEXENAME: i32 = 2i32; pub const ASSOCF_INIT_DEFAULTTOFOLDER: i32 = 8i32; pub const ASSOCF_INIT_DEFAULTTOSTAR: i32 = 4i32; pub const ASSOCF_INIT_FIXED_PROGID: i32 = 2048i32; pub const ASSOCF_INIT_FOR_FILE: i32 = 8192i32; pub const ASSOCF_INIT_IGNOREUNKNOWN: i32 = 1024i32; pub const ASSOCF_INIT_NOREMAPCLSID: i32 = 1i32; pub const ASSOCF_IS_FULL_URI: i32 = 16384i32; pub const ASSOCF_IS_PROTOCOL: i32 = 4096i32; pub const ASSOCF_NOFIXUPS: i32 = 256i32; pub const ASSOCF_NONE: i32 = 0i32; pub const ASSOCF_NOTRUNCATE: i32 = 32i32; pub const ASSOCF_NOUSERSETTINGS: i32 = 16i32; pub const ASSOCF_OPEN_BYEXENAME: i32 = 2i32; pub const ASSOCF_PER_MACHINE_ONLY: i32 = 32768i32; pub const ASSOCF_REMAPRUNDLL: i32 = 128i32; pub const ASSOCF_VERIFY: i32 = 64i32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] pub struct ASSOCIATIONELEMENT { pub ac: ASSOCCLASS, pub hkClass: super::super::System::Registry::HKEY, pub pszClass: super::super::Foundation::PWSTR, } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ASSOCIATIONELEMENT {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::default::Default for ASSOCIATIONELEMENT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::fmt::Debug for ASSOCIATIONELEMENT { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("ASSOCIATIONELEMENT").field("ac", &self.ac).field("hkClass", &self.hkClass).field("pszClass", &self.pszClass).finish() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::cmp::PartialEq for ASSOCIATIONELEMENT { fn eq(&self, other: &Self) -> bool { self.ac == other.ac && self.hkClass == other.hkClass && self.pszClass == other.pszClass } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::cmp::Eq for ASSOCIATIONELEMENT {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] unsafe impl ::windows::core::Abi for ASSOCIATIONELEMENT { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] pub struct ASSOCIATIONELEMENT { pub ac: ASSOCCLASS, pub hkClass: super::super::System::Registry::HKEY, pub pszClass: super::super::Foundation::PWSTR, } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ASSOCIATIONELEMENT {} #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::default::Default for ASSOCIATIONELEMENT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::cmp::PartialEq for ASSOCIATIONELEMENT { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::cmp::Eq for ASSOCIATIONELEMENT {} #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] unsafe impl ::windows::core::Abi for ASSOCIATIONELEMENT { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct ASSOCIATIONLEVEL(pub i32); pub const AL_MACHINE: ASSOCIATIONLEVEL = ASSOCIATIONLEVEL(0i32); pub const AL_EFFECTIVE: ASSOCIATIONLEVEL = ASSOCIATIONLEVEL(1i32); pub const AL_USER: ASSOCIATIONLEVEL = ASSOCIATIONLEVEL(2i32); impl ::core::convert::From<i32> for ASSOCIATIONLEVEL { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for ASSOCIATIONLEVEL { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct ASSOCIATIONTYPE(pub i32); pub const AT_FILEEXTENSION: ASSOCIATIONTYPE = ASSOCIATIONTYPE(0i32); pub const AT_URLPROTOCOL: ASSOCIATIONTYPE = ASSOCIATIONTYPE(1i32); pub const AT_STARTMENUCLIENT: ASSOCIATIONTYPE = ASSOCIATIONTYPE(2i32); pub const AT_MIMETYPE: ASSOCIATIONTYPE = ASSOCIATIONTYPE(3i32); impl ::core::convert::From<i32> for ASSOCIATIONTYPE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for ASSOCIATIONTYPE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct ASSOCKEY(pub i32); pub const ASSOCKEY_SHELLEXECCLASS: ASSOCKEY = ASSOCKEY(1i32); pub const ASSOCKEY_APP: ASSOCKEY = ASSOCKEY(2i32); pub const ASSOCKEY_CLASS: ASSOCKEY = ASSOCKEY(3i32); pub const ASSOCKEY_BASECLASS: ASSOCKEY = ASSOCKEY(4i32); pub const ASSOCKEY_MAX: ASSOCKEY = ASSOCKEY(5i32); impl ::core::convert::From<i32> for ASSOCKEY { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for ASSOCKEY { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct ASSOCSTR(pub i32); pub const ASSOCSTR_COMMAND: ASSOCSTR = ASSOCSTR(1i32); pub const ASSOCSTR_EXECUTABLE: ASSOCSTR = ASSOCSTR(2i32); pub const ASSOCSTR_FRIENDLYDOCNAME: ASSOCSTR = ASSOCSTR(3i32); pub const ASSOCSTR_FRIENDLYAPPNAME: ASSOCSTR = ASSOCSTR(4i32); pub const ASSOCSTR_NOOPEN: ASSOCSTR = ASSOCSTR(5i32); pub const ASSOCSTR_SHELLNEWVALUE: ASSOCSTR = ASSOCSTR(6i32); pub const ASSOCSTR_DDECOMMAND: ASSOCSTR = ASSOCSTR(7i32); pub const ASSOCSTR_DDEIFEXEC: ASSOCSTR = ASSOCSTR(8i32); pub const ASSOCSTR_DDEAPPLICATION: ASSOCSTR = ASSOCSTR(9i32); pub const ASSOCSTR_DDETOPIC: ASSOCSTR = ASSOCSTR(10i32); pub const ASSOCSTR_INFOTIP: ASSOCSTR = ASSOCSTR(11i32); pub const ASSOCSTR_QUICKTIP: ASSOCSTR = ASSOCSTR(12i32); pub const ASSOCSTR_TILEINFO: ASSOCSTR = ASSOCSTR(13i32); pub const ASSOCSTR_CONTENTTYPE: ASSOCSTR = ASSOCSTR(14i32); pub const ASSOCSTR_DEFAULTICON: ASSOCSTR = ASSOCSTR(15i32); pub const ASSOCSTR_SHELLEXTENSION: ASSOCSTR = ASSOCSTR(16i32); pub const ASSOCSTR_DROPTARGET: ASSOCSTR = ASSOCSTR(17i32); pub const ASSOCSTR_DELEGATEEXECUTE: ASSOCSTR = ASSOCSTR(18i32); pub const ASSOCSTR_SUPPORTED_URI_PROTOCOLS: ASSOCSTR = ASSOCSTR(19i32); pub const ASSOCSTR_PROGID: ASSOCSTR = ASSOCSTR(20i32); pub const ASSOCSTR_APPID: ASSOCSTR = ASSOCSTR(21i32); pub const ASSOCSTR_APPPUBLISHER: ASSOCSTR = ASSOCSTR(22i32); pub const ASSOCSTR_APPICONREFERENCE: ASSOCSTR = ASSOCSTR(23i32); pub const ASSOCSTR_MAX: ASSOCSTR = ASSOCSTR(24i32); impl ::core::convert::From<i32> for ASSOCSTR { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for ASSOCSTR { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct ASSOC_FILTER(pub i32); pub const ASSOC_FILTER_NONE: ASSOC_FILTER = ASSOC_FILTER(0i32); pub const ASSOC_FILTER_RECOMMENDED: ASSOC_FILTER = ASSOC_FILTER(1i32); impl ::core::convert::From<i32> for ASSOC_FILTER { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for ASSOC_FILTER { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct ATTACHMENT_ACTION(pub i32); pub const ATTACHMENT_ACTION_CANCEL: ATTACHMENT_ACTION = ATTACHMENT_ACTION(0i32); pub const ATTACHMENT_ACTION_SAVE: ATTACHMENT_ACTION = ATTACHMENT_ACTION(1i32); pub const ATTACHMENT_ACTION_EXEC: ATTACHMENT_ACTION = ATTACHMENT_ACTION(2i32); impl ::core::convert::From<i32> for ATTACHMENT_ACTION { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for ATTACHMENT_ACTION { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct ATTACHMENT_PROMPT(pub i32); pub const ATTACHMENT_PROMPT_NONE: ATTACHMENT_PROMPT = ATTACHMENT_PROMPT(0i32); pub const ATTACHMENT_PROMPT_SAVE: ATTACHMENT_PROMPT = ATTACHMENT_PROMPT(1i32); pub const ATTACHMENT_PROMPT_EXEC: ATTACHMENT_PROMPT = ATTACHMENT_PROMPT(2i32); pub const ATTACHMENT_PROMPT_EXEC_OR_SAVE: ATTACHMENT_PROMPT = ATTACHMENT_PROMPT(3i32); impl ::core::convert::From<i32> for ATTACHMENT_PROMPT { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for ATTACHMENT_PROMPT { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct AUTOCOMPLETELISTOPTIONS(pub i32); pub const ACLO_NONE: AUTOCOMPLETELISTOPTIONS = AUTOCOMPLETELISTOPTIONS(0i32); pub const ACLO_CURRENTDIR: AUTOCOMPLETELISTOPTIONS = AUTOCOMPLETELISTOPTIONS(1i32); pub const ACLO_MYCOMPUTER: AUTOCOMPLETELISTOPTIONS = AUTOCOMPLETELISTOPTIONS(2i32); pub const ACLO_DESKTOP: AUTOCOMPLETELISTOPTIONS = AUTOCOMPLETELISTOPTIONS(4i32); pub const ACLO_FAVORITES: AUTOCOMPLETELISTOPTIONS = AUTOCOMPLETELISTOPTIONS(8i32); pub const ACLO_FILESYSONLY: AUTOCOMPLETELISTOPTIONS = AUTOCOMPLETELISTOPTIONS(16i32); pub const ACLO_FILESYSDIRS: AUTOCOMPLETELISTOPTIONS = AUTOCOMPLETELISTOPTIONS(32i32); pub const ACLO_VIRTUALNAMESPACE: AUTOCOMPLETELISTOPTIONS = AUTOCOMPLETELISTOPTIONS(64i32); impl ::core::convert::From<i32> for AUTOCOMPLETELISTOPTIONS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for AUTOCOMPLETELISTOPTIONS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct AUTOCOMPLETEOPTIONS(pub i32); pub const ACO_NONE: AUTOCOMPLETEOPTIONS = AUTOCOMPLETEOPTIONS(0i32); pub const ACO_AUTOSUGGEST: AUTOCOMPLETEOPTIONS = AUTOCOMPLETEOPTIONS(1i32); pub const ACO_AUTOAPPEND: AUTOCOMPLETEOPTIONS = AUTOCOMPLETEOPTIONS(2i32); pub const ACO_SEARCH: AUTOCOMPLETEOPTIONS = AUTOCOMPLETEOPTIONS(4i32); pub const ACO_FILTERPREFIXES: AUTOCOMPLETEOPTIONS = AUTOCOMPLETEOPTIONS(8i32); pub const ACO_USETAB: AUTOCOMPLETEOPTIONS = AUTOCOMPLETEOPTIONS(16i32); pub const ACO_UPDOWNKEYDROPSLIST: AUTOCOMPLETEOPTIONS = AUTOCOMPLETEOPTIONS(32i32); pub const ACO_RTLREADING: AUTOCOMPLETEOPTIONS = AUTOCOMPLETEOPTIONS(64i32); pub const ACO_WORD_FILTER: AUTOCOMPLETEOPTIONS = AUTOCOMPLETEOPTIONS(128i32); pub const ACO_NOPREFIXFILTERING: AUTOCOMPLETEOPTIONS = AUTOCOMPLETEOPTIONS(256i32); impl ::core::convert::From<i32> for AUTOCOMPLETEOPTIONS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for AUTOCOMPLETEOPTIONS { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[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 AUTO_SCROLL_DATA {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for AUTO_SCROLL_DATA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for AUTO_SCROLL_DATA { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for AUTO_SCROLL_DATA {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for AUTO_SCROLL_DATA { type Abi = Self; } pub const AccessibilityDockingService: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x29ce1d46_b481_4aa0_a08a_d3ebc8aca402); pub const AlphabeticalCategorizer: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3c2654c6_7372_4f6b_b310_55d6128f49d2); pub const AppShellVerbHandler: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4ed3a719_cea8_4bd9_910d_e252f997afc2); pub const AppStartupLink: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x273eb5e7_88b0_4843_bfef_e2c81d43aae5); pub const AppVisibility: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7e5fe3d9_985f_4908_91f9_ee19f9fd1514); pub const ApplicationActivationManager: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x45ba127d_10a8_46ea_8ab7_56ea9078943c); pub const ApplicationAssociationRegistration: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x591209c7_767b_42b2_9fba_44ee4615f2c7); pub const ApplicationAssociationRegistrationUI: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1968106d_f3b5_44cf_890e_116fcb9ecef1); pub const ApplicationDesignModeSettings: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x958a6fb5_dcb2_4faf_aafd_7fb054ad1a3b); pub const ApplicationDestinations: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x86c14003_4d6b_4ef3_a7b4_0506663b2e68); pub const ApplicationDocumentLists: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x86bec222_30f2_47e0_9f25_60d11cd75c28); #[inline] pub unsafe fn AssocCreate<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::GUID>>(clsid: Param0, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn AssocCreate(clsid: ::windows::core::GUID, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } AssocCreate(clsid.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn AssocCreateForClasses<T: ::windows::core::Interface>(rgclasses: *const ASSOCIATIONELEMENT, cclasses: u32) -> ::windows::core::Result<T> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn AssocCreateForClasses(rgclasses: *const ASSOCIATIONELEMENT, cclasses: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } let mut result__ = ::core::option::Option::None; AssocCreateForClasses(::core::mem::transmute(rgclasses), ::core::mem::transmute(cclasses), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_Shell_PropertiesSystem"))] #[inline] pub unsafe fn AssocGetDetailsOfPropKey<'a, Param0: ::windows::core::IntoParam<'a, IShellFolder>>(psf: Param0, pidl: *const Common::ITEMIDLIST, pkey: *const PropertiesSystem::PROPERTYKEY, pv: *mut super::super::System::Com::VARIANT, pffoundpropkey: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn AssocGetDetailsOfPropKey(psf: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, pkey: *const PropertiesSystem::PROPERTYKEY, pv: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pffoundpropkey: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT; } AssocGetDetailsOfPropKey(psf.into_param().abi(), ::core::mem::transmute(pidl), ::core::mem::transmute(pkey), ::core::mem::transmute(pv), ::core::mem::transmute(pffoundpropkey)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn AssocGetPerceivedType<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszext: Param0, ptype: *mut Common::PERCEIVED, pflag: *mut u32, ppsztype: *mut super::super::Foundation::PWSTR) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn AssocGetPerceivedType(pszext: super::super::Foundation::PWSTR, ptype: *mut Common::PERCEIVED, pflag: *mut u32, ppsztype: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } AssocGetPerceivedType(pszext.into_param().abi(), ::core::mem::transmute(ptype), ::core::mem::transmute(pflag), ::core::mem::transmute(ppsztype)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn AssocIsDangerous<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszassoc: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn AssocIsDangerous(pszassoc: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(AssocIsDangerous(pszassoc.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn AssocQueryKeyA<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(flags: u32, key: ASSOCKEY, pszassoc: Param2, pszextra: Param3) -> ::windows::core::Result<super::super::System::Registry::HKEY> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn AssocQueryKeyA(flags: u32, key: ASSOCKEY, pszassoc: super::super::Foundation::PSTR, pszextra: super::super::Foundation::PSTR, phkeyout: *mut super::super::System::Registry::HKEY) -> ::windows::core::HRESULT; } let mut result__: <super::super::System::Registry::HKEY as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); AssocQueryKeyA(::core::mem::transmute(flags), ::core::mem::transmute(key), pszassoc.into_param().abi(), pszextra.into_param().abi(), &mut result__).from_abi::<super::super::System::Registry::HKEY>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn AssocQueryKeyW<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(flags: u32, key: ASSOCKEY, pszassoc: Param2, pszextra: Param3) -> ::windows::core::Result<super::super::System::Registry::HKEY> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn AssocQueryKeyW(flags: u32, key: ASSOCKEY, pszassoc: super::super::Foundation::PWSTR, pszextra: super::super::Foundation::PWSTR, phkeyout: *mut super::super::System::Registry::HKEY) -> ::windows::core::HRESULT; } let mut result__: <super::super::System::Registry::HKEY as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); AssocQueryKeyW(::core::mem::transmute(flags), ::core::mem::transmute(key), pszassoc.into_param().abi(), pszextra.into_param().abi(), &mut result__).from_abi::<super::super::System::Registry::HKEY>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn AssocQueryStringA<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(flags: u32, str: ASSOCSTR, pszassoc: Param2, pszextra: Param3, pszout: super::super::Foundation::PSTR, pcchout: *mut u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn AssocQueryStringA(flags: u32, str: ASSOCSTR, pszassoc: super::super::Foundation::PSTR, pszextra: super::super::Foundation::PSTR, pszout: super::super::Foundation::PSTR, pcchout: *mut u32) -> ::windows::core::HRESULT; } AssocQueryStringA(::core::mem::transmute(flags), ::core::mem::transmute(str), pszassoc.into_param().abi(), pszextra.into_param().abi(), ::core::mem::transmute(pszout), ::core::mem::transmute(pcchout)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn AssocQueryStringByKeyA<'a, Param2: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(flags: u32, str: ASSOCSTR, hkassoc: Param2, pszextra: Param3, pszout: super::super::Foundation::PSTR, pcchout: *mut u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn AssocQueryStringByKeyA(flags: u32, str: ASSOCSTR, hkassoc: super::super::System::Registry::HKEY, pszextra: super::super::Foundation::PSTR, pszout: super::super::Foundation::PSTR, pcchout: *mut u32) -> ::windows::core::HRESULT; } AssocQueryStringByKeyA(::core::mem::transmute(flags), ::core::mem::transmute(str), hkassoc.into_param().abi(), pszextra.into_param().abi(), ::core::mem::transmute(pszout), ::core::mem::transmute(pcchout)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn AssocQueryStringByKeyW<'a, Param2: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(flags: u32, str: ASSOCSTR, hkassoc: Param2, pszextra: Param3, pszout: super::super::Foundation::PWSTR, pcchout: *mut u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn AssocQueryStringByKeyW(flags: u32, str: ASSOCSTR, hkassoc: super::super::System::Registry::HKEY, pszextra: super::super::Foundation::PWSTR, pszout: super::super::Foundation::PWSTR, pcchout: *mut u32) -> ::windows::core::HRESULT; } AssocQueryStringByKeyW(::core::mem::transmute(flags), ::core::mem::transmute(str), hkassoc.into_param().abi(), pszextra.into_param().abi(), ::core::mem::transmute(pszout), ::core::mem::transmute(pcchout)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn AssocQueryStringW<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(flags: u32, str: ASSOCSTR, pszassoc: Param2, pszextra: Param3, pszout: super::super::Foundation::PWSTR, pcchout: *mut u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn AssocQueryStringW(flags: u32, str: ASSOCSTR, pszassoc: super::super::Foundation::PWSTR, pszextra: super::super::Foundation::PWSTR, pszout: super::super::Foundation::PWSTR, pcchout: *mut u32) -> ::windows::core::HRESULT; } AssocQueryStringW(::core::mem::transmute(flags), ::core::mem::transmute(str), pszassoc.into_param().abi(), pszextra.into_param().abi(), ::core::mem::transmute(pszout), ::core::mem::transmute(pcchout)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const AttachmentServices: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4125dd96_e03a_4103_8f70_e0597d803b9c); #[derive(:: core :: clone :: Clone)] #[repr(C)] #[cfg(feature = "Win32_UI_Shell_Common")] pub struct BANDINFOSFB { pub dwMask: u32, pub dwStateMask: u32, pub dwState: u32, pub crBkgnd: u32, pub crBtnLt: u32, pub crBtnDk: u32, pub wViewMode: u16, pub wAlign: u16, pub psf: ::core::option::Option<IShellFolder>, pub pidl: *mut Common::ITEMIDLIST, } #[cfg(feature = "Win32_UI_Shell_Common")] impl BANDINFOSFB {} #[cfg(feature = "Win32_UI_Shell_Common")] impl ::core::default::Default for BANDINFOSFB { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_UI_Shell_Common")] impl ::core::fmt::Debug for BANDINFOSFB { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("BANDINFOSFB") .field("dwMask", &self.dwMask) .field("dwStateMask", &self.dwStateMask) .field("dwState", &self.dwState) .field("crBkgnd", &self.crBkgnd) .field("crBtnLt", &self.crBtnLt) .field("crBtnDk", &self.crBtnDk) .field("wViewMode", &self.wViewMode) .field("wAlign", &self.wAlign) .field("psf", &self.psf) .field("pidl", &self.pidl) .finish() } } #[cfg(feature = "Win32_UI_Shell_Common")] impl ::core::cmp::PartialEq for BANDINFOSFB { fn eq(&self, other: &Self) -> bool { self.dwMask == other.dwMask && self.dwStateMask == other.dwStateMask && self.dwState == other.dwState && self.crBkgnd == other.crBkgnd && self.crBtnLt == other.crBtnLt && self.crBtnDk == other.crBtnDk && self.wViewMode == other.wViewMode && self.wAlign == other.wAlign && self.psf == other.psf && self.pidl == other.pidl } } #[cfg(feature = "Win32_UI_Shell_Common")] impl ::core::cmp::Eq for BANDINFOSFB {} #[cfg(feature = "Win32_UI_Shell_Common")] unsafe impl ::windows::core::Abi for BANDINFOSFB { type Abi = ::core::mem::ManuallyDrop<Self>; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct BANDSITECID(pub i32); pub const BSID_BANDADDED: BANDSITECID = BANDSITECID(0i32); pub const BSID_BANDREMOVED: BANDSITECID = BANDSITECID(1i32); impl ::core::convert::From<i32> for BANDSITECID { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for BANDSITECID { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct BANDSITEINFO { pub dwMask: u32, pub dwState: u32, pub dwStyle: u32, } impl BANDSITEINFO {} impl ::core::default::Default for BANDSITEINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for BANDSITEINFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("BANDSITEINFO").field("dwMask", &self.dwMask).field("dwState", &self.dwState).field("dwStyle", &self.dwStyle).finish() } } impl ::core::cmp::PartialEq for BANDSITEINFO { fn eq(&self, other: &Self) -> bool { self.dwMask == other.dwMask && self.dwState == other.dwState && self.dwStyle == other.dwStyle } } impl ::core::cmp::Eq for BANDSITEINFO {} unsafe impl ::windows::core::Abi for BANDSITEINFO { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct BANNER_NOTIFICATION { pub event: BANNER_NOTIFICATION_EVENT, pub providerIdentity: super::super::Foundation::PWSTR, pub contentId: super::super::Foundation::PWSTR, } #[cfg(feature = "Win32_Foundation")] impl BANNER_NOTIFICATION {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for BANNER_NOTIFICATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for BANNER_NOTIFICATION { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("BANNER_NOTIFICATION").field("event", &self.event).field("providerIdentity", &self.providerIdentity).field("contentId", &self.contentId).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for BANNER_NOTIFICATION { fn eq(&self, other: &Self) -> bool { self.event == other.event && self.providerIdentity == other.providerIdentity && self.contentId == other.contentId } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for BANNER_NOTIFICATION {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for BANNER_NOTIFICATION { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct BANNER_NOTIFICATION_EVENT(pub i32); pub const BNE_Rendered: BANNER_NOTIFICATION_EVENT = BANNER_NOTIFICATION_EVENT(0i32); pub const BNE_Hovered: BANNER_NOTIFICATION_EVENT = BANNER_NOTIFICATION_EVENT(1i32); pub const BNE_Closed: BANNER_NOTIFICATION_EVENT = BANNER_NOTIFICATION_EVENT(2i32); pub const BNE_Dismissed: BANNER_NOTIFICATION_EVENT = BANNER_NOTIFICATION_EVENT(3i32); pub const BNE_Button1Clicked: BANNER_NOTIFICATION_EVENT = BANNER_NOTIFICATION_EVENT(4i32); pub const BNE_Button2Clicked: BANNER_NOTIFICATION_EVENT = BANNER_NOTIFICATION_EVENT(5i32); impl ::core::convert::From<i32> for BANNER_NOTIFICATION_EVENT { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for BANNER_NOTIFICATION_EVENT { type Abi = Self; } #[derive(:: core :: clone :: Clone)] #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] pub struct BASEBROWSERDATALH { pub _hwnd: super::super::Foundation::HWND, pub _ptl: ::core::option::Option<ITravelLog>, pub _phlf: ::core::option::Option<IHlinkFrame>, pub _pautoWB2: ::core::option::Option<IWebBrowser2>, pub _pautoEDS: ::core::option::Option<IExpDispSupport>, pub _pautoSS: ::core::option::Option<IShellService>, pub _eSecureLockIcon: i32, pub _bitfield: u32, pub _uActivateState: u32, pub _pidlViewState: *mut Common::ITEMIDLIST, pub _pctView: ::core::option::Option<super::super::System::Ole::IOleCommandTarget>, pub _pidlCur: *mut Common::ITEMIDLIST, pub _psv: ::core::option::Option<IShellView>, pub _psf: ::core::option::Option<IShellFolder>, pub _hwndView: super::super::Foundation::HWND, pub _pszTitleCur: super::super::Foundation::PWSTR, pub _pidlPending: *mut Common::ITEMIDLIST, pub _psvPending: ::core::option::Option<IShellView>, pub _psfPending: ::core::option::Option<IShellFolder>, pub _hwndViewPending: super::super::Foundation::HWND, pub _pszTitlePending: super::super::Foundation::PWSTR, pub _fIsViewMSHTML: super::super::Foundation::BOOL, pub _fPrivacyImpacted: super::super::Foundation::BOOL, pub _clsidView: ::windows::core::GUID, pub _clsidViewPending: ::windows::core::GUID, pub _hwndFrame: super::super::Foundation::HWND, pub _lPhishingFilterStatus: i32, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] impl BASEBROWSERDATALH {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] impl ::core::default::Default for BASEBROWSERDATALH { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] impl ::core::fmt::Debug for BASEBROWSERDATALH { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("BASEBROWSERDATALH") .field("_hwnd", &self._hwnd) .field("_ptl", &self._ptl) .field("_phlf", &self._phlf) .field("_pautoWB2", &self._pautoWB2) .field("_pautoEDS", &self._pautoEDS) .field("_pautoSS", &self._pautoSS) .field("_eSecureLockIcon", &self._eSecureLockIcon) .field("_bitfield", &self._bitfield) .field("_uActivateState", &self._uActivateState) .field("_pidlViewState", &self._pidlViewState) .field("_pctView", &self._pctView) .field("_pidlCur", &self._pidlCur) .field("_psv", &self._psv) .field("_psf", &self._psf) .field("_hwndView", &self._hwndView) .field("_pszTitleCur", &self._pszTitleCur) .field("_pidlPending", &self._pidlPending) .field("_psvPending", &self._psvPending) .field("_psfPending", &self._psfPending) .field("_hwndViewPending", &self._hwndViewPending) .field("_pszTitlePending", &self._pszTitlePending) .field("_fIsViewMSHTML", &self._fIsViewMSHTML) .field("_fPrivacyImpacted", &self._fPrivacyImpacted) .field("_clsidView", &self._clsidView) .field("_clsidViewPending", &self._clsidViewPending) .field("_hwndFrame", &self._hwndFrame) .field("_lPhishingFilterStatus", &self._lPhishingFilterStatus) .finish() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] impl ::core::cmp::PartialEq for BASEBROWSERDATALH { fn eq(&self, other: &Self) -> bool { self._hwnd == other._hwnd && self._ptl == other._ptl && self._phlf == other._phlf && self._pautoWB2 == other._pautoWB2 && self._pautoEDS == other._pautoEDS && self._pautoSS == other._pautoSS && self._eSecureLockIcon == other._eSecureLockIcon && self._bitfield == other._bitfield && self._uActivateState == other._uActivateState && self._pidlViewState == other._pidlViewState && self._pctView == other._pctView && self._pidlCur == other._pidlCur && self._psv == other._psv && self._psf == other._psf && self._hwndView == other._hwndView && self._pszTitleCur == other._pszTitleCur && self._pidlPending == other._pidlPending && self._psvPending == other._psvPending && self._psfPending == other._psfPending && self._hwndViewPending == other._hwndViewPending && self._pszTitlePending == other._pszTitlePending && self._fIsViewMSHTML == other._fIsViewMSHTML && self._fPrivacyImpacted == other._fPrivacyImpacted && self._clsidView == other._clsidView && self._clsidViewPending == other._clsidViewPending && self._hwndFrame == other._hwndFrame && self._lPhishingFilterStatus == other._lPhishingFilterStatus } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] impl ::core::cmp::Eq for BASEBROWSERDATALH {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] unsafe impl ::windows::core::Abi for BASEBROWSERDATALH { type Abi = ::core::mem::ManuallyDrop<Self>; } #[derive(:: core :: clone :: Clone)] #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] pub struct BASEBROWSERDATAXP { pub _hwnd: super::super::Foundation::HWND, pub _ptl: ::core::option::Option<ITravelLog>, pub _phlf: ::core::option::Option<IHlinkFrame>, pub _pautoWB2: ::core::option::Option<IWebBrowser2>, pub _pautoEDS: ::core::option::Option<IExpDispSupportXP>, pub _pautoSS: ::core::option::Option<IShellService>, pub _eSecureLockIcon: i32, pub _bitfield: u32, pub _uActivateState: u32, pub _pidlViewState: *mut Common::ITEMIDLIST, pub _pctView: ::core::option::Option<super::super::System::Ole::IOleCommandTarget>, pub _pidlCur: *mut Common::ITEMIDLIST, pub _psv: ::core::option::Option<IShellView>, pub _psf: ::core::option::Option<IShellFolder>, pub _hwndView: super::super::Foundation::HWND, pub _pszTitleCur: super::super::Foundation::PWSTR, pub _pidlPending: *mut Common::ITEMIDLIST, pub _psvPending: ::core::option::Option<IShellView>, pub _psfPending: ::core::option::Option<IShellFolder>, pub _hwndViewPending: super::super::Foundation::HWND, pub _pszTitlePending: super::super::Foundation::PWSTR, pub _fIsViewMSHTML: super::super::Foundation::BOOL, pub _fPrivacyImpacted: super::super::Foundation::BOOL, pub _clsidView: ::windows::core::GUID, pub _clsidViewPending: ::windows::core::GUID, pub _hwndFrame: super::super::Foundation::HWND, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] impl BASEBROWSERDATAXP {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] impl ::core::default::Default for BASEBROWSERDATAXP { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] impl ::core::fmt::Debug for BASEBROWSERDATAXP { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("BASEBROWSERDATAXP") .field("_hwnd", &self._hwnd) .field("_ptl", &self._ptl) .field("_phlf", &self._phlf) .field("_pautoWB2", &self._pautoWB2) .field("_pautoEDS", &self._pautoEDS) .field("_pautoSS", &self._pautoSS) .field("_eSecureLockIcon", &self._eSecureLockIcon) .field("_bitfield", &self._bitfield) .field("_uActivateState", &self._uActivateState) .field("_pidlViewState", &self._pidlViewState) .field("_pctView", &self._pctView) .field("_pidlCur", &self._pidlCur) .field("_psv", &self._psv) .field("_psf", &self._psf) .field("_hwndView", &self._hwndView) .field("_pszTitleCur", &self._pszTitleCur) .field("_pidlPending", &self._pidlPending) .field("_psvPending", &self._psvPending) .field("_psfPending", &self._psfPending) .field("_hwndViewPending", &self._hwndViewPending) .field("_pszTitlePending", &self._pszTitlePending) .field("_fIsViewMSHTML", &self._fIsViewMSHTML) .field("_fPrivacyImpacted", &self._fPrivacyImpacted) .field("_clsidView", &self._clsidView) .field("_clsidViewPending", &self._clsidViewPending) .field("_hwndFrame", &self._hwndFrame) .finish() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] impl ::core::cmp::PartialEq for BASEBROWSERDATAXP { fn eq(&self, other: &Self) -> bool { self._hwnd == other._hwnd && self._ptl == other._ptl && self._phlf == other._phlf && self._pautoWB2 == other._pautoWB2 && self._pautoEDS == other._pautoEDS && self._pautoSS == other._pautoSS && self._eSecureLockIcon == other._eSecureLockIcon && self._bitfield == other._bitfield && self._uActivateState == other._uActivateState && self._pidlViewState == other._pidlViewState && self._pctView == other._pctView && self._pidlCur == other._pidlCur && self._psv == other._psv && self._psf == other._psf && self._hwndView == other._hwndView && self._pszTitleCur == other._pszTitleCur && self._pidlPending == other._pidlPending && self._psvPending == other._psvPending && self._psfPending == other._psfPending && self._hwndViewPending == other._hwndViewPending && self._pszTitlePending == other._pszTitlePending && self._fIsViewMSHTML == other._fIsViewMSHTML && self._fPrivacyImpacted == other._fPrivacyImpacted && self._clsidView == other._clsidView && self._clsidViewPending == other._clsidViewPending && self._hwndFrame == other._hwndFrame } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] impl ::core::cmp::Eq for BASEBROWSERDATAXP {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] unsafe impl ::windows::core::Abi for BASEBROWSERDATAXP { type Abi = ::core::mem::ManuallyDrop<Self>; } #[cfg(feature = "Win32_Foundation")] pub type BFFCALLBACK = unsafe extern "system" fn(hwnd: super::super::Foundation::HWND, umsg: u32, lparam: super::super::Foundation::LPARAM, lpdata: super::super::Foundation::LPARAM) -> i32; pub const BFFM_ENABLEOK: u32 = 1125u32; pub const BFFM_INITIALIZED: u32 = 1u32; pub const BFFM_IUNKNOWN: u32 = 5u32; pub const BFFM_SELCHANGED: u32 = 2u32; pub const BFFM_SETEXPANDED: u32 = 1130u32; pub const BFFM_SETOKTEXT: u32 = 1129u32; pub const BFFM_SETSELECTION: u32 = 1127u32; pub const BFFM_SETSELECTIONA: u32 = 1126u32; pub const BFFM_SETSELECTIONW: u32 = 1127u32; pub const BFFM_SETSTATUSTEXT: u32 = 1128u32; pub const BFFM_SETSTATUSTEXTA: u32 = 1124u32; pub const BFFM_SETSTATUSTEXTW: u32 = 1128u32; pub const BFFM_VALIDATEFAILED: u32 = 4u32; pub const BFFM_VALIDATEFAILEDA: u32 = 3u32; pub const BFFM_VALIDATEFAILEDW: u32 = 4u32; pub const BHID_AssociationArray: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbea9ef17_82f1_4f60_9284_4f8db75c3be9); pub const BHID_DataObject: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb8c0bd9f_ed24_455c_83e6_d5390c4fe8c4); pub const BHID_EnumAssocHandlers: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb8ab0b9c_c2ec_4f7a_918d_314900e6280a); pub const BHID_EnumItems: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x94f60519_2850_4924_aa5a_d15e84868039); pub const BHID_FilePlaceholder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8677dceb_aae0_4005_8d3d_547fa852f825); pub const BHID_Filter: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x38d08778_f557_4690_9ebf_ba54706ad8f7); pub const BHID_LinkTargetItem: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3981e228_f559_11d3_8e3a_00c04f6837d5); pub const BHID_PropertyStore: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0384e1a4_1523_439c_a4c8_ab911052f586); pub const BHID_RandomAccessStream: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf16fc93b_77ae_4cfe_bda7_a866eea6878d); pub const BHID_SFObject: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3981e224_f559_11d3_8e3a_00c04f6837d5); pub const BHID_SFUIObject: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3981e225_f559_11d3_8e3a_00c04f6837d5); pub const BHID_SFViewObject: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3981e226_f559_11d3_8e3a_00c04f6837d5); pub const BHID_Storage: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3981e227_f559_11d3_8e3a_00c04f6837d5); pub const BHID_StorageEnum: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4621a4e3_f0d6_4773_8a9c_46e77b174840); pub const BHID_StorageItem: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x404e2109_77d2_4699_a5a0_4fdf10db9837); pub const BHID_Stream: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1cebb3ab_7c10_499a_a417_92ca16c4cb83); pub const BHID_ThumbnailHandler: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7b2e650a_8e20_4f4a_b09e_6597afc72fb0); pub const BHID_Transfer: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd5e346a1_f753_4932_b403_4574800e2498); pub const BIF_BROWSEFILEJUNCTIONS: u32 = 65536u32; pub const BIF_BROWSEFORCOMPUTER: u32 = 4096u32; pub const BIF_BROWSEFORPRINTER: u32 = 8192u32; pub const BIF_BROWSEINCLUDEFILES: u32 = 16384u32; pub const BIF_BROWSEINCLUDEURLS: u32 = 128u32; pub const BIF_DONTGOBELOWDOMAIN: u32 = 2u32; pub const BIF_EDITBOX: u32 = 16u32; pub const BIF_NEWDIALOGSTYLE: u32 = 64u32; pub const BIF_NONEWFOLDERBUTTON: u32 = 512u32; pub const BIF_NOTRANSLATETARGETS: u32 = 1024u32; pub const BIF_RETURNFSANCESTORS: u32 = 8u32; pub const BIF_RETURNONLYFSDIRS: u32 = 1u32; pub const BIF_SHAREABLE: u32 = 32768u32; pub const BIF_STATUSTEXT: u32 = 4u32; pub const BIF_UAHINT: u32 = 256u32; pub const BIF_VALIDATE: u32 = 32u32; pub const BIND_INTERRUPTABLE: u32 = 4294967295u32; pub const BMICON_LARGE: i32 = 0i32; pub const BMICON_SMALL: i32 = 1i32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct BNSTATE(pub i32); pub const BNS_NORMAL: BNSTATE = BNSTATE(0i32); pub const BNS_BEGIN_NAVIGATE: BNSTATE = BNSTATE(1i32); pub const BNS_NAVIGATE: BNSTATE = BNSTATE(2i32); impl ::core::convert::From<i32> for BNSTATE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for BNSTATE { type Abi = Self; } #[derive(:: core :: clone :: Clone)] #[repr(C)] #[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: super::super::Foundation::PSTR, pub lpszTitle: super::super::Foundation::PSTR, pub ulFlags: u32, pub lpfn: ::core::option::Option<BFFCALLBACK>, pub lParam: super::super::Foundation::LPARAM, pub iImage: i32, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl BROWSEINFOA {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::default::Default for BROWSEINFOA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::fmt::Debug for BROWSEINFOA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("BROWSEINFOA").field("hwndOwner", &self.hwndOwner).field("pidlRoot", &self.pidlRoot).field("pszDisplayName", &self.pszDisplayName).field("lpszTitle", &self.lpszTitle).field("ulFlags", &self.ulFlags).field("lParam", &self.lParam).field("iImage", &self.iImage).finish() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::cmp::PartialEq for BROWSEINFOA { fn eq(&self, other: &Self) -> bool { self.hwndOwner == other.hwndOwner && self.pidlRoot == other.pidlRoot && self.pszDisplayName == other.pszDisplayName && self.lpszTitle == other.lpszTitle && self.ulFlags == other.ulFlags && self.lpfn.map(|f| f as usize) == other.lpfn.map(|f| f as usize) && self.lParam == other.lParam && self.iImage == other.iImage } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::cmp::Eq for BROWSEINFOA {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] unsafe impl ::windows::core::Abi for BROWSEINFOA { type Abi = ::core::mem::ManuallyDrop<Self>; } #[derive(:: core :: clone :: Clone)] #[repr(C)] #[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: super::super::Foundation::PWSTR, pub lpszTitle: super::super::Foundation::PWSTR, pub ulFlags: u32, pub lpfn: ::core::option::Option<BFFCALLBACK>, pub lParam: super::super::Foundation::LPARAM, pub iImage: i32, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl BROWSEINFOW {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::default::Default for BROWSEINFOW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::fmt::Debug for BROWSEINFOW { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("BROWSEINFOW").field("hwndOwner", &self.hwndOwner).field("pidlRoot", &self.pidlRoot).field("pszDisplayName", &self.pszDisplayName).field("lpszTitle", &self.lpszTitle).field("ulFlags", &self.ulFlags).field("lParam", &self.lParam).field("iImage", &self.iImage).finish() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::cmp::PartialEq for BROWSEINFOW { fn eq(&self, other: &Self) -> bool { self.hwndOwner == other.hwndOwner && self.pidlRoot == other.pidlRoot && self.pszDisplayName == other.pszDisplayName && self.lpszTitle == other.lpszTitle && self.ulFlags == other.ulFlags && self.lpfn.map(|f| f as usize) == other.lpfn.map(|f| f as usize) && self.lParam == other.lParam && self.iImage == other.iImage } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::cmp::Eq for BROWSEINFOW {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] unsafe impl ::windows::core::Abi for BROWSEINFOW { type Abi = ::core::mem::ManuallyDrop<Self>; } pub const BSF_CANMAXIMIZE: u32 = 1024u32; pub const BSF_DELEGATEDNAVIGATION: u32 = 65536u32; pub const BSF_DONTSHOWNAVCANCELPAGE: u32 = 16384u32; pub const BSF_FEEDNAVIGATION: u32 = 524288u32; pub const BSF_FEEDSUBSCRIBED: u32 = 1048576u32; pub const BSF_HTMLNAVCANCELED: u32 = 8192u32; pub const BSF_MERGEDMENUS: u32 = 262144u32; pub const BSF_NAVNOHISTORY: u32 = 4096u32; pub const BSF_NOLOCALFILEWARNING: u32 = 16u32; pub const BSF_REGISTERASDROPTARGET: u32 = 1u32; pub const BSF_RESIZABLE: u32 = 512u32; pub const BSF_SETNAVIGATABLECODEPAGE: u32 = 32768u32; pub const BSF_THEATERMODE: u32 = 2u32; pub const BSF_TOPBROWSER: u32 = 2048u32; pub const BSF_TRUSTEDFORACTIVEX: u32 = 131072u32; pub const BSF_UISETBYAUTOMATION: u32 = 256u32; pub const BSIM_STATE: u32 = 1u32; pub const BSIM_STYLE: u32 = 2u32; pub const BSIS_ALWAYSGRIPPER: u32 = 2u32; pub const BSIS_AUTOGRIPPER: u32 = 0u32; pub const BSIS_FIXEDORDER: u32 = 1024u32; pub const BSIS_LEFTALIGN: u32 = 4u32; pub const BSIS_LOCKED: u32 = 256u32; pub const BSIS_NOCAPTION: u32 = 64u32; pub const BSIS_NOCONTEXTMENU: u32 = 16u32; pub const BSIS_NODROPTARGET: u32 = 32u32; pub const BSIS_NOGRIPPER: u32 = 1u32; pub const BSIS_PREFERNOLINEBREAK: u32 = 128u32; pub const BSIS_PRESERVEORDERDURINGLAYOUT: u32 = 512u32; pub const BSIS_SINGLECLICK: u32 = 8u32; pub const BSSF_NOTITLE: u32 = 2u32; pub const BSSF_UNDELETEABLE: u32 = 4096u32; pub const BSSF_VISIBLE: u32 = 1u32; pub const BUFFLEN: u32 = 255u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct BrowserNavConstants(pub i32); pub const navOpenInNewWindow: BrowserNavConstants = BrowserNavConstants(1i32); pub const navNoHistory: BrowserNavConstants = BrowserNavConstants(2i32); pub const navNoReadFromCache: BrowserNavConstants = BrowserNavConstants(4i32); pub const navNoWriteToCache: BrowserNavConstants = BrowserNavConstants(8i32); pub const navAllowAutosearch: BrowserNavConstants = BrowserNavConstants(16i32); pub const navBrowserBar: BrowserNavConstants = BrowserNavConstants(32i32); pub const navHyperlink: BrowserNavConstants = BrowserNavConstants(64i32); pub const navEnforceRestricted: BrowserNavConstants = BrowserNavConstants(128i32); pub const navNewWindowsManaged: BrowserNavConstants = BrowserNavConstants(256i32); pub const navUntrustedForDownload: BrowserNavConstants = BrowserNavConstants(512i32); pub const navTrustedForActiveX: BrowserNavConstants = BrowserNavConstants(1024i32); pub const navOpenInNewTab: BrowserNavConstants = BrowserNavConstants(2048i32); pub const navOpenInBackgroundTab: BrowserNavConstants = BrowserNavConstants(4096i32); pub const navKeepWordWheelText: BrowserNavConstants = BrowserNavConstants(8192i32); pub const navVirtualTab: BrowserNavConstants = BrowserNavConstants(16384i32); pub const navBlockRedirectsXDomain: BrowserNavConstants = BrowserNavConstants(32768i32); pub const navOpenNewForegroundTab: BrowserNavConstants = BrowserNavConstants(65536i32); pub const navTravelLogScreenshot: BrowserNavConstants = BrowserNavConstants(131072i32); pub const navDeferUnload: BrowserNavConstants = BrowserNavConstants(262144i32); pub const navSpeculative: BrowserNavConstants = BrowserNavConstants(524288i32); pub const navSuggestNewWindow: BrowserNavConstants = BrowserNavConstants(1048576i32); pub const navSuggestNewTab: BrowserNavConstants = BrowserNavConstants(2097152i32); pub const navReserved1: BrowserNavConstants = BrowserNavConstants(4194304i32); pub const navHomepageNavigate: BrowserNavConstants = BrowserNavConstants(8388608i32); pub const navRefresh: BrowserNavConstants = BrowserNavConstants(16777216i32); pub const navHostNavigation: BrowserNavConstants = BrowserNavConstants(33554432i32); pub const navReserved2: BrowserNavConstants = BrowserNavConstants(67108864i32); pub const navReserved3: BrowserNavConstants = BrowserNavConstants(134217728i32); pub const navReserved4: BrowserNavConstants = BrowserNavConstants(268435456i32); pub const navReserved5: BrowserNavConstants = BrowserNavConstants(536870912i32); pub const navReserved6: BrowserNavConstants = BrowserNavConstants(1073741824i32); pub const navReserved7: BrowserNavConstants = BrowserNavConstants(-2147483648i32); impl ::core::convert::From<i32> for BrowserNavConstants { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for BrowserNavConstants { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] pub struct CABINETSTATE { pub cLength: u16, pub nVersion: u16, pub _bitfield: i32, pub fMenuEnumFilter: u32, } impl CABINETSTATE {} impl ::core::default::Default for CABINETSTATE { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::cmp::PartialEq for CABINETSTATE { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } impl ::core::cmp::Eq for CABINETSTATE {} unsafe impl ::windows::core::Abi for CABINETSTATE { type Abi = Self; } pub const CABINETSTATE_VERSION: u32 = 2u32; pub const CAMERAROLL_E_NO_DOWNSAMPLING_REQUIRED: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927456i32 as _); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct CATEGORYINFO_FLAGS(pub i32); pub const CATINFO_NORMAL: CATEGORYINFO_FLAGS = CATEGORYINFO_FLAGS(0i32); pub const CATINFO_COLLAPSED: CATEGORYINFO_FLAGS = CATEGORYINFO_FLAGS(1i32); pub const CATINFO_HIDDEN: CATEGORYINFO_FLAGS = CATEGORYINFO_FLAGS(2i32); pub const CATINFO_EXPANDED: CATEGORYINFO_FLAGS = CATEGORYINFO_FLAGS(4i32); pub const CATINFO_NOHEADER: CATEGORYINFO_FLAGS = CATEGORYINFO_FLAGS(8i32); pub const CATINFO_NOTCOLLAPSIBLE: CATEGORYINFO_FLAGS = CATEGORYINFO_FLAGS(16i32); pub const CATINFO_NOHEADERCOUNT: CATEGORYINFO_FLAGS = CATEGORYINFO_FLAGS(32i32); pub const CATINFO_SUBSETTED: CATEGORYINFO_FLAGS = CATEGORYINFO_FLAGS(64i32); pub const CATINFO_SEPARATE_IMAGES: CATEGORYINFO_FLAGS = CATEGORYINFO_FLAGS(128i32); pub const CATINFO_SHOWEMPTY: CATEGORYINFO_FLAGS = CATEGORYINFO_FLAGS(256i32); impl ::core::convert::From<i32> for CATEGORYINFO_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for CATEGORYINFO_FLAGS { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct CATEGORY_INFO { pub cif: CATEGORYINFO_FLAGS, pub wszName: [u16; 260], } impl CATEGORY_INFO {} impl ::core::default::Default for CATEGORY_INFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for CATEGORY_INFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("CATEGORY_INFO").field("cif", &self.cif).field("wszName", &self.wszName).finish() } } impl ::core::cmp::PartialEq for CATEGORY_INFO { fn eq(&self, other: &Self) -> bool { self.cif == other.cif && self.wszName == other.wszName } } impl ::core::cmp::Eq for CATEGORY_INFO {} unsafe impl ::windows::core::Abi for CATEGORY_INFO { type Abi = Self; } pub const CATID_BrowsableShellExt: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00021490_0000_0000_c000_000000000046); pub const CATID_BrowseInPlace: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00021491_0000_0000_c000_000000000046); pub const CATID_CommBand: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00021494_0000_0000_c000_000000000046); pub const CATID_DeskBand: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00021492_0000_0000_c000_000000000046); pub const CATID_FilePlaceholderMergeHandler: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3e9c9a51_d4aa_4870_b47c_7424b491f1cc); pub const CATID_InfoBand: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00021493_0000_0000_c000_000000000046); pub const CATID_LocationFactory: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x965c4d51_8b76_4e57_80b7_564d2ea4b55e); pub const CATID_LocationProvider: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1b3ca474_2614_414b_b813_1aceca3e3dd8); pub const CATID_SearchableApplication: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x366c292a_d9b3_4dbf_bb70_e62ec3d0bbbf); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct CATSORT_FLAGS(pub i32); pub const CATSORT_DEFAULT: CATSORT_FLAGS = CATSORT_FLAGS(0i32); pub const CATSORT_NAME: CATSORT_FLAGS = CATSORT_FLAGS(1i32); impl ::core::convert::From<i32> for CATSORT_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for CATSORT_FLAGS { type Abi = Self; } pub const CDB2GVF_ADDSHIELD: u32 = 64u32; pub const CDB2GVF_ALLOWPREVIEWPANE: u32 = 4u32; pub const CDB2GVF_ISFILESAVE: u32 = 2u32; pub const CDB2GVF_ISFOLDERPICKER: u32 = 32u32; pub const CDB2GVF_NOINCLUDEITEM: u32 = 16u32; pub const CDB2GVF_NOSELECTVERB: u32 = 8u32; pub const CDB2GVF_SHOWALLFILES: u32 = 1u32; pub const CDB2N_CONTEXTMENU_DONE: u32 = 1u32; pub const CDB2N_CONTEXTMENU_START: u32 = 2u32; pub const CDBOSC_KILLFOCUS: u32 = 1u32; pub const CDBOSC_RENAME: u32 = 3u32; pub const CDBOSC_SELCHANGE: u32 = 2u32; pub const CDBOSC_SETFOCUS: u32 = 0u32; pub const CDBOSC_STATECHANGE: u32 = 4u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct CDBURNINGEXTENSIONRET(pub i32); pub const CDBE_RET_DEFAULT: CDBURNINGEXTENSIONRET = CDBURNINGEXTENSIONRET(0i32); pub const CDBE_RET_DONTRUNOTHEREXTS: CDBURNINGEXTENSIONRET = CDBURNINGEXTENSIONRET(1i32); pub const CDBE_RET_STOPWIZARD: CDBURNINGEXTENSIONRET = CDBURNINGEXTENSIONRET(2i32); impl ::core::convert::From<i32> for CDBURNINGEXTENSIONRET { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for CDBURNINGEXTENSIONRET { type Abi = Self; } pub const CDBurn: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfbeb8a05_beee_4442_804e_409d6c4515e9); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct CDCONTROLSTATEF(pub i32); pub const CDCS_INACTIVE: CDCONTROLSTATEF = CDCONTROLSTATEF(0i32); pub const CDCS_ENABLED: CDCONTROLSTATEF = CDCONTROLSTATEF(1i32); pub const CDCS_VISIBLE: CDCONTROLSTATEF = CDCONTROLSTATEF(2i32); pub const CDCS_ENABLEDVISIBLE: CDCONTROLSTATEF = CDCONTROLSTATEF(3i32); impl ::core::convert::From<i32> for CDCONTROLSTATEF { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for CDCONTROLSTATEF { type Abi = Self; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn CDefFolderMenu_Create2<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param4: ::windows::core::IntoParam<'a, IShellFolder>>(pidlfolder: *const Common::ITEMIDLIST, hwnd: Param1, cidl: u32, apidl: *const *const Common::ITEMIDLIST, psf: Param4, pfn: ::core::option::Option<LPFNDFMCALLBACK>, nkeys: u32, ahkeys: *const super::super::System::Registry::HKEY) -> ::windows::core::Result<IContextMenu> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CDefFolderMenu_Create2(pidlfolder: *const Common::ITEMIDLIST, hwnd: super::super::Foundation::HWND, cidl: u32, apidl: *const *const Common::ITEMIDLIST, psf: ::windows::core::RawPtr, pfn: ::windows::core::RawPtr, nkeys: u32, ahkeys: *const super::super::System::Registry::HKEY, ppcm: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT; } let mut result__: <IContextMenu as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); CDefFolderMenu_Create2(::core::mem::transmute(pidlfolder), hwnd.into_param().abi(), ::core::mem::transmute(cidl), ::core::mem::transmute(apidl), psf.into_param().abi(), ::core::mem::transmute(pfn), ::core::mem::transmute(nkeys), ::core::mem::transmute(ahkeys), &mut result__).from_abi::<IContextMenu>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const CGID_DefView: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4af07f10_d231_11d0_b942_00a0c90312e1); pub const CGID_Explorer: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214d0_0000_0000_c000_000000000046); pub const CGID_ExplorerBarDoc: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214d3_0000_0000_c000_000000000046); pub const CGID_MENUDESKBAR: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5c9f0a12_959e_11d0_a3a4_00a0c9082636); pub const CGID_ShellDocView: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214d1_0000_0000_c000_000000000046); pub const CGID_ShellServiceObject: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214d2_0000_0000_c000_000000000046); pub const CGID_ShortCut: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x93a68750_951a_11d1_946f_000000000000); #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] pub struct CIDA { pub cidl: u32, pub aoffset: [u32; 1], } impl CIDA {} impl ::core::default::Default for CIDA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::cmp::PartialEq for CIDA { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } impl ::core::cmp::Eq for CIDA {} unsafe impl ::windows::core::Abi for CIDA { type Abi = Self; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn CIDLData_CreateFromIDArray(pidlfolder: *const Common::ITEMIDLIST, cidl: u32, apidl: *const *const Common::ITEMIDLIST) -> ::windows::core::Result<super::super::System::Com::IDataObject> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CIDLData_CreateFromIDArray(pidlfolder: *const Common::ITEMIDLIST, cidl: u32, apidl: *const *const Common::ITEMIDLIST, ppdtobj: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT; } let mut result__: <super::super::System::Com::IDataObject as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); CIDLData_CreateFromIDArray(::core::mem::transmute(pidlfolder), ::core::mem::transmute(cidl), ::core::mem::transmute(apidl), &mut result__).from_abi::<super::super::System::Com::IDataObject>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct CIE4ConnectionPoint(pub ::windows::core::IUnknown); impl CIE4ConnectionPoint { pub unsafe fn GetConnectionInterface(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__: <::windows::core::GUID as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<::windows::core::GUID>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetConnectionPointContainer(&self) -> ::windows::core::Result<super::super::System::Com::IConnectionPointContainer> { let mut result__: <super::super::System::Com::IConnectionPointContainer as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IConnectionPointContainer>(result__) } pub unsafe fn Advise<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punksink: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), punksink.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwcookie)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumConnections(&self) -> ::windows::core::Result<super::super::System::Com::IEnumConnections> { let mut result__: <super::super::System::Com::IEnumConnections as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IEnumConnections>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn DoInvokeIE4(&self, pf: *mut super::super::Foundation::BOOL, ppv: *mut *mut ::core::ffi::c_void, dispid: i32, pdispparams: *mut super::super::System::Com::DISPPARAMS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(pf), ::core::mem::transmute(ppv), ::core::mem::transmute(dispid), ::core::mem::transmute(pdispparams)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn DoInvokePIDLIE4<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, dispid: i32, pidl: *mut Common::ITEMIDLIST, fcancancel: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(dispid), ::core::mem::transmute(pidl), fcancancel.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for CIE4ConnectionPoint { type Vtable = CIE4ConnectionPoint_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::zeroed(); } impl ::core::convert::From<CIE4ConnectionPoint> for ::windows::core::IUnknown { fn from(value: CIE4ConnectionPoint) -> Self { value.0 } } impl ::core::convert::From<&CIE4ConnectionPoint> for ::windows::core::IUnknown { fn from(value: &CIE4ConnectionPoint) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for CIE4ConnectionPoint { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a CIE4ConnectionPoint { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<CIE4ConnectionPoint> for super::super::System::Com::IConnectionPoint { fn from(value: CIE4ConnectionPoint) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&CIE4ConnectionPoint> for super::super::System::Com::IConnectionPoint { fn from(value: &CIE4ConnectionPoint) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IConnectionPoint> for CIE4ConnectionPoint { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IConnectionPoint> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IConnectionPoint> for &CIE4ConnectionPoint { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IConnectionPoint> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct CIE4ConnectionPoint_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, piid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppcpc: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punksink: ::windows::core::RawPtr, pdwcookie: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwcookie: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pf: *mut super::super::Foundation::BOOL, ppv: *mut *mut ::core::ffi::c_void, dispid: i32, pdispparams: *mut super::super::System::Com::DISPPARAMS) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispid: i32, pidl: *mut Common::ITEMIDLIST, fcancancel: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, ); pub const CLOSEPROPS_DISCARD: u32 = 1u32; pub const CLOSEPROPS_NONE: u32 = 0u32; pub const CLSID_ACLCustomMRU: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6935db93_21e8_4ccc_beb9_9fe3c77a297a); pub const CLSID_ACLHistory: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00bb2764_6a77_11d0_a535_00c04fd7d062); pub const CLSID_ACLMRU: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6756a641_de71_11d0_831b_00aa005b4383); pub const CLSID_ACLMulti: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00bb2765_6a77_11d0_a535_00c04fd7d062); pub const CLSID_ACListISF: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03c036f1_a186_11d0_824a_00aa005b4383); pub const CLSID_ActiveDesktop: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x75048700_ef1f_11d0_9888_006097deacf9); pub const CLSID_AutoComplete: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00bb2763_6a77_11d0_a535_00c04fd7d062); pub const CLSID_CAnchorBrowsePropertyPage: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3050f3bb_98b5_11cf_bb82_00aa00bdce0b); pub const CLSID_CDocBrowsePropertyPage: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3050f3b4_98b5_11cf_bb82_00aa00bdce0b); pub const CLSID_CFSIconOverlayManager: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x63b51f81_c868_11d0_999c_00c04fd655e1); pub const CLSID_CImageBrowsePropertyPage: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3050f3b3_98b5_11cf_bb82_00aa00bdce0b); pub const CLSID_CURLSearchHook: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcfbfae00_17a6_11d0_99cb_00c04fd64497); pub const CLSID_CUrlHistory: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3c374a40_bae4_11cf_bf7d_00aa006946ee); pub const CLSID_ControlPanel: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x21ec2020_3aea_1069_a2dd_08002b30309d); pub const CLSID_DarwinAppPublisher: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcfccc7a0_a282_11d1_9082_006008059382); pub const CLSID_DocHostUIHandler: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7057e952_bd1b_11d1_8919_00c04fc2c836); pub const CLSID_DragDropHelper: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4657278a_411b_11d2_839a_00c04fd918d0); pub const CLSID_FileTypes: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb091e540_83e3_11cf_a713_0020afd79762); pub const CLSID_FolderItemsMultiLevel: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x53c74826_ab99_4d33_aca4_3117f51d3788); pub const CLSID_FolderShortcut: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0afaced1_e828_11d1_9187_b532f1e9575d); pub const CLSID_HWShellExecute: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xffb8655f_81b9_4fce_b89c_9a6ba76d13e7); pub const CLSID_ISFBand: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd82be2b0_5764_11d0_a96e_00c04fd705a2); pub const CLSID_Internet: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x871c5380_42a0_1069_a2ea_08002b30309d); pub const CLSID_InternetButtons: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1e796980_9cc5_11d1_a83f_00c04fc99d61); pub const CLSID_InternetShortcut: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfbf23b40_e3f0_101b_8488_00aa003e56f8); pub const CLSID_LinkColumnProvider: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x24f14f02_7b1c_11d1_838f_0000f80461cf); pub const CLSID_MSOButtons: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x178f34b8_a282_11d2_86c5_00c04f8eea99); pub const CLSID_MenuBand: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5b4dae26_b807_11d0_9815_00c04fd91972); pub const CLSID_MenuBandSite: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe13ef4e4_d2f2_11d0_9816_00c04fd91972); pub const CLSID_MenuToolbarBase: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x40b96610_b522_11d1_b3b4_00aa006efde7); pub const CLSID_MyComputer: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x20d04fe0_3aea_1069_a2d8_08002b30309d); pub const CLSID_MyDocuments: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x450d8fba_ad25_11d0_98a8_0800361b1103); pub const CLSID_NetworkDomain: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x46e06680_4bf0_11d1_83ee_00a0c90dc849); pub const CLSID_NetworkServer: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc0542a90_4bf0_11d1_83ee_00a0c90dc849); pub const CLSID_NetworkShare: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x54a754c0_4bf0_11d1_83ee_00a0c90dc849); pub const CLSID_NewMenu: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd969a300_e7ff_11d0_a93b_00a0c90f2719); pub const CLSID_Printers: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2227a280_3aea_1069_a2de_08002b30309d); pub const CLSID_ProgressDialog: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf8383852_fcd3_11d1_a6b9_006097df5bd4); pub const CLSID_QueryAssociations: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa07034fd_6caa_4954_ac3f_97a27216f98a); pub const CLSID_QuickLinks: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0e5cbf21_d15f_11d0_8301_00aa005b4383); pub const CLSID_RecycleBin: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x645ff040_5081_101b_9f08_00aa002f954e); pub const CLSID_ShellFldSetExt: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6d5313c0_8c62_11d1_b2cd_006097df8c11); pub const CLSID_ShellThumbnailDiskCache: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1ebdcf80_a200_11d0_a3a4_00c04fd706ec); pub const CLSID_ToolbarExtButtons: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2ce4b5d8_a28f_11d2_86c5_00c04f8eea99); pub const CMDID_INTSHORTCUTCREATE: i32 = 1i32; pub const CMF_ASYNCVERBSTATE: u32 = 1024u32; pub const CMF_CANRENAME: u32 = 16u32; pub const CMF_DEFAULTONLY: u32 = 1u32; pub const CMF_DISABLEDVERBS: u32 = 512u32; pub const CMF_DONOTPICKDEFAULT: u32 = 8192u32; pub const CMF_EXPLORE: u32 = 4u32; pub const CMF_EXTENDEDVERBS: u32 = 256u32; pub const CMF_INCLUDESTATIC: u32 = 64u32; pub const CMF_ITEMMENU: u32 = 128u32; pub const CMF_NODEFAULT: u32 = 32u32; pub const CMF_NORMAL: u32 = 0u32; pub const CMF_NOVERBS: u32 = 8u32; pub const CMF_OPTIMIZEFORINVOKE: u32 = 2048u32; pub const CMF_RESERVED: u32 = 4294901760u32; pub const CMF_SYNCCASCADEMENU: u32 = 4096u32; pub const CMF_VERBSONLY: u32 = 2u32; pub const CMIC_MASK_CONTROL_DOWN: u32 = 1073741824u32; pub const CMIC_MASK_PTINVOKE: u32 = 536870912u32; pub const CMIC_MASK_SHIFT_DOWN: u32 = 268435456u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct CMINVOKECOMMANDINFO { pub cbSize: u32, pub fMask: u32, pub hwnd: super::super::Foundation::HWND, pub lpVerb: super::super::Foundation::PSTR, pub lpParameters: super::super::Foundation::PSTR, pub lpDirectory: super::super::Foundation::PSTR, pub nShow: i32, pub dwHotKey: u32, pub hIcon: super::super::Foundation::HANDLE, } #[cfg(feature = "Win32_Foundation")] impl CMINVOKECOMMANDINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for CMINVOKECOMMANDINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for CMINVOKECOMMANDINFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("CMINVOKECOMMANDINFO") .field("cbSize", &self.cbSize) .field("fMask", &self.fMask) .field("hwnd", &self.hwnd) .field("lpVerb", &self.lpVerb) .field("lpParameters", &self.lpParameters) .field("lpDirectory", &self.lpDirectory) .field("nShow", &self.nShow) .field("dwHotKey", &self.dwHotKey) .field("hIcon", &self.hIcon) .finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for CMINVOKECOMMANDINFO { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.fMask == other.fMask && self.hwnd == other.hwnd && self.lpVerb == other.lpVerb && self.lpParameters == other.lpParameters && self.lpDirectory == other.lpDirectory && self.nShow == other.nShow && self.dwHotKey == other.dwHotKey && self.hIcon == other.hIcon } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for CMINVOKECOMMANDINFO {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for CMINVOKECOMMANDINFO { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct CMINVOKECOMMANDINFOEX { pub cbSize: u32, pub fMask: u32, pub hwnd: super::super::Foundation::HWND, pub lpVerb: super::super::Foundation::PSTR, pub lpParameters: super::super::Foundation::PSTR, pub lpDirectory: super::super::Foundation::PSTR, pub nShow: i32, pub dwHotKey: u32, pub hIcon: super::super::Foundation::HANDLE, pub lpTitle: super::super::Foundation::PSTR, pub lpVerbW: super::super::Foundation::PWSTR, pub lpParametersW: super::super::Foundation::PWSTR, pub lpDirectoryW: super::super::Foundation::PWSTR, pub lpTitleW: super::super::Foundation::PWSTR, pub ptInvoke: super::super::Foundation::POINT, } #[cfg(feature = "Win32_Foundation")] impl CMINVOKECOMMANDINFOEX {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for CMINVOKECOMMANDINFOEX { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for CMINVOKECOMMANDINFOEX { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("CMINVOKECOMMANDINFOEX") .field("cbSize", &self.cbSize) .field("fMask", &self.fMask) .field("hwnd", &self.hwnd) .field("lpVerb", &self.lpVerb) .field("lpParameters", &self.lpParameters) .field("lpDirectory", &self.lpDirectory) .field("nShow", &self.nShow) .field("dwHotKey", &self.dwHotKey) .field("hIcon", &self.hIcon) .field("lpTitle", &self.lpTitle) .field("lpVerbW", &self.lpVerbW) .field("lpParametersW", &self.lpParametersW) .field("lpDirectoryW", &self.lpDirectoryW) .field("lpTitleW", &self.lpTitleW) .field("ptInvoke", &self.ptInvoke) .finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for CMINVOKECOMMANDINFOEX { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.fMask == other.fMask && self.hwnd == other.hwnd && self.lpVerb == other.lpVerb && self.lpParameters == other.lpParameters && self.lpDirectory == other.lpDirectory && self.nShow == other.nShow && self.dwHotKey == other.dwHotKey && self.hIcon == other.hIcon && self.lpTitle == other.lpTitle && self.lpVerbW == other.lpVerbW && self.lpParametersW == other.lpParametersW && self.lpDirectoryW == other.lpDirectoryW && self.lpTitleW == other.lpTitleW && self.ptInvoke == other.ptInvoke } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for CMINVOKECOMMANDINFOEX {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for CMINVOKECOMMANDINFOEX { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct CMINVOKECOMMANDINFOEX_REMOTE { pub cbSize: u32, pub fMask: u32, pub hwnd: super::super::Foundation::HWND, pub lpVerbString: super::super::Foundation::PSTR, pub lpParameters: super::super::Foundation::PSTR, pub lpDirectory: super::super::Foundation::PSTR, pub nShow: i32, pub dwHotKey: u32, pub lpTitle: super::super::Foundation::PSTR, pub lpVerbWString: super::super::Foundation::PWSTR, pub lpParametersW: super::super::Foundation::PWSTR, pub lpDirectoryW: super::super::Foundation::PWSTR, pub lpTitleW: super::super::Foundation::PWSTR, pub ptInvoke: super::super::Foundation::POINT, pub lpVerbInt: u32, pub lpVerbWInt: u32, } #[cfg(feature = "Win32_Foundation")] impl CMINVOKECOMMANDINFOEX_REMOTE {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for CMINVOKECOMMANDINFOEX_REMOTE { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for CMINVOKECOMMANDINFOEX_REMOTE { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("CMINVOKECOMMANDINFOEX_REMOTE") .field("cbSize", &self.cbSize) .field("fMask", &self.fMask) .field("hwnd", &self.hwnd) .field("lpVerbString", &self.lpVerbString) .field("lpParameters", &self.lpParameters) .field("lpDirectory", &self.lpDirectory) .field("nShow", &self.nShow) .field("dwHotKey", &self.dwHotKey) .field("lpTitle", &self.lpTitle) .field("lpVerbWString", &self.lpVerbWString) .field("lpParametersW", &self.lpParametersW) .field("lpDirectoryW", &self.lpDirectoryW) .field("lpTitleW", &self.lpTitleW) .field("ptInvoke", &self.ptInvoke) .field("lpVerbInt", &self.lpVerbInt) .field("lpVerbWInt", &self.lpVerbWInt) .finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for CMINVOKECOMMANDINFOEX_REMOTE { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.fMask == other.fMask && self.hwnd == other.hwnd && self.lpVerbString == other.lpVerbString && self.lpParameters == other.lpParameters && self.lpDirectory == other.lpDirectory && self.nShow == other.nShow && self.dwHotKey == other.dwHotKey && self.lpTitle == other.lpTitle && self.lpVerbWString == other.lpVerbWString && self.lpParametersW == other.lpParametersW && self.lpDirectoryW == other.lpDirectoryW && self.lpTitleW == other.lpTitleW && self.ptInvoke == other.ptInvoke && self.lpVerbInt == other.lpVerbInt && self.lpVerbWInt == other.lpVerbWInt } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for CMINVOKECOMMANDINFOEX_REMOTE {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for CMINVOKECOMMANDINFOEX_REMOTE { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] 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 CM_COLUMNINFO {} impl ::core::default::Default for CM_COLUMNINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for CM_COLUMNINFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("CM_COLUMNINFO").field("cbSize", &self.cbSize).field("dwMask", &self.dwMask).field("dwState", &self.dwState).field("uWidth", &self.uWidth).field("uDefaultWidth", &self.uDefaultWidth).field("uIdealWidth", &self.uIdealWidth).field("wszName", &self.wszName).finish() } } impl ::core::cmp::PartialEq for CM_COLUMNINFO { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.dwMask == other.dwMask && self.dwState == other.dwState && self.uWidth == other.uWidth && self.uDefaultWidth == other.uDefaultWidth && self.uIdealWidth == other.uIdealWidth && self.wszName == other.wszName } } impl ::core::cmp::Eq for CM_COLUMNINFO {} unsafe impl ::windows::core::Abi for CM_COLUMNINFO { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct CM_ENUM_FLAGS(pub i32); pub const CM_ENUM_ALL: CM_ENUM_FLAGS = CM_ENUM_FLAGS(1i32); pub const CM_ENUM_VISIBLE: CM_ENUM_FLAGS = CM_ENUM_FLAGS(2i32); impl ::core::convert::From<i32> for CM_ENUM_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for CM_ENUM_FLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct CM_MASK(pub i32); pub const CM_MASK_WIDTH: CM_MASK = CM_MASK(1i32); pub const CM_MASK_DEFAULTWIDTH: CM_MASK = CM_MASK(2i32); pub const CM_MASK_IDEALWIDTH: CM_MASK = CM_MASK(4i32); pub const CM_MASK_NAME: CM_MASK = CM_MASK(8i32); pub const CM_MASK_STATE: CM_MASK = CM_MASK(16i32); impl ::core::convert::From<i32> for CM_MASK { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for CM_MASK { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct CM_SET_WIDTH_VALUE(pub i32); pub const CM_WIDTH_USEDEFAULT: CM_SET_WIDTH_VALUE = CM_SET_WIDTH_VALUE(-1i32); pub const CM_WIDTH_AUTOSIZE: CM_SET_WIDTH_VALUE = CM_SET_WIDTH_VALUE(-2i32); impl ::core::convert::From<i32> for CM_SET_WIDTH_VALUE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for CM_SET_WIDTH_VALUE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct CM_STATE(pub i32); pub const CM_STATE_NONE: CM_STATE = CM_STATE(0i32); pub const CM_STATE_VISIBLE: CM_STATE = CM_STATE(1i32); pub const CM_STATE_FIXEDWIDTH: CM_STATE = CM_STATE(2i32); pub const CM_STATE_NOSORTBYFOLDERNESS: CM_STATE = CM_STATE(4i32); pub const CM_STATE_ALWAYSVISIBLE: CM_STATE = CM_STATE(8i32); impl ::core::convert::From<i32> for CM_STATE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for CM_STATE { type Abi = Self; } pub const COMPONENT_DEFAULT_LEFT: u32 = 65535u32; pub const COMPONENT_DEFAULT_TOP: u32 = 65535u32; pub const COMPONENT_TOP: u32 = 1073741823u32; pub const COMP_ELEM_CHECKED: u32 = 2u32; pub const COMP_ELEM_CURITEMSTATE: u32 = 16384u32; pub const COMP_ELEM_DIRTY: u32 = 4u32; pub const COMP_ELEM_FRIENDLYNAME: u32 = 1024u32; pub const COMP_ELEM_NOSCROLL: u32 = 8u32; pub const COMP_ELEM_ORIGINAL_CSI: u32 = 4096u32; pub const COMP_ELEM_POS_LEFT: u32 = 16u32; pub const COMP_ELEM_POS_TOP: u32 = 32u32; pub const COMP_ELEM_POS_ZINDEX: u32 = 256u32; pub const COMP_ELEM_RESTORED_CSI: u32 = 8192u32; pub const COMP_ELEM_SIZE_HEIGHT: u32 = 128u32; pub const COMP_ELEM_SIZE_WIDTH: u32 = 64u32; pub const COMP_ELEM_SOURCE: u32 = 512u32; pub const COMP_ELEM_SUBSCRIBEDURL: u32 = 2048u32; pub const COMP_ELEM_TYPE: u32 = 1u32; pub const COMP_TYPE_CFHTML: u32 = 4u32; pub const COMP_TYPE_CONTROL: u32 = 3u32; pub const COMP_TYPE_HTMLDOC: u32 = 0u32; pub const COMP_TYPE_MAX: u32 = 4u32; pub const COMP_TYPE_PICTURE: u32 = 1u32; pub const COMP_TYPE_WEBSITE: u32 = 2u32; #[derive(:: core :: clone :: Clone)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct CONFIRM_CONFLICT_ITEM { pub pShellItem: ::core::option::Option<IShellItem2>, pub pszOriginalName: super::super::Foundation::PWSTR, pub pszAlternateName: super::super::Foundation::PWSTR, pub pszLocationShort: super::super::Foundation::PWSTR, pub pszLocationFull: super::super::Foundation::PWSTR, pub nType: SYNCMGR_CONFLICT_ITEM_TYPE, } #[cfg(feature = "Win32_Foundation")] impl CONFIRM_CONFLICT_ITEM {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for CONFIRM_CONFLICT_ITEM { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for CONFIRM_CONFLICT_ITEM { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("CONFIRM_CONFLICT_ITEM") .field("pShellItem", &self.pShellItem) .field("pszOriginalName", &self.pszOriginalName) .field("pszAlternateName", &self.pszAlternateName) .field("pszLocationShort", &self.pszLocationShort) .field("pszLocationFull", &self.pszLocationFull) .field("nType", &self.nType) .finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for CONFIRM_CONFLICT_ITEM { fn eq(&self, other: &Self) -> bool { self.pShellItem == other.pShellItem && self.pszOriginalName == other.pszOriginalName && self.pszAlternateName == other.pszAlternateName && self.pszLocationShort == other.pszLocationShort && self.pszLocationFull == other.pszLocationFull && self.nType == other.nType } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for CONFIRM_CONFLICT_ITEM {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for CONFIRM_CONFLICT_ITEM { type Abi = ::core::mem::ManuallyDrop<Self>; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct CONFIRM_CONFLICT_RESULT_INFO { pub pszNewName: super::super::Foundation::PWSTR, pub iItemIndex: u32, } #[cfg(feature = "Win32_Foundation")] impl CONFIRM_CONFLICT_RESULT_INFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for CONFIRM_CONFLICT_RESULT_INFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for CONFIRM_CONFLICT_RESULT_INFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("CONFIRM_CONFLICT_RESULT_INFO").field("pszNewName", &self.pszNewName).field("iItemIndex", &self.iItemIndex).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for CONFIRM_CONFLICT_RESULT_INFO { fn eq(&self, other: &Self) -> bool { self.pszNewName == other.pszNewName && self.iItemIndex == other.iItemIndex } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for CONFIRM_CONFLICT_RESULT_INFO {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for CONFIRM_CONFLICT_RESULT_INFO { type Abi = Self; } pub const COPYENGINE_E_ACCESSDENIED_READONLY: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927681i32 as _); pub const COPYENGINE_E_ACCESS_DENIED_DEST: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927710i32 as _); pub const COPYENGINE_E_ACCESS_DENIED_SRC: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927711i32 as _); pub const COPYENGINE_E_ALREADY_EXISTS_FOLDER: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927700i32 as _); pub const COPYENGINE_E_ALREADY_EXISTS_NORMAL: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927703i32 as _); pub const COPYENGINE_E_ALREADY_EXISTS_READONLY: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927702i32 as _); pub const COPYENGINE_E_ALREADY_EXISTS_SYSTEM: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927701i32 as _); pub const COPYENGINE_E_BLOCKED_BY_DLP_POLICY: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927666i32 as _); pub const COPYENGINE_E_BLOCKED_BY_EDP_FOR_REMOVABLE_DRIVE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927670i32 as _); pub const COPYENGINE_E_BLOCKED_BY_EDP_POLICY: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927672i32 as _); pub const COPYENGINE_E_CANCELLED: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927743i32 as _); pub const COPYENGINE_E_CANNOT_MOVE_FROM_RECYCLE_BIN: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927677i32 as _); pub const COPYENGINE_E_CANNOT_MOVE_SHARED_FOLDER: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927676i32 as _); pub const COPYENGINE_E_CANT_REACH_SOURCE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927691i32 as _); pub const COPYENGINE_E_DEST_IS_RO_CD: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927729i32 as _); pub const COPYENGINE_E_DEST_IS_RO_DVD: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927726i32 as _); pub const COPYENGINE_E_DEST_IS_RW_CD: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927728i32 as _); pub const COPYENGINE_E_DEST_IS_RW_DVD: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927725i32 as _); pub const COPYENGINE_E_DEST_IS_R_CD: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927727i32 as _); pub const COPYENGINE_E_DEST_IS_R_DVD: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927724i32 as _); pub const COPYENGINE_E_DEST_SAME_TREE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927734i32 as _); pub const COPYENGINE_E_DEST_SUBTREE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927735i32 as _); pub const COPYENGINE_E_DIFF_DIR: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927740i32 as _); pub const COPYENGINE_E_DIR_NOT_EMPTY: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927683i32 as _); pub const COPYENGINE_E_DISK_FULL: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927694i32 as _); pub const COPYENGINE_E_DISK_FULL_CLEAN: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927693i32 as _); pub const COPYENGINE_E_EA_LOSS: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927698i32 as _); pub const COPYENGINE_E_EA_NOT_SUPPORTED: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927692i32 as _); pub const COPYENGINE_E_ENCRYPTION_LOSS: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927695i32 as _); pub const COPYENGINE_E_FAT_MAX_IN_ROOT: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927682i32 as _); pub const COPYENGINE_E_FILE_IS_FLD_DEST: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927732i32 as _); pub const COPYENGINE_E_FILE_TOO_LARGE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927731i32 as _); pub const COPYENGINE_E_FLD_IS_FILE_DEST: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927733i32 as _); pub const COPYENGINE_E_INTERNET_ITEM_STORAGE_PROVIDER_ERROR: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927675i32 as _); pub const COPYENGINE_E_INTERNET_ITEM_STORAGE_PROVIDER_PAUSED: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927674i32 as _); pub const COPYENGINE_E_INTERNET_ITEM_UNAVAILABLE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927678i32 as _); pub const COPYENGINE_E_INVALID_FILES_DEST: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927716i32 as _); pub const COPYENGINE_E_INVALID_FILES_SRC: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927717i32 as _); pub const COPYENGINE_E_MANY_SRC_1_DEST: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927739i32 as _); pub const COPYENGINE_E_NET_DISCONNECT_DEST: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927706i32 as _); pub const COPYENGINE_E_NET_DISCONNECT_SRC: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927707i32 as _); pub const COPYENGINE_E_NEWFILE_NAME_TOO_LONG: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927685i32 as _); pub const COPYENGINE_E_NEWFOLDER_NAME_TOO_LONG: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927684i32 as _); pub const COPYENGINE_E_PATH_NOT_FOUND_DEST: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927708i32 as _); pub const COPYENGINE_E_PATH_NOT_FOUND_SRC: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927709i32 as _); pub const COPYENGINE_E_PATH_TOO_DEEP_DEST: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927714i32 as _); pub const COPYENGINE_E_PATH_TOO_DEEP_SRC: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927715i32 as _); pub const COPYENGINE_E_PROPERTIES_LOSS: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927696i32 as _); pub const COPYENGINE_E_PROPERTY_LOSS: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927697i32 as _); pub const COPYENGINE_E_RECYCLE_BIN_NOT_FOUND: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927686i32 as _); pub const COPYENGINE_E_RECYCLE_FORCE_NUKE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927690i32 as _); pub const COPYENGINE_E_RECYCLE_PATH_TOO_LONG: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927688i32 as _); pub const COPYENGINE_E_RECYCLE_SIZE_TOO_BIG: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927689i32 as _); pub const COPYENGINE_E_RECYCLE_UNKNOWN_ERROR: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927691i32 as _); pub const COPYENGINE_E_REDIRECTED_TO_WEBPAGE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927680i32 as _); pub const COPYENGINE_E_REMOVABLE_FULL: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927730i32 as _); pub const COPYENGINE_E_REQUIRES_EDP_CONSENT: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927673i32 as _); pub const COPYENGINE_E_REQUIRES_EDP_CONSENT_FOR_REMOVABLE_DRIVE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927671i32 as _); pub const COPYENGINE_E_REQUIRES_ELEVATION: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927742i32 as _); pub const COPYENGINE_E_RMS_BLOCKED_BY_EDP_FOR_REMOVABLE_DRIVE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927668i32 as _); pub const COPYENGINE_E_RMS_REQUIRES_EDP_CONSENT_FOR_REMOVABLE_DRIVE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927669i32 as _); pub const COPYENGINE_E_ROOT_DIR_DEST: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927712i32 as _); pub const COPYENGINE_E_ROOT_DIR_SRC: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927713i32 as _); pub const COPYENGINE_E_SAME_FILE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927741i32 as _); pub const COPYENGINE_E_SERVER_BAD_FILE_TYPE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927679i32 as _); pub const COPYENGINE_E_SHARING_VIOLATION_DEST: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927704i32 as _); pub const COPYENGINE_E_SHARING_VIOLATION_SRC: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927705i32 as _); pub const COPYENGINE_E_SILENT_FAIL_BY_DLP_POLICY: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927665i32 as _); pub const COPYENGINE_E_SRC_IS_RO_CD: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927723i32 as _); pub const COPYENGINE_E_SRC_IS_RO_DVD: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927720i32 as _); pub const COPYENGINE_E_SRC_IS_RW_CD: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927722i32 as _); pub const COPYENGINE_E_SRC_IS_RW_DVD: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927719i32 as _); pub const COPYENGINE_E_SRC_IS_R_CD: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927721i32 as _); pub const COPYENGINE_E_SRC_IS_R_DVD: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927718i32 as _); pub const COPYENGINE_E_STREAM_LOSS: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927699i32 as _); pub const COPYENGINE_E_USER_CANCELLED: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927744i32 as _); pub const COPYENGINE_E_WARNED_BY_DLP_POLICY: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927667i32 as _); pub const COPYENGINE_S_ALREADY_DONE: ::windows::core::HRESULT = ::windows::core::HRESULT(2555914i32 as _); pub const COPYENGINE_S_CLOSE_PROGRAM: ::windows::core::HRESULT = ::windows::core::HRESULT(2555917i32 as _); pub const COPYENGINE_S_COLLISIONRESOLVED: ::windows::core::HRESULT = ::windows::core::HRESULT(2555918i32 as _); pub const COPYENGINE_S_DONT_PROCESS_CHILDREN: ::windows::core::HRESULT = ::windows::core::HRESULT(2555912i32 as _); pub const COPYENGINE_S_KEEP_BOTH: ::windows::core::HRESULT = ::windows::core::HRESULT(2555916i32 as _); pub const COPYENGINE_S_MERGE: ::windows::core::HRESULT = ::windows::core::HRESULT(2555910i32 as _); pub const COPYENGINE_S_NOT_HANDLED: ::windows::core::HRESULT = ::windows::core::HRESULT(2555907i32 as _); pub const COPYENGINE_S_PENDING: ::windows::core::HRESULT = ::windows::core::HRESULT(2555915i32 as _); pub const COPYENGINE_S_PROGRESS_PAUSE: ::windows::core::HRESULT = ::windows::core::HRESULT(2555919i32 as _); pub const COPYENGINE_S_USER_IGNORED: ::windows::core::HRESULT = ::windows::core::HRESULT(2555909i32 as _); pub const COPYENGINE_S_USER_RETRY: ::windows::core::HRESULT = ::windows::core::HRESULT(2555908i32 as _); pub const COPYENGINE_S_YES: ::windows::core::HRESULT = ::windows::core::HRESULT(2555905i32 as _); pub const CPFG_CREDENTIAL_PROVIDER_LABEL: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x286bbff3_bad4_438f_b007_79b7267c3d48); pub const CPFG_CREDENTIAL_PROVIDER_LOGO: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2d837775_f6cd_464e_a745_482fd0b47493); pub const CPFG_LOGON_PASSWORD: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x60624cfa_a477_47b1_8a8e_3a4a19981827); pub const CPFG_LOGON_USERNAME: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xda15bbe8_954d_4fd3_b0f4_1fb5b90b174b); pub const CPFG_SMARTCARD_PIN: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4fe5263b_9181_46c1_b0a4_9dedd4db7dea); pub const CPFG_SMARTCARD_USERNAME: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3e1ecf69_568c_4d96_9d59_46444174e2d6); pub const CPFG_STANDALONE_SUBMIT_BUTTON: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0b7b0ad8_cc36_4d59_802b_82f714fa7022); pub const CPFG_STYLE_LINK_AS_BUTTON: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x088fa508_94a6_4430_a4cb_6fc6e3c0b9e2); #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] pub struct CPLINFO { pub idIcon: i32, pub idName: i32, pub idInfo: i32, pub lData: isize, } impl CPLINFO {} impl ::core::default::Default for CPLINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::cmp::PartialEq for CPLINFO { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } impl ::core::cmp::Eq for CPLINFO {} unsafe impl ::windows::core::Abi for CPLINFO { type Abi = Self; } pub const CPLPAGE_DISPLAY_BACKGROUND: u32 = 1u32; pub const CPLPAGE_KEYBOARD_SPEED: u32 = 1u32; pub const CPLPAGE_MOUSE_BUTTONS: u32 = 1u32; pub const CPLPAGE_MOUSE_PTRMOTION: u32 = 2u32; pub const CPLPAGE_MOUSE_WHEEL: u32 = 3u32; pub const CPL_DBLCLK: u32 = 5u32; pub const CPL_DYNAMIC_RES: u32 = 0u32; pub const CPL_EXIT: u32 = 7u32; pub const CPL_GETCOUNT: u32 = 2u32; pub const CPL_INIT: u32 = 1u32; pub const CPL_INQUIRE: u32 = 3u32; pub const CPL_NEWINQUIRE: u32 = 8u32; pub const CPL_SELECT: u32 = 4u32; pub const CPL_SETUP: u32 = 200u32; pub const CPL_STARTWPARMS: u32 = 10u32; pub const CPL_STARTWPARMSA: u32 = 9u32; pub const CPL_STARTWPARMSW: u32 = 10u32; pub const CPL_STOP: u32 = 6u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct CPVIEW(pub i32); pub const CPVIEW_CLASSIC: CPVIEW = CPVIEW(0i32); pub const CPVIEW_ALLITEMS: CPVIEW = CPVIEW(0i32); pub const CPVIEW_CATEGORY: CPVIEW = CPVIEW(1i32); pub const CPVIEW_HOME: CPVIEW = CPVIEW(1i32); impl ::core::convert::From<i32> for CPVIEW { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for CPVIEW { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS(pub i32); pub const CPAO_NONE: CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS = CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS(0i32); pub const CPAO_EMPTY_LOCAL: CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS = CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS(1i32); pub const CPAO_EMPTY_CONNECTED: CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS = CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS(2i32); impl ::core::convert::From<i32> for CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS(pub i32); pub const CPCFO_NONE: CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS = CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS(0i32); pub const CPCFO_ENABLE_PASSWORD_REVEAL: CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS = CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS(1i32); pub const CPCFO_IS_EMAIL_ADDRESS: CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS = CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS(2i32); pub const CPCFO_ENABLE_TOUCH_KEYBOARD_AUTO_INVOKE: CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS = CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS(4i32); pub const CPCFO_NUMBERS_ONLY: CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS = CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS(8i32); pub const CPCFO_SHOW_ENGLISH_KEYBOARD: CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS = CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS(16i32); impl ::core::convert::From<i32> for CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION { pub ulAuthenticationPackage: u32, pub clsidCredentialProvider: ::windows::core::GUID, pub cbSerialization: u32, pub rgbSerialization: *mut u8, } impl CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION {} impl ::core::default::Default for CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION").field("ulAuthenticationPackage", &self.ulAuthenticationPackage).field("clsidCredentialProvider", &self.clsidCredentialProvider).field("cbSerialization", &self.cbSerialization).field("rgbSerialization", &self.rgbSerialization).finish() } } impl ::core::cmp::PartialEq for CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION { fn eq(&self, other: &Self) -> bool { self.ulAuthenticationPackage == other.ulAuthenticationPackage && self.clsidCredentialProvider == other.clsidCredentialProvider && self.cbSerialization == other.cbSerialization && self.rgbSerialization == other.rgbSerialization } } impl ::core::cmp::Eq for CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION {} unsafe impl ::windows::core::Abi for CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR { pub dwFieldID: u32, pub cpft: CREDENTIAL_PROVIDER_FIELD_TYPE, pub pszLabel: super::super::Foundation::PWSTR, pub guidFieldType: ::windows::core::GUID, } #[cfg(feature = "Win32_Foundation")] impl CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR").field("dwFieldID", &self.dwFieldID).field("cpft", &self.cpft).field("pszLabel", &self.pszLabel).field("guidFieldType", &self.guidFieldType).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR { fn eq(&self, other: &Self) -> bool { self.dwFieldID == other.dwFieldID && self.cpft == other.cpft && self.pszLabel == other.pszLabel && self.guidFieldType == other.guidFieldType } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE(pub i32); pub const CPFIS_NONE: CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE = CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE(0i32); pub const CPFIS_READONLY: CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE = CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE(1i32); pub const CPFIS_DISABLED: CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE = CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE(2i32); pub const CPFIS_FOCUSED: CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE = CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE(3i32); impl ::core::convert::From<i32> for CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct CREDENTIAL_PROVIDER_FIELD_STATE(pub i32); pub const CPFS_HIDDEN: CREDENTIAL_PROVIDER_FIELD_STATE = CREDENTIAL_PROVIDER_FIELD_STATE(0i32); pub const CPFS_DISPLAY_IN_SELECTED_TILE: CREDENTIAL_PROVIDER_FIELD_STATE = CREDENTIAL_PROVIDER_FIELD_STATE(1i32); pub const CPFS_DISPLAY_IN_DESELECTED_TILE: CREDENTIAL_PROVIDER_FIELD_STATE = CREDENTIAL_PROVIDER_FIELD_STATE(2i32); pub const CPFS_DISPLAY_IN_BOTH: CREDENTIAL_PROVIDER_FIELD_STATE = CREDENTIAL_PROVIDER_FIELD_STATE(3i32); impl ::core::convert::From<i32> for CREDENTIAL_PROVIDER_FIELD_STATE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for CREDENTIAL_PROVIDER_FIELD_STATE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct CREDENTIAL_PROVIDER_FIELD_TYPE(pub i32); pub const CPFT_INVALID: CREDENTIAL_PROVIDER_FIELD_TYPE = CREDENTIAL_PROVIDER_FIELD_TYPE(0i32); pub const CPFT_LARGE_TEXT: CREDENTIAL_PROVIDER_FIELD_TYPE = CREDENTIAL_PROVIDER_FIELD_TYPE(1i32); pub const CPFT_SMALL_TEXT: CREDENTIAL_PROVIDER_FIELD_TYPE = CREDENTIAL_PROVIDER_FIELD_TYPE(2i32); pub const CPFT_COMMAND_LINK: CREDENTIAL_PROVIDER_FIELD_TYPE = CREDENTIAL_PROVIDER_FIELD_TYPE(3i32); pub const CPFT_EDIT_TEXT: CREDENTIAL_PROVIDER_FIELD_TYPE = CREDENTIAL_PROVIDER_FIELD_TYPE(4i32); pub const CPFT_PASSWORD_TEXT: CREDENTIAL_PROVIDER_FIELD_TYPE = CREDENTIAL_PROVIDER_FIELD_TYPE(5i32); pub const CPFT_TILE_IMAGE: CREDENTIAL_PROVIDER_FIELD_TYPE = CREDENTIAL_PROVIDER_FIELD_TYPE(6i32); pub const CPFT_CHECKBOX: CREDENTIAL_PROVIDER_FIELD_TYPE = CREDENTIAL_PROVIDER_FIELD_TYPE(7i32); pub const CPFT_COMBOBOX: CREDENTIAL_PROVIDER_FIELD_TYPE = CREDENTIAL_PROVIDER_FIELD_TYPE(8i32); pub const CPFT_SUBMIT_BUTTON: CREDENTIAL_PROVIDER_FIELD_TYPE = CREDENTIAL_PROVIDER_FIELD_TYPE(9i32); impl ::core::convert::From<i32> for CREDENTIAL_PROVIDER_FIELD_TYPE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for CREDENTIAL_PROVIDER_FIELD_TYPE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE(pub i32); pub const CPGSR_NO_CREDENTIAL_NOT_FINISHED: CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE = CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE(0i32); pub const CPGSR_NO_CREDENTIAL_FINISHED: CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE = CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE(1i32); pub const CPGSR_RETURN_CREDENTIAL_FINISHED: CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE = CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE(2i32); pub const CPGSR_RETURN_NO_CREDENTIAL_FINISHED: CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE = CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE(3i32); impl ::core::convert::From<i32> for CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE { type Abi = Self; } pub const CREDENTIAL_PROVIDER_NO_DEFAULT: u32 = 4294967295u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct CREDENTIAL_PROVIDER_STATUS_ICON(pub i32); pub const CPSI_NONE: CREDENTIAL_PROVIDER_STATUS_ICON = CREDENTIAL_PROVIDER_STATUS_ICON(0i32); pub const CPSI_ERROR: CREDENTIAL_PROVIDER_STATUS_ICON = CREDENTIAL_PROVIDER_STATUS_ICON(1i32); pub const CPSI_WARNING: CREDENTIAL_PROVIDER_STATUS_ICON = CREDENTIAL_PROVIDER_STATUS_ICON(2i32); pub const CPSI_SUCCESS: CREDENTIAL_PROVIDER_STATUS_ICON = CREDENTIAL_PROVIDER_STATUS_ICON(3i32); impl ::core::convert::From<i32> for CREDENTIAL_PROVIDER_STATUS_ICON { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for CREDENTIAL_PROVIDER_STATUS_ICON { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct CREDENTIAL_PROVIDER_USAGE_SCENARIO(pub i32); pub const CPUS_INVALID: CREDENTIAL_PROVIDER_USAGE_SCENARIO = CREDENTIAL_PROVIDER_USAGE_SCENARIO(0i32); pub const CPUS_LOGON: CREDENTIAL_PROVIDER_USAGE_SCENARIO = CREDENTIAL_PROVIDER_USAGE_SCENARIO(1i32); pub const CPUS_UNLOCK_WORKSTATION: CREDENTIAL_PROVIDER_USAGE_SCENARIO = CREDENTIAL_PROVIDER_USAGE_SCENARIO(2i32); pub const CPUS_CHANGE_PASSWORD: CREDENTIAL_PROVIDER_USAGE_SCENARIO = CREDENTIAL_PROVIDER_USAGE_SCENARIO(3i32); pub const CPUS_CREDUI: CREDENTIAL_PROVIDER_USAGE_SCENARIO = CREDENTIAL_PROVIDER_USAGE_SCENARIO(4i32); pub const CPUS_PLAP: CREDENTIAL_PROVIDER_USAGE_SCENARIO = CREDENTIAL_PROVIDER_USAGE_SCENARIO(5i32); impl ::core::convert::From<i32> for CREDENTIAL_PROVIDER_USAGE_SCENARIO { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for CREDENTIAL_PROVIDER_USAGE_SCENARIO { type Abi = Self; } #[derive(:: core :: clone :: Clone)] #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub struct CSFV { pub cbSize: u32, pub pshf: ::core::option::Option<IShellFolder>, pub psvOuter: ::core::option::Option<IShellView>, pub pidl: *mut Common::ITEMIDLIST, pub lEvents: i32, pub pfnCallback: ::core::option::Option<LPFNVIEWCALLBACK>, pub fvm: FOLDERVIEWMODE, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl CSFV {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::default::Default for CSFV { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::fmt::Debug for CSFV { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("CSFV").field("cbSize", &self.cbSize).field("pshf", &self.pshf).field("psvOuter", &self.psvOuter).field("pidl", &self.pidl).field("lEvents", &self.lEvents).field("fvm", &self.fvm).finish() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::cmp::PartialEq for CSFV { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.pshf == other.pshf && self.psvOuter == other.psvOuter && self.pidl == other.pidl && self.lEvents == other.lEvents && self.pfnCallback.map(|f| f as usize) == other.pfnCallback.map(|f| f as usize) && self.fvm == other.fvm } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::cmp::Eq for CSFV {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] unsafe impl ::windows::core::Abi for CSFV { type Abi = ::core::mem::ManuallyDrop<Self>; } pub const CSIDL_ADMINTOOLS: u32 = 48u32; pub const CSIDL_ALTSTARTUP: u32 = 29u32; pub const CSIDL_APPDATA: u32 = 26u32; pub const CSIDL_BITBUCKET: u32 = 10u32; pub const CSIDL_CDBURN_AREA: u32 = 59u32; pub const CSIDL_COMMON_ADMINTOOLS: u32 = 47u32; pub const CSIDL_COMMON_ALTSTARTUP: u32 = 30u32; pub const CSIDL_COMMON_APPDATA: u32 = 35u32; pub const CSIDL_COMMON_DESKTOPDIRECTORY: u32 = 25u32; pub const CSIDL_COMMON_DOCUMENTS: u32 = 46u32; pub const CSIDL_COMMON_FAVORITES: u32 = 31u32; pub const CSIDL_COMMON_MUSIC: u32 = 53u32; pub const CSIDL_COMMON_OEM_LINKS: u32 = 58u32; pub const CSIDL_COMMON_PICTURES: u32 = 54u32; pub const CSIDL_COMMON_PROGRAMS: u32 = 23u32; pub const CSIDL_COMMON_STARTMENU: u32 = 22u32; pub const CSIDL_COMMON_STARTUP: u32 = 24u32; pub const CSIDL_COMMON_TEMPLATES: u32 = 45u32; pub const CSIDL_COMMON_VIDEO: u32 = 55u32; pub const CSIDL_COMPUTERSNEARME: u32 = 61u32; pub const CSIDL_CONNECTIONS: u32 = 49u32; pub const CSIDL_CONTROLS: u32 = 3u32; pub const CSIDL_COOKIES: u32 = 33u32; pub const CSIDL_DESKTOP: u32 = 0u32; pub const CSIDL_DESKTOPDIRECTORY: u32 = 16u32; pub const CSIDL_DRIVES: u32 = 17u32; pub const CSIDL_FAVORITES: u32 = 6u32; pub const CSIDL_FLAG_CREATE: u32 = 32768u32; pub const CSIDL_FLAG_DONT_UNEXPAND: u32 = 8192u32; pub const CSIDL_FLAG_DONT_VERIFY: u32 = 16384u32; pub const CSIDL_FLAG_MASK: u32 = 65280u32; pub const CSIDL_FLAG_NO_ALIAS: u32 = 4096u32; pub const CSIDL_FLAG_PER_USER_INIT: u32 = 2048u32; pub const CSIDL_FLAG_PFTI_TRACKTARGET: u32 = 16384u32; pub const CSIDL_FONTS: u32 = 20u32; pub const CSIDL_HISTORY: u32 = 34u32; pub const CSIDL_INTERNET: u32 = 1u32; pub const CSIDL_INTERNET_CACHE: u32 = 32u32; pub const CSIDL_LOCAL_APPDATA: u32 = 28u32; pub const CSIDL_MYDOCUMENTS: u32 = 5u32; pub const CSIDL_MYMUSIC: u32 = 13u32; pub const CSIDL_MYPICTURES: u32 = 39u32; pub const CSIDL_MYVIDEO: u32 = 14u32; pub const CSIDL_NETHOOD: u32 = 19u32; pub const CSIDL_NETWORK: u32 = 18u32; pub const CSIDL_PERSONAL: u32 = 5u32; pub const CSIDL_PRINTERS: u32 = 4u32; pub const CSIDL_PRINTHOOD: u32 = 27u32; pub const CSIDL_PROFILE: u32 = 40u32; pub const CSIDL_PROGRAMS: u32 = 2u32; pub const CSIDL_PROGRAM_FILES: u32 = 38u32; pub const CSIDL_PROGRAM_FILESX86: u32 = 42u32; pub const CSIDL_PROGRAM_FILES_COMMON: u32 = 43u32; pub const CSIDL_PROGRAM_FILES_COMMONX86: u32 = 44u32; pub const CSIDL_RECENT: u32 = 8u32; pub const CSIDL_RESOURCES: u32 = 56u32; pub const CSIDL_RESOURCES_LOCALIZED: u32 = 57u32; pub const CSIDL_SENDTO: u32 = 9u32; pub const CSIDL_STARTMENU: u32 = 11u32; pub const CSIDL_STARTUP: u32 = 7u32; pub const CSIDL_SYSTEM: u32 = 37u32; pub const CSIDL_SYSTEMX86: u32 = 41u32; pub const CSIDL_TEMPLATES: u32 = 21u32; pub const CSIDL_WINDOWS: u32 = 36u32; pub const CScriptErrorList: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xefd01300_160f_11d2_bb2e_00805ff7efca); pub const CTF_COINIT: i32 = 8i32; pub const CTF_COINIT_MTA: i32 = 4096i32; pub const CTF_COINIT_STA: i32 = 8i32; pub const CTF_FREELIBANDEXIT: i32 = 16i32; pub const CTF_INHERITWOW64: i32 = 256i32; pub const CTF_INSIST: i32 = 1i32; pub const CTF_KEYBOARD_LOCALE: i32 = 1024i32; pub const CTF_NOADDREFLIB: i32 = 8192i32; pub const CTF_OLEINITIALIZE: i32 = 2048i32; pub const CTF_PROCESS_REF: i32 = 4i32; pub const CTF_REF_COUNTED: i32 = 32i32; pub const CTF_THREAD_REF: i32 = 2i32; pub const CTF_UNUSED: i32 = 128i32; pub const CTF_WAIT_ALLOWCOM: i32 = 64i32; pub const CTF_WAIT_NO_REENTRANCY: i32 = 512i32; #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ChrCmpIA(w1: u16, w2: u16) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ChrCmpIA(w1: u16, w2: u16) -> super::super::Foundation::BOOL; } ::core::mem::transmute(ChrCmpIA(::core::mem::transmute(w1), ::core::mem::transmute(w2))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ChrCmpIW(w1: u16, w2: u16) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ChrCmpIW(w1: u16, w2: u16) -> super::super::Foundation::BOOL; } ::core::mem::transmute(ChrCmpIW(::core::mem::transmute(w1), ::core::mem::transmute(w2))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ColorAdjustLuma<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(clrrgb: u32, n: i32, fscale: Param2) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ColorAdjustLuma(clrrgb: u32, n: i32, fscale: super::super::Foundation::BOOL) -> u32; } ::core::mem::transmute(ColorAdjustLuma(::core::mem::transmute(clrrgb), ::core::mem::transmute(n), fscale.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn ColorHLSToRGB(whue: u16, wluminance: u16, wsaturation: u16) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ColorHLSToRGB(whue: u16, wluminance: u16, wsaturation: u16) -> u32; } ::core::mem::transmute(ColorHLSToRGB(::core::mem::transmute(whue), ::core::mem::transmute(wluminance), ::core::mem::transmute(wsaturation))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn ColorRGBToHLS(clrrgb: u32, pwhue: *mut u16, pwluminance: *mut u16, pwsaturation: *mut u16) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ColorRGBToHLS(clrrgb: u32, pwhue: *mut u16, pwluminance: *mut u16, pwsaturation: *mut u16); } ::core::mem::transmute(ColorRGBToHLS(::core::mem::transmute(clrrgb), ::core::mem::transmute(pwhue), ::core::mem::transmute(pwluminance), ::core::mem::transmute(pwsaturation))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn CommandLineToArgvW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(lpcmdline: Param0, pnumargs: *mut i32) -> *mut super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CommandLineToArgvW(lpcmdline: super::super::Foundation::PWSTR, pnumargs: *mut i32) -> *mut super::super::Foundation::PWSTR; } ::core::mem::transmute(CommandLineToArgvW(lpcmdline.into_param().abi(), ::core::mem::transmute(pnumargs))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct CommandStateChangeConstants(pub i32); pub const CSC_UPDATECOMMANDS: CommandStateChangeConstants = CommandStateChangeConstants(-1i32); pub const CSC_NAVIGATEFORWARD: CommandStateChangeConstants = CommandStateChangeConstants(1i32); pub const CSC_NAVIGATEBACK: CommandStateChangeConstants = CommandStateChangeConstants(2i32); impl ::core::convert::From<i32> for CommandStateChangeConstants { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for CommandStateChangeConstants { type Abi = Self; } pub const ConflictFolder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x289978ac_a101_4341_a817_21eba7fd046d); #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] pub unsafe fn ConnectToConnectionPoint<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param3: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(punk: Param0, riidevent: *const ::windows::core::GUID, fconnect: Param2, punktarget: Param3, pdwcookie: *mut u32, ppcpout: *mut ::core::option::Option<super::super::System::Com::IConnectionPoint>) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ConnectToConnectionPoint(punk: ::windows::core::RawPtr, riidevent: *const ::windows::core::GUID, fconnect: super::super::Foundation::BOOL, punktarget: ::windows::core::RawPtr, pdwcookie: *mut u32, ppcpout: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT; } ConnectToConnectionPoint(punk.into_param().abi(), ::core::mem::transmute(riidevent), fconnect.into_param().abi(), punktarget.into_param().abi(), ::core::mem::transmute(pdwcookie), ::core::mem::transmute(ppcpout)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn CreateProfile<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszusersid: Param0, pszusername: Param1, pszprofilepath: super::super::Foundation::PWSTR, cchprofilepath: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateProfile(pszusersid: super::super::Foundation::PWSTR, pszusername: super::super::Foundation::PWSTR, pszprofilepath: super::super::Foundation::PWSTR, cchprofilepath: u32) -> ::windows::core::HRESULT; } CreateProfile(pszusersid.into_param().abi(), pszusername.into_param().abi(), ::core::mem::transmute(pszprofilepath), ::core::mem::transmute(cchprofilepath)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DAD_AutoScroll<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(hwnd: Param0, pad: *mut AUTO_SCROLL_DATA, pptnow: *const super::super::Foundation::POINT) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DAD_AutoScroll(hwnd: super::super::Foundation::HWND, pad: *mut AUTO_SCROLL_DATA, pptnow: *const super::super::Foundation::POINT) -> super::super::Foundation::BOOL; } ::core::mem::transmute(DAD_AutoScroll(hwnd.into_param().abi(), ::core::mem::transmute(pad), ::core::mem::transmute(pptnow))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DAD_DragEnterEx<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::POINT>>(hwndtarget: Param0, ptstart: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DAD_DragEnterEx(hwndtarget: super::super::Foundation::HWND, ptstart: super::super::Foundation::POINT) -> super::super::Foundation::BOOL; } ::core::mem::transmute(DAD_DragEnterEx(hwndtarget.into_param().abi(), ptstart.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] pub unsafe fn DAD_DragEnterEx2<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::POINT>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>>(hwndtarget: Param0, ptstart: Param1, pdtobject: Param2) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DAD_DragEnterEx2(hwndtarget: super::super::Foundation::HWND, ptstart: super::super::Foundation::POINT, pdtobject: ::windows::core::RawPtr) -> super::super::Foundation::BOOL; } ::core::mem::transmute(DAD_DragEnterEx2(hwndtarget.into_param().abi(), ptstart.into_param().abi(), pdtobject.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DAD_DragLeave() -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DAD_DragLeave() -> super::super::Foundation::BOOL; } ::core::mem::transmute(DAD_DragLeave()) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DAD_DragMove<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::POINT>>(pt: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DAD_DragMove(pt: super::super::Foundation::POINT) -> super::super::Foundation::BOOL; } ::core::mem::transmute(DAD_DragMove(pt.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] #[inline] pub unsafe fn DAD_SetDragImage<'a, Param0: ::windows::core::IntoParam<'a, super::Controls::HIMAGELIST>>(him: Param0, pptoffset: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DAD_SetDragImage(him: super::Controls::HIMAGELIST, pptoffset: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL; } ::core::mem::transmute(DAD_SetDragImage(him.into_param().abi(), ::core::mem::transmute(pptoffset))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DAD_ShowDragImage<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(fshow: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DAD_ShowDragImage(fshow: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; } ::core::mem::transmute(DAD_ShowDragImage(fshow.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] pub struct DATABLOCK_HEADER { pub cbSize: u32, pub dwSignature: u32, } impl DATABLOCK_HEADER {} impl ::core::default::Default for DATABLOCK_HEADER { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::cmp::PartialEq for DATABLOCK_HEADER { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } impl ::core::cmp::Eq for DATABLOCK_HEADER {} unsafe impl ::windows::core::Abi for DATABLOCK_HEADER { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct DATAOBJ_GET_ITEM_FLAGS(pub i32); pub const DOGIF_DEFAULT: DATAOBJ_GET_ITEM_FLAGS = DATAOBJ_GET_ITEM_FLAGS(0i32); pub const DOGIF_TRAVERSE_LINK: DATAOBJ_GET_ITEM_FLAGS = DATAOBJ_GET_ITEM_FLAGS(1i32); pub const DOGIF_NO_HDROP: DATAOBJ_GET_ITEM_FLAGS = DATAOBJ_GET_ITEM_FLAGS(2i32); pub const DOGIF_NO_URL: DATAOBJ_GET_ITEM_FLAGS = DATAOBJ_GET_ITEM_FLAGS(4i32); pub const DOGIF_ONLY_IF_ONE: DATAOBJ_GET_ITEM_FLAGS = DATAOBJ_GET_ITEM_FLAGS(8i32); impl ::core::convert::From<i32> for DATAOBJ_GET_ITEM_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for DATAOBJ_GET_ITEM_FLAGS { type Abi = Self; } pub const DBCID_CLSIDOFBAR: i32 = 2i32; pub const DBCID_EMPTY: i32 = 0i32; pub const DBCID_GETBAR: i32 = 4i32; pub const DBCID_ONDRAG: i32 = 1i32; pub const DBCID_RESIZE: i32 = 3i32; pub const DBCID_UPDATESIZE: i32 = 5i32; pub const DBC_GS_IDEAL: u32 = 0u32; pub const DBC_GS_SIZEDOWN: u32 = 1u32; pub const DBC_HIDE: u32 = 0u32; pub const DBC_SHOW: u32 = 1u32; pub const DBC_SHOWOBSCURE: u32 = 2u32; pub const DBIF_VIEWMODE_FLOATING: u32 = 2u32; pub const DBIF_VIEWMODE_NORMAL: u32 = 0u32; pub const DBIF_VIEWMODE_TRANSPARENT: u32 = 4u32; pub const DBIF_VIEWMODE_VERTICAL: u32 = 1u32; pub const DBIMF_ADDTOFRONT: u32 = 512u32; pub const DBIMF_ALWAYSGRIPPER: u32 = 4096u32; pub const DBIMF_BKCOLOR: u32 = 64u32; pub const DBIMF_BREAK: u32 = 256u32; pub const DBIMF_DEBOSSED: u32 = 32u32; pub const DBIMF_FIXED: u32 = 1u32; pub const DBIMF_FIXEDBMP: u32 = 4u32; pub const DBIMF_NOGRIPPER: u32 = 2048u32; pub const DBIMF_NOMARGINS: u32 = 8192u32; pub const DBIMF_NORMAL: u32 = 0u32; pub const DBIMF_TOPALIGN: u32 = 1024u32; pub const DBIMF_UNDELETEABLE: u32 = 16u32; pub const DBIMF_USECHEVRON: u32 = 128u32; pub const DBIMF_VARIABLEHEIGHT: u32 = 8u32; pub const DBIM_ACTUAL: u32 = 8u32; pub const DBIM_BKCOLOR: u32 = 64u32; pub const DBIM_INTEGRAL: u32 = 4u32; pub const DBIM_MAXSIZE: u32 = 2u32; pub const DBIM_MINSIZE: u32 = 1u32; pub const DBIM_MODEFLAGS: u32 = 32u32; pub const DBIM_TITLE: u32 = 16u32; pub const DBPC_SELECTFIRST: u32 = 4294967295u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct DEFAULTSAVEFOLDERTYPE(pub i32); pub const DSFT_DETECT: DEFAULTSAVEFOLDERTYPE = DEFAULTSAVEFOLDERTYPE(1i32); pub const DSFT_PRIVATE: DEFAULTSAVEFOLDERTYPE = DEFAULTSAVEFOLDERTYPE(2i32); pub const DSFT_PUBLIC: DEFAULTSAVEFOLDERTYPE = DEFAULTSAVEFOLDERTYPE(3i32); impl ::core::convert::From<i32> for DEFAULTSAVEFOLDERTYPE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for DEFAULTSAVEFOLDERTYPE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct DEFAULT_FOLDER_MENU_RESTRICTIONS(pub i32); pub const DFMR_DEFAULT: DEFAULT_FOLDER_MENU_RESTRICTIONS = DEFAULT_FOLDER_MENU_RESTRICTIONS(0i32); pub const DFMR_NO_STATIC_VERBS: DEFAULT_FOLDER_MENU_RESTRICTIONS = DEFAULT_FOLDER_MENU_RESTRICTIONS(8i32); pub const DFMR_STATIC_VERBS_ONLY: DEFAULT_FOLDER_MENU_RESTRICTIONS = DEFAULT_FOLDER_MENU_RESTRICTIONS(16i32); pub const DFMR_NO_RESOURCE_VERBS: DEFAULT_FOLDER_MENU_RESTRICTIONS = DEFAULT_FOLDER_MENU_RESTRICTIONS(32i32); pub const DFMR_OPTIN_HANDLERS_ONLY: DEFAULT_FOLDER_MENU_RESTRICTIONS = DEFAULT_FOLDER_MENU_RESTRICTIONS(64i32); pub const DFMR_RESOURCE_AND_FOLDER_VERBS_ONLY: DEFAULT_FOLDER_MENU_RESTRICTIONS = DEFAULT_FOLDER_MENU_RESTRICTIONS(128i32); pub const DFMR_USE_SPECIFIED_HANDLERS: DEFAULT_FOLDER_MENU_RESTRICTIONS = DEFAULT_FOLDER_MENU_RESTRICTIONS(256i32); pub const DFMR_USE_SPECIFIED_VERBS: DEFAULT_FOLDER_MENU_RESTRICTIONS = DEFAULT_FOLDER_MENU_RESTRICTIONS(512i32); pub const DFMR_NO_ASYNC_VERBS: DEFAULT_FOLDER_MENU_RESTRICTIONS = DEFAULT_FOLDER_MENU_RESTRICTIONS(1024i32); pub const DFMR_NO_NATIVECPU_VERBS: DEFAULT_FOLDER_MENU_RESTRICTIONS = DEFAULT_FOLDER_MENU_RESTRICTIONS(2048i32); pub const DFMR_NO_NONWOW_VERBS: DEFAULT_FOLDER_MENU_RESTRICTIONS = DEFAULT_FOLDER_MENU_RESTRICTIONS(4096i32); impl ::core::convert::From<i32> for DEFAULT_FOLDER_MENU_RESTRICTIONS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for DEFAULT_FOLDER_MENU_RESTRICTIONS { type Abi = Self; } #[derive(:: core :: clone :: Clone)] #[repr(C)] #[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: ::core::option::Option<IContextMenuCB>, pub pidlFolder: *mut Common::ITEMIDLIST, pub psf: ::core::option::Option<IShellFolder>, pub cidl: u32, pub apidl: *mut *mut Common::ITEMIDLIST, pub punkAssociationInfo: ::core::option::Option<::windows::core::IUnknown>, pub cKeys: u32, pub aKeys: *mut super::super::System::Registry::HKEY, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] impl DEFCONTEXTMENU {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] impl ::core::default::Default for DEFCONTEXTMENU { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] impl ::core::fmt::Debug for DEFCONTEXTMENU { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("DEFCONTEXTMENU") .field("hwnd", &self.hwnd) .field("pcmcb", &self.pcmcb) .field("pidlFolder", &self.pidlFolder) .field("psf", &self.psf) .field("cidl", &self.cidl) .field("apidl", &self.apidl) .field("punkAssociationInfo", &self.punkAssociationInfo) .field("cKeys", &self.cKeys) .field("aKeys", &self.aKeys) .finish() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] impl ::core::cmp::PartialEq for DEFCONTEXTMENU { fn eq(&self, other: &Self) -> bool { self.hwnd == other.hwnd && self.pcmcb == other.pcmcb && self.pidlFolder == other.pidlFolder && self.psf == other.psf && self.cidl == other.cidl && self.apidl == other.apidl && self.punkAssociationInfo == other.punkAssociationInfo && self.cKeys == other.cKeys && self.aKeys == other.aKeys } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] impl ::core::cmp::Eq for DEFCONTEXTMENU {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] unsafe impl ::windows::core::Abi for DEFCONTEXTMENU { type Abi = ::core::mem::ManuallyDrop<Self>; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct DEF_SHARE_ID(pub i32); pub const DEFSHAREID_USERS: DEF_SHARE_ID = DEF_SHARE_ID(1i32); pub const DEFSHAREID_PUBLIC: DEF_SHARE_ID = DEF_SHARE_ID(2i32); impl ::core::convert::From<i32> for DEF_SHARE_ID { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for DEF_SHARE_ID { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] pub struct DELEGATEITEMID { pub cbSize: u16, pub wOuter: u16, pub cbInner: u16, pub rgb: [u8; 1], } impl DELEGATEITEMID {} impl ::core::default::Default for DELEGATEITEMID { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::cmp::PartialEq for DELEGATEITEMID { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } impl ::core::cmp::Eq for DELEGATEITEMID {} unsafe impl ::windows::core::Abi for DELEGATEITEMID { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct DESKBANDCID(pub i32); pub const DBID_BANDINFOCHANGED: DESKBANDCID = DESKBANDCID(0i32); pub const DBID_SHOWONLY: DESKBANDCID = DESKBANDCID(1i32); pub const DBID_MAXIMIZEBAND: DESKBANDCID = DESKBANDCID(2i32); pub const DBID_PUSHCHEVRON: DESKBANDCID = DESKBANDCID(3i32); pub const DBID_DELAYINIT: DESKBANDCID = DESKBANDCID(4i32); pub const DBID_FINISHINIT: DESKBANDCID = DESKBANDCID(5i32); pub const DBID_SETWINDOWTHEME: DESKBANDCID = DESKBANDCID(6i32); pub const DBID_PERMITAUTOHIDE: DESKBANDCID = DESKBANDCID(7i32); impl ::core::convert::From<i32> for DESKBANDCID { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for DESKBANDCID { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[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: u32, } #[cfg(feature = "Win32_Foundation")] impl DESKBANDINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for DESKBANDINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for DESKBANDINFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("DESKBANDINFO") .field("dwMask", &self.dwMask) .field("ptMinSize", &self.ptMinSize) .field("ptMaxSize", &self.ptMaxSize) .field("ptIntegral", &self.ptIntegral) .field("ptActual", &self.ptActual) .field("wszTitle", &self.wszTitle) .field("dwModeFlags", &self.dwModeFlags) .field("crBkgnd", &self.crBkgnd) .finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for DESKBANDINFO { fn eq(&self, other: &Self) -> bool { self.dwMask == other.dwMask && self.ptMinSize == other.ptMinSize && self.ptMaxSize == other.ptMaxSize && self.ptIntegral == other.ptIntegral && self.ptActual == other.ptActual && self.wszTitle == other.wszTitle && self.dwModeFlags == other.dwModeFlags && self.crBkgnd == other.crBkgnd } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for DESKBANDINFO {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for DESKBANDINFO { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct DESKTOP_SLIDESHOW_DIRECTION(pub i32); pub const DSD_FORWARD: DESKTOP_SLIDESHOW_DIRECTION = DESKTOP_SLIDESHOW_DIRECTION(0i32); pub const DSD_BACKWARD: DESKTOP_SLIDESHOW_DIRECTION = DESKTOP_SLIDESHOW_DIRECTION(1i32); impl ::core::convert::From<i32> for DESKTOP_SLIDESHOW_DIRECTION { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for DESKTOP_SLIDESHOW_DIRECTION { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct DESKTOP_SLIDESHOW_OPTIONS(pub i32); pub const DSO_SHUFFLEIMAGES: DESKTOP_SLIDESHOW_OPTIONS = DESKTOP_SLIDESHOW_OPTIONS(1i32); impl ::core::convert::From<i32> for DESKTOP_SLIDESHOW_OPTIONS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for DESKTOP_SLIDESHOW_OPTIONS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct DESKTOP_SLIDESHOW_STATE(pub i32); pub const DSS_ENABLED: DESKTOP_SLIDESHOW_STATE = DESKTOP_SLIDESHOW_STATE(1i32); pub const DSS_SLIDESHOW: DESKTOP_SLIDESHOW_STATE = DESKTOP_SLIDESHOW_STATE(2i32); pub const DSS_DISABLED_BY_REMOTE_SESSION: DESKTOP_SLIDESHOW_STATE = DESKTOP_SLIDESHOW_STATE(4i32); impl ::core::convert::From<i32> for DESKTOP_SLIDESHOW_STATE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for DESKTOP_SLIDESHOW_STATE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct DESKTOP_WALLPAPER_POSITION(pub i32); pub const DWPOS_CENTER: DESKTOP_WALLPAPER_POSITION = DESKTOP_WALLPAPER_POSITION(0i32); pub const DWPOS_TILE: DESKTOP_WALLPAPER_POSITION = DESKTOP_WALLPAPER_POSITION(1i32); pub const DWPOS_STRETCH: DESKTOP_WALLPAPER_POSITION = DESKTOP_WALLPAPER_POSITION(2i32); pub const DWPOS_FIT: DESKTOP_WALLPAPER_POSITION = DESKTOP_WALLPAPER_POSITION(3i32); pub const DWPOS_FILL: DESKTOP_WALLPAPER_POSITION = DESKTOP_WALLPAPER_POSITION(4i32); pub const DWPOS_SPAN: DESKTOP_WALLPAPER_POSITION = DESKTOP_WALLPAPER_POSITION(5i32); impl ::core::convert::From<i32> for DESKTOP_WALLPAPER_POSITION { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for DESKTOP_WALLPAPER_POSITION { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(all(feature = "Win32_Foundation", 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(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl DETAILSINFO {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::default::Default for DETAILSINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::cmp::PartialEq for DETAILSINFO { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::cmp::Eq for DETAILSINFO {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] unsafe impl ::windows::core::Abi for DETAILSINFO { type Abi = Self; } #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct DFConstraint(pub ::windows::core::IUnknown); impl DFConstraint { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Name(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Value(&self) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } } unsafe impl ::windows::core::Interface for DFConstraint { type Vtable = DFConstraint_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4a3df050_23bd_11d2_939f_00a0c91eedba); } impl ::core::convert::From<DFConstraint> for ::windows::core::IUnknown { fn from(value: DFConstraint) -> Self { value.0 } } impl ::core::convert::From<&DFConstraint> for ::windows::core::IUnknown { fn from(value: &DFConstraint) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for DFConstraint { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a DFConstraint { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<DFConstraint> for super::super::System::Com::IDispatch { fn from(value: DFConstraint) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&DFConstraint> for super::super::System::Com::IDispatch { fn from(value: &DFConstraint) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for DFConstraint { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &DFConstraint { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct DFConstraint_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pv: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); #[derive(:: core :: clone :: Clone)] #[repr(C)] #[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: ::core::option::Option<::windows::core::IUnknown>, } #[cfg(feature = "Win32_Foundation")] impl DFMICS {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for DFMICS { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for DFMICS { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("DFMICS").field("cbSize", &self.cbSize).field("fMask", &self.fMask).field("lParam", &self.lParam).field("idCmdFirst", &self.idCmdFirst).field("idDefMax", &self.idDefMax).field("pici", &self.pici).field("punkSite", &self.punkSite).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for DFMICS { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.fMask == other.fMask && self.lParam == other.lParam && self.idCmdFirst == other.idCmdFirst && self.idDefMax == other.idDefMax && self.pici == other.pici && self.punkSite == other.punkSite } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for DFMICS {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for DFMICS { type Abi = ::core::mem::ManuallyDrop<Self>; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct DFM_CMD(pub i32); pub const DFM_CMD_DELETE: DFM_CMD = DFM_CMD(-1i32); pub const DFM_CMD_MOVE: DFM_CMD = DFM_CMD(-2i32); pub const DFM_CMD_COPY: DFM_CMD = DFM_CMD(-3i32); pub const DFM_CMD_LINK: DFM_CMD = DFM_CMD(-4i32); pub const DFM_CMD_PROPERTIES: DFM_CMD = DFM_CMD(-5i32); pub const DFM_CMD_NEWFOLDER: DFM_CMD = DFM_CMD(-6i32); pub const DFM_CMD_PASTE: DFM_CMD = DFM_CMD(-7i32); pub const DFM_CMD_VIEWLIST: DFM_CMD = DFM_CMD(-8i32); pub const DFM_CMD_VIEWDETAILS: DFM_CMD = DFM_CMD(-9i32); pub const DFM_CMD_PASTELINK: DFM_CMD = DFM_CMD(-10i32); pub const DFM_CMD_PASTESPECIAL: DFM_CMD = DFM_CMD(-11i32); pub const DFM_CMD_MODALPROP: DFM_CMD = DFM_CMD(-12i32); pub const DFM_CMD_RENAME: DFM_CMD = DFM_CMD(-13i32); impl ::core::convert::From<i32> for DFM_CMD { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for DFM_CMD { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct DFM_MESSAGE_ID(pub i32); pub const DFM_MERGECONTEXTMENU: DFM_MESSAGE_ID = DFM_MESSAGE_ID(1i32); pub const DFM_INVOKECOMMAND: DFM_MESSAGE_ID = DFM_MESSAGE_ID(2i32); pub const DFM_GETHELPTEXT: DFM_MESSAGE_ID = DFM_MESSAGE_ID(5i32); pub const DFM_WM_MEASUREITEM: DFM_MESSAGE_ID = DFM_MESSAGE_ID(6i32); pub const DFM_WM_DRAWITEM: DFM_MESSAGE_ID = DFM_MESSAGE_ID(7i32); pub const DFM_WM_INITMENUPOPUP: DFM_MESSAGE_ID = DFM_MESSAGE_ID(8i32); pub const DFM_VALIDATECMD: DFM_MESSAGE_ID = DFM_MESSAGE_ID(9i32); pub const DFM_MERGECONTEXTMENU_TOP: DFM_MESSAGE_ID = DFM_MESSAGE_ID(10i32); pub const DFM_GETHELPTEXTW: DFM_MESSAGE_ID = DFM_MESSAGE_ID(11i32); pub const DFM_INVOKECOMMANDEX: DFM_MESSAGE_ID = DFM_MESSAGE_ID(12i32); pub const DFM_MAPCOMMANDNAME: DFM_MESSAGE_ID = DFM_MESSAGE_ID(13i32); pub const DFM_GETDEFSTATICID: DFM_MESSAGE_ID = DFM_MESSAGE_ID(14i32); pub const DFM_GETVERBW: DFM_MESSAGE_ID = DFM_MESSAGE_ID(15i32); pub const DFM_GETVERBA: DFM_MESSAGE_ID = DFM_MESSAGE_ID(16i32); pub const DFM_MERGECONTEXTMENU_BOTTOM: DFM_MESSAGE_ID = DFM_MESSAGE_ID(17i32); pub const DFM_MODIFYQCMFLAGS: DFM_MESSAGE_ID = DFM_MESSAGE_ID(18i32); impl ::core::convert::From<i32> for DFM_MESSAGE_ID { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for DFM_MESSAGE_ID { type Abi = Self; } pub const DISPID_BEGINDRAG: u32 = 204u32; pub const DISPID_CHECKSTATECHANGED: u32 = 209u32; pub const DISPID_COLUMNSCHANGED: u32 = 212u32; pub const DISPID_CONTENTSCHANGED: u32 = 207u32; pub const DISPID_CTRLMOUSEWHEEL: u32 = 213u32; pub const DISPID_DEFAULTVERBINVOKED: u32 = 203u32; pub const DISPID_ENTERPRESSED: u32 = 200u32; pub const DISPID_ENTERPRISEIDCHANGED: u32 = 224u32; pub const DISPID_EXPLORERWINDOWREADY: u32 = 221u32; pub const DISPID_FILELISTENUMDONE: u32 = 201u32; pub const DISPID_FILTERINVOKED: u32 = 218u32; pub const DISPID_FOCUSCHANGED: u32 = 208u32; pub const DISPID_FOLDERCHANGED: u32 = 217u32; pub const DISPID_IADCCTL_DEFAULTCAT: u32 = 262u32; pub const DISPID_IADCCTL_DIRTY: u32 = 256u32; pub const DISPID_IADCCTL_FORCEX86: u32 = 259u32; pub const DISPID_IADCCTL_ONDOMAIN: u32 = 261u32; pub const DISPID_IADCCTL_PUBCAT: u32 = 257u32; pub const DISPID_IADCCTL_SHOWPOSTSETUP: u32 = 260u32; pub const DISPID_IADCCTL_SORT: u32 = 258u32; pub const DISPID_ICONSIZECHANGED: u32 = 215u32; pub const DISPID_INITIALENUMERATIONDONE: u32 = 223u32; pub const DISPID_NOITEMSTATE_CHANGED: u32 = 206u32; pub const DISPID_ORDERCHANGED: u32 = 210u32; pub const DISPID_SEARCHCOMMAND_ABORT: u32 = 3u32; pub const DISPID_SEARCHCOMMAND_COMPLETE: u32 = 2u32; pub const DISPID_SEARCHCOMMAND_ERROR: u32 = 6u32; pub const DISPID_SEARCHCOMMAND_PROGRESSTEXT: u32 = 5u32; pub const DISPID_SEARCHCOMMAND_RESTORE: u32 = 7u32; pub const DISPID_SEARCHCOMMAND_START: u32 = 1u32; pub const DISPID_SEARCHCOMMAND_UPDATE: u32 = 4u32; pub const DISPID_SELECTEDITEMCHANGED: u32 = 220u32; pub const DISPID_SELECTIONCHANGED: u32 = 200u32; pub const DISPID_SORTDONE: u32 = 214u32; pub const DISPID_UPDATEIMAGE: u32 = 222u32; pub const DISPID_VERBINVOKED: u32 = 202u32; pub const DISPID_VIEWMODECHANGED: u32 = 205u32; pub const DISPID_VIEWPAINTDONE: u32 = 211u32; pub const DISPID_WORDWHEELEDITED: u32 = 219u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct DISPLAY_DEVICE_TYPE(pub i32); pub const DEVICE_PRIMARY: DISPLAY_DEVICE_TYPE = DISPLAY_DEVICE_TYPE(0i32); pub const DEVICE_IMMERSIVE: DISPLAY_DEVICE_TYPE = DISPLAY_DEVICE_TYPE(1i32); impl ::core::convert::From<i32> for DISPLAY_DEVICE_TYPE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for DISPLAY_DEVICE_TYPE { type Abi = Self; } pub const DLG_SCRNSAVECONFIGURE: u32 = 2003u32; pub type DLLGETVERSIONPROC = unsafe extern "system" fn(param0: *mut DLLVERSIONINFO) -> ::windows::core::HRESULT; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct DLLVERSIONINFO { pub cbSize: u32, pub dwMajorVersion: u32, pub dwMinorVersion: u32, pub dwBuildNumber: u32, pub dwPlatformID: u32, } impl DLLVERSIONINFO {} impl ::core::default::Default for DLLVERSIONINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for DLLVERSIONINFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("DLLVERSIONINFO").field("cbSize", &self.cbSize).field("dwMajorVersion", &self.dwMajorVersion).field("dwMinorVersion", &self.dwMinorVersion).field("dwBuildNumber", &self.dwBuildNumber).field("dwPlatformID", &self.dwPlatformID).finish() } } impl ::core::cmp::PartialEq for DLLVERSIONINFO { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.dwMajorVersion == other.dwMajorVersion && self.dwMinorVersion == other.dwMinorVersion && self.dwBuildNumber == other.dwBuildNumber && self.dwPlatformID == other.dwPlatformID } } impl ::core::cmp::Eq for DLLVERSIONINFO {} unsafe impl ::windows::core::Abi for DLLVERSIONINFO { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct DLLVERSIONINFO2 { pub info1: DLLVERSIONINFO, pub dwFlags: u32, pub ullVersion: u64, } impl DLLVERSIONINFO2 {} impl ::core::default::Default for DLLVERSIONINFO2 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for DLLVERSIONINFO2 { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("DLLVERSIONINFO2").field("info1", &self.info1).field("dwFlags", &self.dwFlags).field("ullVersion", &self.ullVersion).finish() } } impl ::core::cmp::PartialEq for DLLVERSIONINFO2 { fn eq(&self, other: &Self) -> bool { self.info1 == other.info1 && self.dwFlags == other.dwFlags && self.ullVersion == other.ullVersion } } impl ::core::cmp::Eq for DLLVERSIONINFO2 {} unsafe impl ::windows::core::Abi for DLLVERSIONINFO2 { type Abi = Self; } pub const DLLVER_BUILD_MASK: u64 = 4294901760u64; pub const DLLVER_MAJOR_MASK: u64 = 18446462598732840960u64; pub const DLLVER_MINOR_MASK: u64 = 281470681743360u64; pub const DLLVER_PLATFORM_NT: u32 = 2u32; pub const DLLVER_PLATFORM_WINDOWS: u32 = 1u32; pub const DLLVER_QFE_MASK: u64 = 65535u64; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] pub struct DRAGINFOA { pub uSize: u32, pub pt: super::super::Foundation::POINT, pub fNC: super::super::Foundation::BOOL, pub lpFileList: super::super::Foundation::PSTR, pub grfKeyState: u32, } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl DRAGINFOA {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for DRAGINFOA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for DRAGINFOA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("DRAGINFOA").field("uSize", &self.uSize).field("pt", &self.pt).field("fNC", &self.fNC).field("lpFileList", &self.lpFileList).field("grfKeyState", &self.grfKeyState).finish() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for DRAGINFOA { fn eq(&self, other: &Self) -> bool { self.uSize == other.uSize && self.pt == other.pt && self.fNC == other.fNC && self.lpFileList == other.lpFileList && self.grfKeyState == other.grfKeyState } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for DRAGINFOA {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for DRAGINFOA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(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: super::super::Foundation::PSTR, pub grfKeyState: u32, } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl DRAGINFOA {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for DRAGINFOA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for DRAGINFOA { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for DRAGINFOA {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for DRAGINFOA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] pub struct DRAGINFOW { pub uSize: u32, pub pt: super::super::Foundation::POINT, pub fNC: super::super::Foundation::BOOL, pub lpFileList: super::super::Foundation::PWSTR, pub grfKeyState: u32, } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl DRAGINFOW {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for DRAGINFOW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for DRAGINFOW { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("DRAGINFOW").field("uSize", &self.uSize).field("pt", &self.pt).field("fNC", &self.fNC).field("lpFileList", &self.lpFileList).field("grfKeyState", &self.grfKeyState).finish() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for DRAGINFOW { fn eq(&self, other: &Self) -> bool { self.uSize == other.uSize && self.pt == other.pt && self.fNC == other.fNC && self.lpFileList == other.lpFileList && self.grfKeyState == other.grfKeyState } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for DRAGINFOW {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for DRAGINFOW { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(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: super::super::Foundation::PWSTR, pub grfKeyState: u32, } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl DRAGINFOW {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for DRAGINFOW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for DRAGINFOW { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for DRAGINFOW {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for DRAGINFOW { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] pub struct DROPDESCRIPTION { pub r#type: DROPIMAGETYPE, pub szMessage: [u16; 260], pub szInsert: [u16; 260], } impl DROPDESCRIPTION {} impl ::core::default::Default for DROPDESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::cmp::PartialEq for DROPDESCRIPTION { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } impl ::core::cmp::Eq for DROPDESCRIPTION {} unsafe impl ::windows::core::Abi for DROPDESCRIPTION { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[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 DROPFILES {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for DROPFILES { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for DROPFILES { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for DROPFILES {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for DROPFILES { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct DROPIMAGETYPE(pub i32); pub const DROPIMAGE_INVALID: DROPIMAGETYPE = DROPIMAGETYPE(-1i32); pub const DROPIMAGE_NONE: DROPIMAGETYPE = DROPIMAGETYPE(0i32); pub const DROPIMAGE_COPY: DROPIMAGETYPE = DROPIMAGETYPE(1i32); pub const DROPIMAGE_MOVE: DROPIMAGETYPE = DROPIMAGETYPE(2i32); pub const DROPIMAGE_LINK: DROPIMAGETYPE = DROPIMAGETYPE(4i32); pub const DROPIMAGE_LABEL: DROPIMAGETYPE = DROPIMAGETYPE(6i32); pub const DROPIMAGE_WARNING: DROPIMAGETYPE = DROPIMAGETYPE(7i32); pub const DROPIMAGE_NOIMAGE: DROPIMAGETYPE = DROPIMAGETYPE(8i32); impl ::core::convert::From<i32> for DROPIMAGETYPE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for DROPIMAGETYPE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct DSH_FLAGS(pub i32); pub const DSH_ALLOWDROPDESCRIPTIONTEXT: DSH_FLAGS = DSH_FLAGS(1i32); impl ::core::convert::From<i32> for DSH_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for DSH_FLAGS { type Abi = Self; } #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct DShellFolderViewEvents(pub ::windows::core::IUnknown); impl DShellFolderViewEvents {} unsafe impl ::windows::core::Interface for DShellFolderViewEvents { type Vtable = DShellFolderViewEvents_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x62112aa2_ebe4_11cf_a5fb_0020afe7292d); } impl ::core::convert::From<DShellFolderViewEvents> for ::windows::core::IUnknown { fn from(value: DShellFolderViewEvents) -> Self { value.0 } } impl ::core::convert::From<&DShellFolderViewEvents> for ::windows::core::IUnknown { fn from(value: &DShellFolderViewEvents) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for DShellFolderViewEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a DShellFolderViewEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<DShellFolderViewEvents> for super::super::System::Com::IDispatch { fn from(value: DShellFolderViewEvents) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&DShellFolderViewEvents> for super::super::System::Com::IDispatch { fn from(value: &DShellFolderViewEvents) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for DShellFolderViewEvents { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &DShellFolderViewEvents { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct DShellFolderViewEvents_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct DShellNameSpaceEvents(pub ::windows::core::IUnknown); impl DShellNameSpaceEvents {} unsafe impl ::windows::core::Interface for DShellNameSpaceEvents { type Vtable = DShellNameSpaceEvents_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x55136806_b2de_11d1_b9f2_00a0c98bc547); } impl ::core::convert::From<DShellNameSpaceEvents> for ::windows::core::IUnknown { fn from(value: DShellNameSpaceEvents) -> Self { value.0 } } impl ::core::convert::From<&DShellNameSpaceEvents> for ::windows::core::IUnknown { fn from(value: &DShellNameSpaceEvents) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for DShellNameSpaceEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a DShellNameSpaceEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<DShellNameSpaceEvents> for super::super::System::Com::IDispatch { fn from(value: DShellNameSpaceEvents) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&DShellNameSpaceEvents> for super::super::System::Com::IDispatch { fn from(value: &DShellNameSpaceEvents) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for DShellNameSpaceEvents { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &DShellNameSpaceEvents { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct DShellNameSpaceEvents_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct DShellWindowsEvents(pub ::windows::core::IUnknown); impl DShellWindowsEvents {} unsafe impl ::windows::core::Interface for DShellWindowsEvents { type Vtable = DShellWindowsEvents_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfe4106e0_399a_11d0_a48c_00a0c90a8f39); } impl ::core::convert::From<DShellWindowsEvents> for ::windows::core::IUnknown { fn from(value: DShellWindowsEvents) -> Self { value.0 } } impl ::core::convert::From<&DShellWindowsEvents> for ::windows::core::IUnknown { fn from(value: &DShellWindowsEvents) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for DShellWindowsEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a DShellWindowsEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<DShellWindowsEvents> for super::super::System::Com::IDispatch { fn from(value: DShellWindowsEvents) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&DShellWindowsEvents> for super::super::System::Com::IDispatch { fn from(value: &DShellWindowsEvents) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for DShellWindowsEvents { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &DShellWindowsEvents { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct DShellWindowsEvents_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); pub const DVASPECT_COPY: u32 = 3u32; pub const DVASPECT_LINK: u32 = 4u32; pub const DVASPECT_SHORTNAME: u32 = 2u32; pub const DWFAF_AUTOHIDE: u32 = 16u32; pub const DWFAF_GROUP1: u32 = 2u32; pub const DWFAF_GROUP2: u32 = 4u32; pub const DWFAF_HIDDEN: u32 = 1u32; pub const DWFRF_DELETECONFIGDATA: u32 = 1u32; pub const DWFRF_NORMAL: u32 = 0u32; #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct DWebBrowserEvents(pub ::windows::core::IUnknown); impl DWebBrowserEvents {} unsafe impl ::windows::core::Interface for DWebBrowserEvents { type Vtable = DWebBrowserEvents_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xeab22ac2_30c1_11cf_a7eb_0000c05bae0b); } impl ::core::convert::From<DWebBrowserEvents> for ::windows::core::IUnknown { fn from(value: DWebBrowserEvents) -> Self { value.0 } } impl ::core::convert::From<&DWebBrowserEvents> for ::windows::core::IUnknown { fn from(value: &DWebBrowserEvents) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for DWebBrowserEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a DWebBrowserEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<DWebBrowserEvents> for super::super::System::Com::IDispatch { fn from(value: DWebBrowserEvents) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&DWebBrowserEvents> for super::super::System::Com::IDispatch { fn from(value: &DWebBrowserEvents) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for DWebBrowserEvents { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &DWebBrowserEvents { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct DWebBrowserEvents_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct DWebBrowserEvents2(pub ::windows::core::IUnknown); impl DWebBrowserEvents2 {} unsafe impl ::windows::core::Interface for DWebBrowserEvents2 { type Vtable = DWebBrowserEvents2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x34a715a0_6587_11d0_924a_0020afc7ac4d); } impl ::core::convert::From<DWebBrowserEvents2> for ::windows::core::IUnknown { fn from(value: DWebBrowserEvents2) -> Self { value.0 } } impl ::core::convert::From<&DWebBrowserEvents2> for ::windows::core::IUnknown { fn from(value: &DWebBrowserEvents2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for DWebBrowserEvents2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a DWebBrowserEvents2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<DWebBrowserEvents2> for super::super::System::Com::IDispatch { fn from(value: DWebBrowserEvents2) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&DWebBrowserEvents2> for super::super::System::Com::IDispatch { fn from(value: &DWebBrowserEvents2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for DWebBrowserEvents2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &DWebBrowserEvents2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct DWebBrowserEvents2_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); pub const DefFolderMenu: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc63382be_7933_48d0_9ac8_85fb46be2fdd); #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DefSubclassProc<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(hwnd: Param0, umsg: u32, wparam: Param2, lparam: Param3) -> super::super::Foundation::LRESULT { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DefSubclassProc(hwnd: super::super::Foundation::HWND, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT; } ::core::mem::transmute(DefSubclassProc(hwnd.into_param().abi(), ::core::mem::transmute(umsg), wparam.into_param().abi(), lparam.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DeleteProfileA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(lpsidstring: Param0, lpprofilepath: Param1, lpcomputername: Param2) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DeleteProfileA(lpsidstring: super::super::Foundation::PSTR, lpprofilepath: super::super::Foundation::PSTR, lpcomputername: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(DeleteProfileA(lpsidstring.into_param().abi(), lpprofilepath.into_param().abi(), lpcomputername.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DeleteProfileW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(lpsidstring: Param0, lpprofilepath: Param1, lpcomputername: Param2) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DeleteProfileW(lpsidstring: super::super::Foundation::PWSTR, lpprofilepath: super::super::Foundation::PWSTR, lpcomputername: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(DeleteProfileW(lpsidstring.into_param().abi(), lpprofilepath.into_param().abi(), lpcomputername.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const DesktopGadget: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x924ccc1b_6562_4c85_8657_d177925222b6); pub const DesktopWallpaper: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc2cf3110_460e_4fc1_b9d0_8a1c0c9cc4bd); pub const DestinationList: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x77f10cf0_3db5_4966_b520_b7c54fd35ed6); #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DoEnvironmentSubstA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszsrc: Param0, cchsrc: u32) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DoEnvironmentSubstA(pszsrc: super::super::Foundation::PSTR, cchsrc: u32) -> u32; } ::core::mem::transmute(DoEnvironmentSubstA(pszsrc.into_param().abi(), ::core::mem::transmute(cchsrc))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DoEnvironmentSubstW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszsrc: Param0, cchsrc: u32) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DoEnvironmentSubstW(pszsrc: super::super::Foundation::PWSTR, cchsrc: u32) -> u32; } ::core::mem::transmute(DoEnvironmentSubstW(pszsrc.into_param().abi(), ::core::mem::transmute(cchsrc))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const DocPropShellExtension: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x883373c3_bf89_11d1_be35_080036b11a03); #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DragAcceptFiles<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(hwnd: Param0, faccept: Param1) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DragAcceptFiles(hwnd: super::super::Foundation::HWND, faccept: super::super::Foundation::BOOL); } ::core::mem::transmute(DragAcceptFiles(hwnd.into_param().abi(), faccept.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn DragFinish<'a, Param0: ::windows::core::IntoParam<'a, HDROP>>(hdrop: Param0) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DragFinish(hdrop: HDROP); } ::core::mem::transmute(DragFinish(hdrop.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DragQueryFileA<'a, Param0: ::windows::core::IntoParam<'a, HDROP>>(hdrop: Param0, ifile: u32, lpszfile: super::super::Foundation::PSTR, cch: u32) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DragQueryFileA(hdrop: HDROP, ifile: u32, lpszfile: super::super::Foundation::PSTR, cch: u32) -> u32; } ::core::mem::transmute(DragQueryFileA(hdrop.into_param().abi(), ::core::mem::transmute(ifile), ::core::mem::transmute(lpszfile), ::core::mem::transmute(cch))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DragQueryFileW<'a, Param0: ::windows::core::IntoParam<'a, HDROP>>(hdrop: Param0, ifile: u32, lpszfile: super::super::Foundation::PWSTR, cch: u32) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DragQueryFileW(hdrop: HDROP, ifile: u32, lpszfile: super::super::Foundation::PWSTR, cch: u32) -> u32; } ::core::mem::transmute(DragQueryFileW(hdrop.into_param().abi(), ::core::mem::transmute(ifile), ::core::mem::transmute(lpszfile), ::core::mem::transmute(cch))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DragQueryPoint<'a, Param0: ::windows::core::IntoParam<'a, HDROP>>(hdrop: Param0, ppt: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DragQueryPoint(hdrop: HDROP, ppt: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL; } ::core::mem::transmute(DragQueryPoint(hdrop.into_param().abi(), ::core::mem::transmute(ppt))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const DriveSizeCategorizer: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x94357b53_ca29_4b78_83ae_e8fe7409134f); #[inline] pub unsafe fn DriveType(idrive: i32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DriveType(idrive: i32) -> i32; } ::core::mem::transmute(DriveType(::core::mem::transmute(idrive))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const DriveTypeCategorizer: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb0a8f3cf_4333_4bab_8873_1ccb1cada48b); #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn DuplicateIcon<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HINSTANCE>, Param1: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HICON>>(hinst: Param0, hicon: Param1) -> super::WindowsAndMessaging::HICON { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DuplicateIcon(hinst: super::super::Foundation::HINSTANCE, hicon: super::WindowsAndMessaging::HICON) -> super::WindowsAndMessaging::HICON; } ::core::mem::transmute(DuplicateIcon(hinst.into_param().abi(), hicon.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct EC_HOST_UI_MODE(pub i32); pub const ECHUIM_DESKTOP: EC_HOST_UI_MODE = EC_HOST_UI_MODE(0i32); pub const ECHUIM_IMMERSIVE: EC_HOST_UI_MODE = EC_HOST_UI_MODE(1i32); pub const ECHUIM_SYSTEM_LAUNCHER: EC_HOST_UI_MODE = EC_HOST_UI_MODE(2i32); impl ::core::convert::From<i32> for EC_HOST_UI_MODE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for EC_HOST_UI_MODE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct EDGE_GESTURE_KIND(pub i32); pub const EGK_TOUCH: EDGE_GESTURE_KIND = EDGE_GESTURE_KIND(0i32); pub const EGK_KEYBOARD: EDGE_GESTURE_KIND = EDGE_GESTURE_KIND(1i32); pub const EGK_MOUSE: EDGE_GESTURE_KIND = EDGE_GESTURE_KIND(2i32); impl ::core::convert::From<i32> for EDGE_GESTURE_KIND { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for EDGE_GESTURE_KIND { type Abi = Self; } pub const EP_AdvQueryPane: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb4e9db8b_34ba_4c39_b5cc_16a1bd2c411c); pub const EP_Commands: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd9745868_ca5f_4a76_91cd_f5a129fbb076); pub const EP_Commands_Organize: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x72e81700_e3ec_4660_bf24_3c3b7b648806); pub const EP_Commands_View: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x21f7c32d_eeaa_439b_bb51_37b96fd6a943); pub const EP_DetailsPane: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x43abf98b_89b8_472d_b9ce_e69b8229f019); pub const EP_NavPane: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcb316b22_25f7_42b8_8a09_540d23a43c2f); pub const EP_PreviewPane: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x893c63d1_45c8_4d17_be19_223be71be365); pub const EP_QueryPane: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x65bcde4f_4f07_4f27_83a7_1afca4df7ddd); pub const EP_Ribbon: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd27524a8_c9f2_4834_a106_df8889fd4f37); pub const EP_StatusBar: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x65fe56ce_5cfe_4bc4_ad8a_7ae3fe7e8f7c); pub const EXECUTE_E_LAUNCH_APPLICATION: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927487i32 as _); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct EXPLORER_BROWSER_FILL_FLAGS(pub i32); pub const EBF_NONE: EXPLORER_BROWSER_FILL_FLAGS = EXPLORER_BROWSER_FILL_FLAGS(0i32); pub const EBF_SELECTFROMDATAOBJECT: EXPLORER_BROWSER_FILL_FLAGS = EXPLORER_BROWSER_FILL_FLAGS(256i32); pub const EBF_NODROPTARGET: EXPLORER_BROWSER_FILL_FLAGS = EXPLORER_BROWSER_FILL_FLAGS(512i32); impl ::core::convert::From<i32> for EXPLORER_BROWSER_FILL_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for EXPLORER_BROWSER_FILL_FLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct EXPLORER_BROWSER_OPTIONS(pub i32); pub const EBO_NONE: EXPLORER_BROWSER_OPTIONS = EXPLORER_BROWSER_OPTIONS(0i32); pub const EBO_NAVIGATEONCE: EXPLORER_BROWSER_OPTIONS = EXPLORER_BROWSER_OPTIONS(1i32); pub const EBO_SHOWFRAMES: EXPLORER_BROWSER_OPTIONS = EXPLORER_BROWSER_OPTIONS(2i32); pub const EBO_ALWAYSNAVIGATE: EXPLORER_BROWSER_OPTIONS = EXPLORER_BROWSER_OPTIONS(4i32); pub const EBO_NOTRAVELLOG: EXPLORER_BROWSER_OPTIONS = EXPLORER_BROWSER_OPTIONS(8i32); pub const EBO_NOWRAPPERWINDOW: EXPLORER_BROWSER_OPTIONS = EXPLORER_BROWSER_OPTIONS(16i32); pub const EBO_HTMLSHAREPOINTVIEW: EXPLORER_BROWSER_OPTIONS = EXPLORER_BROWSER_OPTIONS(32i32); pub const EBO_NOBORDER: EXPLORER_BROWSER_OPTIONS = EXPLORER_BROWSER_OPTIONS(64i32); pub const EBO_NOPERSISTVIEWSTATE: EXPLORER_BROWSER_OPTIONS = EXPLORER_BROWSER_OPTIONS(128i32); impl ::core::convert::From<i32> for EXPLORER_BROWSER_OPTIONS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for EXPLORER_BROWSER_OPTIONS { type Abi = Self; } pub const EXP_DARWIN_ID_SIG: u32 = 2684354566u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(feature = "Win32_Foundation")] pub struct EXP_DARWIN_LINK { pub dbh: DATABLOCK_HEADER, pub szDarwinID: [super::super::Foundation::CHAR; 260], pub szwDarwinID: [u16; 260], } #[cfg(feature = "Win32_Foundation")] impl EXP_DARWIN_LINK {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for EXP_DARWIN_LINK { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for EXP_DARWIN_LINK { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for EXP_DARWIN_LINK {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for EXP_DARWIN_LINK { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] pub struct EXP_PROPERTYSTORAGE { pub cbSize: u32, pub dwSignature: u32, pub abPropertyStorage: [u8; 1], } impl EXP_PROPERTYSTORAGE {} impl ::core::default::Default for EXP_PROPERTYSTORAGE { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::cmp::PartialEq for EXP_PROPERTYSTORAGE { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } impl ::core::cmp::Eq for EXP_PROPERTYSTORAGE {} unsafe impl ::windows::core::Abi for EXP_PROPERTYSTORAGE { type Abi = Self; } pub const EXP_PROPERTYSTORAGE_SIG: u32 = 2684354569u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] pub struct EXP_SPECIAL_FOLDER { pub cbSize: u32, pub dwSignature: u32, pub idSpecialFolder: u32, pub cbOffset: u32, } impl EXP_SPECIAL_FOLDER {} impl ::core::default::Default for EXP_SPECIAL_FOLDER { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::cmp::PartialEq for EXP_SPECIAL_FOLDER { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } impl ::core::cmp::Eq for EXP_SPECIAL_FOLDER {} unsafe impl ::windows::core::Abi for EXP_SPECIAL_FOLDER { type Abi = Self; } pub const EXP_SPECIAL_FOLDER_SIG: u32 = 2684354565u32; pub const EXP_SZ_ICON_SIG: u32 = 2684354567u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(feature = "Win32_Foundation")] pub struct EXP_SZ_LINK { pub cbSize: u32, pub dwSignature: u32, pub szTarget: [super::super::Foundation::CHAR; 260], pub swzTarget: [u16; 260], } #[cfg(feature = "Win32_Foundation")] impl EXP_SZ_LINK {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for EXP_SZ_LINK { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for EXP_SZ_LINK { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for EXP_SZ_LINK {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for EXP_SZ_LINK { type Abi = Self; } pub const EXP_SZ_LINK_SIG: u32 = 2684354561u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct EXTRASEARCH { pub guidSearch: ::windows::core::GUID, pub wszFriendlyName: [u16; 80], pub wszUrl: [u16; 2084], } impl EXTRASEARCH {} impl ::core::default::Default for EXTRASEARCH { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for EXTRASEARCH { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("EXTRASEARCH").field("guidSearch", &self.guidSearch).field("wszFriendlyName", &self.wszFriendlyName).field("wszUrl", &self.wszUrl).finish() } } impl ::core::cmp::PartialEq for EXTRASEARCH { fn eq(&self, other: &Self) -> bool { self.guidSearch == other.guidSearch && self.wszFriendlyName == other.wszFriendlyName && self.wszUrl == other.wszUrl } } impl ::core::cmp::Eq for EXTRASEARCH {} unsafe impl ::windows::core::Abi for EXTRASEARCH { type Abi = Self; } pub const E_ACTIVATIONDENIED_SHELLERROR: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927439i32 as _); pub const E_ACTIVATIONDENIED_SHELLNOTREADY: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927436i32 as _); pub const E_ACTIVATIONDENIED_SHELLRESTART: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927438i32 as _); pub const E_ACTIVATIONDENIED_UNEXPECTED: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927437i32 as _); pub const E_ACTIVATIONDENIED_USERCLOSE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927440i32 as _); pub const E_FILE_PLACEHOLDER_NOT_INITIALIZED: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927472i32 as _); pub const E_FILE_PLACEHOLDER_SERVER_TIMED_OUT: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927470i32 as _); pub const E_FILE_PLACEHOLDER_STORAGEPROVIDER_NOT_FOUND: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927469i32 as _); pub const E_FILE_PLACEHOLDER_VERSION_MISMATCH: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927471i32 as _); pub const E_FLAGS: ::windows::core::HRESULT = ::windows::core::HRESULT(-2147217408i32 as _); pub const E_IMAGEFEED_CHANGEDISABLED: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144926960i32 as _); pub const E_NOTVALIDFORANIMATEDIMAGE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2147221503i32 as _); pub const E_PREVIEWHANDLER_CORRUPT: ::windows::core::HRESULT = ::windows::core::HRESULT(-2042494972i32 as _); pub const E_PREVIEWHANDLER_DRM_FAIL: ::windows::core::HRESULT = ::windows::core::HRESULT(-2042494975i32 as _); pub const E_PREVIEWHANDLER_NOAUTH: ::windows::core::HRESULT = ::windows::core::HRESULT(-2042494974i32 as _); pub const E_PREVIEWHANDLER_NOTFOUND: ::windows::core::HRESULT = ::windows::core::HRESULT(-2042494973i32 as _); pub const E_SHELL_EXTENSION_BLOCKED: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144926975i32 as _); pub const E_TILE_NOTIFICATIONS_PLATFORM_FAILURE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927159i32 as _); pub const E_USERTILE_CHANGEDISABLED: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927215i32 as _); pub const E_USERTILE_FILESIZE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927212i32 as _); pub const E_USERTILE_LARGEORDYNAMIC: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927214i32 as _); pub const E_USERTILE_UNSUPPORTEDFILETYPE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927216i32 as _); pub const E_USERTILE_VIDEOFRAMESIZE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927213i32 as _); pub const EnumerableObjectCollection: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2d3468c1_36a7_43b6_ac24_d3f02fd9607a); pub const ExecuteFolder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x11dbb47c_a525_400b_9e80_a54615a090c0); pub const ExecuteUnknown: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe44e9428_bdbc_4987_a099_40dc8fd255e7); pub const ExplorerBrowser: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x71f96385_ddd6_48d3_a0c1_ae06e8b055fb); #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn ExtractAssociatedIconA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HINSTANCE>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(hinst: Param0, psziconpath: Param1, piicon: *mut u16) -> super::WindowsAndMessaging::HICON { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ExtractAssociatedIconA(hinst: super::super::Foundation::HINSTANCE, psziconpath: super::super::Foundation::PSTR, piicon: *mut u16) -> super::WindowsAndMessaging::HICON; } ::core::mem::transmute(ExtractAssociatedIconA(hinst.into_param().abi(), psziconpath.into_param().abi(), ::core::mem::transmute(piicon))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn ExtractAssociatedIconExA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HINSTANCE>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(hinst: Param0, psziconpath: Param1, piiconindex: *mut u16, piiconid: *mut u16) -> super::WindowsAndMessaging::HICON { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ExtractAssociatedIconExA(hinst: super::super::Foundation::HINSTANCE, psziconpath: super::super::Foundation::PSTR, piiconindex: *mut u16, piiconid: *mut u16) -> super::WindowsAndMessaging::HICON; } ::core::mem::transmute(ExtractAssociatedIconExA(hinst.into_param().abi(), psziconpath.into_param().abi(), ::core::mem::transmute(piiconindex), ::core::mem::transmute(piiconid))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn ExtractAssociatedIconExW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HINSTANCE>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hinst: Param0, psziconpath: Param1, piiconindex: *mut u16, piiconid: *mut u16) -> super::WindowsAndMessaging::HICON { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ExtractAssociatedIconExW(hinst: super::super::Foundation::HINSTANCE, psziconpath: super::super::Foundation::PWSTR, piiconindex: *mut u16, piiconid: *mut u16) -> super::WindowsAndMessaging::HICON; } ::core::mem::transmute(ExtractAssociatedIconExW(hinst.into_param().abi(), psziconpath.into_param().abi(), ::core::mem::transmute(piiconindex), ::core::mem::transmute(piiconid))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn ExtractAssociatedIconW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HINSTANCE>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hinst: Param0, psziconpath: Param1, piicon: *mut u16) -> super::WindowsAndMessaging::HICON { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ExtractAssociatedIconW(hinst: super::super::Foundation::HINSTANCE, psziconpath: super::super::Foundation::PWSTR, piicon: *mut u16) -> super::WindowsAndMessaging::HICON; } ::core::mem::transmute(ExtractAssociatedIconW(hinst.into_param().abi(), psziconpath.into_param().abi(), ::core::mem::transmute(piicon))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn ExtractIconA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HINSTANCE>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(hinst: Param0, pszexefilename: Param1, niconindex: u32) -> super::WindowsAndMessaging::HICON { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ExtractIconA(hinst: super::super::Foundation::HINSTANCE, pszexefilename: super::super::Foundation::PSTR, niconindex: u32) -> super::WindowsAndMessaging::HICON; } ::core::mem::transmute(ExtractIconA(hinst.into_param().abi(), pszexefilename.into_param().abi(), ::core::mem::transmute(niconindex))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn ExtractIconExA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(lpszfile: Param0, niconindex: i32, phiconlarge: *mut super::WindowsAndMessaging::HICON, phiconsmall: *mut super::WindowsAndMessaging::HICON, nicons: u32) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ExtractIconExA(lpszfile: super::super::Foundation::PSTR, niconindex: i32, phiconlarge: *mut super::WindowsAndMessaging::HICON, phiconsmall: *mut super::WindowsAndMessaging::HICON, nicons: u32) -> u32; } ::core::mem::transmute(ExtractIconExA(lpszfile.into_param().abi(), ::core::mem::transmute(niconindex), ::core::mem::transmute(phiconlarge), ::core::mem::transmute(phiconsmall), ::core::mem::transmute(nicons))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn ExtractIconExW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(lpszfile: Param0, niconindex: i32, phiconlarge: *mut super::WindowsAndMessaging::HICON, phiconsmall: *mut super::WindowsAndMessaging::HICON, nicons: u32) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ExtractIconExW(lpszfile: super::super::Foundation::PWSTR, niconindex: i32, phiconlarge: *mut super::WindowsAndMessaging::HICON, phiconsmall: *mut super::WindowsAndMessaging::HICON, nicons: u32) -> u32; } ::core::mem::transmute(ExtractIconExW(lpszfile.into_param().abi(), ::core::mem::transmute(niconindex), ::core::mem::transmute(phiconlarge), ::core::mem::transmute(phiconsmall), ::core::mem::transmute(nicons))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn ExtractIconW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HINSTANCE>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hinst: Param0, pszexefilename: Param1, niconindex: u32) -> super::WindowsAndMessaging::HICON { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ExtractIconW(hinst: super::super::Foundation::HINSTANCE, pszexefilename: super::super::Foundation::PWSTR, niconindex: u32) -> super::WindowsAndMessaging::HICON; } ::core::mem::transmute(ExtractIconW(hinst.into_param().abi(), pszexefilename.into_param().abi(), ::core::mem::transmute(niconindex))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const FCIDM_BROWSERFIRST: u32 = 40960u32; pub const FCIDM_BROWSERLAST: u32 = 48896u32; pub const FCIDM_GLOBALFIRST: u32 = 32768u32; pub const FCIDM_GLOBALLAST: u32 = 40959u32; pub const FCIDM_MENU_EDIT: u32 = 32832u32; pub const FCIDM_MENU_EXPLORE: u32 = 33104u32; pub const FCIDM_MENU_FAVORITES: u32 = 33136u32; pub const FCIDM_MENU_FILE: u32 = 32768u32; pub const FCIDM_MENU_FIND: u32 = 33088u32; pub const FCIDM_MENU_HELP: u32 = 33024u32; pub const FCIDM_MENU_TOOLS: u32 = 32960u32; pub const FCIDM_MENU_TOOLS_SEP_GOTO: u32 = 32961u32; pub const FCIDM_MENU_VIEW: u32 = 32896u32; pub const FCIDM_MENU_VIEW_SEP_OPTIONS: u32 = 32897u32; pub const FCIDM_SHVIEWFIRST: u32 = 0u32; pub const FCIDM_SHVIEWLAST: u32 = 32767u32; pub const FCIDM_STATUS: u32 = 40961u32; pub const FCIDM_TOOLBAR: u32 = 40960u32; pub const FCSM_CLSID: u32 = 8u32; pub const FCSM_FLAGS: u32 = 64u32; pub const FCSM_ICONFILE: u32 = 16u32; pub const FCSM_INFOTIP: u32 = 4u32; pub const FCSM_LOGO: u32 = 32u32; pub const FCSM_VIEWID: u32 = 1u32; pub const FCSM_WEBVIEWTEMPLATE: u32 = 2u32; pub const FCS_FLAG_DRAGDROP: u32 = 2u32; pub const FCS_FORCEWRITE: u32 = 2u32; pub const FCS_READ: u32 = 1u32; pub const FCT_ADDTOEND: u32 = 4u32; pub const FCT_CONFIGABLE: u32 = 2u32; pub const FCT_MERGE: u32 = 1u32; pub const FCW_INTERNETBAR: u32 = 6u32; pub const FCW_PROGRESS: u32 = 8u32; pub const FCW_STATUS: u32 = 1u32; pub const FCW_TOOLBAR: u32 = 2u32; pub const FCW_TREE: u32 = 3u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct FDAP(pub i32); pub const FDAP_BOTTOM: FDAP = FDAP(0i32); pub const FDAP_TOP: FDAP = FDAP(1i32); impl ::core::convert::From<i32> for FDAP { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for FDAP { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct FDE_OVERWRITE_RESPONSE(pub i32); pub const FDEOR_DEFAULT: FDE_OVERWRITE_RESPONSE = FDE_OVERWRITE_RESPONSE(0i32); pub const FDEOR_ACCEPT: FDE_OVERWRITE_RESPONSE = FDE_OVERWRITE_RESPONSE(1i32); pub const FDEOR_REFUSE: FDE_OVERWRITE_RESPONSE = FDE_OVERWRITE_RESPONSE(2i32); impl ::core::convert::From<i32> for FDE_OVERWRITE_RESPONSE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for FDE_OVERWRITE_RESPONSE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct FDE_SHAREVIOLATION_RESPONSE(pub i32); pub const FDESVR_DEFAULT: FDE_SHAREVIOLATION_RESPONSE = FDE_SHAREVIOLATION_RESPONSE(0i32); pub const FDESVR_ACCEPT: FDE_SHAREVIOLATION_RESPONSE = FDE_SHAREVIOLATION_RESPONSE(1i32); pub const FDESVR_REFUSE: FDE_SHAREVIOLATION_RESPONSE = FDE_SHAREVIOLATION_RESPONSE(2i32); impl ::core::convert::From<i32> for FDE_SHAREVIOLATION_RESPONSE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for FDE_SHAREVIOLATION_RESPONSE { type Abi = Self; } pub const FDTF_LONGDATE: u32 = 4u32; pub const FDTF_LONGTIME: u32 = 8u32; pub const FDTF_LTRDATE: u32 = 256u32; pub const FDTF_NOAUTOREADINGORDER: u32 = 1024u32; pub const FDTF_RELATIVE: u32 = 16u32; pub const FDTF_RTLDATE: u32 = 512u32; pub const FDTF_SHORTDATE: u32 = 2u32; pub const FDTF_SHORTTIME: u32 = 1u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct FD_FLAGS(pub i32); pub const FD_CLSID: FD_FLAGS = FD_FLAGS(1i32); pub const FD_SIZEPOINT: FD_FLAGS = FD_FLAGS(2i32); pub const FD_ATTRIBUTES: FD_FLAGS = FD_FLAGS(4i32); pub const FD_CREATETIME: FD_FLAGS = FD_FLAGS(8i32); pub const FD_ACCESSTIME: FD_FLAGS = FD_FLAGS(16i32); pub const FD_WRITESTIME: FD_FLAGS = FD_FLAGS(32i32); pub const FD_FILESIZE: FD_FLAGS = FD_FLAGS(64i32); pub const FD_PROGRESSUI: FD_FLAGS = FD_FLAGS(16384i32); pub const FD_LINKUI: FD_FLAGS = FD_FLAGS(32768i32); pub const FD_UNICODE: FD_FLAGS = FD_FLAGS(-2147483648i32); impl ::core::convert::From<i32> for FD_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for FD_FLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct FFFP_MODE(pub i32); pub const FFFP_EXACTMATCH: FFFP_MODE = FFFP_MODE(0i32); pub const FFFP_NEARESTPARENTMATCH: FFFP_MODE = FFFP_MODE(1i32); impl ::core::convert::From<i32> for FFFP_MODE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for FFFP_MODE { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(feature = "Win32_Foundation")] pub struct FILEDESCRIPTORA { pub dwFlags: u32, pub clsid: ::windows::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: [super::super::Foundation::CHAR; 260], } #[cfg(feature = "Win32_Foundation")] impl FILEDESCRIPTORA {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FILEDESCRIPTORA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FILEDESCRIPTORA { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FILEDESCRIPTORA {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for FILEDESCRIPTORA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(feature = "Win32_Foundation")] pub struct FILEDESCRIPTORW { pub dwFlags: u32, pub clsid: ::windows::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 FILEDESCRIPTORW {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FILEDESCRIPTORW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FILEDESCRIPTORW { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FILEDESCRIPTORW {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for FILEDESCRIPTORW { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(feature = "Win32_Foundation")] pub struct FILEGROUPDESCRIPTORA { pub cItems: u32, pub fgd: [FILEDESCRIPTORA; 1], } #[cfg(feature = "Win32_Foundation")] impl FILEGROUPDESCRIPTORA {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FILEGROUPDESCRIPTORA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FILEGROUPDESCRIPTORA { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FILEGROUPDESCRIPTORA {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for FILEGROUPDESCRIPTORA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(feature = "Win32_Foundation")] pub struct FILEGROUPDESCRIPTORW { pub cItems: u32, pub fgd: [FILEDESCRIPTORW; 1], } #[cfg(feature = "Win32_Foundation")] impl FILEGROUPDESCRIPTORW {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FILEGROUPDESCRIPTORW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FILEGROUPDESCRIPTORW { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FILEGROUPDESCRIPTORW {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for FILEGROUPDESCRIPTORW { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct FILETYPEATTRIBUTEFLAGS(pub i32); pub const FTA_None: FILETYPEATTRIBUTEFLAGS = FILETYPEATTRIBUTEFLAGS(0i32); pub const FTA_Exclude: FILETYPEATTRIBUTEFLAGS = FILETYPEATTRIBUTEFLAGS(1i32); pub const FTA_Show: FILETYPEATTRIBUTEFLAGS = FILETYPEATTRIBUTEFLAGS(2i32); pub const FTA_HasExtension: FILETYPEATTRIBUTEFLAGS = FILETYPEATTRIBUTEFLAGS(4i32); pub const FTA_NoEdit: FILETYPEATTRIBUTEFLAGS = FILETYPEATTRIBUTEFLAGS(8i32); pub const FTA_NoRemove: FILETYPEATTRIBUTEFLAGS = FILETYPEATTRIBUTEFLAGS(16i32); pub const FTA_NoNewVerb: FILETYPEATTRIBUTEFLAGS = FILETYPEATTRIBUTEFLAGS(32i32); pub const FTA_NoEditVerb: FILETYPEATTRIBUTEFLAGS = FILETYPEATTRIBUTEFLAGS(64i32); pub const FTA_NoRemoveVerb: FILETYPEATTRIBUTEFLAGS = FILETYPEATTRIBUTEFLAGS(128i32); pub const FTA_NoEditDesc: FILETYPEATTRIBUTEFLAGS = FILETYPEATTRIBUTEFLAGS(256i32); pub const FTA_NoEditIcon: FILETYPEATTRIBUTEFLAGS = FILETYPEATTRIBUTEFLAGS(512i32); pub const FTA_NoEditDflt: FILETYPEATTRIBUTEFLAGS = FILETYPEATTRIBUTEFLAGS(1024i32); pub const FTA_NoEditVerbCmd: FILETYPEATTRIBUTEFLAGS = FILETYPEATTRIBUTEFLAGS(2048i32); pub const FTA_NoEditVerbExe: FILETYPEATTRIBUTEFLAGS = FILETYPEATTRIBUTEFLAGS(4096i32); pub const FTA_NoDDE: FILETYPEATTRIBUTEFLAGS = FILETYPEATTRIBUTEFLAGS(8192i32); pub const FTA_NoEditMIME: FILETYPEATTRIBUTEFLAGS = FILETYPEATTRIBUTEFLAGS(32768i32); pub const FTA_OpenIsSafe: FILETYPEATTRIBUTEFLAGS = FILETYPEATTRIBUTEFLAGS(65536i32); pub const FTA_AlwaysUnsafe: FILETYPEATTRIBUTEFLAGS = FILETYPEATTRIBUTEFLAGS(131072i32); pub const FTA_NoRecentDocs: FILETYPEATTRIBUTEFLAGS = FILETYPEATTRIBUTEFLAGS(1048576i32); pub const FTA_SafeForElevation: FILETYPEATTRIBUTEFLAGS = FILETYPEATTRIBUTEFLAGS(2097152i32); pub const FTA_AlwaysUseDirectInvoke: FILETYPEATTRIBUTEFLAGS = FILETYPEATTRIBUTEFLAGS(4194304i32); impl ::core::convert::From<i32> for FILETYPEATTRIBUTEFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for FILETYPEATTRIBUTEFLAGS { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] pub struct FILE_ATTRIBUTES_ARRAY { pub cItems: u32, pub dwSumFileAttributes: u32, pub dwProductFileAttributes: u32, pub rgdwFileAttributes: [u32; 1], } impl FILE_ATTRIBUTES_ARRAY {} impl ::core::default::Default for FILE_ATTRIBUTES_ARRAY { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::cmp::PartialEq for FILE_ATTRIBUTES_ARRAY { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } impl ::core::cmp::Eq for FILE_ATTRIBUTES_ARRAY {} unsafe impl ::windows::core::Abi for FILE_ATTRIBUTES_ARRAY { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct FILE_OPERATION_FLAGS2(pub i32); pub const FOF2_NONE: FILE_OPERATION_FLAGS2 = FILE_OPERATION_FLAGS2(0i32); pub const FOF2_MERGEFOLDERSONCOLLISION: FILE_OPERATION_FLAGS2 = FILE_OPERATION_FLAGS2(1i32); impl ::core::convert::From<i32> for FILE_OPERATION_FLAGS2 { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for FILE_OPERATION_FLAGS2 { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct FILE_USAGE_TYPE(pub i32); pub const FUT_PLAYING: FILE_USAGE_TYPE = FILE_USAGE_TYPE(0i32); pub const FUT_EDITING: FILE_USAGE_TYPE = FILE_USAGE_TYPE(1i32); pub const FUT_GENERIC: FILE_USAGE_TYPE = FILE_USAGE_TYPE(2i32); impl ::core::convert::From<i32> for FILE_USAGE_TYPE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for FILE_USAGE_TYPE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct FLYOUT_PLACEMENT(pub i32); pub const FP_DEFAULT: FLYOUT_PLACEMENT = FLYOUT_PLACEMENT(0i32); pub const FP_ABOVE: FLYOUT_PLACEMENT = FLYOUT_PLACEMENT(1i32); pub const FP_BELOW: FLYOUT_PLACEMENT = FLYOUT_PLACEMENT(2i32); pub const FP_LEFT: FLYOUT_PLACEMENT = FLYOUT_PLACEMENT(3i32); pub const FP_RIGHT: FLYOUT_PLACEMENT = FLYOUT_PLACEMENT(4i32); impl ::core::convert::From<i32> for FLYOUT_PLACEMENT { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for FLYOUT_PLACEMENT { type Abi = Self; } pub const FMTID_Briefcase: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x328d8b21_7729_4bfc_954c_902b329d56b0); pub const FMTID_CustomImageProperties: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7ecd8b0e_c136_4a9b_9411_4ebd6673ccc3); pub const FMTID_DRM: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xaeac19e4_89ae_4508_b9b7_bb867abee2ed); pub const FMTID_Displaced: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9b174b33_40ff_11d2_a27e_00c04fc30871); pub const FMTID_ImageProperties: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x14b81da1_0135_4d31_96d9_6cbfc9671a99); pub const FMTID_InternetSite: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214a1_0000_0000_c000_000000000046); pub const FMTID_Intshcut: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214a0_0000_0000_c000_000000000046); pub const FMTID_LibraryProperties: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5d76b67f_9b3d_44bb_b6ae_25da4f638a67); pub const FMTID_MUSIC: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x56a3372e_ce9c_11d2_9f0e_006097c686f6); pub const FMTID_Misc: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9b174b34_40ff_11d2_a27e_00c04fc30871); pub const FMTID_Query: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x49691c90_7e17_101a_a91c_08002b2ecda9); pub const FMTID_ShellDetails: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x28636aa6_953d_11d2_b5d6_00c04fd918d0); pub const FMTID_Storage: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb725f130_47ef_101a_a5f1_02608c9eebac); pub const FMTID_Volume: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9b174b35_40ff_11d2_a27e_00c04fc30871); pub const FMTID_WebView: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf2275480_f782_4291_bd94_f13693513aec); pub const FOFX_ADDUNDORECORD: u32 = 536870912u32; pub const FOFX_COPYASDOWNLOAD: u32 = 1073741824u32; pub const FOFX_DONTDISPLAYDESTPATH: u32 = 134217728u32; pub const FOFX_DONTDISPLAYLOCATIONS: u32 = 2147483648u32; pub const FOFX_DONTDISPLAYSOURCEPATH: u32 = 67108864u32; pub const FOFX_EARLYFAILURE: u32 = 1048576u32; pub const FOFX_KEEPNEWERFILE: u32 = 4194304u32; pub const FOFX_MOVEACLSACROSSVOLUMES: u32 = 33554432u32; pub const FOFX_NOCOPYHOOKS: u32 = 8388608u32; pub const FOFX_NOMINIMIZEBOX: u32 = 16777216u32; pub const FOFX_NOSKIPJUNCTIONS: u32 = 65536u32; pub const FOFX_PREFERHARDLINK: u32 = 131072u32; pub const FOFX_PRESERVEFILEEXTENSIONS: u32 = 2097152u32; pub const FOFX_RECYCLEONDELETE: u32 = 524288u32; pub const FOFX_REQUIREELEVATION: u32 = 268435456u32; pub const FOFX_SHOWELEVATIONPROMPT: u32 = 262144u32; pub const FOF_ALLOWUNDO: u32 = 64u32; pub const FOF_CONFIRMMOUSE: u32 = 2u32; pub const FOF_FILESONLY: u32 = 128u32; pub const FOF_MULTIDESTFILES: u32 = 1u32; pub const FOF_NOCONFIRMATION: u32 = 16u32; pub const FOF_NOCONFIRMMKDIR: u32 = 512u32; pub const FOF_NOCOPYSECURITYATTRIBS: u32 = 2048u32; pub const FOF_NOERRORUI: u32 = 1024u32; pub const FOF_NORECURSEREPARSE: u32 = 32768u32; pub const FOF_NORECURSION: u32 = 4096u32; pub const FOF_NO_CONNECTED_ELEMENTS: u32 = 8192u32; pub const FOF_RENAMEONCOLLISION: u32 = 8u32; pub const FOF_SILENT: u32 = 4u32; pub const FOF_SIMPLEPROGRESS: u32 = 256u32; pub const FOF_WANTMAPPINGHANDLE: u32 = 32u32; pub const FOF_WANTNUKEWARNING: u32 = 16384u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct FOLDERFLAGS(pub i32); pub const FWF_NONE: FOLDERFLAGS = FOLDERFLAGS(0i32); pub const FWF_AUTOARRANGE: FOLDERFLAGS = FOLDERFLAGS(1i32); pub const FWF_ABBREVIATEDNAMES: FOLDERFLAGS = FOLDERFLAGS(2i32); pub const FWF_SNAPTOGRID: FOLDERFLAGS = FOLDERFLAGS(4i32); pub const FWF_OWNERDATA: FOLDERFLAGS = FOLDERFLAGS(8i32); pub const FWF_BESTFITWINDOW: FOLDERFLAGS = FOLDERFLAGS(16i32); pub const FWF_DESKTOP: FOLDERFLAGS = FOLDERFLAGS(32i32); pub const FWF_SINGLESEL: FOLDERFLAGS = FOLDERFLAGS(64i32); pub const FWF_NOSUBFOLDERS: FOLDERFLAGS = FOLDERFLAGS(128i32); pub const FWF_TRANSPARENT: FOLDERFLAGS = FOLDERFLAGS(256i32); pub const FWF_NOCLIENTEDGE: FOLDERFLAGS = FOLDERFLAGS(512i32); pub const FWF_NOSCROLL: FOLDERFLAGS = FOLDERFLAGS(1024i32); pub const FWF_ALIGNLEFT: FOLDERFLAGS = FOLDERFLAGS(2048i32); pub const FWF_NOICONS: FOLDERFLAGS = FOLDERFLAGS(4096i32); pub const FWF_SHOWSELALWAYS: FOLDERFLAGS = FOLDERFLAGS(8192i32); pub const FWF_NOVISIBLE: FOLDERFLAGS = FOLDERFLAGS(16384i32); pub const FWF_SINGLECLICKACTIVATE: FOLDERFLAGS = FOLDERFLAGS(32768i32); pub const FWF_NOWEBVIEW: FOLDERFLAGS = FOLDERFLAGS(65536i32); pub const FWF_HIDEFILENAMES: FOLDERFLAGS = FOLDERFLAGS(131072i32); pub const FWF_CHECKSELECT: FOLDERFLAGS = FOLDERFLAGS(262144i32); pub const FWF_NOENUMREFRESH: FOLDERFLAGS = FOLDERFLAGS(524288i32); pub const FWF_NOGROUPING: FOLDERFLAGS = FOLDERFLAGS(1048576i32); pub const FWF_FULLROWSELECT: FOLDERFLAGS = FOLDERFLAGS(2097152i32); pub const FWF_NOFILTERS: FOLDERFLAGS = FOLDERFLAGS(4194304i32); pub const FWF_NOCOLUMNHEADER: FOLDERFLAGS = FOLDERFLAGS(8388608i32); pub const FWF_NOHEADERINALLVIEWS: FOLDERFLAGS = FOLDERFLAGS(16777216i32); pub const FWF_EXTENDEDTILES: FOLDERFLAGS = FOLDERFLAGS(33554432i32); pub const FWF_TRICHECKSELECT: FOLDERFLAGS = FOLDERFLAGS(67108864i32); pub const FWF_AUTOCHECKSELECT: FOLDERFLAGS = FOLDERFLAGS(134217728i32); pub const FWF_NOBROWSERVIEWSTATE: FOLDERFLAGS = FOLDERFLAGS(268435456i32); pub const FWF_SUBSETGROUPS: FOLDERFLAGS = FOLDERFLAGS(536870912i32); pub const FWF_USESEARCHFOLDER: FOLDERFLAGS = FOLDERFLAGS(1073741824i32); pub const FWF_ALLOWRTLREADING: FOLDERFLAGS = FOLDERFLAGS(-2147483648i32); impl ::core::convert::From<i32> for FOLDERFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for FOLDERFLAGS { type Abi = Self; } pub const FOLDERID_AccountPictures: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x008ca0b1_55b4_4c56_b8a8_4de4b299d3be); pub const FOLDERID_AddNewPrograms: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xde61d971_5ebc_4f02_a3a9_6c82895e5c04); pub const FOLDERID_AdminTools: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x724ef170_a42d_4fef_9f26_b60e846fba4f); pub const FOLDERID_AllAppMods: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7ad67899_66af_43ba_9156_6aad42e6c596); pub const FOLDERID_AppCaptures: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xedc0fe71_98d8_4f4a_b920_c8dc133cb165); pub const FOLDERID_AppDataDesktop: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb2c5e279_7add_439f_b28c_c41fe1bbf672); pub const FOLDERID_AppDataDocuments: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7be16610_1f7f_44ac_bff0_83e15f2ffca1); pub const FOLDERID_AppDataFavorites: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7cfbefbc_de1f_45aa_b843_a542ac536cc9); pub const FOLDERID_AppDataProgramData: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x559d40a3_a036_40fa_af61_84cb430a4d34); pub const FOLDERID_AppUpdates: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa305ce99_f527_492b_8b1a_7e76fa98d6e4); pub const FOLDERID_ApplicationShortcuts: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa3918781_e5f2_4890_b3d9_a7e54332328c); pub const FOLDERID_AppsFolder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1e87508d_89c2_42f0_8a7e_645a0f50ca58); pub const FOLDERID_CDBurning: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9e52ab10_f80d_49df_acb8_4330f5687855); pub const FOLDERID_CameraRoll: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xab5fb87b_7ce2_4f83_915d_550846c9537b); pub const FOLDERID_CameraRollLibrary: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2b20df75_1eda_4039_8097_38798227d5b7); pub const FOLDERID_ChangeRemovePrograms: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdf7266ac_9274_4867_8d55_3bd661de872d); pub const FOLDERID_CommonAdminTools: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd0384e7d_bac3_4797_8f14_cba229b392b5); pub const FOLDERID_CommonOEMLinks: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc1bae2d0_10df_4334_bedd_7aa20b227a9d); pub const FOLDERID_CommonPrograms: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0139d44e_6afe_49f2_8690_3dafcae6ffb8); pub const FOLDERID_CommonStartMenu: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa4115719_d62e_491d_aa7c_e74b8be3b067); pub const FOLDERID_CommonStartMenuPlaces: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa440879f_87a0_4f7d_b700_0207b966194a); pub const FOLDERID_CommonStartup: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x82a5ea35_d9cd_47c5_9629_e15d2f714e6e); pub const FOLDERID_CommonTemplates: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb94237e7_57ac_4347_9151_b08c6c32d1f7); pub const FOLDERID_ComputerFolder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0ac0837c_bbf8_452a_850d_79d08e667ca7); pub const FOLDERID_ConflictFolder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4bfefb45_347d_4006_a5be_ac0cb0567192); pub const FOLDERID_ConnectionsFolder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6f0cd92b_2e97_45d1_88ff_b0d186b8dedd); pub const FOLDERID_Contacts: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x56784854_c6cb_462b_8169_88e350acb882); pub const FOLDERID_ControlPanelFolder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x82a74aeb_aeb4_465c_a014_d097ee346d63); pub const FOLDERID_Cookies: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2b0f765d_c0e9_4171_908e_08a611b84ff6); pub const FOLDERID_CurrentAppMods: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3db40b20_2a30_4dbe_917e_771dd21dd099); pub const FOLDERID_Desktop: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb4bfcc3a_db2c_424c_b029_7fe99a87c641); pub const FOLDERID_DevelopmentFiles: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdbe8e08e_3053_4bbc_b183_2a7b2b191e59); pub const FOLDERID_Device: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1c2ac1dc_4358_4b6c_9733_af21156576f0); pub const FOLDERID_DeviceMetadataStore: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5ce4a5e9_e4eb_479d_b89f_130c02886155); pub const FOLDERID_Documents: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfdd39ad0_238f_46af_adb4_6c85480369c7); pub const FOLDERID_DocumentsLibrary: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7b0db17d_9cd2_4a93_9733_46cc89022e7c); pub const FOLDERID_Downloads: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x374de290_123f_4565_9164_39c4925e467b); pub const FOLDERID_Favorites: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1777f761_68ad_4d8a_87bd_30b759fa33dd); pub const FOLDERID_Fonts: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfd228cb7_ae11_4ae3_864c_16f3910ab8fe); pub const FOLDERID_GameTasks: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x054fae61_4dd8_4787_80b6_090220c4b700); pub const FOLDERID_Games: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcac52c1a_b53d_4edc_92d7_6b2e8ac19434); pub const FOLDERID_History: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd9dc8a3b_b784_432e_a781_5a1130a75963); pub const FOLDERID_HomeGroup: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x52528a6b_b9e3_4add_b60d_588c2dba842d); pub const FOLDERID_HomeGroupCurrentUser: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9b74b6a3_0dfd_4f11_9e78_5f7800f2e772); pub const FOLDERID_ImplicitAppShortcuts: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbcb5256f_79f6_4cee_b725_dc34e402fd46); pub const FOLDERID_InternetCache: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x352481e8_33be_4251_ba85_6007caedcf9d); pub const FOLDERID_InternetFolder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4d9f7874_4e0c_4904_967b_40b0d20c3e4b); pub const FOLDERID_Libraries: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1b3ea5dc_b587_4786_b4ef_bd1dc332aeae); pub const FOLDERID_Links: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbfb9d5e0_c6a9_404c_b2b2_ae6db6af4968); pub const FOLDERID_LocalAppData: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf1b32785_6fba_4fcf_9d55_7b8e7f157091); pub const FOLDERID_LocalAppDataLow: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa520a1a4_1780_4ff6_bd18_167343c5af16); pub const FOLDERID_LocalDocuments: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf42ee2d3_909f_4907_8871_4c22fc0bf756); pub const FOLDERID_LocalDownloads: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7d83ee9b_2244_4e70_b1f5_5393042af1e4); pub const FOLDERID_LocalMusic: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa0c69a99_21c8_4671_8703_7934162fcf1d); pub const FOLDERID_LocalPictures: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0ddd015d_b06c_45d5_8c4c_f59713854639); pub const FOLDERID_LocalStorage: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb3eb08d3_a1f3_496b_865a_42b536cda0ec); pub const FOLDERID_LocalVideos: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x35286a68_3c57_41a1_bbb1_0eae73d76c95); pub const FOLDERID_LocalizedResourcesDir: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2a00375e_224c_49de_b8d1_440df7ef3ddc); pub const FOLDERID_Music: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4bd8d571_6d19_48d3_be97_422220080e43); pub const FOLDERID_MusicLibrary: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2112ab0a_c86a_4ffe_a368_0de96e47012e); pub const FOLDERID_NetHood: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc5abbf53_e17f_4121_8900_86626fc2c973); pub const FOLDERID_NetworkFolder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd20beec4_5ca8_4905_ae3b_bf251ea09b53); pub const FOLDERID_Objects3D: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x31c0dd25_9439_4f12_bf41_7ff4eda38722); pub const FOLDERID_OneDrive: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa52bba46_e9e1_435f_b3d9_28daa648c0f6); pub const FOLDERID_OriginalImages: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2c36c0aa_5812_4b87_bfd0_4cd0dfb19b39); pub const FOLDERID_PhotoAlbums: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x69d2cf90_fc33_4fb7_9a0c_ebb0f0fcb43c); pub const FOLDERID_Pictures: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x33e28130_4e1e_4676_835a_98395c3bc3bb); pub const FOLDERID_PicturesLibrary: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa990ae9f_a03b_4e80_94bc_9912d7504104); pub const FOLDERID_Playlists: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xde92c1c7_837f_4f69_a3bb_86e631204a23); pub const FOLDERID_PrintHood: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9274bd8d_cfd1_41c3_b35e_b13f55a758f4); pub const FOLDERID_PrintersFolder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x76fc4e2d_d6ad_4519_a663_37bd56068185); pub const FOLDERID_Profile: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5e6c858f_0e22_4760_9afe_ea3317b67173); pub const FOLDERID_ProgramData: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x62ab5d82_fdc1_4dc3_a9dd_070d1d495d97); pub const FOLDERID_ProgramFiles: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x905e63b6_c1bf_494e_b29c_65b732d3d21a); pub const FOLDERID_ProgramFilesCommon: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf7f1ed05_9f6d_47a2_aaae_29d317c6f066); pub const FOLDERID_ProgramFilesCommonX64: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6365d5a7_0f0d_45e5_87f6_0da56b6a4f7d); pub const FOLDERID_ProgramFilesCommonX86: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xde974d24_d9c6_4d3e_bf91_f4455120b917); pub const FOLDERID_ProgramFilesX64: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6d809377_6af0_444b_8957_a3773f02200e); pub const FOLDERID_ProgramFilesX86: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7c5a40ef_a0fb_4bfc_874a_c0f2e0b9fa8e); pub const FOLDERID_Programs: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa77f5d77_2e2b_44c3_a6a2_aba601054a51); pub const FOLDERID_Public: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdfdf76a2_c82a_4d63_906a_5644ac457385); pub const FOLDERID_PublicDesktop: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc4aa340d_f20f_4863_afef_f87ef2e6ba25); pub const FOLDERID_PublicDocuments: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xed4824af_dce4_45a8_81e2_fc7965083634); pub const FOLDERID_PublicDownloads: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3d644c9b_1fb8_4f30_9b45_f670235f79c0); pub const FOLDERID_PublicGameTasks: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdebf2536_e1a8_4c59_b6a2_414586476aea); pub const FOLDERID_PublicLibraries: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x48daf80b_e6cf_4f4e_b800_0e69d84ee384); pub const FOLDERID_PublicMusic: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3214fab5_9757_4298_bb61_92a9deaa44ff); pub const FOLDERID_PublicPictures: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb6ebfb86_6907_413c_9af7_4fc2abf07cc5); pub const FOLDERID_PublicRingtones: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe555ab60_153b_4d17_9f04_a5fe99fc15ec); pub const FOLDERID_PublicUserTiles: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0482af6c_08f1_4c34_8c90_e17ec98b1e17); pub const FOLDERID_PublicVideos: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2400183a_6185_49fb_a2d8_4a392a602ba3); pub const FOLDERID_QuickLaunch: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x52a4f021_7b75_48a9_9f6b_4b87a210bc8f); pub const FOLDERID_Recent: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xae50c081_ebd2_438a_8655_8a092e34987a); pub const FOLDERID_RecordedCalls: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2f8b40c2_83ed_48ee_b383_a1f157ec6f9a); pub const FOLDERID_RecordedTVLibrary: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1a6fdba2_f42d_4358_a798_b74d745926c5); pub const FOLDERID_RecycleBinFolder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb7534046_3ecb_4c18_be4e_64cd4cb7d6ac); pub const FOLDERID_ResourceDir: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8ad10c31_2adb_4296_a8f7_e4701232c972); pub const FOLDERID_RetailDemo: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x12d4c69e_24ad_4923_be19_31321c43a767); pub const FOLDERID_Ringtones: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc870044b_f49e_4126_a9c3_b52a1ff411e8); pub const FOLDERID_RoamedTileImages: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xaaa8d5a5_f1d6_4259_baa8_78e7ef60835e); pub const FOLDERID_RoamingAppData: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3eb685db_65f9_4cf6_a03a_e3ef65729f3d); pub const FOLDERID_RoamingTiles: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00bcfc5a_ed94_4e48_96a1_3f6217f21990); pub const FOLDERID_SEARCH_CSC: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xee32e446_31ca_4aba_814f_a5ebd2fd6d5e); pub const FOLDERID_SEARCH_MAPI: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x98ec0e18_2098_4d44_8644_66979315a281); pub const FOLDERID_SampleMusic: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb250c668_f57d_4ee1_a63c_290ee7d1aa1f); pub const FOLDERID_SamplePictures: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc4900540_2379_4c75_844b_64e6faf8716b); pub const FOLDERID_SamplePlaylists: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x15ca69b3_30ee_49c1_ace1_6b5ec372afb5); pub const FOLDERID_SampleVideos: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x859ead94_2e85_48ad_a71a_0969cb56a6cd); pub const FOLDERID_SavedGames: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4c5c32ff_bb9d_43b0_b5b4_2d72e54eaaa4); pub const FOLDERID_SavedPictures: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3b193882_d3ad_4eab_965a_69829d1fb59f); pub const FOLDERID_SavedPicturesLibrary: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe25b5812_be88_4bd9_94b0_29233477b6c3); pub const FOLDERID_SavedSearches: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7d1d3a04_debb_4115_95cf_2f29da2920da); pub const FOLDERID_Screenshots: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb7bede81_df94_4682_a7d8_57a52620b86f); pub const FOLDERID_SearchHistory: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0d4c3db6_03a3_462f_a0e6_08924c41b5d4); pub const FOLDERID_SearchHome: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x190337d1_b8ca_4121_a639_6d472d16972a); pub const FOLDERID_SearchTemplates: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7e636bfe_dfa9_4d5e_b456_d7b39851d8a9); pub const FOLDERID_SendTo: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8983036c_27c0_404b_8f08_102d10dcfd74); pub const FOLDERID_SidebarDefaultParts: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7b396e54_9ec5_4300_be0a_2482ebae1a26); pub const FOLDERID_SidebarParts: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa75d362e_50fc_4fb7_ac2c_a8beaa314493); pub const FOLDERID_SkyDrive: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa52bba46_e9e1_435f_b3d9_28daa648c0f6); pub const FOLDERID_SkyDriveCameraRoll: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x767e6811_49cb_4273_87c2_20f355e1085b); pub const FOLDERID_SkyDriveDocuments: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x24d89e24_2f19_4534_9dde_6a6671fbb8fe); pub const FOLDERID_SkyDriveMusic: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc3f2459e_80d6_45dc_bfef_1f769f2be730); pub const FOLDERID_SkyDrivePictures: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x339719b5_8c47_4894_94c2_d8f77add44a6); pub const FOLDERID_StartMenu: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x625b53c3_ab48_4ec1_ba1f_a1ef4146fc19); pub const FOLDERID_StartMenuAllPrograms: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf26305ef_6948_40b9_b255_81453d09c785); pub const FOLDERID_Startup: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb97d20bb_f46a_4c97_ba10_5e3608430854); pub const FOLDERID_SyncManagerFolder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x43668bf8_c14e_49b2_97c9_747784d784b7); pub const FOLDERID_SyncResultsFolder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x289a9a43_be44_4057_a41b_587a76d7e7f9); pub const FOLDERID_SyncSetupFolder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0f214138_b1d3_4a90_bba9_27cbc0c5389a); pub const FOLDERID_System: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1ac14e77_02e7_4e5d_b744_2eb1ae5198b7); pub const FOLDERID_SystemX86: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd65231b0_b2f1_4857_a4ce_a8e7c6ea7d27); pub const FOLDERID_Templates: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa63293e8_664e_48db_a079_df759e0509f7); pub const FOLDERID_UserPinned: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9e3995ab_1f9c_4f13_b827_48b24b6c7174); pub const FOLDERID_UserProfiles: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0762d272_c50a_4bb0_a382_697dcd729b80); pub const FOLDERID_UserProgramFiles: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5cd7aee2_2219_4a67_b85d_6c9ce15660cb); pub const FOLDERID_UserProgramFilesCommon: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbcbd3057_ca5c_4622_b42d_bc56db0ae516); pub const FOLDERID_UsersFiles: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf3ce0f7c_4901_4acc_8648_d5d44b04ef8f); pub const FOLDERID_UsersLibraries: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa302545d_deff_464b_abe8_61c8648d939b); pub const FOLDERID_Videos: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x18989b1d_99b5_455b_841c_ab7c74e4ddfc); pub const FOLDERID_VideosLibrary: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x491e922f_5643_4af4_a7eb_4e7a138d8174); pub const FOLDERID_Windows: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf38bf404_1d43_42f2_9305_67de0b28fc23); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct FOLDERLOGICALVIEWMODE(pub i32); pub const FLVM_UNSPECIFIED: FOLDERLOGICALVIEWMODE = FOLDERLOGICALVIEWMODE(-1i32); pub const FLVM_FIRST: FOLDERLOGICALVIEWMODE = FOLDERLOGICALVIEWMODE(1i32); pub const FLVM_DETAILS: FOLDERLOGICALVIEWMODE = FOLDERLOGICALVIEWMODE(1i32); pub const FLVM_TILES: FOLDERLOGICALVIEWMODE = FOLDERLOGICALVIEWMODE(2i32); pub const FLVM_ICONS: FOLDERLOGICALVIEWMODE = FOLDERLOGICALVIEWMODE(3i32); pub const FLVM_LIST: FOLDERLOGICALVIEWMODE = FOLDERLOGICALVIEWMODE(4i32); pub const FLVM_CONTENT: FOLDERLOGICALVIEWMODE = FOLDERLOGICALVIEWMODE(5i32); pub const FLVM_LAST: FOLDERLOGICALVIEWMODE = FOLDERLOGICALVIEWMODE(5i32); impl ::core::convert::From<i32> for FOLDERLOGICALVIEWMODE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for FOLDERLOGICALVIEWMODE { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct FOLDERSETDATA { pub _fs: FOLDERSETTINGS, pub _vidRestore: ::windows::core::GUID, pub _dwViewPriority: u32, } impl FOLDERSETDATA {} impl ::core::default::Default for FOLDERSETDATA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for FOLDERSETDATA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("FOLDERSETDATA").field("_fs", &self._fs).field("_vidRestore", &self._vidRestore).field("_dwViewPriority", &self._dwViewPriority).finish() } } impl ::core::cmp::PartialEq for FOLDERSETDATA { fn eq(&self, other: &Self) -> bool { self._fs == other._fs && self._vidRestore == other._vidRestore && self._dwViewPriority == other._dwViewPriority } } impl ::core::cmp::Eq for FOLDERSETDATA {} unsafe impl ::windows::core::Abi for FOLDERSETDATA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct FOLDERSETTINGS { pub ViewMode: u32, pub fFlags: u32, } impl FOLDERSETTINGS {} impl ::core::default::Default for FOLDERSETTINGS { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for FOLDERSETTINGS { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("FOLDERSETTINGS").field("ViewMode", &self.ViewMode).field("fFlags", &self.fFlags).finish() } } impl ::core::cmp::PartialEq for FOLDERSETTINGS { fn eq(&self, other: &Self) -> bool { self.ViewMode == other.ViewMode && self.fFlags == other.fFlags } } impl ::core::cmp::Eq for FOLDERSETTINGS {} unsafe impl ::windows::core::Abi for FOLDERSETTINGS { type Abi = Self; } pub const FOLDERTYPEID_AccountPictures: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdb2a5d8f_06e6_4007_aba6_af877d526ea6); pub const FOLDERTYPEID_Communications: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x91475fe5_586b_4eba_8d75_d17434b8cdf6); pub const FOLDERTYPEID_CompressedFolder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x80213e82_bcfd_4c4f_8817_bb27601267a9); pub const FOLDERTYPEID_Contacts: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xde2b70ec_9bf7_4a93_bd3d_243f7881d492); pub const FOLDERTYPEID_ControlPanelCategory: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xde4f0660_fa10_4b8f_a494_068b20b22307); pub const FOLDERTYPEID_ControlPanelClassic: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0c3794f3_b545_43aa_a329_c37430c58d2a); pub const FOLDERTYPEID_Documents: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7d49d726_3c21_4f05_99aa_fdc2c9474656); pub const FOLDERTYPEID_Downloads: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x885a186e_a440_4ada_812b_db871b942259); pub const FOLDERTYPEID_Games: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb689b0d0_76d3_4cbb_87f7_585d0e0ce070); pub const FOLDERTYPEID_Generic: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5c4f28b5_f869_4e84_8e60_f11db97c5cc7); pub const FOLDERTYPEID_GenericLibrary: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5f4eab9a_6833_4f61_899d_31cf46979d49); pub const FOLDERTYPEID_GenericSearchResults: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7fde1a1e_8b31_49a5_93b8_6be14cfa4943); pub const FOLDERTYPEID_Invalid: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x57807898_8c4f_4462_bb63_71042380b109); pub const FOLDERTYPEID_Music: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x94d6ddcc_4a68_4175_a374_bd584a510b78); pub const FOLDERTYPEID_NetworkExplorer: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x25cc242b_9a7c_4f51_80e0_7a2928febe42); pub const FOLDERTYPEID_OpenSearch: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8faf9629_1980_46ff_8023_9dceab9c3ee3); pub const FOLDERTYPEID_OtherUsers: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb337fd00_9dd5_4635_a6d4_da33fd102b7a); pub const FOLDERTYPEID_Pictures: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb3690e58_e961_423b_b687_386ebfd83239); pub const FOLDERTYPEID_Printers: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2c7bbec6_c844_4a0a_91fa_cef6f59cfda1); pub const FOLDERTYPEID_PublishedItems: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7f2f5b96_ff74_41da_afd8_1c78a5f3aea2); pub const FOLDERTYPEID_RecordedTV: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5557a28f_5da6_4f83_8809_c2c98a11a6fa); pub const FOLDERTYPEID_RecycleBin: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd6d9e004_cd87_442b_9d57_5e0aeb4f6f72); pub const FOLDERTYPEID_SavedGames: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd0363307_28cb_4106_9f23_2956e3e5e0e7); pub const FOLDERTYPEID_SearchConnector: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x982725ee_6f47_479e_b447_812bfa7d2e8f); pub const FOLDERTYPEID_SearchHome: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x834d8a44_0974_4ed6_866e_f203d80b3810); pub const FOLDERTYPEID_Searches: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0b0ba2e3_405f_415e_a6ee_cad625207853); pub const FOLDERTYPEID_SoftwareExplorer: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd674391b_52d9_4e07_834e_67c98610f39d); pub const FOLDERTYPEID_StartMenu: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xef87b4cb_f2ce_4785_8658_4ca6c63e38c6); pub const FOLDERTYPEID_StorageProviderDocuments: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdd61bd66_70e8_48dd_9655_65c5e1aac2d1); pub const FOLDERTYPEID_StorageProviderGeneric: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4f01ebc5_2385_41f2_a28e_2c5c91fb56e0); pub const FOLDERTYPEID_StorageProviderMusic: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x672ecd7e_af04_4399_875c_0290845b6247); pub const FOLDERTYPEID_StorageProviderPictures: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x71d642a9_f2b1_42cd_ad92_eb9300c7cc0a); pub const FOLDERTYPEID_StorageProviderVideos: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x51294da1_d7b1_485b_9e9a_17cffe33e187); pub const FOLDERTYPEID_UserFiles: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcd0fc69b_71e2_46e5_9690_5bcd9f57aab3); pub const FOLDERTYPEID_UsersLibraries: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc4d98f09_6124_4fe0_9942_826416082da9); pub const FOLDERTYPEID_Videos: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5fa96407_7e77_483c_ac93_691d05850de8); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct FOLDERVIEWMODE(pub i32); pub const FVM_AUTO: FOLDERVIEWMODE = FOLDERVIEWMODE(-1i32); pub const FVM_FIRST: FOLDERVIEWMODE = FOLDERVIEWMODE(1i32); pub const FVM_ICON: FOLDERVIEWMODE = FOLDERVIEWMODE(1i32); pub const FVM_SMALLICON: FOLDERVIEWMODE = FOLDERVIEWMODE(2i32); pub const FVM_LIST: FOLDERVIEWMODE = FOLDERVIEWMODE(3i32); pub const FVM_DETAILS: FOLDERVIEWMODE = FOLDERVIEWMODE(4i32); pub const FVM_THUMBNAIL: FOLDERVIEWMODE = FOLDERVIEWMODE(5i32); pub const FVM_TILE: FOLDERVIEWMODE = FOLDERVIEWMODE(6i32); pub const FVM_THUMBSTRIP: FOLDERVIEWMODE = FOLDERVIEWMODE(7i32); pub const FVM_CONTENT: FOLDERVIEWMODE = FOLDERVIEWMODE(8i32); pub const FVM_LAST: FOLDERVIEWMODE = FOLDERVIEWMODE(8i32); impl ::core::convert::From<i32> for FOLDERVIEWMODE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for FOLDERVIEWMODE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct FOLDERVIEWOPTIONS(pub i32); pub const FVO_DEFAULT: FOLDERVIEWOPTIONS = FOLDERVIEWOPTIONS(0i32); pub const FVO_VISTALAYOUT: FOLDERVIEWOPTIONS = FOLDERVIEWOPTIONS(1i32); pub const FVO_CUSTOMPOSITION: FOLDERVIEWOPTIONS = FOLDERVIEWOPTIONS(2i32); pub const FVO_CUSTOMORDERING: FOLDERVIEWOPTIONS = FOLDERVIEWOPTIONS(4i32); pub const FVO_SUPPORTHYPERLINKS: FOLDERVIEWOPTIONS = FOLDERVIEWOPTIONS(8i32); pub const FVO_NOANIMATIONS: FOLDERVIEWOPTIONS = FOLDERVIEWOPTIONS(16i32); pub const FVO_NOSCROLLTIPS: FOLDERVIEWOPTIONS = FOLDERVIEWOPTIONS(32i32); impl ::core::convert::From<i32> for FOLDERVIEWOPTIONS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for FOLDERVIEWOPTIONS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct FOLDER_ENUM_MODE(pub i32); pub const FEM_VIEWRESULT: FOLDER_ENUM_MODE = FOLDER_ENUM_MODE(0i32); pub const FEM_NAVIGATION: FOLDER_ENUM_MODE = FOLDER_ENUM_MODE(1i32); impl ::core::convert::From<i32> for FOLDER_ENUM_MODE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for FOLDER_ENUM_MODE { type Abi = Self; } pub const FO_COPY: u32 = 2u32; pub const FO_DELETE: u32 = 3u32; pub const FO_MOVE: u32 = 1u32; pub const FO_RENAME: u32 = 4u32; pub const FSCopyHandler: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd197380a_0a79_4dc8_a033_ed882c2fa14b); pub const FVSIF_CANVIEWIT: u32 = 1073741824u32; pub const FVSIF_NEWFAILED: u32 = 134217728u32; pub const FVSIF_NEWFILE: u32 = 2147483648u32; pub const FVSIF_PINNED: u32 = 2u32; pub const FVSIF_RECT: u32 = 1u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct FVTEXTTYPE(pub i32); pub const FVST_EMPTYTEXT: FVTEXTTYPE = FVTEXTTYPE(0i32); impl ::core::convert::From<i32> for FVTEXTTYPE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for FVTEXTTYPE { type Abi = Self; } pub const FileOpenDialog: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdc1c5a9c_e88a_4dde_a5a1_60f82a20aef7); pub const FileOperation: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3ad05575_8857_4850_9277_11b85bdb8e09); pub const FileSaveDialog: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc0b4e2f3_ba21_4773_8dba_335ec946eb8b); pub const FileSearchBand: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc4ee31f3_4768_11d2_be5c_00a0c9a83da1); #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn FindExecutableA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(lpfile: Param0, lpdirectory: Param1, lpresult: super::super::Foundation::PSTR) -> super::super::Foundation::HINSTANCE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn FindExecutableA(lpfile: super::super::Foundation::PSTR, lpdirectory: super::super::Foundation::PSTR, lpresult: super::super::Foundation::PSTR) -> super::super::Foundation::HINSTANCE; } ::core::mem::transmute(FindExecutableA(lpfile.into_param().abi(), lpdirectory.into_param().abi(), ::core::mem::transmute(lpresult))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn FindExecutableW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(lpfile: Param0, lpdirectory: Param1, lpresult: super::super::Foundation::PWSTR) -> super::super::Foundation::HINSTANCE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn FindExecutableW(lpfile: super::super::Foundation::PWSTR, lpdirectory: super::super::Foundation::PWSTR, lpresult: super::super::Foundation::PWSTR) -> super::super::Foundation::HINSTANCE; } ::core::mem::transmute(FindExecutableW(lpfile.into_param().abi(), lpdirectory.into_param().abi(), ::core::mem::transmute(lpresult))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct Folder(pub ::windows::core::IUnknown); impl Folder { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Title(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Application(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } pub unsafe fn ParentFolder(&self) -> ::windows::core::Result<Folder> { let mut result__: <Folder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<Folder>(result__) } pub unsafe fn Items(&self) -> ::windows::core::Result<FolderItems> { let mut result__: <FolderItems as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<FolderItems>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ParseName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bname: Param0) -> ::windows::core::Result<FolderItem> { let mut result__: <FolderItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), bname.into_param().abi(), &mut result__).from_abi::<FolderItem>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn NewFolder<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, bname: Param0, voptions: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), bname.into_param().abi(), voptions.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn MoveHere<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vitem: Param0, voptions: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), vitem.into_param().abi(), voptions.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn CopyHere<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vitem: Param0, voptions: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), vitem.into_param().abi(), voptions.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GetDetailsOf<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vitem: Param0, icolumn: i32) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), vitem.into_param().abi(), ::core::mem::transmute(icolumn), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } } unsafe impl ::windows::core::Interface for Folder { type Vtable = Folder_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbbcbde60_c3ff_11ce_8350_444553540000); } impl ::core::convert::From<Folder> for ::windows::core::IUnknown { fn from(value: Folder) -> Self { value.0 } } impl ::core::convert::From<&Folder> for ::windows::core::IUnknown { fn from(value: &Folder) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for Folder { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a Folder { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<Folder> for super::super::System::Com::IDispatch { fn from(value: Folder) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&Folder> for super::super::System::Com::IDispatch { fn from(value: &Folder) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for Folder { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &Folder { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct Folder_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsf: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, voptions: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vitem: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, voptions: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vitem: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, voptions: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vitem: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, icolumn: i32, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct Folder2(pub ::windows::core::IUnknown); impl Folder2 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Title(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Application(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } pub unsafe fn ParentFolder(&self) -> ::windows::core::Result<Folder> { let mut result__: <Folder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<Folder>(result__) } pub unsafe fn Items(&self) -> ::windows::core::Result<FolderItems> { let mut result__: <FolderItems as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<FolderItems>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ParseName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bname: Param0) -> ::windows::core::Result<FolderItem> { let mut result__: <FolderItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), bname.into_param().abi(), &mut result__).from_abi::<FolderItem>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn NewFolder<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, bname: Param0, voptions: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), bname.into_param().abi(), voptions.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn MoveHere<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vitem: Param0, voptions: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), vitem.into_param().abi(), voptions.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn CopyHere<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vitem: Param0, voptions: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), vitem.into_param().abi(), voptions.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GetDetailsOf<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vitem: Param0, icolumn: i32) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), vitem.into_param().abi(), ::core::mem::transmute(icolumn), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn Self_(&self) -> ::windows::core::Result<FolderItem> { let mut result__: <FolderItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<FolderItem>(result__) } pub unsafe fn OfflineStatus(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn Synchronize(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn HaveToShowWebViewBarricade(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn DismissedWebViewBarricade(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for Folder2 { type Vtable = Folder2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf0d2d8ef_3890_11d2_bf8b_00c04fb93661); } impl ::core::convert::From<Folder2> for ::windows::core::IUnknown { fn from(value: Folder2) -> Self { value.0 } } impl ::core::convert::From<&Folder2> for ::windows::core::IUnknown { fn from(value: &Folder2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for Folder2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a Folder2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<Folder2> for Folder { fn from(value: Folder2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&Folder2> for Folder { fn from(value: &Folder2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, Folder> for Folder2 { fn into_param(self) -> ::windows::core::Param<'a, Folder> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, Folder> for &Folder2 { fn into_param(self) -> ::windows::core::Param<'a, Folder> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<Folder2> for super::super::System::Com::IDispatch { fn from(value: Folder2) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&Folder2> for super::super::System::Com::IDispatch { fn from(value: &Folder2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for Folder2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &Folder2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct Folder2_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsf: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, voptions: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vitem: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, voptions: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vitem: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, voptions: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vitem: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, icolumn: i32, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppfi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pul: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbhavetoshowwebviewbarricade: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct Folder3(pub ::windows::core::IUnknown); impl Folder3 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Title(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Application(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } pub unsafe fn ParentFolder(&self) -> ::windows::core::Result<Folder> { let mut result__: <Folder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<Folder>(result__) } pub unsafe fn Items(&self) -> ::windows::core::Result<FolderItems> { let mut result__: <FolderItems as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<FolderItems>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ParseName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bname: Param0) -> ::windows::core::Result<FolderItem> { let mut result__: <FolderItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), bname.into_param().abi(), &mut result__).from_abi::<FolderItem>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn NewFolder<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, bname: Param0, voptions: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), bname.into_param().abi(), voptions.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn MoveHere<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vitem: Param0, voptions: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), vitem.into_param().abi(), voptions.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn CopyHere<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vitem: Param0, voptions: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), vitem.into_param().abi(), voptions.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GetDetailsOf<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vitem: Param0, icolumn: i32) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), vitem.into_param().abi(), ::core::mem::transmute(icolumn), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn Self_(&self) -> ::windows::core::Result<FolderItem> { let mut result__: <FolderItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<FolderItem>(result__) } pub unsafe fn OfflineStatus(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn Synchronize(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn HaveToShowWebViewBarricade(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn DismissedWebViewBarricade(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ShowWebViewBarricade(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn SetShowWebViewBarricade(&self, bshowwebviewbarricade: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(bshowwebviewbarricade)).ok() } } unsafe impl ::windows::core::Interface for Folder3 { type Vtable = Folder3_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa7ae5f64_c4d7_4d7f_9307_4d24ee54b841); } impl ::core::convert::From<Folder3> for ::windows::core::IUnknown { fn from(value: Folder3) -> Self { value.0 } } impl ::core::convert::From<&Folder3> for ::windows::core::IUnknown { fn from(value: &Folder3) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for Folder3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a Folder3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<Folder3> for Folder2 { fn from(value: Folder3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&Folder3> for Folder2 { fn from(value: &Folder3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, Folder2> for Folder3 { fn into_param(self) -> ::windows::core::Param<'a, Folder2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, Folder2> for &Folder3 { fn into_param(self) -> ::windows::core::Param<'a, Folder2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<Folder3> for Folder { fn from(value: Folder3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&Folder3> for Folder { fn from(value: &Folder3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, Folder> for Folder3 { fn into_param(self) -> ::windows::core::Param<'a, Folder> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, Folder> for &Folder3 { fn into_param(self) -> ::windows::core::Param<'a, Folder> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<Folder3> for super::super::System::Com::IDispatch { fn from(value: Folder3) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&Folder3> for super::super::System::Com::IDispatch { fn from(value: &Folder3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for Folder3 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &Folder3 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct Folder3_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsf: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, voptions: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vitem: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, voptions: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vitem: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, voptions: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vitem: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, icolumn: i32, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppfi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pul: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbhavetoshowwebviewbarricade: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbshowwebviewbarricade: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bshowwebviewbarricade: i16) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct FolderItem(pub ::windows::core::IUnknown); impl FolderItem { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Application(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Name(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bs: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), bs.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Path(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetLink(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFolder(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } pub unsafe fn IsLink(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn IsFolder(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn IsFileSystem(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn IsBrowsable(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn ModifyDate(&self) -> ::windows::core::Result<f64> { let mut result__: <f64 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), &mut result__).from_abi::<f64>(result__) } pub unsafe fn SetModifyDate(&self, dt: f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), ::core::mem::transmute(dt)).ok() } pub unsafe fn Size(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Type(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn Verbs(&self) -> ::windows::core::Result<FolderItemVerbs> { let mut result__: <FolderItemVerbs as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), &mut result__).from_abi::<FolderItemVerbs>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn InvokeVerb<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vverb: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), vverb.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for FolderItem { type Vtable = FolderItem_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfac32c80_cbe4_11ce_8350_444553540000); } impl ::core::convert::From<FolderItem> for ::windows::core::IUnknown { fn from(value: FolderItem) -> Self { value.0 } } impl ::core::convert::From<&FolderItem> for ::windows::core::IUnknown { fn from(value: &FolderItem) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FolderItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FolderItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<FolderItem> for super::super::System::Com::IDispatch { fn from(value: FolderItem) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&FolderItem> for super::super::System::Com::IDispatch { fn from(value: &FolderItem) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for FolderItem { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &FolderItem { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct FolderItem_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bs: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pb: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pb: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pb: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pb: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdt: *mut f64) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dt: f64) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pul: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppfic: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vverb: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct FolderItem2(pub ::windows::core::IUnknown); impl FolderItem2 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Application(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Name(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bs: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), bs.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Path(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetLink(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFolder(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } pub unsafe fn IsLink(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn IsFolder(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn IsFileSystem(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn IsBrowsable(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn ModifyDate(&self) -> ::windows::core::Result<f64> { let mut result__: <f64 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), &mut result__).from_abi::<f64>(result__) } pub unsafe fn SetModifyDate(&self, dt: f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), ::core::mem::transmute(dt)).ok() } pub unsafe fn Size(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Type(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn Verbs(&self) -> ::windows::core::Result<FolderItemVerbs> { let mut result__: <FolderItemVerbs as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), &mut result__).from_abi::<FolderItemVerbs>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn InvokeVerb<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vverb: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), vverb.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn InvokeVerbEx<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vverb: Param0, vargs: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), vverb.into_param().abi(), vargs.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ExtendedProperty<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrpropname: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), bstrpropname.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } } unsafe impl ::windows::core::Interface for FolderItem2 { type Vtable = FolderItem2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xedc817aa_92b8_11d1_b075_00c04fc33aa5); } impl ::core::convert::From<FolderItem2> for ::windows::core::IUnknown { fn from(value: FolderItem2) -> Self { value.0 } } impl ::core::convert::From<&FolderItem2> for ::windows::core::IUnknown { fn from(value: &FolderItem2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FolderItem2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FolderItem2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<FolderItem2> for FolderItem { fn from(value: FolderItem2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&FolderItem2> for FolderItem { fn from(value: &FolderItem2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, FolderItem> for FolderItem2 { fn into_param(self) -> ::windows::core::Param<'a, FolderItem> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, FolderItem> for &FolderItem2 { fn into_param(self) -> ::windows::core::Param<'a, FolderItem> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<FolderItem2> for super::super::System::Com::IDispatch { fn from(value: FolderItem2) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&FolderItem2> for super::super::System::Com::IDispatch { fn from(value: &FolderItem2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for FolderItem2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &FolderItem2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct FolderItem2_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bs: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pb: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pb: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pb: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pb: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdt: *mut f64) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dt: f64) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pul: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppfic: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vverb: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vverb: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, vargs: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrpropname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvret: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct FolderItemVerb(pub ::windows::core::IUnknown); impl FolderItemVerb { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Application(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Name(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn DoIt(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for FolderItemVerb { type Vtable = FolderItemVerb_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x08ec3e00_50b0_11cf_960c_0080c7f4ee85); } impl ::core::convert::From<FolderItemVerb> for ::windows::core::IUnknown { fn from(value: FolderItemVerb) -> Self { value.0 } } impl ::core::convert::From<&FolderItemVerb> for ::windows::core::IUnknown { fn from(value: &FolderItemVerb) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FolderItemVerb { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FolderItemVerb { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<FolderItemVerb> for super::super::System::Com::IDispatch { fn from(value: FolderItemVerb) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&FolderItemVerb> for super::super::System::Com::IDispatch { fn from(value: &FolderItemVerb) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for FolderItemVerb { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &FolderItemVerb { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct FolderItemVerb_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct FolderItemVerbs(pub ::windows::core::IUnknown); impl FolderItemVerbs { pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Application(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Item<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, index: Param0) -> ::windows::core::Result<FolderItemVerb> { let mut result__: <FolderItemVerb as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), index.into_param().abi(), &mut result__).from_abi::<FolderItemVerb>(result__) } pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__: <::windows::core::IUnknown as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<::windows::core::IUnknown>(result__) } } unsafe impl ::windows::core::Interface for FolderItemVerbs { type Vtable = FolderItemVerbs_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1f8352c0_50b0_11cf_960c_0080c7f4ee85); } impl ::core::convert::From<FolderItemVerbs> for ::windows::core::IUnknown { fn from(value: FolderItemVerbs) -> Self { value.0 } } impl ::core::convert::From<&FolderItemVerbs> for ::windows::core::IUnknown { fn from(value: &FolderItemVerbs) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FolderItemVerbs { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FolderItemVerbs { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<FolderItemVerbs> for super::super::System::Com::IDispatch { fn from(value: FolderItemVerbs) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&FolderItemVerbs> for super::super::System::Com::IDispatch { fn from(value: &FolderItemVerbs) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for FolderItemVerbs { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &FolderItemVerbs { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct FolderItemVerbs_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, plcount: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, index: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppunk: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct FolderItems(pub ::windows::core::IUnknown); impl FolderItems { pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Application(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Item<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, index: Param0) -> ::windows::core::Result<FolderItem> { let mut result__: <FolderItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), index.into_param().abi(), &mut result__).from_abi::<FolderItem>(result__) } pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__: <::windows::core::IUnknown as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<::windows::core::IUnknown>(result__) } } unsafe impl ::windows::core::Interface for FolderItems { type Vtable = FolderItems_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x744129e0_cbe5_11ce_8350_444553540000); } impl ::core::convert::From<FolderItems> for ::windows::core::IUnknown { fn from(value: FolderItems) -> Self { value.0 } } impl ::core::convert::From<&FolderItems> for ::windows::core::IUnknown { fn from(value: &FolderItems) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FolderItems { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FolderItems { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<FolderItems> for super::super::System::Com::IDispatch { fn from(value: FolderItems) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&FolderItems> for super::super::System::Com::IDispatch { fn from(value: &FolderItems) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for FolderItems { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &FolderItems { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct FolderItems_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, plcount: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, index: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppunk: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct FolderItems2(pub ::windows::core::IUnknown); impl FolderItems2 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Application(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Item<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, index: Param0) -> ::windows::core::Result<FolderItem> { let mut result__: <FolderItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), index.into_param().abi(), &mut result__).from_abi::<FolderItem>(result__) } pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__: <::windows::core::IUnknown as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<::windows::core::IUnknown>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn InvokeVerbEx<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vverb: Param0, vargs: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), vverb.into_param().abi(), vargs.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for FolderItems2 { type Vtable = FolderItems2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc94f0ad0_f363_11d2_a327_00c04f8eec7f); } impl ::core::convert::From<FolderItems2> for ::windows::core::IUnknown { fn from(value: FolderItems2) -> Self { value.0 } } impl ::core::convert::From<&FolderItems2> for ::windows::core::IUnknown { fn from(value: &FolderItems2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FolderItems2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FolderItems2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<FolderItems2> for FolderItems { fn from(value: FolderItems2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&FolderItems2> for FolderItems { fn from(value: &FolderItems2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, FolderItems> for FolderItems2 { fn into_param(self) -> ::windows::core::Param<'a, FolderItems> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, FolderItems> for &FolderItems2 { fn into_param(self) -> ::windows::core::Param<'a, FolderItems> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<FolderItems2> for super::super::System::Com::IDispatch { fn from(value: FolderItems2) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&FolderItems2> for super::super::System::Com::IDispatch { fn from(value: &FolderItems2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for FolderItems2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &FolderItems2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct FolderItems2_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, plcount: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, index: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppunk: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vverb: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, vargs: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct FolderItems3(pub ::windows::core::IUnknown); impl FolderItems3 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Application(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Item<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, index: Param0) -> ::windows::core::Result<FolderItem> { let mut result__: <FolderItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), index.into_param().abi(), &mut result__).from_abi::<FolderItem>(result__) } pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__: <::windows::core::IUnknown as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<::windows::core::IUnknown>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn InvokeVerbEx<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vverb: Param0, vargs: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), vverb.into_param().abi(), vargs.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Filter<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, grfflags: i32, bstrfilespec: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(grfflags), bstrfilespec.into_param().abi()).ok() } pub unsafe fn Verbs(&self) -> ::windows::core::Result<FolderItemVerbs> { let mut result__: <FolderItemVerbs as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<FolderItemVerbs>(result__) } } unsafe impl ::windows::core::Interface for FolderItems3 { type Vtable = FolderItems3_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xeaa7c309_bbec_49d5_821d_64d966cb667f); } impl ::core::convert::From<FolderItems3> for ::windows::core::IUnknown { fn from(value: FolderItems3) -> Self { value.0 } } impl ::core::convert::From<&FolderItems3> for ::windows::core::IUnknown { fn from(value: &FolderItems3) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FolderItems3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FolderItems3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<FolderItems3> for FolderItems2 { fn from(value: FolderItems3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&FolderItems3> for FolderItems2 { fn from(value: &FolderItems3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, FolderItems2> for FolderItems3 { fn into_param(self) -> ::windows::core::Param<'a, FolderItems2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, FolderItems2> for &FolderItems3 { fn into_param(self) -> ::windows::core::Param<'a, FolderItems2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<FolderItems3> for FolderItems { fn from(value: FolderItems3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&FolderItems3> for FolderItems { fn from(value: &FolderItems3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, FolderItems> for FolderItems3 { fn into_param(self) -> ::windows::core::Param<'a, FolderItems> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, FolderItems> for &FolderItems3 { fn into_param(self) -> ::windows::core::Param<'a, FolderItems> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<FolderItems3> for super::super::System::Com::IDispatch { fn from(value: FolderItems3) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&FolderItems3> for super::super::System::Com::IDispatch { fn from(value: &FolderItems3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for FolderItems3 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &FolderItems3 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct FolderItems3_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, plcount: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, index: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppunk: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vverb: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, vargs: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, grfflags: i32, bstrfilespec: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppfic: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); pub const FolderViewHost: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x20b1cb23_6968_4eb9_b7d4_a66d00d07cee); pub const FrameworkInputPane: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd5120aa3_46ba_44c5_822d_ca8092c1fc72); pub const FreeSpaceCategorizer: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb5607793_24ac_44c7_82e2_831726aa6cb7); pub const GADOF_DIRTY: u32 = 1u32; pub const GCS_HELPTEXT: u32 = 5u32; pub const GCS_HELPTEXTA: u32 = 1u32; pub const GCS_HELPTEXTW: u32 = 5u32; pub const GCS_UNICODE: u32 = 4u32; pub const GCS_VALIDATE: u32 = 6u32; pub const GCS_VALIDATEA: u32 = 2u32; pub const GCS_VALIDATEW: u32 = 6u32; pub const GCS_VERB: u32 = 4u32; pub const GCS_VERBA: u32 = 0u32; pub const GCS_VERBICONW: u32 = 20u32; pub const GCS_VERBW: u32 = 4u32; pub const GCT_INVALID: u32 = 0u32; pub const GCT_LFNCHAR: u32 = 1u32; pub const GCT_SEPARATOR: u32 = 8u32; pub const GCT_SHORTCHAR: u32 = 2u32; pub const GCT_WILD: u32 = 4u32; pub const GETPROPS_NONE: u32 = 0u32; pub const GIL_ASYNC: u32 = 32u32; pub const GIL_CHECKSHIELD: u32 = 512u32; pub const GIL_DEFAULTICON: u32 = 64u32; pub const GIL_DONTCACHE: u32 = 16u32; pub const GIL_FORCENOSHIELD: u32 = 1024u32; pub const GIL_FORSHELL: u32 = 2u32; pub const GIL_FORSHORTCUT: u32 = 128u32; pub const GIL_NOTFILENAME: u32 = 8u32; pub const GIL_OPENICON: u32 = 1u32; pub const GIL_PERCLASS: u32 = 4u32; pub const GIL_PERINSTANCE: u32 = 2u32; pub const GIL_SHIELD: u32 = 512u32; pub const GIL_SIMULATEDOC: u32 = 1u32; pub const GPFIDL_ALTNAME: i32 = 1i32; pub const GPFIDL_DEFAULT: i32 = 0i32; pub const GPFIDL_UNCPRINTER: i32 = 2i32; pub const GenericCredentialProvider: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x25cbb996_92ed_457e_b28c_4774084bd562); #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetAcceptLanguagesA(pszlanguages: super::super::Foundation::PSTR, pcchlanguages: *mut u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetAcceptLanguagesA(pszlanguages: super::super::Foundation::PSTR, pcchlanguages: *mut u32) -> ::windows::core::HRESULT; } GetAcceptLanguagesA(::core::mem::transmute(pszlanguages), ::core::mem::transmute(pcchlanguages)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetAcceptLanguagesW(pszlanguages: super::super::Foundation::PWSTR, pcchlanguages: *mut u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetAcceptLanguagesW(pszlanguages: super::super::Foundation::PWSTR, pcchlanguages: *mut u32) -> ::windows::core::HRESULT; } GetAcceptLanguagesW(::core::mem::transmute(pszlanguages), ::core::mem::transmute(pcchlanguages)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetAllUsersProfileDirectoryA(lpprofiledir: super::super::Foundation::PSTR, lpcchsize: *mut u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetAllUsersProfileDirectoryA(lpprofiledir: super::super::Foundation::PSTR, lpcchsize: *mut u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetAllUsersProfileDirectoryA(::core::mem::transmute(lpprofiledir), ::core::mem::transmute(lpcchsize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetAllUsersProfileDirectoryW(lpprofiledir: super::super::Foundation::PWSTR, lpcchsize: *mut u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetAllUsersProfileDirectoryW(lpprofiledir: super::super::Foundation::PWSTR, lpcchsize: *mut u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetAllUsersProfileDirectoryW(::core::mem::transmute(lpprofiledir), ::core::mem::transmute(lpcchsize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetCurrentProcessExplicitAppUserModelID() -> ::windows::core::Result<super::super::Foundation::PWSTR> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetCurrentProcessExplicitAppUserModelID(appid: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); GetCurrentProcessExplicitAppUserModelID(&mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetDefaultUserProfileDirectoryA(lpprofiledir: super::super::Foundation::PSTR, lpcchsize: *mut u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetDefaultUserProfileDirectoryA(lpprofiledir: super::super::Foundation::PSTR, lpcchsize: *mut u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetDefaultUserProfileDirectoryA(::core::mem::transmute(lpprofiledir), ::core::mem::transmute(lpcchsize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetDefaultUserProfileDirectoryW(lpprofiledir: super::super::Foundation::PWSTR, lpcchsize: *mut u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetDefaultUserProfileDirectoryW(lpprofiledir: super::super::Foundation::PWSTR, lpcchsize: *mut u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetDefaultUserProfileDirectoryW(::core::mem::transmute(lpprofiledir), ::core::mem::transmute(lpcchsize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn GetDpiForShellUIComponent(param0: SHELL_UI_COMPONENT) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetDpiForShellUIComponent(param0: SHELL_UI_COMPONENT) -> u32; } ::core::mem::transmute(GetDpiForShellUIComponent(::core::mem::transmute(param0))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetFileNameFromBrowse<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param5: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param6: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>( hwnd: Param0, pszfilepath: Param1, cchfilepath: u32, pszworkingdir: Param3, pszdefext: Param4, pszfilters: Param5, psztitle: Param6, ) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetFileNameFromBrowse(hwnd: super::super::Foundation::HWND, pszfilepath: super::super::Foundation::PWSTR, cchfilepath: u32, pszworkingdir: super::super::Foundation::PWSTR, pszdefext: super::super::Foundation::PWSTR, pszfilters: super::super::Foundation::PWSTR, psztitle: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetFileNameFromBrowse(hwnd.into_param().abi(), pszfilepath.into_param().abi(), ::core::mem::transmute(cchfilepath), pszworkingdir.into_param().abi(), pszdefext.into_param().abi(), pszfilters.into_param().abi(), psztitle.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetMenuContextHelpId<'a, Param0: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HMENU>>(param0: Param0) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetMenuContextHelpId(param0: super::WindowsAndMessaging::HMENU) -> u32; } ::core::mem::transmute(GetMenuContextHelpId(param0.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetMenuPosFromID<'a, Param0: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HMENU>>(hmenu: Param0, id: u32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetMenuPosFromID(hmenu: super::WindowsAndMessaging::HMENU, id: u32) -> i32; } ::core::mem::transmute(GetMenuPosFromID(hmenu.into_param().abi(), ::core::mem::transmute(id))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetProfileType(dwflags: *mut u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetProfileType(dwflags: *mut u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetProfileType(::core::mem::transmute(dwflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetProfilesDirectoryA(lpprofiledir: super::super::Foundation::PSTR, lpcchsize: *mut u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetProfilesDirectoryA(lpprofiledir: super::super::Foundation::PSTR, lpcchsize: *mut u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetProfilesDirectoryA(::core::mem::transmute(lpprofiledir), ::core::mem::transmute(lpcchsize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetProfilesDirectoryW(lpprofiledir: super::super::Foundation::PWSTR, lpcchsize: *mut u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetProfilesDirectoryW(lpprofiledir: super::super::Foundation::PWSTR, lpcchsize: *mut u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetProfilesDirectoryW(::core::mem::transmute(lpprofiledir), ::core::mem::transmute(lpcchsize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn GetScaleFactorForDevice(devicetype: DISPLAY_DEVICE_TYPE) -> Common::DEVICE_SCALE_FACTOR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetScaleFactorForDevice(devicetype: DISPLAY_DEVICE_TYPE) -> Common::DEVICE_SCALE_FACTOR; } ::core::mem::transmute(GetScaleFactorForDevice(::core::mem::transmute(devicetype))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn GetScaleFactorForMonitor<'a, Param0: ::windows::core::IntoParam<'a, super::super::Graphics::Gdi::HMONITOR>>(hmon: Param0) -> ::windows::core::Result<Common::DEVICE_SCALE_FACTOR> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetScaleFactorForMonitor(hmon: super::super::Graphics::Gdi::HMONITOR, pscale: *mut Common::DEVICE_SCALE_FACTOR) -> ::windows::core::HRESULT; } let mut result__: <Common::DEVICE_SCALE_FACTOR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); GetScaleFactorForMonitor(hmon.into_param().abi(), &mut result__).from_abi::<Common::DEVICE_SCALE_FACTOR>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetUserProfileDirectoryA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(htoken: Param0, lpprofiledir: super::super::Foundation::PSTR, lpcchsize: *mut u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetUserProfileDirectoryA(htoken: super::super::Foundation::HANDLE, lpprofiledir: super::super::Foundation::PSTR, lpcchsize: *mut u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetUserProfileDirectoryA(htoken.into_param().abi(), ::core::mem::transmute(lpprofiledir), ::core::mem::transmute(lpcchsize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetUserProfileDirectoryW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(htoken: Param0, lpprofiledir: super::super::Foundation::PWSTR, lpcchsize: *mut u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetUserProfileDirectoryW(htoken: super::super::Foundation::HANDLE, lpprofiledir: super::super::Foundation::PWSTR, lpcchsize: *mut u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetUserProfileDirectoryW(htoken.into_param().abi(), ::core::mem::transmute(lpprofiledir), ::core::mem::transmute(lpcchsize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetWindowContextHelpId<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(param0: Param0) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetWindowContextHelpId(param0: super::super::Foundation::HWND) -> u32; } ::core::mem::transmute(GetWindowContextHelpId(param0.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetWindowSubclass<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(hwnd: Param0, pfnsubclass: ::core::option::Option<SUBCLASSPROC>, uidsubclass: usize, pdwrefdata: *mut usize) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetWindowSubclass(hwnd: super::super::Foundation::HWND, pfnsubclass: ::windows::core::RawPtr, uidsubclass: usize, pdwrefdata: *mut usize) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetWindowSubclass(hwnd.into_param().abi(), ::core::mem::transmute(pfnsubclass), ::core::mem::transmute(uidsubclass), ::core::mem::transmute(pdwrefdata))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy, :: core :: fmt :: Debug, :: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] #[repr(transparent)] pub struct HDROP(pub isize); impl ::core::default::Default for HDROP { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } unsafe impl ::windows::core::Handle for HDROP {} unsafe impl ::windows::core::Abi for HDROP { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct HELPINFO { pub cbSize: u32, pub iContextType: i32, pub iCtrlId: i32, pub hItemHandle: super::super::Foundation::HANDLE, pub dwContextId: usize, pub MousePos: super::super::Foundation::POINT, } #[cfg(feature = "Win32_Foundation")] impl HELPINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for HELPINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for HELPINFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("HELPINFO").field("cbSize", &self.cbSize).field("iContextType", &self.iContextType).field("iCtrlId", &self.iCtrlId).field("hItemHandle", &self.hItemHandle).field("dwContextId", &self.dwContextId).field("MousePos", &self.MousePos).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for HELPINFO { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.iContextType == other.iContextType && self.iCtrlId == other.iCtrlId && self.hItemHandle == other.hItemHandle && self.dwContextId == other.dwContextId && self.MousePos == other.MousePos } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for HELPINFO {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for HELPINFO { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct HELPWININFOA { pub wStructSize: i32, pub x: i32, pub y: i32, pub dx: i32, pub dy: i32, pub wMax: i32, pub rgchMember: [super::super::Foundation::CHAR; 2], } #[cfg(feature = "Win32_Foundation")] impl HELPWININFOA {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for HELPWININFOA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for HELPWININFOA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("HELPWININFOA").field("wStructSize", &self.wStructSize).field("x", &self.x).field("y", &self.y).field("dx", &self.dx).field("dy", &self.dy).field("wMax", &self.wMax).field("rgchMember", &self.rgchMember).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for HELPWININFOA { fn eq(&self, other: &Self) -> bool { self.wStructSize == other.wStructSize && self.x == other.x && self.y == other.y && self.dx == other.dx && self.dy == other.dy && self.wMax == other.wMax && self.rgchMember == other.rgchMember } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for HELPWININFOA {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for HELPWININFOA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] 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 HELPWININFOW {} impl ::core::default::Default for HELPWININFOW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for HELPWININFOW { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("HELPWININFOW").field("wStructSize", &self.wStructSize).field("x", &self.x).field("y", &self.y).field("dx", &self.dx).field("dy", &self.dy).field("wMax", &self.wMax).field("rgchMember", &self.rgchMember).finish() } } impl ::core::cmp::PartialEq for HELPWININFOW { fn eq(&self, other: &Self) -> bool { self.wStructSize == other.wStructSize && self.x == other.x && self.y == other.y && self.dx == other.dx && self.dy == other.dy && self.wMax == other.wMax && self.rgchMember == other.rgchMember } } impl ::core::cmp::Eq for HELPWININFOW {} unsafe impl ::windows::core::Abi for HELPWININFOW { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct HLBWIF_FLAGS(pub u32); pub const HLBWIF_HASFRAMEWNDINFO: HLBWIF_FLAGS = HLBWIF_FLAGS(1u32); pub const HLBWIF_HASDOCWNDINFO: HLBWIF_FLAGS = HLBWIF_FLAGS(2u32); pub const HLBWIF_FRAMEWNDMAXIMIZED: HLBWIF_FLAGS = HLBWIF_FLAGS(4u32); pub const HLBWIF_DOCWNDMAXIMIZED: HLBWIF_FLAGS = HLBWIF_FLAGS(8u32); pub const HLBWIF_HASWEBTOOLBARINFO: HLBWIF_FLAGS = HLBWIF_FLAGS(16u32); pub const HLBWIF_WEBTOOLBARHIDDEN: HLBWIF_FLAGS = HLBWIF_FLAGS(32u32); impl ::core::convert::From<u32> for HLBWIF_FLAGS { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for HLBWIF_FLAGS { type Abi = Self; } impl ::core::ops::BitOr for HLBWIF_FLAGS { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for HLBWIF_FLAGS { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for HLBWIF_FLAGS { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for HLBWIF_FLAGS { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for HLBWIF_FLAGS { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[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 HLBWINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for HLBWINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for HLBWINFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("HLBWINFO").field("cbSize", &self.cbSize).field("grfHLBWIF", &self.grfHLBWIF).field("rcFramePos", &self.rcFramePos).field("rcDocPos", &self.rcDocPos).field("hltbinfo", &self.hltbinfo).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for HLBWINFO { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.grfHLBWIF == other.grfHLBWIF && self.rcFramePos == other.rcFramePos && self.rcDocPos == other.rcDocPos && self.hltbinfo == other.hltbinfo } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for HLBWINFO {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for HLBWINFO { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct HLFNAMEF(pub u32); pub const HLFNAMEF_DEFAULT: HLFNAMEF = HLFNAMEF(0u32); pub const HLFNAMEF_TRYCACHE: HLFNAMEF = HLFNAMEF(1u32); pub const HLFNAMEF_TRYPRETTYTARGET: HLFNAMEF = HLFNAMEF(2u32); pub const HLFNAMEF_TRYFULLTARGET: HLFNAMEF = HLFNAMEF(4u32); pub const HLFNAMEF_TRYWIN95SHORTCUT: HLFNAMEF = HLFNAMEF(8u32); impl ::core::convert::From<u32> for HLFNAMEF { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for HLFNAMEF { type Abi = Self; } impl ::core::ops::BitOr for HLFNAMEF { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for HLFNAMEF { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for HLFNAMEF { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for HLFNAMEF { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for HLFNAMEF { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct HLID_INFO(pub u32); pub const HLID_INVALID: HLID_INFO = HLID_INFO(0u32); pub const HLID_PREVIOUS: HLID_INFO = HLID_INFO(4294967295u32); pub const HLID_NEXT: HLID_INFO = HLID_INFO(4294967294u32); pub const HLID_CURRENT: HLID_INFO = HLID_INFO(4294967293u32); pub const HLID_STACKBOTTOM: HLID_INFO = HLID_INFO(4294967292u32); pub const HLID_STACKTOP: HLID_INFO = HLID_INFO(4294967291u32); impl ::core::convert::From<u32> for HLID_INFO { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for HLID_INFO { type Abi = Self; } impl ::core::ops::BitOr for HLID_INFO { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for HLID_INFO { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for HLID_INFO { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for HLID_INFO { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for HLID_INFO { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct HLINKGETREF(pub i32); pub const HLINKGETREF_DEFAULT: HLINKGETREF = HLINKGETREF(0i32); pub const HLINKGETREF_ABSOLUTE: HLINKGETREF = HLINKGETREF(1i32); pub const HLINKGETREF_RELATIVE: HLINKGETREF = HLINKGETREF(2i32); impl ::core::convert::From<i32> for HLINKGETREF { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for HLINKGETREF { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct HLINKMISC(pub i32); pub const HLINKMISC_RELATIVE: HLINKMISC = HLINKMISC(1i32); impl ::core::convert::From<i32> for HLINKMISC { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for HLINKMISC { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct HLINKSETF(pub i32); pub const HLINKSETF_TARGET: HLINKSETF = HLINKSETF(1i32); pub const HLINKSETF_LOCATION: HLINKSETF = HLINKSETF(2i32); impl ::core::convert::From<i32> for HLINKSETF { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for HLINKSETF { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct HLINKWHICHMK(pub i32); pub const HLINKWHICHMK_CONTAINER: HLINKWHICHMK = HLINKWHICHMK(1i32); pub const HLINKWHICHMK_BASE: HLINKWHICHMK = HLINKWHICHMK(2i32); impl ::core::convert::From<i32> for HLINKWHICHMK { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for HLINKWHICHMK { type Abi = Self; } pub const HLINK_E_FIRST: ::windows::core::HRESULT = ::windows::core::HRESULT(-2147221248i32 as _); pub const HLINK_S_DONTHIDE: i32 = 262400i32; pub const HLINK_S_FIRST: ::windows::core::HRESULT = ::windows::core::HRESULT(262400i32 as _); #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct HLITEM { pub uHLID: u32, pub pwzFriendlyName: super::super::Foundation::PWSTR, } #[cfg(feature = "Win32_Foundation")] impl HLITEM {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for HLITEM { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for HLITEM { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("HLITEM").field("uHLID", &self.uHLID).field("pwzFriendlyName", &self.pwzFriendlyName).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for HLITEM { fn eq(&self, other: &Self) -> bool { self.uHLID == other.uHLID && self.pwzFriendlyName == other.pwzFriendlyName } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for HLITEM {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for HLITEM { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct HLNF(pub u32); pub const HLNF_INTERNALJUMP: HLNF = HLNF(1u32); pub const HLNF_OPENINNEWWINDOW: HLNF = HLNF(2u32); pub const HLNF_NAVIGATINGBACK: HLNF = HLNF(4u32); pub const HLNF_NAVIGATINGFORWARD: HLNF = HLNF(8u32); pub const HLNF_NAVIGATINGTOSTACKITEM: HLNF = HLNF(16u32); pub const HLNF_CREATENOHISTORY: HLNF = HLNF(32u32); impl ::core::convert::From<u32> for HLNF { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for HLNF { type Abi = Self; } impl ::core::ops::BitOr for HLNF { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for HLNF { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for HLNF { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for HLNF { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for HLNF { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } pub const HLNF_ALLOW_AUTONAVIGATE: u32 = 536870912u32; pub const HLNF_CALLERUNTRUSTED: u32 = 2097152u32; pub const HLNF_DISABLEWINDOWRESTRICTIONS: u32 = 8388608u32; pub const HLNF_EXTERNALNAVIGATE: u32 = 268435456u32; pub const HLNF_NEWWINDOWSMANAGED: u32 = 2147483648u32; pub const HLNF_TRUSTEDFORACTIVEX: u32 = 4194304u32; pub const HLNF_TRUSTFIRSTDOWNLOAD: u32 = 16777216u32; pub const HLNF_UNTRUSTEDFORDOWNLOAD: u32 = 33554432u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct HLQF_INFO(pub i32); pub const HLQF_ISVALID: HLQF_INFO = HLQF_INFO(1i32); pub const HLQF_ISCURRENT: HLQF_INFO = HLQF_INFO(2i32); impl ::core::convert::From<i32> for HLQF_INFO { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for HLQF_INFO { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct HLTBINFO { pub uDockType: u32, pub rcTbPos: super::super::Foundation::RECT, } #[cfg(feature = "Win32_Foundation")] impl HLTBINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for HLTBINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for HLTBINFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("HLTBINFO").field("uDockType", &self.uDockType).field("rcTbPos", &self.rcTbPos).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for HLTBINFO { fn eq(&self, other: &Self) -> bool { self.uDockType == other.uDockType && self.rcTbPos == other.rcTbPos } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for HLTBINFO {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for HLTBINFO { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct HLTB_INFO(pub i32); pub const HLTB_DOCKEDLEFT: HLTB_INFO = HLTB_INFO(0i32); pub const HLTB_DOCKEDTOP: HLTB_INFO = HLTB_INFO(1i32); pub const HLTB_DOCKEDRIGHT: HLTB_INFO = HLTB_INFO(2i32); pub const HLTB_DOCKEDBOTTOM: HLTB_INFO = HLTB_INFO(3i32); pub const HLTB_FLOATING: HLTB_INFO = HLTB_INFO(4i32); impl ::core::convert::From<i32> for HLTB_INFO { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for HLTB_INFO { type Abi = Self; } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HMONITOR_UserFree(param0: *const u32, param1: *const super::super::Graphics::Gdi::HMONITOR) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HMONITOR_UserFree(param0: *const u32, param1: *const super::super::Graphics::Gdi::HMONITOR); } ::core::mem::transmute(HMONITOR_UserFree(::core::mem::transmute(param0), ::core::mem::transmute(param1))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HMONITOR_UserFree64(param0: *const u32, param1: *const super::super::Graphics::Gdi::HMONITOR) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HMONITOR_UserFree64(param0: *const u32, param1: *const super::super::Graphics::Gdi::HMONITOR); } ::core::mem::transmute(HMONITOR_UserFree64(::core::mem::transmute(param0), ::core::mem::transmute(param1))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HMONITOR_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const super::super::Graphics::Gdi::HMONITOR) -> *mut u8 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HMONITOR_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const super::super::Graphics::Gdi::HMONITOR) -> *mut u8; } ::core::mem::transmute(HMONITOR_UserMarshal(::core::mem::transmute(param0), ::core::mem::transmute(param1), ::core::mem::transmute(param2))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HMONITOR_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const super::super::Graphics::Gdi::HMONITOR) -> *mut u8 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HMONITOR_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const super::super::Graphics::Gdi::HMONITOR) -> *mut u8; } ::core::mem::transmute(HMONITOR_UserMarshal64(::core::mem::transmute(param0), ::core::mem::transmute(param1), ::core::mem::transmute(param2))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HMONITOR_UserSize(param0: *const u32, param1: u32, param2: *const super::super::Graphics::Gdi::HMONITOR) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HMONITOR_UserSize(param0: *const u32, param1: u32, param2: *const super::super::Graphics::Gdi::HMONITOR) -> u32; } ::core::mem::transmute(HMONITOR_UserSize(::core::mem::transmute(param0), ::core::mem::transmute(param1), ::core::mem::transmute(param2))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HMONITOR_UserSize64(param0: *const u32, param1: u32, param2: *const super::super::Graphics::Gdi::HMONITOR) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HMONITOR_UserSize64(param0: *const u32, param1: u32, param2: *const super::super::Graphics::Gdi::HMONITOR) -> u32; } ::core::mem::transmute(HMONITOR_UserSize64(::core::mem::transmute(param0), ::core::mem::transmute(param1), ::core::mem::transmute(param2))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HMONITOR_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::Graphics::Gdi::HMONITOR) -> *mut u8 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HMONITOR_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::Graphics::Gdi::HMONITOR) -> *mut u8; } ::core::mem::transmute(HMONITOR_UserUnmarshal(::core::mem::transmute(param0), ::core::mem::transmute(param1), ::core::mem::transmute(param2))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HMONITOR_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::Graphics::Gdi::HMONITOR) -> *mut u8 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HMONITOR_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::Graphics::Gdi::HMONITOR) -> *mut u8; } ::core::mem::transmute(HMONITOR_UserUnmarshal64(::core::mem::transmute(param0), ::core::mem::transmute(param1), ::core::mem::transmute(param2))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct HOMEGROUPSHARINGCHOICES(pub i32); pub const HGSC_NONE: HOMEGROUPSHARINGCHOICES = HOMEGROUPSHARINGCHOICES(0i32); pub const HGSC_MUSICLIBRARY: HOMEGROUPSHARINGCHOICES = HOMEGROUPSHARINGCHOICES(1i32); pub const HGSC_PICTURESLIBRARY: HOMEGROUPSHARINGCHOICES = HOMEGROUPSHARINGCHOICES(2i32); pub const HGSC_VIDEOSLIBRARY: HOMEGROUPSHARINGCHOICES = HOMEGROUPSHARINGCHOICES(4i32); pub const HGSC_DOCUMENTSLIBRARY: HOMEGROUPSHARINGCHOICES = HOMEGROUPSHARINGCHOICES(8i32); pub const HGSC_PRINTERS: HOMEGROUPSHARINGCHOICES = HOMEGROUPSHARINGCHOICES(16i32); impl ::core::convert::From<i32> for HOMEGROUPSHARINGCHOICES { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for HOMEGROUPSHARINGCHOICES { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy, :: core :: fmt :: Debug, :: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] #[repr(transparent)] pub struct HPSXA(pub isize); impl ::core::default::Default for HPSXA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } unsafe impl ::windows::core::Handle for HPSXA {} unsafe impl ::windows::core::Abi for HPSXA { type Abi = Self; } #[inline] pub unsafe fn HashData(pbdata: *const u8, cbdata: u32, pbhash: *mut u8, cbhash: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HashData(pbdata: *const u8, cbdata: u32, pbhash: *mut u8, cbhash: u32) -> ::windows::core::HRESULT; } HashData(::core::mem::transmute(pbdata), ::core::mem::transmute(cbdata), ::core::mem::transmute(pbhash), ::core::mem::transmute(cbhash)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const HideInputPaneAnimationCoordinator: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x384742b1_2a77_4cb3_8cf8_1136f5e17e59); #[inline] pub unsafe fn HlinkClone<'a, Param0: ::windows::core::IntoParam<'a, IHlink>, Param2: ::windows::core::IntoParam<'a, IHlinkSite>>(pihl: Param0, riid: *const ::windows::core::GUID, pihlsiteforclone: Param2, dwsitedata: u32, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkClone(pihl: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, pihlsiteforclone: ::windows::core::RawPtr, dwsitedata: u32, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } HlinkClone(pihl.into_param().abi(), ::core::mem::transmute(riid), pihlsiteforclone.into_param().abi(), ::core::mem::transmute(dwsitedata), ::core::mem::transmute(ppvobj)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn HlinkCreateBrowseContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(piunkouter: Param0, riid: *const ::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkCreateBrowseContext(piunkouter: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } HlinkCreateBrowseContext(piunkouter.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppvobj)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn HlinkCreateExtensionServices<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param4: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>( pwzadditionalheaders: Param0, phwnd: Param1, pszusername: Param2, pszpassword: Param3, piunkouter: Param4, riid: *const ::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void, ) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkCreateExtensionServices(pwzadditionalheaders: super::super::Foundation::PWSTR, phwnd: super::super::Foundation::HWND, pszusername: super::super::Foundation::PWSTR, pszpassword: super::super::Foundation::PWSTR, piunkouter: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } HlinkCreateExtensionServices(pwzadditionalheaders.into_param().abi(), phwnd.into_param().abi(), pszusername.into_param().abi(), pszpassword.into_param().abi(), piunkouter.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppvobj)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn HlinkCreateFromData<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>, Param1: ::windows::core::IntoParam<'a, IHlinkSite>, Param3: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(pidataobj: Param0, pihlsite: Param1, dwsitedata: u32, piunkouter: Param3, riid: *const ::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkCreateFromData(pidataobj: ::windows::core::RawPtr, pihlsite: ::windows::core::RawPtr, dwsitedata: u32, piunkouter: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } HlinkCreateFromData(pidataobj.into_param().abi(), pihlsite.into_param().abi(), ::core::mem::transmute(dwsitedata), piunkouter.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppvobj)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] pub unsafe fn HlinkCreateFromMoniker<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IMoniker>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, IHlinkSite>, Param5: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>( pimktrgt: Param0, pwzlocation: Param1, pwzfriendlyname: Param2, pihlsite: Param3, dwsitedata: u32, piunkouter: Param5, riid: *const ::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void, ) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkCreateFromMoniker(pimktrgt: ::windows::core::RawPtr, pwzlocation: super::super::Foundation::PWSTR, pwzfriendlyname: super::super::Foundation::PWSTR, pihlsite: ::windows::core::RawPtr, dwsitedata: u32, piunkouter: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } HlinkCreateFromMoniker(pimktrgt.into_param().abi(), pwzlocation.into_param().abi(), pwzfriendlyname.into_param().abi(), pihlsite.into_param().abi(), ::core::mem::transmute(dwsitedata), piunkouter.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppvobj)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn HlinkCreateFromString<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, IHlinkSite>, Param5: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>( pwztarget: Param0, pwzlocation: Param1, pwzfriendlyname: Param2, pihlsite: Param3, dwsitedata: u32, piunkouter: Param5, riid: *const ::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void, ) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkCreateFromString(pwztarget: super::super::Foundation::PWSTR, pwzlocation: super::super::Foundation::PWSTR, pwzfriendlyname: super::super::Foundation::PWSTR, pihlsite: ::windows::core::RawPtr, dwsitedata: u32, piunkouter: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } HlinkCreateFromString(pwztarget.into_param().abi(), pwzlocation.into_param().abi(), pwzfriendlyname.into_param().abi(), pihlsite.into_param().abi(), ::core::mem::transmute(dwsitedata), piunkouter.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppvobj)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn HlinkCreateShortcut<'a, Param1: ::windows::core::IntoParam<'a, IHlink>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(grfhlshortcutf: u32, pihl: Param1, pwzdir: Param2, pwzfilename: Param3, ppwzshortcutfile: *mut super::super::Foundation::PWSTR, dwreserved: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkCreateShortcut(grfhlshortcutf: u32, pihl: ::windows::core::RawPtr, pwzdir: super::super::Foundation::PWSTR, pwzfilename: super::super::Foundation::PWSTR, ppwzshortcutfile: *mut super::super::Foundation::PWSTR, dwreserved: u32) -> ::windows::core::HRESULT; } HlinkCreateShortcut(::core::mem::transmute(grfhlshortcutf), pihl.into_param().abi(), pwzdir.into_param().abi(), pwzfilename.into_param().abi(), ::core::mem::transmute(ppwzshortcutfile), ::core::mem::transmute(dwreserved)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] pub unsafe fn HlinkCreateShortcutFromMoniker<'a, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IMoniker>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>( grfhlshortcutf: u32, pimktarget: Param1, pwzlocation: Param2, pwzdir: Param3, pwzfilename: Param4, ppwzshortcutfile: *mut super::super::Foundation::PWSTR, dwreserved: u32, ) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkCreateShortcutFromMoniker(grfhlshortcutf: u32, pimktarget: ::windows::core::RawPtr, pwzlocation: super::super::Foundation::PWSTR, pwzdir: super::super::Foundation::PWSTR, pwzfilename: super::super::Foundation::PWSTR, ppwzshortcutfile: *mut super::super::Foundation::PWSTR, dwreserved: u32) -> ::windows::core::HRESULT; } HlinkCreateShortcutFromMoniker(::core::mem::transmute(grfhlshortcutf), pimktarget.into_param().abi(), pwzlocation.into_param().abi(), pwzdir.into_param().abi(), pwzfilename.into_param().abi(), ::core::mem::transmute(ppwzshortcutfile), ::core::mem::transmute(dwreserved)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn HlinkCreateShortcutFromString<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>( grfhlshortcutf: u32, pwztarget: Param1, pwzlocation: Param2, pwzdir: Param3, pwzfilename: Param4, ppwzshortcutfile: *mut super::super::Foundation::PWSTR, dwreserved: u32, ) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkCreateShortcutFromString(grfhlshortcutf: u32, pwztarget: super::super::Foundation::PWSTR, pwzlocation: super::super::Foundation::PWSTR, pwzdir: super::super::Foundation::PWSTR, pwzfilename: super::super::Foundation::PWSTR, ppwzshortcutfile: *mut super::super::Foundation::PWSTR, dwreserved: u32) -> ::windows::core::HRESULT; } HlinkCreateShortcutFromString(::core::mem::transmute(grfhlshortcutf), pwztarget.into_param().abi(), pwzlocation.into_param().abi(), pwzdir.into_param().abi(), pwzfilename.into_param().abi(), ::core::mem::transmute(ppwzshortcutfile), ::core::mem::transmute(dwreserved)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn HlinkGetSpecialReference(ureference: u32) -> ::windows::core::Result<super::super::Foundation::PWSTR> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkGetSpecialReference(ureference: u32, ppwzreference: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); HlinkGetSpecialReference(::core::mem::transmute(ureference), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn HlinkGetValueFromParams<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pwzparams: Param0, pwzname: Param1) -> ::windows::core::Result<super::super::Foundation::PWSTR> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkGetValueFromParams(pwzparams: super::super::Foundation::PWSTR, pwzname: super::super::Foundation::PWSTR, ppwzvalue: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); HlinkGetValueFromParams(pwzparams.into_param().abi(), pwzname.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn HlinkIsShortcut<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pwzfilename: Param0) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkIsShortcut(pwzfilename: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } HlinkIsShortcut(pwzfilename.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn HlinkNavigate<'a, Param0: ::windows::core::IntoParam<'a, IHlink>, Param1: ::windows::core::IntoParam<'a, IHlinkFrame>, Param3: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>, Param4: ::windows::core::IntoParam<'a, super::super::System::Com::IBindStatusCallback>, Param5: ::windows::core::IntoParam<'a, IHlinkBrowseContext>>(pihl: Param0, pihlframe: Param1, grfhlnf: u32, pbc: Param3, pibsc: Param4, pihlbc: Param5) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkNavigate(pihl: ::windows::core::RawPtr, pihlframe: ::windows::core::RawPtr, grfhlnf: u32, pbc: ::windows::core::RawPtr, pibsc: ::windows::core::RawPtr, pihlbc: ::windows::core::RawPtr) -> ::windows::core::HRESULT; } HlinkNavigate(pihl.into_param().abi(), pihlframe.into_param().abi(), ::core::mem::transmute(grfhlnf), pbc.into_param().abi(), pibsc.into_param().abi(), pihlbc.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] pub unsafe fn HlinkNavigateToStringReference< 'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, IHlinkSite>, Param4: ::windows::core::IntoParam<'a, IHlinkFrame>, Param6: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>, Param7: ::windows::core::IntoParam<'a, super::super::System::Com::IBindStatusCallback>, Param8: ::windows::core::IntoParam<'a, IHlinkBrowseContext>, >( pwztarget: Param0, pwzlocation: Param1, pihlsite: Param2, dwsitedata: u32, pihlframe: Param4, grfhlnf: u32, pibc: Param6, pibsc: Param7, pihlbc: Param8, ) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkNavigateToStringReference(pwztarget: super::super::Foundation::PWSTR, pwzlocation: super::super::Foundation::PWSTR, pihlsite: ::windows::core::RawPtr, dwsitedata: u32, pihlframe: ::windows::core::RawPtr, grfhlnf: u32, pibc: ::windows::core::RawPtr, pibsc: ::windows::core::RawPtr, pihlbc: ::windows::core::RawPtr) -> ::windows::core::HRESULT; } HlinkNavigateToStringReference(pwztarget.into_param().abi(), pwzlocation.into_param().abi(), pihlsite.into_param().abi(), ::core::mem::transmute(dwsitedata), pihlframe.into_param().abi(), ::core::mem::transmute(grfhlnf), pibc.into_param().abi(), pibsc.into_param().abi(), pihlbc.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] pub unsafe fn HlinkOnNavigate<'a, Param0: ::windows::core::IntoParam<'a, IHlinkFrame>, Param1: ::windows::core::IntoParam<'a, IHlinkBrowseContext>, Param3: ::windows::core::IntoParam<'a, super::super::System::Com::IMoniker>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param5: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>( pihlframe: Param0, pihlbc: Param1, grfhlnf: u32, pimktarget: Param3, pwzlocation: Param4, pwzfriendlyname: Param5, puhlid: *mut u32, ) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkOnNavigate(pihlframe: ::windows::core::RawPtr, pihlbc: ::windows::core::RawPtr, grfhlnf: u32, pimktarget: ::windows::core::RawPtr, pwzlocation: super::super::Foundation::PWSTR, pwzfriendlyname: super::super::Foundation::PWSTR, puhlid: *mut u32) -> ::windows::core::HRESULT; } HlinkOnNavigate(pihlframe.into_param().abi(), pihlbc.into_param().abi(), ::core::mem::transmute(grfhlnf), pimktarget.into_param().abi(), pwzlocation.into_param().abi(), pwzfriendlyname.into_param().abi(), ::core::mem::transmute(puhlid)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn HlinkOnRenameDocument<'a, Param1: ::windows::core::IntoParam<'a, IHlinkBrowseContext>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::IMoniker>, Param3: ::windows::core::IntoParam<'a, super::super::System::Com::IMoniker>>(dwreserved: u32, pihlbc: Param1, pimkold: Param2, pimknew: Param3) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkOnRenameDocument(dwreserved: u32, pihlbc: ::windows::core::RawPtr, pimkold: ::windows::core::RawPtr, pimknew: ::windows::core::RawPtr) -> ::windows::core::HRESULT; } HlinkOnRenameDocument(::core::mem::transmute(dwreserved), pihlbc.into_param().abi(), pimkold.into_param().abi(), pimknew.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] pub unsafe fn HlinkParseDisplayName<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(pibc: Param0, pwzdisplayname: Param1, fnoforceabs: Param2, pccheaten: *mut u32, ppimk: *mut ::core::option::Option<super::super::System::Com::IMoniker>) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkParseDisplayName(pibc: ::windows::core::RawPtr, pwzdisplayname: super::super::Foundation::PWSTR, fnoforceabs: super::super::Foundation::BOOL, pccheaten: *mut u32, ppimk: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT; } HlinkParseDisplayName(pibc.into_param().abi(), pwzdisplayname.into_param().abi(), fnoforceabs.into_param().abi(), ::core::mem::transmute(pccheaten), ::core::mem::transmute(ppimk)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn HlinkPreprocessMoniker<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IMoniker>>(pibc: Param0, pimkin: Param1) -> ::windows::core::Result<super::super::System::Com::IMoniker> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkPreprocessMoniker(pibc: ::windows::core::RawPtr, pimkin: ::windows::core::RawPtr, ppimkout: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT; } let mut result__: <super::super::System::Com::IMoniker as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); HlinkPreprocessMoniker(pibc.into_param().abi(), pimkin.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::IMoniker>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn HlinkQueryCreateFromData<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>>(pidataobj: Param0) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkQueryCreateFromData(pidataobj: ::windows::core::RawPtr) -> ::windows::core::HRESULT; } HlinkQueryCreateFromData(pidataobj.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn HlinkResolveMonikerForData<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IMoniker>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>, Param5: ::windows::core::IntoParam<'a, super::super::System::Com::IBindStatusCallback>, Param6: ::windows::core::IntoParam<'a, super::super::System::Com::IMoniker>>( pimkreference: Param0, reserved: u32, pibc: Param2, cfmtetc: u32, rgfmtetc: *mut super::super::System::Com::FORMATETC, pibsc: Param5, pimkbase: Param6, ) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkResolveMonikerForData(pimkreference: ::windows::core::RawPtr, reserved: u32, pibc: ::windows::core::RawPtr, cfmtetc: u32, rgfmtetc: *mut super::super::System::Com::FORMATETC, pibsc: ::windows::core::RawPtr, pimkbase: ::windows::core::RawPtr) -> ::windows::core::HRESULT; } HlinkResolveMonikerForData(pimkreference.into_param().abi(), ::core::mem::transmute(reserved), pibc.into_param().abi(), ::core::mem::transmute(cfmtetc), ::core::mem::transmute(rgfmtetc), pibsc.into_param().abi(), pimkbase.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn HlinkResolveShortcut<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, IHlinkSite>, Param3: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(pwzshortcutfilename: Param0, pihlsite: Param1, dwsitedata: u32, piunkouter: Param3, riid: *const ::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkResolveShortcut(pwzshortcutfilename: super::super::Foundation::PWSTR, pihlsite: ::windows::core::RawPtr, dwsitedata: u32, piunkouter: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } HlinkResolveShortcut(pwzshortcutfilename.into_param().abi(), pihlsite.into_param().abi(), ::core::mem::transmute(dwsitedata), piunkouter.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppvobj)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] pub unsafe fn HlinkResolveShortcutToMoniker<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pwzshortcutfilename: Param0, ppimktarget: *mut ::core::option::Option<super::super::System::Com::IMoniker>, ppwzlocation: *mut super::super::Foundation::PWSTR) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkResolveShortcutToMoniker(pwzshortcutfilename: super::super::Foundation::PWSTR, ppimktarget: *mut ::windows::core::RawPtr, ppwzlocation: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } HlinkResolveShortcutToMoniker(pwzshortcutfilename.into_param().abi(), ::core::mem::transmute(ppimktarget), ::core::mem::transmute(ppwzlocation)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn HlinkResolveShortcutToString<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pwzshortcutfilename: Param0, ppwztarget: *mut super::super::Foundation::PWSTR, ppwzlocation: *mut super::super::Foundation::PWSTR) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkResolveShortcutToString(pwzshortcutfilename: super::super::Foundation::PWSTR, ppwztarget: *mut super::super::Foundation::PWSTR, ppwzlocation: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } HlinkResolveShortcutToString(pwzshortcutfilename.into_param().abi(), ::core::mem::transmute(ppwztarget), ::core::mem::transmute(ppwzlocation)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] pub unsafe fn HlinkResolveStringForData<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>, Param5: ::windows::core::IntoParam<'a, super::super::System::Com::IBindStatusCallback>, Param6: ::windows::core::IntoParam<'a, super::super::System::Com::IMoniker>>( pwzreference: Param0, reserved: u32, pibc: Param2, cfmtetc: u32, rgfmtetc: *mut super::super::System::Com::FORMATETC, pibsc: Param5, pimkbase: Param6, ) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkResolveStringForData(pwzreference: super::super::Foundation::PWSTR, reserved: u32, pibc: ::windows::core::RawPtr, cfmtetc: u32, rgfmtetc: *mut super::super::System::Com::FORMATETC, pibsc: ::windows::core::RawPtr, pimkbase: ::windows::core::RawPtr) -> ::windows::core::HRESULT; } HlinkResolveStringForData(pwzreference.into_param().abi(), ::core::mem::transmute(reserved), pibc.into_param().abi(), ::core::mem::transmute(cfmtetc), ::core::mem::transmute(rgfmtetc), pibsc.into_param().abi(), pimkbase.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn HlinkSetSpecialReference<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(ureference: u32, pwzreference: Param1) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkSetSpecialReference(ureference: u32, pwzreference: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } HlinkSetSpecialReference(::core::mem::transmute(ureference), pwzreference.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn HlinkTranslateURL<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pwzurl: Param0, grfflags: u32) -> ::windows::core::Result<super::super::Foundation::PWSTR> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkTranslateURL(pwzurl: super::super::Foundation::PWSTR, grfflags: u32, ppwztranslatedurl: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); HlinkTranslateURL(pwzurl.into_param().abi(), ::core::mem::transmute(grfflags), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] pub unsafe fn HlinkUpdateStackItem<'a, Param0: ::windows::core::IntoParam<'a, IHlinkFrame>, Param1: ::windows::core::IntoParam<'a, IHlinkBrowseContext>, Param3: ::windows::core::IntoParam<'a, super::super::System::Com::IMoniker>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param5: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>( pihlframe: Param0, pihlbc: Param1, uhlid: u32, pimktrgt: Param3, pwzlocation: Param4, pwzfriendlyname: Param5, ) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn HlinkUpdateStackItem(pihlframe: ::windows::core::RawPtr, pihlbc: ::windows::core::RawPtr, uhlid: u32, pimktrgt: ::windows::core::RawPtr, pwzlocation: super::super::Foundation::PWSTR, pwzfriendlyname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } HlinkUpdateStackItem(pihlframe.into_param().abi(), pihlbc.into_param().abi(), ::core::mem::transmute(uhlid), pimktrgt.into_param().abi(), pwzlocation.into_param().abi(), pwzfriendlyname.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const HomeGroup: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xde77ba04_3c92_4d11_a1a5_42352a53e0e3); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IACList(pub ::windows::core::IUnknown); impl IACList { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Expand<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszexpand: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszexpand.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IACList { type Vtable = IACList_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x77a130b0_94fd_11d0_a544_00c04fd7d062); } impl ::core::convert::From<IACList> for ::windows::core::IUnknown { fn from(value: IACList) -> Self { value.0 } } impl ::core::convert::From<&IACList> for ::windows::core::IUnknown { fn from(value: &IACList) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IACList { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IACList { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IACList_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszexpand: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IACList2(pub ::windows::core::IUnknown); impl IACList2 { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Expand<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszexpand: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszexpand.into_param().abi()).ok() } pub unsafe fn SetOptions(&self, dwflag: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflag)).ok() } pub unsafe fn GetOptions(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } } unsafe impl ::windows::core::Interface for IACList2 { type Vtable = IACList2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x470141a0_5186_11d2_bbb6_0060977b464c); } impl ::core::convert::From<IACList2> for ::windows::core::IUnknown { fn from(value: IACList2) -> Self { value.0 } } impl ::core::convert::From<&IACList2> for ::windows::core::IUnknown { fn from(value: &IACList2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IACList2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IACList2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IACList2> for IACList { fn from(value: IACList2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IACList2> for IACList { fn from(value: &IACList2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IACList> for IACList2 { fn into_param(self) -> ::windows::core::Param<'a, IACList> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IACList> for &IACList2 { fn into_param(self) -> ::windows::core::Param<'a, IACList> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IACList2_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszexpand: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflag: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwflag: *mut u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IAccessibilityDockingService(pub ::windows::core::IUnknown); impl IAccessibilityDockingService { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetAvailableSize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Graphics::Gdi::HMONITOR>>(&self, hmonitor: Param0, pcxfixed: *mut u32, pcymax: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hmonitor.into_param().abi(), ::core::mem::transmute(pcxfixed), ::core::mem::transmute(pcymax)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe fn DockWindow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Graphics::Gdi::HMONITOR>, Param3: ::windows::core::IntoParam<'a, IAccessibilityDockingServiceCallback>>(&self, hwnd: Param0, hmonitor: Param1, cyrequested: u32, pcallback: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), hmonitor.into_param().abi(), ::core::mem::transmute(cyrequested), pcallback.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn UndockWindow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), hwnd.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IAccessibilityDockingService { type Vtable = IAccessibilityDockingService_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8849dc22_cedf_4c95_998d_051419dd3f76); } impl ::core::convert::From<IAccessibilityDockingService> for ::windows::core::IUnknown { fn from(value: IAccessibilityDockingService) -> Self { value.0 } } impl ::core::convert::From<&IAccessibilityDockingService> for ::windows::core::IUnknown { fn from(value: &IAccessibilityDockingService) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IAccessibilityDockingService { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IAccessibilityDockingService { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IAccessibilityDockingService_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, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hmonitor: super::super::Graphics::Gdi::HMONITOR, pcxfixed: *mut u32, pcymax: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, hmonitor: super::super::Graphics::Gdi::HMONITOR, cyrequested: u32, pcallback: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IAccessibilityDockingServiceCallback(pub ::windows::core::IUnknown); impl IAccessibilityDockingServiceCallback { pub unsafe fn Undocked(&self, undockreason: UNDOCK_REASON) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(undockreason)).ok() } } unsafe impl ::windows::core::Interface for IAccessibilityDockingServiceCallback { type Vtable = IAccessibilityDockingServiceCallback_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x157733fd_a592_42e5_b594_248468c5a81b); } impl ::core::convert::From<IAccessibilityDockingServiceCallback> for ::windows::core::IUnknown { fn from(value: IAccessibilityDockingServiceCallback) -> Self { value.0 } } impl ::core::convert::From<&IAccessibilityDockingServiceCallback> for ::windows::core::IUnknown { fn from(value: &IAccessibilityDockingServiceCallback) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IAccessibilityDockingServiceCallback { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IAccessibilityDockingServiceCallback { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IAccessibilityDockingServiceCallback_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, undockreason: UNDOCK_REASON) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IAccessibleObject(pub ::windows::core::IUnknown); impl IAccessibleObject { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetAccessibleName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszname.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IAccessibleObject { type Vtable = IAccessibleObject_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x95a391c5_9ed4_4c28_8401_ab9e06719e11); } impl ::core::convert::From<IAccessibleObject> for ::windows::core::IUnknown { fn from(value: IAccessibleObject) -> Self { value.0 } } impl ::core::convert::From<&IAccessibleObject> for ::windows::core::IUnknown { fn from(value: &IAccessibleObject) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IAccessibleObject { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IAccessibleObject { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IAccessibleObject_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IActionProgress(pub ::windows::core::IUnknown); impl IActionProgress { pub unsafe fn Begin(&self, action: SPACTION, flags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(action), ::core::mem::transmute(flags)).ok() } pub unsafe fn UpdateProgress(&self, ulcompleted: u64, ultotal: u64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(ulcompleted), ::core::mem::transmute(ultotal)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn UpdateText<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, sptext: SPTEXT, psztext: Param1, fmaycompact: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(sptext), psztext.into_param().abi(), fmaycompact.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn QueryCancel(&self) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } pub unsafe fn ResetCancel(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn End(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IActionProgress { type Vtable = IActionProgress_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x49ff1173_eadc_446d_9285_156453a6431c); } impl ::core::convert::From<IActionProgress> for ::windows::core::IUnknown { fn from(value: IActionProgress) -> Self { value.0 } } impl ::core::convert::From<&IActionProgress> for ::windows::core::IUnknown { fn from(value: &IActionProgress) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IActionProgress { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IActionProgress { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IActionProgress_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, action: SPACTION, flags: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ulcompleted: u64, ultotal: u64) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, sptext: SPTEXT, psztext: super::super::Foundation::PWSTR, fmaycompact: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfcancelled: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IActionProgressDialog(pub ::windows::core::IUnknown); impl IActionProgressDialog { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Initialize<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, flags: u32, psztitle: Param1, pszcancel: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(flags), psztitle.into_param().abi(), pszcancel.into_param().abi()).ok() } pub unsafe fn Stop(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IActionProgressDialog { type Vtable = IActionProgressDialog_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x49ff1172_eadc_446d_9285_156453a6431c); } impl ::core::convert::From<IActionProgressDialog> for ::windows::core::IUnknown { fn from(value: IActionProgressDialog) -> Self { value.0 } } impl ::core::convert::From<&IActionProgressDialog> for ::windows::core::IUnknown { fn from(value: &IActionProgressDialog) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IActionProgressDialog { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IActionProgressDialog { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IActionProgressDialog_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, flags: u32, psztitle: super::super::Foundation::PWSTR, pszcancel: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IAppActivationUIInfo(pub ::windows::core::IUnknown); impl IAppActivationUIInfo { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetMonitor(&self) -> ::windows::core::Result<super::super::Graphics::Gdi::HMONITOR> { let mut result__: <super::super::Graphics::Gdi::HMONITOR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Graphics::Gdi::HMONITOR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetInvokePoint(&self) -> ::windows::core::Result<super::super::Foundation::POINT> { let mut result__: <super::super::Foundation::POINT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::POINT>(result__) } pub unsafe fn GetShowCommand(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetShowUI(&self) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } pub unsafe fn GetKeyState(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } } unsafe impl ::windows::core::Interface for IAppActivationUIInfo { type Vtable = IAppActivationUIInfo_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xabad189d_9fa3_4278_b3ca_8ca448a88dcb); } impl ::core::convert::From<IAppActivationUIInfo> for ::windows::core::IUnknown { fn from(value: IAppActivationUIInfo) -> Self { value.0 } } impl ::core::convert::From<&IAppActivationUIInfo> for ::windows::core::IUnknown { fn from(value: &IAppActivationUIInfo) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IAppActivationUIInfo { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IAppActivationUIInfo { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IAppActivationUIInfo_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, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut super::super::Graphics::Gdi::HMONITOR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut super::super::Foundation::POINT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IAppPublisher(pub ::windows::core::IUnknown); impl IAppPublisher { pub unsafe fn GetNumberOfCategories(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCategories(&self) -> ::windows::core::Result<APPCATEGORYINFOLIST> { let mut result__: <APPCATEGORYINFOLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<APPCATEGORYINFOLIST>(result__) } pub unsafe fn GetNumberOfApps(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn EnumApps(&self, pappcategoryid: *const ::windows::core::GUID) -> ::windows::core::Result<IEnumPublishedApps> { let mut result__: <IEnumPublishedApps as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(pappcategoryid), &mut result__).from_abi::<IEnumPublishedApps>(result__) } } unsafe impl ::windows::core::Interface for IAppPublisher { type Vtable = IAppPublisher_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x07250a10_9cf9_11d1_9076_006008059382); } impl ::core::convert::From<IAppPublisher> for ::windows::core::IUnknown { fn from(value: IAppPublisher) -> Self { value.0 } } impl ::core::convert::From<&IAppPublisher> for ::windows::core::IUnknown { fn from(value: &IAppPublisher) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IAppPublisher { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IAppPublisher { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IAppPublisher_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, pdwcat: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pappcategorylist: *mut APPCATEGORYINFOLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwapps: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pappcategoryid: *const ::windows::core::GUID, ppepa: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IAppVisibility(pub ::windows::core::IUnknown); impl IAppVisibility { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetAppVisibilityOnMonitor<'a, Param0: ::windows::core::IntoParam<'a, super::super::Graphics::Gdi::HMONITOR>>(&self, hmonitor: Param0) -> ::windows::core::Result<MONITOR_APP_VISIBILITY> { let mut result__: <MONITOR_APP_VISIBILITY as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hmonitor.into_param().abi(), &mut result__).from_abi::<MONITOR_APP_VISIBILITY>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsLauncherVisible(&self) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } pub unsafe fn Advise<'a, Param0: ::windows::core::IntoParam<'a, IAppVisibilityEvents>>(&self, pcallback: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), pcallback.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwcookie)).ok() } } unsafe impl ::windows::core::Interface for IAppVisibility { type Vtable = IAppVisibility_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2246ea2d_caea_4444_a3c4_6de827e44313); } impl ::core::convert::From<IAppVisibility> for ::windows::core::IUnknown { fn from(value: IAppVisibility) -> Self { value.0 } } impl ::core::convert::From<&IAppVisibility> for ::windows::core::IUnknown { fn from(value: &IAppVisibility) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IAppVisibility { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IAppVisibility { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IAppVisibility_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, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hmonitor: super::super::Graphics::Gdi::HMONITOR, pmode: *mut MONITOR_APP_VISIBILITY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfvisible: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcallback: ::windows::core::RawPtr, pdwcookie: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwcookie: u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IAppVisibilityEvents(pub ::windows::core::IUnknown); impl IAppVisibilityEvents { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn AppVisibilityOnMonitorChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Graphics::Gdi::HMONITOR>>(&self, hmonitor: Param0, previousmode: MONITOR_APP_VISIBILITY, currentmode: MONITOR_APP_VISIBILITY) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hmonitor.into_param().abi(), ::core::mem::transmute(previousmode), ::core::mem::transmute(currentmode)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn LauncherVisibilityChange<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, currentvisiblestate: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), currentvisiblestate.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IAppVisibilityEvents { type Vtable = IAppVisibilityEvents_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6584ce6b_7d82_49c2_89c9_c6bc02ba8c38); } impl ::core::convert::From<IAppVisibilityEvents> for ::windows::core::IUnknown { fn from(value: IAppVisibilityEvents) -> Self { value.0 } } impl ::core::convert::From<&IAppVisibilityEvents> for ::windows::core::IUnknown { fn from(value: &IAppVisibilityEvents) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IAppVisibilityEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IAppVisibilityEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IAppVisibilityEvents_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, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hmonitor: super::super::Graphics::Gdi::HMONITOR, previousmode: MONITOR_APP_VISIBILITY, currentmode: MONITOR_APP_VISIBILITY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, currentvisiblestate: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IApplicationActivationManager(pub ::windows::core::IUnknown); impl IApplicationActivationManager { #[cfg(feature = "Win32_Foundation")] pub unsafe fn ActivateApplication<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, appusermodelid: Param0, arguments: Param1, options: ACTIVATEOPTIONS) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), appusermodelid.into_param().abi(), arguments.into_param().abi(), ::core::mem::transmute(options), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ActivateForFile<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, IShellItemArray>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, appusermodelid: Param0, itemarray: Param1, verb: Param2) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), appusermodelid.into_param().abi(), itemarray.into_param().abi(), verb.into_param().abi(), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ActivateForProtocol<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, IShellItemArray>>(&self, appusermodelid: Param0, itemarray: Param1) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), appusermodelid.into_param().abi(), itemarray.into_param().abi(), &mut result__).from_abi::<u32>(result__) } } unsafe impl ::windows::core::Interface for IApplicationActivationManager { type Vtable = IApplicationActivationManager_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2e941141_7f97_4756_ba1d_9decde894a3d); } impl ::core::convert::From<IApplicationActivationManager> for ::windows::core::IUnknown { fn from(value: IApplicationActivationManager) -> Self { value.0 } } impl ::core::convert::From<&IApplicationActivationManager> for ::windows::core::IUnknown { fn from(value: &IApplicationActivationManager) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IApplicationActivationManager { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IApplicationActivationManager { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IApplicationActivationManager_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, appusermodelid: super::super::Foundation::PWSTR, arguments: super::super::Foundation::PWSTR, options: ACTIVATEOPTIONS, processid: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, appusermodelid: super::super::Foundation::PWSTR, itemarray: ::windows::core::RawPtr, verb: super::super::Foundation::PWSTR, processid: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, appusermodelid: super::super::Foundation::PWSTR, itemarray: ::windows::core::RawPtr, processid: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IApplicationAssociationRegistration(pub ::windows::core::IUnknown); impl IApplicationAssociationRegistration { #[cfg(feature = "Win32_Foundation")] pub unsafe fn QueryCurrentDefault<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszquery: Param0, atquerytype: ASSOCIATIONTYPE, alquerylevel: ASSOCIATIONLEVEL) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszquery.into_param().abi(), ::core::mem::transmute(atquerytype), ::core::mem::transmute(alquerylevel), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn QueryAppIsDefault<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszquery: Param0, atquerytype: ASSOCIATIONTYPE, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: Param3) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pszquery.into_param().abi(), ::core::mem::transmute(atquerytype), ::core::mem::transmute(alquerylevel), pszappregistryname.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn QueryAppIsDefaultAll<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: Param1) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(alquerylevel), pszappregistryname.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetAppAsDefault<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszappregistryname: Param0, pszset: Param1, atsettype: ASSOCIATIONTYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pszappregistryname.into_param().abi(), pszset.into_param().abi(), ::core::mem::transmute(atsettype)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetAppAsDefaultAll<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszappregistryname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pszappregistryname.into_param().abi()).ok() } pub unsafe fn ClearUserAssociations(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IApplicationAssociationRegistration { type Vtable = IApplicationAssociationRegistration_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4e530b0a_e611_4c77_a3ac_9031d022281b); } impl ::core::convert::From<IApplicationAssociationRegistration> for ::windows::core::IUnknown { fn from(value: IApplicationAssociationRegistration) -> Self { value.0 } } impl ::core::convert::From<&IApplicationAssociationRegistration> for ::windows::core::IUnknown { fn from(value: &IApplicationAssociationRegistration) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IApplicationAssociationRegistration { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IApplicationAssociationRegistration { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IApplicationAssociationRegistration_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszquery: super::super::Foundation::PWSTR, atquerytype: ASSOCIATIONTYPE, alquerylevel: ASSOCIATIONLEVEL, ppszassociation: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszquery: super::super::Foundation::PWSTR, atquerytype: ASSOCIATIONTYPE, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: super::super::Foundation::PWSTR, pfdefault: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: super::super::Foundation::PWSTR, pfdefault: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszappregistryname: super::super::Foundation::PWSTR, pszset: super::super::Foundation::PWSTR, atsettype: ASSOCIATIONTYPE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszappregistryname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IApplicationAssociationRegistrationUI(pub ::windows::core::IUnknown); impl IApplicationAssociationRegistrationUI { #[cfg(feature = "Win32_Foundation")] pub unsafe fn LaunchAdvancedAssociationUI<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszappregistryname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszappregistryname.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IApplicationAssociationRegistrationUI { type Vtable = IApplicationAssociationRegistrationUI_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1f76a169_f994_40ac_8fc8_0959e8874710); } impl ::core::convert::From<IApplicationAssociationRegistrationUI> for ::windows::core::IUnknown { fn from(value: IApplicationAssociationRegistrationUI) -> Self { value.0 } } impl ::core::convert::From<&IApplicationAssociationRegistrationUI> for ::windows::core::IUnknown { fn from(value: &IApplicationAssociationRegistrationUI) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IApplicationAssociationRegistrationUI { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IApplicationAssociationRegistrationUI { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IApplicationAssociationRegistrationUI_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszappregistryname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IApplicationDesignModeSettings(pub ::windows::core::IUnknown); impl IApplicationDesignModeSettings { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetNativeDisplaySize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::SIZE>>(&self, nativedisplaysizepixels: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), nativedisplaysizepixels.into_param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetScaleFactor(&self, scalefactor: Common::DEVICE_SCALE_FACTOR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(scalefactor)).ok() } pub unsafe fn SetApplicationViewState(&self, viewstate: APPLICATION_VIEW_STATE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(viewstate)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ComputeApplicationSize(&self) -> ::windows::core::Result<super::super::Foundation::SIZE> { let mut result__: <super::super::Foundation::SIZE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::SIZE>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn IsApplicationViewStateSupported<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::SIZE>>(&self, viewstate: APPLICATION_VIEW_STATE, nativedisplaysizepixels: Param1, scalefactor: Common::DEVICE_SCALE_FACTOR) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(viewstate), nativedisplaysizepixels.into_param().abi(), ::core::mem::transmute(scalefactor), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } pub unsafe fn TriggerEdgeGesture(&self, edgegesturekind: EDGE_GESTURE_KIND) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(edgegesturekind)).ok() } } unsafe impl ::windows::core::Interface for IApplicationDesignModeSettings { type Vtable = IApplicationDesignModeSettings_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2a3dee9a_e31d_46d6_8508_bcc597db3557); } impl ::core::convert::From<IApplicationDesignModeSettings> for ::windows::core::IUnknown { fn from(value: IApplicationDesignModeSettings) -> Self { value.0 } } impl ::core::convert::From<&IApplicationDesignModeSettings> for ::windows::core::IUnknown { fn from(value: &IApplicationDesignModeSettings) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IApplicationDesignModeSettings { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IApplicationDesignModeSettings { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IApplicationDesignModeSettings_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, nativedisplaysizepixels: super::super::Foundation::SIZE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, scalefactor: Common::DEVICE_SCALE_FACTOR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, viewstate: APPLICATION_VIEW_STATE) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, applicationsizepixels: *mut super::super::Foundation::SIZE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, viewstate: APPLICATION_VIEW_STATE, nativedisplaysizepixels: super::super::Foundation::SIZE, scalefactor: Common::DEVICE_SCALE_FACTOR, supported: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, edgegesturekind: EDGE_GESTURE_KIND) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IApplicationDesignModeSettings2(pub ::windows::core::IUnknown); impl IApplicationDesignModeSettings2 { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetNativeDisplaySize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::SIZE>>(&self, nativedisplaysizepixels: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), nativedisplaysizepixels.into_param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetScaleFactor(&self, scalefactor: Common::DEVICE_SCALE_FACTOR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(scalefactor)).ok() } pub unsafe fn SetApplicationViewState(&self, viewstate: APPLICATION_VIEW_STATE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(viewstate)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ComputeApplicationSize(&self) -> ::windows::core::Result<super::super::Foundation::SIZE> { let mut result__: <super::super::Foundation::SIZE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::SIZE>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn IsApplicationViewStateSupported<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::SIZE>>(&self, viewstate: APPLICATION_VIEW_STATE, nativedisplaysizepixels: Param1, scalefactor: Common::DEVICE_SCALE_FACTOR) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(viewstate), nativedisplaysizepixels.into_param().abi(), ::core::mem::transmute(scalefactor), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } pub unsafe fn TriggerEdgeGesture(&self, edgegesturekind: EDGE_GESTURE_KIND) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(edgegesturekind)).ok() } pub unsafe fn SetNativeDisplayOrientation(&self, nativedisplayorientation: NATIVE_DISPLAY_ORIENTATION) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(nativedisplayorientation)).ok() } pub unsafe fn SetApplicationViewOrientation(&self, vieworientation: APPLICATION_VIEW_ORIENTATION) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(vieworientation)).ok() } pub unsafe fn SetAdjacentDisplayEdges(&self, adjacentdisplayedges: ADJACENT_DISPLAY_EDGES) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(adjacentdisplayedges)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetIsOnLockScreen<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, isonlockscreen: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), isonlockscreen.into_param().abi()).ok() } pub unsafe fn SetApplicationViewMinWidth(&self, viewminwidth: APPLICATION_VIEW_MIN_WIDTH) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(viewminwidth)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetApplicationSizeBounds(&self, minapplicationsizepixels: *mut super::super::Foundation::SIZE, maxapplicationsizepixels: *mut super::super::Foundation::SIZE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(minapplicationsizepixels), ::core::mem::transmute(maxapplicationsizepixels)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetApplicationViewOrientation<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::SIZE>>(&self, applicationsizepixels: Param0) -> ::windows::core::Result<APPLICATION_VIEW_ORIENTATION> { let mut result__: <APPLICATION_VIEW_ORIENTATION as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), applicationsizepixels.into_param().abi(), &mut result__).from_abi::<APPLICATION_VIEW_ORIENTATION>(result__) } } unsafe impl ::windows::core::Interface for IApplicationDesignModeSettings2 { type Vtable = IApplicationDesignModeSettings2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x490514e1_675a_4d6e_a58d_e54901b4ca2f); } impl ::core::convert::From<IApplicationDesignModeSettings2> for ::windows::core::IUnknown { fn from(value: IApplicationDesignModeSettings2) -> Self { value.0 } } impl ::core::convert::From<&IApplicationDesignModeSettings2> for ::windows::core::IUnknown { fn from(value: &IApplicationDesignModeSettings2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IApplicationDesignModeSettings2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IApplicationDesignModeSettings2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IApplicationDesignModeSettings2> for IApplicationDesignModeSettings { fn from(value: IApplicationDesignModeSettings2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IApplicationDesignModeSettings2> for IApplicationDesignModeSettings { fn from(value: &IApplicationDesignModeSettings2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IApplicationDesignModeSettings> for IApplicationDesignModeSettings2 { fn into_param(self) -> ::windows::core::Param<'a, IApplicationDesignModeSettings> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IApplicationDesignModeSettings> for &IApplicationDesignModeSettings2 { fn into_param(self) -> ::windows::core::Param<'a, IApplicationDesignModeSettings> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IApplicationDesignModeSettings2_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, nativedisplaysizepixels: super::super::Foundation::SIZE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, scalefactor: Common::DEVICE_SCALE_FACTOR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, viewstate: APPLICATION_VIEW_STATE) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, applicationsizepixels: *mut super::super::Foundation::SIZE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, viewstate: APPLICATION_VIEW_STATE, nativedisplaysizepixels: super::super::Foundation::SIZE, scalefactor: Common::DEVICE_SCALE_FACTOR, supported: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, edgegesturekind: EDGE_GESTURE_KIND) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, nativedisplayorientation: NATIVE_DISPLAY_ORIENTATION) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vieworientation: APPLICATION_VIEW_ORIENTATION) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, adjacentdisplayedges: ADJACENT_DISPLAY_EDGES) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, isonlockscreen: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, viewminwidth: APPLICATION_VIEW_MIN_WIDTH) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, minapplicationsizepixels: *mut super::super::Foundation::SIZE, maxapplicationsizepixels: *mut super::super::Foundation::SIZE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, applicationsizepixels: super::super::Foundation::SIZE, vieworientation: *mut APPLICATION_VIEW_ORIENTATION) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IApplicationDestinations(pub ::windows::core::IUnknown); impl IApplicationDestinations { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetAppID<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszappid: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszappid.into_param().abi()).ok() } pub unsafe fn RemoveDestination<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punk: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), punk.into_param().abi()).ok() } pub unsafe fn RemoveAllDestinations(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IApplicationDestinations { type Vtable = IApplicationDestinations_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x12337d35_94c6_48a0_bce7_6a9c69d4d600); } impl ::core::convert::From<IApplicationDestinations> for ::windows::core::IUnknown { fn from(value: IApplicationDestinations) -> Self { value.0 } } impl ::core::convert::From<&IApplicationDestinations> for ::windows::core::IUnknown { fn from(value: &IApplicationDestinations) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IApplicationDestinations { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IApplicationDestinations { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IApplicationDestinations_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszappid: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punk: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IApplicationDocumentLists(pub ::windows::core::IUnknown); impl IApplicationDocumentLists { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetAppID<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszappid: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszappid.into_param().abi()).ok() } pub unsafe fn GetList<T: ::windows::core::Interface>(&self, listtype: APPDOCLISTTYPE, citemsdesired: u32) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(listtype), ::core::mem::transmute(citemsdesired), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } } unsafe impl ::windows::core::Interface for IApplicationDocumentLists { type Vtable = IApplicationDocumentLists_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3c594f9f_9f30_47a1_979a_c9e83d3d0a06); } impl ::core::convert::From<IApplicationDocumentLists> for ::windows::core::IUnknown { fn from(value: IApplicationDocumentLists) -> Self { value.0 } } impl ::core::convert::From<&IApplicationDocumentLists> for ::windows::core::IUnknown { fn from(value: &IApplicationDocumentLists) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IApplicationDocumentLists { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IApplicationDocumentLists { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IApplicationDocumentLists_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszappid: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, listtype: APPDOCLISTTYPE, citemsdesired: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IAssocHandler(pub ::windows::core::IUnknown); impl IAssocHandler { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetName(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetUIName(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIconLocation(&self, ppszpath: *mut super::super::Foundation::PWSTR, pindex: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppszpath), ::core::mem::transmute(pindex)).ok() } pub unsafe fn IsRecommended(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn MakeDefault<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszdescription: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pszdescription.into_param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Invoke<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>>(&self, pdo: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), pdo.into_param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateInvoker<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>>(&self, pdo: Param0) -> ::windows::core::Result<IAssocHandlerInvoker> { let mut result__: <IAssocHandlerInvoker as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), pdo.into_param().abi(), &mut result__).from_abi::<IAssocHandlerInvoker>(result__) } } unsafe impl ::windows::core::Interface for IAssocHandler { type Vtable = IAssocHandler_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf04061ac_1659_4a3f_a954_775aa57fc083); } impl ::core::convert::From<IAssocHandler> for ::windows::core::IUnknown { fn from(value: IAssocHandler) -> Self { value.0 } } impl ::core::convert::From<&IAssocHandler> for ::windows::core::IUnknown { fn from(value: &IAssocHandler) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IAssocHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IAssocHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IAssocHandler_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsz: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsz: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppszpath: *mut super::super::Foundation::PWSTR, pindex: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszdescription: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdo: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdo: ::windows::core::RawPtr, ppinvoker: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IAssocHandlerInvoker(pub ::windows::core::IUnknown); impl IAssocHandlerInvoker { pub unsafe fn SupportsSelection(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Invoke(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IAssocHandlerInvoker { type Vtable = IAssocHandlerInvoker_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x92218cab_ecaa_4335_8133_807fd234c2ee); } impl ::core::convert::From<IAssocHandlerInvoker> for ::windows::core::IUnknown { fn from(value: IAssocHandlerInvoker) -> Self { value.0 } } impl ::core::convert::From<&IAssocHandlerInvoker> for ::windows::core::IUnknown { fn from(value: &IAssocHandlerInvoker) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IAssocHandlerInvoker { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IAssocHandlerInvoker { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IAssocHandlerInvoker_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) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IAttachmentExecute(pub ::windows::core::IUnknown); impl IAttachmentExecute { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetClientTitle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psztitle: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psztitle.into_param().abi()).ok() } pub unsafe fn SetClientGuid(&self, guid: *const ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(guid)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetLocalPath<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszlocalpath: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), pszlocalpath.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetFileName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszfilename: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pszfilename.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetSource<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszsource: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pszsource.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetReferrer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszreferrer: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), pszreferrer.into_param().abi()).ok() } pub unsafe fn CheckPolicy(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Prompt<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0, prompt: ATTACHMENT_PROMPT) -> ::windows::core::Result<ATTACHMENT_ACTION> { let mut result__: <ATTACHMENT_ACTION as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(prompt), &mut result__).from_abi::<ATTACHMENT_ACTION>(result__) } pub unsafe fn Save(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Execute<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, hwnd: Param0, pszverb: Param1) -> ::windows::core::Result<super::super::Foundation::HANDLE> { let mut result__: <super::super::Foundation::HANDLE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), pszverb.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::HANDLE>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SaveWithUI<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), hwnd.into_param().abi()).ok() } pub unsafe fn ClearClientState(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IAttachmentExecute { type Vtable = IAttachmentExecute_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x73db1241_1e85_4581_8e4f_a81e1d0f8c57); } impl ::core::convert::From<IAttachmentExecute> for ::windows::core::IUnknown { fn from(value: IAttachmentExecute) -> Self { value.0 } } impl ::core::convert::From<&IAttachmentExecute> for ::windows::core::IUnknown { fn from(value: &IAttachmentExecute) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IAttachmentExecute { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IAttachmentExecute { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IAttachmentExecute_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psztitle: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, guid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszlocalpath: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszfilename: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszsource: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszreferrer: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, prompt: ATTACHMENT_PROMPT, paction: *mut ATTACHMENT_ACTION) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, pszverb: super::super::Foundation::PWSTR, phprocess: *mut super::super::Foundation::HANDLE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IAutoComplete(pub ::windows::core::IUnknown); impl IAutoComplete { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Init<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, hwndedit: Param0, punkacl: Param1, pwszregkeypath: Param2, pwszquickcomplete: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwndedit.into_param().abi(), punkacl.into_param().abi(), pwszregkeypath.into_param().abi(), pwszquickcomplete.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Enable<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fenable: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), fenable.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IAutoComplete { type Vtable = IAutoComplete_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00bb2762_6a77_11d0_a535_00c04fd7d062); } impl ::core::convert::From<IAutoComplete> for ::windows::core::IUnknown { fn from(value: IAutoComplete) -> Self { value.0 } } impl ::core::convert::From<&IAutoComplete> for ::windows::core::IUnknown { fn from(value: &IAutoComplete) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IAutoComplete { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IAutoComplete { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IAutoComplete_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndedit: super::super::Foundation::HWND, punkacl: ::windows::core::RawPtr, pwszregkeypath: super::super::Foundation::PWSTR, pwszquickcomplete: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fenable: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IAutoComplete2(pub ::windows::core::IUnknown); impl IAutoComplete2 { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Init<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, hwndedit: Param0, punkacl: Param1, pwszregkeypath: Param2, pwszquickcomplete: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwndedit.into_param().abi(), punkacl.into_param().abi(), pwszregkeypath.into_param().abi(), pwszquickcomplete.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Enable<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fenable: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), fenable.into_param().abi()).ok() } pub unsafe fn SetOptions(&self, dwflag: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflag)).ok() } pub unsafe fn GetOptions(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } } unsafe impl ::windows::core::Interface for IAutoComplete2 { type Vtable = IAutoComplete2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xeac04bc0_3791_11d2_bb95_0060977b464c); } impl ::core::convert::From<IAutoComplete2> for ::windows::core::IUnknown { fn from(value: IAutoComplete2) -> Self { value.0 } } impl ::core::convert::From<&IAutoComplete2> for ::windows::core::IUnknown { fn from(value: &IAutoComplete2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IAutoComplete2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IAutoComplete2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IAutoComplete2> for IAutoComplete { fn from(value: IAutoComplete2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IAutoComplete2> for IAutoComplete { fn from(value: &IAutoComplete2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IAutoComplete> for IAutoComplete2 { fn into_param(self) -> ::windows::core::Param<'a, IAutoComplete> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IAutoComplete> for &IAutoComplete2 { fn into_param(self) -> ::windows::core::Param<'a, IAutoComplete> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IAutoComplete2_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndedit: super::super::Foundation::HWND, punkacl: ::windows::core::RawPtr, pwszregkeypath: super::super::Foundation::PWSTR, pwszquickcomplete: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fenable: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflag: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwflag: *mut u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IAutoCompleteDropDown(pub ::windows::core::IUnknown); impl IAutoCompleteDropDown { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDropDownStatus(&self, pdwflags: *mut u32, ppwszstring: *mut super::super::Foundation::PWSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pdwflags), ::core::mem::transmute(ppwszstring)).ok() } pub unsafe fn ResetEnumerator(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IAutoCompleteDropDown { type Vtable = IAutoCompleteDropDown_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3cd141f4_3c6a_11d2_bcaa_00c04fd929db); } impl ::core::convert::From<IAutoCompleteDropDown> for ::windows::core::IUnknown { fn from(value: IAutoCompleteDropDown) -> Self { value.0 } } impl ::core::convert::From<&IAutoCompleteDropDown> for ::windows::core::IUnknown { fn from(value: &IAutoCompleteDropDown) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IAutoCompleteDropDown { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IAutoCompleteDropDown { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IAutoCompleteDropDown_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwflags: *mut u32, ppwszstring: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IBandHost(pub ::windows::core::IUnknown); impl IBandHost { #[cfg(feature = "Win32_Foundation")] pub unsafe fn CreateBand<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, T: ::windows::core::Interface>(&self, rclsidband: *const ::windows::core::GUID, favailable: Param1, fvisible: Param2) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(rclsidband), favailable.into_param().abi(), fvisible.into_param().abi(), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetBandAvailability<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, rclsidband: *const ::windows::core::GUID, favailable: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(rclsidband), favailable.into_param().abi()).ok() } pub unsafe fn DestroyBand(&self, rclsidband: *const ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(rclsidband)).ok() } } unsafe impl ::windows::core::Interface for IBandHost { type Vtable = IBandHost_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb9075c7c_d48e_403f_ab99_d6c77a1084ac); } impl ::core::convert::From<IBandHost> for ::windows::core::IUnknown { fn from(value: IBandHost) -> Self { value.0 } } impl ::core::convert::From<&IBandHost> for ::windows::core::IUnknown { fn from(value: &IBandHost) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IBandHost { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IBandHost { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IBandHost_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rclsidband: *const ::windows::core::GUID, favailable: super::super::Foundation::BOOL, fvisible: super::super::Foundation::BOOL, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rclsidband: *const ::windows::core::GUID, favailable: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rclsidband: *const ::windows::core::GUID) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IBandSite(pub ::windows::core::IUnknown); impl IBandSite { pub unsafe fn AddBand<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punk: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), punk.into_param().abi()).ok() } pub unsafe fn EnumBands(&self, uband: u32) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(uband), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn QueryBand(&self, dwbandid: u32, ppstb: *mut ::core::option::Option<IDeskBand>, pdwstate: *mut u32, pszname: super::super::Foundation::PWSTR, cchname: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwbandid), ::core::mem::transmute(ppstb), ::core::mem::transmute(pdwstate), ::core::mem::transmute(pszname), ::core::mem::transmute(cchname)).ok() } pub unsafe fn SetBandState(&self, dwbandid: u32, dwmask: u32, dwstate: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwbandid), ::core::mem::transmute(dwmask), ::core::mem::transmute(dwstate)).ok() } pub unsafe fn RemoveBand(&self, dwbandid: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwbandid)).ok() } pub unsafe fn GetBandObject<T: ::windows::core::Interface>(&self, dwbandid: u32) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwbandid), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } pub unsafe fn SetBandSiteInfo(&self, pbsinfo: *const BANDSITEINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(pbsinfo)).ok() } pub unsafe fn GetBandSiteInfo(&self, pbsinfo: *mut BANDSITEINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(pbsinfo)).ok() } } unsafe impl ::windows::core::Interface for IBandSite { type Vtable = IBandSite_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4cf504b0_de96_11d0_8b3f_00a0c911e8e5); } impl ::core::convert::From<IBandSite> for ::windows::core::IUnknown { fn from(value: IBandSite) -> Self { value.0 } } impl ::core::convert::From<&IBandSite> for ::windows::core::IUnknown { fn from(value: &IBandSite) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IBandSite { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IBandSite { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IBandSite_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, punk: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uband: u32, pdwbandid: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwbandid: u32, ppstb: *mut ::windows::core::RawPtr, pdwstate: *mut u32, pszname: super::super::Foundation::PWSTR, cchname: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwbandid: u32, dwmask: u32, dwstate: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwbandid: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwbandid: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbsinfo: *const BANDSITEINFO) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbsinfo: *mut BANDSITEINFO) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IBannerNotificationHandler(pub ::windows::core::IUnknown); impl IBannerNotificationHandler { #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnBannerEvent(&self, notification: *const BANNER_NOTIFICATION) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(notification)).ok() } } unsafe impl ::windows::core::Interface for IBannerNotificationHandler { type Vtable = IBannerNotificationHandler_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8d7b2ba7_db05_46a8_823c_d2b6de08ee91); } impl ::core::convert::From<IBannerNotificationHandler> for ::windows::core::IUnknown { fn from(value: IBannerNotificationHandler) -> Self { value.0 } } impl ::core::convert::From<&IBannerNotificationHandler> for ::windows::core::IUnknown { fn from(value: &IBannerNotificationHandler) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IBannerNotificationHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IBannerNotificationHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IBannerNotificationHandler_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, notification: *const BANNER_NOTIFICATION) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IBanneredBar(pub ::windows::core::IUnknown); impl IBanneredBar { pub unsafe fn SetIconSize(&self, iicon: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(iicon)).ok() } pub unsafe fn GetIconSize(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetBitmap<'a, Param0: ::windows::core::IntoParam<'a, super::super::Graphics::Gdi::HBITMAP>>(&self, hbitmap: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), hbitmap.into_param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetBitmap(&self) -> ::windows::core::Result<super::super::Graphics::Gdi::HBITMAP> { let mut result__: <super::super::Graphics::Gdi::HBITMAP as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Graphics::Gdi::HBITMAP>(result__) } } unsafe impl ::windows::core::Interface for IBanneredBar { type Vtable = IBanneredBar_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x596a9a94_013e_11d1_8d34_00a0c90f2719); } impl ::core::convert::From<IBanneredBar> for ::windows::core::IUnknown { fn from(value: IBanneredBar) -> Self { value.0 } } impl ::core::convert::From<&IBanneredBar> for ::windows::core::IUnknown { fn from(value: &IBanneredBar) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IBanneredBar { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IBanneredBar { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IBanneredBar_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, iicon: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, piicon: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hbitmap: super::super::Graphics::Gdi::HBITMAP) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phbitmap: *mut super::super::Graphics::Gdi::HBITMAP) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IBrowserFrameOptions(pub ::windows::core::IUnknown); impl IBrowserFrameOptions { pub unsafe fn GetFrameOptions(&self, dwmask: u32) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwmask), &mut result__).from_abi::<u32>(result__) } } unsafe impl ::windows::core::Interface for IBrowserFrameOptions { type Vtable = IBrowserFrameOptions_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x10df43c8_1dbe_11d3_8b34_006097df5bd4); } impl ::core::convert::From<IBrowserFrameOptions> for ::windows::core::IUnknown { fn from(value: IBrowserFrameOptions) -> Self { value.0 } } impl ::core::convert::From<&IBrowserFrameOptions> for ::windows::core::IUnknown { fn from(value: &IBrowserFrameOptions) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IBrowserFrameOptions { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IBrowserFrameOptions { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IBrowserFrameOptions_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, dwmask: u32, pdwoptions: *mut u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IBrowserService(pub ::windows::core::IUnknown); impl IBrowserService { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetParentSite(&self) -> ::windows::core::Result<super::super::System::Ole::IOleInPlaceSite> { let mut result__: <super::super::System::Ole::IOleInPlaceSite as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Ole::IOleInPlaceSite>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetTitle<'a, Param0: ::windows::core::IntoParam<'a, IShellView>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psv: Param0, pszname: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), psv.into_param().abi(), pszname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetTitle<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, psv: Param0, pszname: super::super::Foundation::PWSTR, cchname: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), psv.into_param().abi(), ::core::mem::transmute(pszname), ::core::mem::transmute(cchname)).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetOleObject(&self) -> ::windows::core::Result<super::super::System::Ole::IOleObject> { let mut result__: <super::super::System::Ole::IOleObject as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Ole::IOleObject>(result__) } pub unsafe fn GetTravelLog(&self) -> ::windows::core::Result<ITravelLog> { let mut result__: <ITravelLog as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<ITravelLog>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ShowControlWindow<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, id: u32, fshow: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(id), fshow.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsControlWindowShown(&self, id: u32) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(id), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn IEGetDisplayName(&self, pidl: *const Common::ITEMIDLIST, pwszname: super::super::Foundation::PWSTR, uflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(pwszname), ::core::mem::transmute(uflags)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn IEParseDisplayName<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, uicp: u32, pwszpath: Param1) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(uicp), pwszpath.into_param().abi(), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DisplayParseError<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, hres: ::windows::core::HRESULT, pwszpath: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(hres), pwszpath.into_param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn NavigateToPidl(&self, pidl: *const Common::ITEMIDLIST, grfhlnf: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(grfhlnf)).ok() } pub unsafe fn SetNavigateState(&self, bnstate: BNSTATE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(bnstate)).ok() } pub unsafe fn GetNavigateState(&self) -> ::windows::core::Result<BNSTATE> { let mut result__: <BNSTATE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<BNSTATE>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn NotifyRedirect<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, psv: Param0, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), psv.into_param().abi(), ::core::mem::transmute(pidl), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } pub unsafe fn UpdateWindowList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn UpdateBackForwardState(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetFlags(&self, dwflags: u32, dwflagmask: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags), ::core::mem::transmute(dwflagmask)).ok() } pub unsafe fn GetFlags(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn CanNavigateNow(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetPidl(&self) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetReferrer(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl)).ok() } pub unsafe fn GetBrowserIndex(&self) -> u32 { ::core::mem::transmute((::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self))) } pub unsafe fn GetBrowserByIndex(&self, dwid: u32) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__: <::windows::core::IUnknown as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwid), &mut result__).from_abi::<::windows::core::IUnknown>(result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GetHistoryObject(&self, ppole: *mut ::core::option::Option<super::super::System::Ole::IOleObject>, pstm: *mut ::core::option::Option<super::super::System::Com::IStream>, ppbc: *mut ::core::option::Option<super::super::System::Com::IBindCtx>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppole), ::core::mem::transmute(pstm), ::core::mem::transmute(ppbc)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] pub unsafe fn SetHistoryObject<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Ole::IOleObject>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, pole: Param0, fislocalanchor: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self), pole.into_param().abi(), fislocalanchor.into_param().abi()).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn CacheOLEServer<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Ole::IOleObject>>(&self, pole: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self), pole.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GetSetCodePage(&self, pvarin: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), ::core::mem::transmute(pvarin), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn OnHttpEquiv<'a, Param0: ::windows::core::IntoParam<'a, IShellView>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, psv: Param0, fdone: Param1, pvarargin: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), psv.into_param().abi(), fdone.into_param().abi(), ::core::mem::transmute(pvarargin), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetPalette(&self) -> ::windows::core::Result<super::super::Graphics::Gdi::HPALETTE> { let mut result__: <super::super::Graphics::Gdi::HPALETTE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Graphics::Gdi::HPALETTE>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn RegisterWindow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fforceregister: Param0, swc: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), fforceregister.into_param().abi(), ::core::mem::transmute(swc)).ok() } } unsafe impl ::windows::core::Interface for IBrowserService { type Vtable = IBrowserService_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x02ba3b52_0547_11d1_b833_00c04fc9b31f); } impl ::core::convert::From<IBrowserService> for ::windows::core::IUnknown { fn from(value: IBrowserService) -> Self { value.0 } } impl ::core::convert::From<&IBrowserService> for ::windows::core::IUnknown { fn from(value: &IBrowserService) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IBrowserService { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IBrowserService { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IBrowserService_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, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppipsite: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psv: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psv: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR, cchname: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppobjv: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pptl: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, id: u32, fshow: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, id: u32, pfshown: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, pwszname: super::super::Foundation::PWSTR, uflags: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uicp: u32, pwszpath: super::super::Foundation::PWSTR, ppidlout: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hres: ::windows::core::HRESULT, pwszpath: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, grfhlnf: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bnstate: BNSTATE) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbnstate: *mut BNSTATE) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psv: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, pfdidbrowse: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32, dwflagmask: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwflags: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwid: u32, ppunk: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppole: *mut ::windows::core::RawPtr, pstm: *mut ::windows::core::RawPtr, ppbc: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pole: ::windows::core::RawPtr, fislocalanchor: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pole: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvarin: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarout: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psv: ::windows::core::RawPtr, fdone: super::super::Foundation::BOOL, pvarargin: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarargout: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hpal: *mut super::super::Graphics::Gdi::HPALETTE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fforceregister: super::super::Foundation::BOOL, swc: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IBrowserService2(pub ::windows::core::IUnknown); impl IBrowserService2 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetParentSite(&self) -> ::windows::core::Result<super::super::System::Ole::IOleInPlaceSite> { let mut result__: <super::super::System::Ole::IOleInPlaceSite as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Ole::IOleInPlaceSite>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetTitle<'a, Param0: ::windows::core::IntoParam<'a, IShellView>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psv: Param0, pszname: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), psv.into_param().abi(), pszname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetTitle<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, psv: Param0, pszname: super::super::Foundation::PWSTR, cchname: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), psv.into_param().abi(), ::core::mem::transmute(pszname), ::core::mem::transmute(cchname)).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetOleObject(&self) -> ::windows::core::Result<super::super::System::Ole::IOleObject> { let mut result__: <super::super::System::Ole::IOleObject as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Ole::IOleObject>(result__) } pub unsafe fn GetTravelLog(&self) -> ::windows::core::Result<ITravelLog> { let mut result__: <ITravelLog as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<ITravelLog>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ShowControlWindow<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, id: u32, fshow: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(id), fshow.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsControlWindowShown(&self, id: u32) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(id), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn IEGetDisplayName(&self, pidl: *const Common::ITEMIDLIST, pwszname: super::super::Foundation::PWSTR, uflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(pwszname), ::core::mem::transmute(uflags)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn IEParseDisplayName<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, uicp: u32, pwszpath: Param1) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(uicp), pwszpath.into_param().abi(), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DisplayParseError<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, hres: ::windows::core::HRESULT, pwszpath: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(hres), pwszpath.into_param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn NavigateToPidl(&self, pidl: *const Common::ITEMIDLIST, grfhlnf: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(grfhlnf)).ok() } pub unsafe fn SetNavigateState(&self, bnstate: BNSTATE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(bnstate)).ok() } pub unsafe fn GetNavigateState(&self) -> ::windows::core::Result<BNSTATE> { let mut result__: <BNSTATE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<BNSTATE>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn NotifyRedirect<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, psv: Param0, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), psv.into_param().abi(), ::core::mem::transmute(pidl), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } pub unsafe fn UpdateWindowList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn UpdateBackForwardState(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetFlags(&self, dwflags: u32, dwflagmask: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags), ::core::mem::transmute(dwflagmask)).ok() } pub unsafe fn GetFlags(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn CanNavigateNow(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetPidl(&self) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetReferrer(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl)).ok() } pub unsafe fn GetBrowserIndex(&self) -> u32 { ::core::mem::transmute((::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self))) } pub unsafe fn GetBrowserByIndex(&self, dwid: u32) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__: <::windows::core::IUnknown as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwid), &mut result__).from_abi::<::windows::core::IUnknown>(result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GetHistoryObject(&self, ppole: *mut ::core::option::Option<super::super::System::Ole::IOleObject>, pstm: *mut ::core::option::Option<super::super::System::Com::IStream>, ppbc: *mut ::core::option::Option<super::super::System::Com::IBindCtx>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppole), ::core::mem::transmute(pstm), ::core::mem::transmute(ppbc)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] pub unsafe fn SetHistoryObject<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Ole::IOleObject>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, pole: Param0, fislocalanchor: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self), pole.into_param().abi(), fislocalanchor.into_param().abi()).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn CacheOLEServer<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Ole::IOleObject>>(&self, pole: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self), pole.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GetSetCodePage(&self, pvarin: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), ::core::mem::transmute(pvarin), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn OnHttpEquiv<'a, Param0: ::windows::core::IntoParam<'a, IShellView>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, psv: Param0, fdone: Param1, pvarargin: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), psv.into_param().abi(), fdone.into_param().abi(), ::core::mem::transmute(pvarargin), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetPalette(&self) -> ::windows::core::Result<super::super::Graphics::Gdi::HPALETTE> { let mut result__: <super::super::Graphics::Gdi::HPALETTE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Graphics::Gdi::HPALETTE>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn RegisterWindow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fforceregister: Param0, swc: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), fforceregister.into_param().abi(), ::core::mem::transmute(swc)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn WndProcBS<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, hwnd: Param0, umsg: u32, wparam: Param2, lparam: Param3) -> super::super::Foundation::LRESULT { ::core::mem::transmute((::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(umsg), wparam.into_param().abi(), lparam.into_param().abi())) } pub unsafe fn SetAsDefFolderSettings(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetViewRect(&self) -> ::windows::core::Result<super::super::Foundation::RECT> { let mut result__: <super::super::Foundation::RECT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::RECT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnSize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>>(&self, wparam: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), wparam.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn OnCreate(&self, pcs: *const super::WindowsAndMessaging::CREATESTRUCTW) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), ::core::mem::transmute(pcs)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnCommand<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, wparam: Param0, lparam: Param1) -> super::super::Foundation::LRESULT { ::core::mem::transmute((::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self), wparam.into_param().abi(), lparam.into_param().abi())) } pub unsafe fn OnDestroy(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).39)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub unsafe fn OnNotify(&self, pnm: *const super::Controls::NMHDR) -> super::super::Foundation::LRESULT { ::core::mem::transmute((::windows::core::Interface::vtable(self).40)(::core::mem::transmute_copy(self), ::core::mem::transmute(pnm))) } pub unsafe fn OnSetFocus(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).41)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnFrameWindowActivateBS<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, factive: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).42)(::core::mem::transmute_copy(self), factive.into_param().abi()).ok() } pub unsafe fn ReleaseShellView(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).43)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ActivatePendingView(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).44)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CreateViewWindow<'a, Param0: ::windows::core::IntoParam<'a, IShellView>, Param1: ::windows::core::IntoParam<'a, IShellView>>(&self, psvnew: Param0, psvold: Param1, prcview: *const super::super::Foundation::RECT) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).45)(::core::mem::transmute_copy(self), psvnew.into_param().abi(), psvold.into_param().abi(), ::core::mem::transmute(prcview), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } pub unsafe fn CreateBrowserPropSheetExt(&self, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).46)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetViewWindow(&self) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).47)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] pub unsafe fn GetBaseBrowserData(&self) -> ::windows::core::Result<*mut BASEBROWSERDATALH> { let mut result__: <*mut BASEBROWSERDATALH as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).48)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut BASEBROWSERDATALH>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] pub unsafe fn PutBaseBrowserData(&self) -> *mut BASEBROWSERDATALH { ::core::mem::transmute((::windows::core::Interface::vtable(self).49)(::core::mem::transmute_copy(self))) } pub unsafe fn InitializeTravelLog<'a, Param0: ::windows::core::IntoParam<'a, ITravelLog>>(&self, ptl: Param0, dw: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).50)(::core::mem::transmute_copy(self), ptl.into_param().abi(), ::core::mem::transmute(dw)).ok() } pub unsafe fn SetTopBrowser(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).51)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Offline(&self, icmd: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).52)(::core::mem::transmute_copy(self), ::core::mem::transmute(icmd)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AllowViewResize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, f: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).53)(::core::mem::transmute_copy(self), f.into_param().abi()).ok() } pub unsafe fn SetActivateState(&self, u: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).54)(::core::mem::transmute_copy(self), ::core::mem::transmute(u)).ok() } pub unsafe fn UpdateSecureLockIcon(&self, esecurelock: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).55)(::core::mem::transmute_copy(self), ::core::mem::transmute(esecurelock)).ok() } pub unsafe fn InitializeDownloadManager(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).56)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn InitializeTransitionSite(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).57)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _Initialize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, hwnd: Param0, pauto: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).58)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), pauto.into_param().abi()).ok() } pub unsafe fn _CancelPendingNavigationAsync(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).59)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn _CancelPendingView(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).60)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn _MaySaveChanges(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).61)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _PauseOrResumeView<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fpaused: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).62)(::core::mem::transmute_copy(self), fpaused.into_param().abi()).ok() } pub unsafe fn _DisableModeless(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).63)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn _NavigateToPidl2(&self, pidl: *const Common::ITEMIDLIST, grfhlnf: u32, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).64)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(grfhlnf), ::core::mem::transmute(dwflags)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn _TryShell2Rename<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, psv: Param0, pidlnew: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).65)(::core::mem::transmute_copy(self), psv.into_param().abi(), ::core::mem::transmute(pidlnew)).ok() } pub unsafe fn _SwitchActivationNow(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).66)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn _ExecChildren<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, punkbar: Param0, fbroadcast: Param1, pguidcmdgroup: *const ::windows::core::GUID, ncmdid: u32, ncmdexecopt: u32, pvarargin: *const super::super::System::Com::VARIANT, pvarargout: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).67)(::core::mem::transmute_copy(self), punkbar.into_param().abi(), fbroadcast.into_param().abi(), ::core::mem::transmute(pguidcmdgroup), ::core::mem::transmute(ncmdid), ::core::mem::transmute(ncmdexecopt), ::core::mem::transmute(pvarargin), ::core::mem::transmute(pvarargout)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _SendChildren<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, hwndbar: Param0, fbroadcast: Param1, umsg: u32, wparam: Param3, lparam: Param4) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).68)(::core::mem::transmute_copy(self), hwndbar.into_param().abi(), fbroadcast.into_param().abi(), ::core::mem::transmute(umsg), wparam.into_param().abi(), lparam.into_param().abi()).ok() } pub unsafe fn GetFolderSetData(&self, pfsd: *mut FOLDERSETDATA) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).69)(::core::mem::transmute_copy(self), ::core::mem::transmute(pfsd)).ok() } pub unsafe fn _OnFocusChange(&self, itb: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).70)(::core::mem::transmute_copy(self), ::core::mem::transmute(itb)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn v_ShowHideChildWindows<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fchildonly: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).71)(::core::mem::transmute_copy(self), fchildonly.into_param().abi()).ok() } pub unsafe fn _get_itbLastFocus(&self) -> u32 { ::core::mem::transmute((::windows::core::Interface::vtable(self).72)(::core::mem::transmute_copy(self))) } pub unsafe fn _put_itbLastFocus(&self, itblastfocus: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).73)(::core::mem::transmute_copy(self), ::core::mem::transmute(itblastfocus)).ok() } pub unsafe fn _UIActivateView(&self, ustate: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).74)(::core::mem::transmute_copy(self), ::core::mem::transmute(ustate)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _GetViewBorderRect(&self, prc: *mut super::super::Foundation::RECT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).75)(::core::mem::transmute_copy(self), ::core::mem::transmute(prc)).ok() } pub unsafe fn _UpdateViewRectSize(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).76)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn _ResizeNextBorder(&self, itb: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).77)(::core::mem::transmute_copy(self), ::core::mem::transmute(itb)).ok() } pub unsafe fn _ResizeView(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).78)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe fn _GetEffectiveClientArea<'a, Param1: ::windows::core::IntoParam<'a, super::super::Graphics::Gdi::HMONITOR>>(&self, lprectborder: *mut super::super::Foundation::RECT, hmon: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).79)(::core::mem::transmute_copy(self), ::core::mem::transmute(lprectborder), hmon.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn v_GetViewStream<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pidl: *mut Common::ITEMIDLIST, grfmode: u32, pwszname: Param2) -> ::core::option::Option<super::super::System::Com::IStream> { ::core::mem::transmute((::windows::core::Interface::vtable(self).80)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(grfmode), pwszname.into_param().abi())) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ForwardViewMsg<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, umsg: u32, wparam: Param1, lparam: Param2) -> super::super::Foundation::LRESULT { ::core::mem::transmute((::windows::core::Interface::vtable(self).81)(::core::mem::transmute_copy(self), ::core::mem::transmute(umsg), wparam.into_param().abi(), lparam.into_param().abi())) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetAcceleratorMenu<'a, Param0: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HACCEL>>(&self, hacc: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).82)(::core::mem::transmute_copy(self), hacc.into_param().abi()).ok() } pub unsafe fn _GetToolbarCount(&self) -> i32 { ::core::mem::transmute((::windows::core::Interface::vtable(self).83)(::core::mem::transmute_copy(self))) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe fn _GetToolbarItem(&self, itb: i32) -> *mut TOOLBARITEM { ::core::mem::transmute((::windows::core::Interface::vtable(self).84)(::core::mem::transmute_copy(self), ::core::mem::transmute(itb))) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn _SaveToolbars<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>>(&self, pstm: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).85)(::core::mem::transmute_copy(self), pstm.into_param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn _LoadToolbars<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>>(&self, pstm: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).86)(::core::mem::transmute_copy(self), pstm.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _CloseAndReleaseToolbars<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fclose: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).87)(::core::mem::transmute_copy(self), fclose.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn v_MayGetNextToolbarFocus(&self, lpmsg: *const super::WindowsAndMessaging::MSG, itbnext: u32, citb: i32, pptbi: *mut *mut TOOLBARITEM, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).88)(::core::mem::transmute_copy(self), ::core::mem::transmute(lpmsg), ::core::mem::transmute(itbnext), ::core::mem::transmute(citb), ::core::mem::transmute(pptbi), ::core::mem::transmute(phwnd)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _ResizeNextBorderHelper<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, itb: u32, busehmonitor: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).89)(::core::mem::transmute_copy(self), ::core::mem::transmute(itb), busehmonitor.into_param().abi()).ok() } pub unsafe fn _FindTBar<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punksrc: Param0) -> u32 { ::core::mem::transmute((::windows::core::Interface::vtable(self).90)(::core::mem::transmute_copy(self), punksrc.into_param().abi())) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn _SetFocus<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, ptbi: *const TOOLBARITEM, hwnd: Param1, lpmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).91)(::core::mem::transmute_copy(self), ::core::mem::transmute(ptbi), hwnd.into_param().abi(), ::core::mem::transmute(lpmsg)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn v_MayTranslateAccelerator(&self, pmsg: *mut super::WindowsAndMessaging::MSG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).92)(::core::mem::transmute_copy(self), ::core::mem::transmute(pmsg)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _GetBorderDWHelper<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, punksrc: Param0, lprectborder: *mut super::super::Foundation::RECT, busehmonitor: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).93)(::core::mem::transmute_copy(self), punksrc.into_param().abi(), ::core::mem::transmute(lprectborder), busehmonitor.into_param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn v_CheckZoneCrossing(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).94)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl)).ok() } } unsafe impl ::windows::core::Interface for IBrowserService2 { type Vtable = IBrowserService2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x68bd21cc_438b_11d2_a560_00a0c92dbfe8); } impl ::core::convert::From<IBrowserService2> for ::windows::core::IUnknown { fn from(value: IBrowserService2) -> Self { value.0 } } impl ::core::convert::From<&IBrowserService2> for ::windows::core::IUnknown { fn from(value: &IBrowserService2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IBrowserService2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IBrowserService2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IBrowserService2> for IBrowserService { fn from(value: IBrowserService2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IBrowserService2> for IBrowserService { fn from(value: &IBrowserService2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IBrowserService> for IBrowserService2 { fn into_param(self) -> ::windows::core::Param<'a, IBrowserService> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IBrowserService> for &IBrowserService2 { fn into_param(self) -> ::windows::core::Param<'a, IBrowserService> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IBrowserService2_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, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppipsite: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psv: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psv: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR, cchname: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppobjv: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pptl: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, id: u32, fshow: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, id: u32, pfshown: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, pwszname: super::super::Foundation::PWSTR, uflags: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uicp: u32, pwszpath: super::super::Foundation::PWSTR, ppidlout: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hres: ::windows::core::HRESULT, pwszpath: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, grfhlnf: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bnstate: BNSTATE) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbnstate: *mut BNSTATE) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psv: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, pfdidbrowse: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32, dwflagmask: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwflags: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwid: u32, ppunk: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppole: *mut ::windows::core::RawPtr, pstm: *mut ::windows::core::RawPtr, ppbc: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pole: ::windows::core::RawPtr, fislocalanchor: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pole: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvarin: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarout: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psv: ::windows::core::RawPtr, fdone: super::super::Foundation::BOOL, pvarargin: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarargout: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hpal: *mut super::super::Graphics::Gdi::HPALETTE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fforceregister: super::super::Foundation::BOOL, swc: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, prc: *mut super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, wparam: super::super::Foundation::WPARAM) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcs: *const super::WindowsAndMessaging::CREATESTRUCTW) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pnm: *const super::Controls::NMHDR) -> super::super::Foundation::LRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, factive: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psvnew: ::windows::core::RawPtr, psvold: ::windows::core::RawPtr, prcview: *const super::super::Foundation::RECT, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phwndview: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbbd: *mut *mut BASEBROWSERDATALH) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> *mut ::core::mem::ManuallyDrop<BASEBROWSERDATALH>, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ptl: ::windows::core::RawPtr, dw: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, icmd: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, f: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, u: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, esecurelock: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, pauto: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fpaused: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, grfhlnf: u32, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psv: ::windows::core::RawPtr, pidlnew: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punkbar: ::windows::core::RawPtr, fbroadcast: super::super::Foundation::BOOL, pguidcmdgroup: *const ::windows::core::GUID, ncmdid: u32, ncmdexecopt: u32, pvarargin: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarargout: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndbar: super::super::Foundation::HWND, fbroadcast: super::super::Foundation::BOOL, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfsd: *mut FOLDERSETDATA) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itb: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchildonly: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itblastfocus: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ustate: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, prc: *mut super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itb: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lprectborder: *mut super::super::Foundation::RECT, hmon: super::super::Graphics::Gdi::HMONITOR) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *mut Common::ITEMIDLIST, grfmode: u32, pwszname: super::super::Foundation::PWSTR) -> ::windows::core::RawPtr, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hacc: super::WindowsAndMessaging::HACCEL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> i32, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itb: i32) -> *mut ::core::mem::ManuallyDrop<TOOLBARITEM>, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pstm: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pstm: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fclose: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lpmsg: *const super::WindowsAndMessaging::MSG, itbnext: u32, citb: i32, pptbi: *mut *mut TOOLBARITEM, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itb: u32, busehmonitor: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punksrc: ::windows::core::RawPtr) -> u32, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ptbi: *const ::core::mem::ManuallyDrop<TOOLBARITEM>, hwnd: super::super::Foundation::HWND, lpmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmsg: *mut super::WindowsAndMessaging::MSG) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punksrc: ::windows::core::RawPtr, lprectborder: *mut super::super::Foundation::RECT, busehmonitor: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IBrowserService3(pub ::windows::core::IUnknown); impl IBrowserService3 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetParentSite(&self) -> ::windows::core::Result<super::super::System::Ole::IOleInPlaceSite> { let mut result__: <super::super::System::Ole::IOleInPlaceSite as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Ole::IOleInPlaceSite>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetTitle<'a, Param0: ::windows::core::IntoParam<'a, IShellView>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psv: Param0, pszname: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), psv.into_param().abi(), pszname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetTitle<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, psv: Param0, pszname: super::super::Foundation::PWSTR, cchname: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), psv.into_param().abi(), ::core::mem::transmute(pszname), ::core::mem::transmute(cchname)).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetOleObject(&self) -> ::windows::core::Result<super::super::System::Ole::IOleObject> { let mut result__: <super::super::System::Ole::IOleObject as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Ole::IOleObject>(result__) } pub unsafe fn GetTravelLog(&self) -> ::windows::core::Result<ITravelLog> { let mut result__: <ITravelLog as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<ITravelLog>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ShowControlWindow<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, id: u32, fshow: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(id), fshow.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsControlWindowShown(&self, id: u32) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(id), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn IEGetDisplayName(&self, pidl: *const Common::ITEMIDLIST, pwszname: super::super::Foundation::PWSTR, uflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(pwszname), ::core::mem::transmute(uflags)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn IEParseDisplayName<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, uicp: u32, pwszpath: Param1) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(uicp), pwszpath.into_param().abi(), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DisplayParseError<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, hres: ::windows::core::HRESULT, pwszpath: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(hres), pwszpath.into_param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn NavigateToPidl(&self, pidl: *const Common::ITEMIDLIST, grfhlnf: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(grfhlnf)).ok() } pub unsafe fn SetNavigateState(&self, bnstate: BNSTATE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(bnstate)).ok() } pub unsafe fn GetNavigateState(&self) -> ::windows::core::Result<BNSTATE> { let mut result__: <BNSTATE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<BNSTATE>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn NotifyRedirect<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, psv: Param0, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), psv.into_param().abi(), ::core::mem::transmute(pidl), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } pub unsafe fn UpdateWindowList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn UpdateBackForwardState(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetFlags(&self, dwflags: u32, dwflagmask: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags), ::core::mem::transmute(dwflagmask)).ok() } pub unsafe fn GetFlags(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn CanNavigateNow(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetPidl(&self) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetReferrer(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl)).ok() } pub unsafe fn GetBrowserIndex(&self) -> u32 { ::core::mem::transmute((::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self))) } pub unsafe fn GetBrowserByIndex(&self, dwid: u32) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__: <::windows::core::IUnknown as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwid), &mut result__).from_abi::<::windows::core::IUnknown>(result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GetHistoryObject(&self, ppole: *mut ::core::option::Option<super::super::System::Ole::IOleObject>, pstm: *mut ::core::option::Option<super::super::System::Com::IStream>, ppbc: *mut ::core::option::Option<super::super::System::Com::IBindCtx>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppole), ::core::mem::transmute(pstm), ::core::mem::transmute(ppbc)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] pub unsafe fn SetHistoryObject<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Ole::IOleObject>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, pole: Param0, fislocalanchor: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self), pole.into_param().abi(), fislocalanchor.into_param().abi()).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn CacheOLEServer<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Ole::IOleObject>>(&self, pole: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self), pole.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GetSetCodePage(&self, pvarin: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), ::core::mem::transmute(pvarin), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn OnHttpEquiv<'a, Param0: ::windows::core::IntoParam<'a, IShellView>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, psv: Param0, fdone: Param1, pvarargin: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), psv.into_param().abi(), fdone.into_param().abi(), ::core::mem::transmute(pvarargin), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetPalette(&self) -> ::windows::core::Result<super::super::Graphics::Gdi::HPALETTE> { let mut result__: <super::super::Graphics::Gdi::HPALETTE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Graphics::Gdi::HPALETTE>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn RegisterWindow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fforceregister: Param0, swc: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), fforceregister.into_param().abi(), ::core::mem::transmute(swc)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn WndProcBS<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, hwnd: Param0, umsg: u32, wparam: Param2, lparam: Param3) -> super::super::Foundation::LRESULT { ::core::mem::transmute((::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(umsg), wparam.into_param().abi(), lparam.into_param().abi())) } pub unsafe fn SetAsDefFolderSettings(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetViewRect(&self) -> ::windows::core::Result<super::super::Foundation::RECT> { let mut result__: <super::super::Foundation::RECT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::RECT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnSize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>>(&self, wparam: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), wparam.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn OnCreate(&self, pcs: *const super::WindowsAndMessaging::CREATESTRUCTW) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), ::core::mem::transmute(pcs)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnCommand<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, wparam: Param0, lparam: Param1) -> super::super::Foundation::LRESULT { ::core::mem::transmute((::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self), wparam.into_param().abi(), lparam.into_param().abi())) } pub unsafe fn OnDestroy(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).39)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub unsafe fn OnNotify(&self, pnm: *const super::Controls::NMHDR) -> super::super::Foundation::LRESULT { ::core::mem::transmute((::windows::core::Interface::vtable(self).40)(::core::mem::transmute_copy(self), ::core::mem::transmute(pnm))) } pub unsafe fn OnSetFocus(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).41)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnFrameWindowActivateBS<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, factive: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).42)(::core::mem::transmute_copy(self), factive.into_param().abi()).ok() } pub unsafe fn ReleaseShellView(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).43)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ActivatePendingView(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).44)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CreateViewWindow<'a, Param0: ::windows::core::IntoParam<'a, IShellView>, Param1: ::windows::core::IntoParam<'a, IShellView>>(&self, psvnew: Param0, psvold: Param1, prcview: *const super::super::Foundation::RECT) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).45)(::core::mem::transmute_copy(self), psvnew.into_param().abi(), psvold.into_param().abi(), ::core::mem::transmute(prcview), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } pub unsafe fn CreateBrowserPropSheetExt(&self, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).46)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetViewWindow(&self) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).47)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] pub unsafe fn GetBaseBrowserData(&self) -> ::windows::core::Result<*mut BASEBROWSERDATALH> { let mut result__: <*mut BASEBROWSERDATALH as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).48)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut BASEBROWSERDATALH>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] pub unsafe fn PutBaseBrowserData(&self) -> *mut BASEBROWSERDATALH { ::core::mem::transmute((::windows::core::Interface::vtable(self).49)(::core::mem::transmute_copy(self))) } pub unsafe fn InitializeTravelLog<'a, Param0: ::windows::core::IntoParam<'a, ITravelLog>>(&self, ptl: Param0, dw: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).50)(::core::mem::transmute_copy(self), ptl.into_param().abi(), ::core::mem::transmute(dw)).ok() } pub unsafe fn SetTopBrowser(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).51)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Offline(&self, icmd: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).52)(::core::mem::transmute_copy(self), ::core::mem::transmute(icmd)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AllowViewResize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, f: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).53)(::core::mem::transmute_copy(self), f.into_param().abi()).ok() } pub unsafe fn SetActivateState(&self, u: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).54)(::core::mem::transmute_copy(self), ::core::mem::transmute(u)).ok() } pub unsafe fn UpdateSecureLockIcon(&self, esecurelock: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).55)(::core::mem::transmute_copy(self), ::core::mem::transmute(esecurelock)).ok() } pub unsafe fn InitializeDownloadManager(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).56)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn InitializeTransitionSite(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).57)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _Initialize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, hwnd: Param0, pauto: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).58)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), pauto.into_param().abi()).ok() } pub unsafe fn _CancelPendingNavigationAsync(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).59)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn _CancelPendingView(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).60)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn _MaySaveChanges(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).61)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _PauseOrResumeView<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fpaused: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).62)(::core::mem::transmute_copy(self), fpaused.into_param().abi()).ok() } pub unsafe fn _DisableModeless(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).63)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn _NavigateToPidl2(&self, pidl: *const Common::ITEMIDLIST, grfhlnf: u32, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).64)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(grfhlnf), ::core::mem::transmute(dwflags)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn _TryShell2Rename<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, psv: Param0, pidlnew: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).65)(::core::mem::transmute_copy(self), psv.into_param().abi(), ::core::mem::transmute(pidlnew)).ok() } pub unsafe fn _SwitchActivationNow(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).66)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn _ExecChildren<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, punkbar: Param0, fbroadcast: Param1, pguidcmdgroup: *const ::windows::core::GUID, ncmdid: u32, ncmdexecopt: u32, pvarargin: *const super::super::System::Com::VARIANT, pvarargout: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).67)(::core::mem::transmute_copy(self), punkbar.into_param().abi(), fbroadcast.into_param().abi(), ::core::mem::transmute(pguidcmdgroup), ::core::mem::transmute(ncmdid), ::core::mem::transmute(ncmdexecopt), ::core::mem::transmute(pvarargin), ::core::mem::transmute(pvarargout)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _SendChildren<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, hwndbar: Param0, fbroadcast: Param1, umsg: u32, wparam: Param3, lparam: Param4) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).68)(::core::mem::transmute_copy(self), hwndbar.into_param().abi(), fbroadcast.into_param().abi(), ::core::mem::transmute(umsg), wparam.into_param().abi(), lparam.into_param().abi()).ok() } pub unsafe fn GetFolderSetData(&self, pfsd: *mut FOLDERSETDATA) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).69)(::core::mem::transmute_copy(self), ::core::mem::transmute(pfsd)).ok() } pub unsafe fn _OnFocusChange(&self, itb: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).70)(::core::mem::transmute_copy(self), ::core::mem::transmute(itb)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn v_ShowHideChildWindows<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fchildonly: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).71)(::core::mem::transmute_copy(self), fchildonly.into_param().abi()).ok() } pub unsafe fn _get_itbLastFocus(&self) -> u32 { ::core::mem::transmute((::windows::core::Interface::vtable(self).72)(::core::mem::transmute_copy(self))) } pub unsafe fn _put_itbLastFocus(&self, itblastfocus: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).73)(::core::mem::transmute_copy(self), ::core::mem::transmute(itblastfocus)).ok() } pub unsafe fn _UIActivateView(&self, ustate: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).74)(::core::mem::transmute_copy(self), ::core::mem::transmute(ustate)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _GetViewBorderRect(&self, prc: *mut super::super::Foundation::RECT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).75)(::core::mem::transmute_copy(self), ::core::mem::transmute(prc)).ok() } pub unsafe fn _UpdateViewRectSize(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).76)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn _ResizeNextBorder(&self, itb: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).77)(::core::mem::transmute_copy(self), ::core::mem::transmute(itb)).ok() } pub unsafe fn _ResizeView(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).78)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe fn _GetEffectiveClientArea<'a, Param1: ::windows::core::IntoParam<'a, super::super::Graphics::Gdi::HMONITOR>>(&self, lprectborder: *mut super::super::Foundation::RECT, hmon: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).79)(::core::mem::transmute_copy(self), ::core::mem::transmute(lprectborder), hmon.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn v_GetViewStream<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pidl: *mut Common::ITEMIDLIST, grfmode: u32, pwszname: Param2) -> ::core::option::Option<super::super::System::Com::IStream> { ::core::mem::transmute((::windows::core::Interface::vtable(self).80)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(grfmode), pwszname.into_param().abi())) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ForwardViewMsg<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, umsg: u32, wparam: Param1, lparam: Param2) -> super::super::Foundation::LRESULT { ::core::mem::transmute((::windows::core::Interface::vtable(self).81)(::core::mem::transmute_copy(self), ::core::mem::transmute(umsg), wparam.into_param().abi(), lparam.into_param().abi())) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetAcceleratorMenu<'a, Param0: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HACCEL>>(&self, hacc: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).82)(::core::mem::transmute_copy(self), hacc.into_param().abi()).ok() } pub unsafe fn _GetToolbarCount(&self) -> i32 { ::core::mem::transmute((::windows::core::Interface::vtable(self).83)(::core::mem::transmute_copy(self))) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe fn _GetToolbarItem(&self, itb: i32) -> *mut TOOLBARITEM { ::core::mem::transmute((::windows::core::Interface::vtable(self).84)(::core::mem::transmute_copy(self), ::core::mem::transmute(itb))) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn _SaveToolbars<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>>(&self, pstm: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).85)(::core::mem::transmute_copy(self), pstm.into_param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn _LoadToolbars<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>>(&self, pstm: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).86)(::core::mem::transmute_copy(self), pstm.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _CloseAndReleaseToolbars<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fclose: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).87)(::core::mem::transmute_copy(self), fclose.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn v_MayGetNextToolbarFocus(&self, lpmsg: *const super::WindowsAndMessaging::MSG, itbnext: u32, citb: i32, pptbi: *mut *mut TOOLBARITEM, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).88)(::core::mem::transmute_copy(self), ::core::mem::transmute(lpmsg), ::core::mem::transmute(itbnext), ::core::mem::transmute(citb), ::core::mem::transmute(pptbi), ::core::mem::transmute(phwnd)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _ResizeNextBorderHelper<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, itb: u32, busehmonitor: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).89)(::core::mem::transmute_copy(self), ::core::mem::transmute(itb), busehmonitor.into_param().abi()).ok() } pub unsafe fn _FindTBar<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punksrc: Param0) -> u32 { ::core::mem::transmute((::windows::core::Interface::vtable(self).90)(::core::mem::transmute_copy(self), punksrc.into_param().abi())) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn _SetFocus<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, ptbi: *const TOOLBARITEM, hwnd: Param1, lpmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).91)(::core::mem::transmute_copy(self), ::core::mem::transmute(ptbi), hwnd.into_param().abi(), ::core::mem::transmute(lpmsg)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn v_MayTranslateAccelerator(&self, pmsg: *mut super::WindowsAndMessaging::MSG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).92)(::core::mem::transmute_copy(self), ::core::mem::transmute(pmsg)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _GetBorderDWHelper<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, punksrc: Param0, lprectborder: *mut super::super::Foundation::RECT, busehmonitor: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).93)(::core::mem::transmute_copy(self), punksrc.into_param().abi(), ::core::mem::transmute(lprectborder), busehmonitor.into_param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn v_CheckZoneCrossing(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).94)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _PositionViewWindow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0, prc: *const super::super::Foundation::RECT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).95)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(prc)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn IEParseDisplayNameEx<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, uicp: u32, pwszpath: Param1, dwflags: u32) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).96)(::core::mem::transmute_copy(self), ::core::mem::transmute(uicp), pwszpath.into_param().abi(), ::core::mem::transmute(dwflags), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } } unsafe impl ::windows::core::Interface for IBrowserService3 { type Vtable = IBrowserService3_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x27d7ce21_762d_48f3_86f3_40e2fd3749c4); } impl ::core::convert::From<IBrowserService3> for ::windows::core::IUnknown { fn from(value: IBrowserService3) -> Self { value.0 } } impl ::core::convert::From<&IBrowserService3> for ::windows::core::IUnknown { fn from(value: &IBrowserService3) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IBrowserService3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IBrowserService3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IBrowserService3> for IBrowserService2 { fn from(value: IBrowserService3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IBrowserService3> for IBrowserService2 { fn from(value: &IBrowserService3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IBrowserService2> for IBrowserService3 { fn into_param(self) -> ::windows::core::Param<'a, IBrowserService2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IBrowserService2> for &IBrowserService3 { fn into_param(self) -> ::windows::core::Param<'a, IBrowserService2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IBrowserService3> for IBrowserService { fn from(value: IBrowserService3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IBrowserService3> for IBrowserService { fn from(value: &IBrowserService3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IBrowserService> for IBrowserService3 { fn into_param(self) -> ::windows::core::Param<'a, IBrowserService> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IBrowserService> for &IBrowserService3 { fn into_param(self) -> ::windows::core::Param<'a, IBrowserService> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IBrowserService3_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, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppipsite: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psv: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psv: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR, cchname: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppobjv: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pptl: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, id: u32, fshow: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, id: u32, pfshown: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, pwszname: super::super::Foundation::PWSTR, uflags: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uicp: u32, pwszpath: super::super::Foundation::PWSTR, ppidlout: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hres: ::windows::core::HRESULT, pwszpath: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, grfhlnf: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bnstate: BNSTATE) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbnstate: *mut BNSTATE) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psv: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, pfdidbrowse: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32, dwflagmask: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwflags: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwid: u32, ppunk: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppole: *mut ::windows::core::RawPtr, pstm: *mut ::windows::core::RawPtr, ppbc: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pole: ::windows::core::RawPtr, fislocalanchor: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pole: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvarin: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarout: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psv: ::windows::core::RawPtr, fdone: super::super::Foundation::BOOL, pvarargin: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarargout: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hpal: *mut super::super::Graphics::Gdi::HPALETTE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fforceregister: super::super::Foundation::BOOL, swc: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, prc: *mut super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, wparam: super::super::Foundation::WPARAM) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcs: *const super::WindowsAndMessaging::CREATESTRUCTW) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pnm: *const super::Controls::NMHDR) -> super::super::Foundation::LRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, factive: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psvnew: ::windows::core::RawPtr, psvold: ::windows::core::RawPtr, prcview: *const super::super::Foundation::RECT, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phwndview: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbbd: *mut *mut BASEBROWSERDATALH) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> *mut ::core::mem::ManuallyDrop<BASEBROWSERDATALH>, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ptl: ::windows::core::RawPtr, dw: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, icmd: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, f: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, u: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, esecurelock: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, pauto: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fpaused: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, grfhlnf: u32, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psv: ::windows::core::RawPtr, pidlnew: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punkbar: ::windows::core::RawPtr, fbroadcast: super::super::Foundation::BOOL, pguidcmdgroup: *const ::windows::core::GUID, ncmdid: u32, ncmdexecopt: u32, pvarargin: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarargout: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndbar: super::super::Foundation::HWND, fbroadcast: super::super::Foundation::BOOL, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfsd: *mut FOLDERSETDATA) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itb: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchildonly: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itblastfocus: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ustate: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, prc: *mut super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itb: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lprectborder: *mut super::super::Foundation::RECT, hmon: super::super::Graphics::Gdi::HMONITOR) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *mut Common::ITEMIDLIST, grfmode: u32, pwszname: super::super::Foundation::PWSTR) -> ::windows::core::RawPtr, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hacc: super::WindowsAndMessaging::HACCEL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> i32, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itb: i32) -> *mut ::core::mem::ManuallyDrop<TOOLBARITEM>, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pstm: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pstm: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fclose: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lpmsg: *const super::WindowsAndMessaging::MSG, itbnext: u32, citb: i32, pptbi: *mut *mut TOOLBARITEM, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itb: u32, busehmonitor: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punksrc: ::windows::core::RawPtr) -> u32, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ptbi: *const ::core::mem::ManuallyDrop<TOOLBARITEM>, hwnd: super::super::Foundation::HWND, lpmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmsg: *mut super::WindowsAndMessaging::MSG) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punksrc: ::windows::core::RawPtr, lprectborder: *mut super::super::Foundation::RECT, busehmonitor: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, prc: *const super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uicp: u32, pwszpath: super::super::Foundation::PWSTR, dwflags: u32, ppidlout: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IBrowserService4(pub ::windows::core::IUnknown); impl IBrowserService4 { #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetParentSite(&self) -> ::windows::core::Result<super::super::System::Ole::IOleInPlaceSite> { let mut result__: <super::super::System::Ole::IOleInPlaceSite as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Ole::IOleInPlaceSite>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetTitle<'a, Param0: ::windows::core::IntoParam<'a, IShellView>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psv: Param0, pszname: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), psv.into_param().abi(), pszname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetTitle<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, psv: Param0, pszname: super::super::Foundation::PWSTR, cchname: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), psv.into_param().abi(), ::core::mem::transmute(pszname), ::core::mem::transmute(cchname)).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn GetOleObject(&self) -> ::windows::core::Result<super::super::System::Ole::IOleObject> { let mut result__: <super::super::System::Ole::IOleObject as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Ole::IOleObject>(result__) } pub unsafe fn GetTravelLog(&self) -> ::windows::core::Result<ITravelLog> { let mut result__: <ITravelLog as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<ITravelLog>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ShowControlWindow<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, id: u32, fshow: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(id), fshow.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsControlWindowShown(&self, id: u32) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(id), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn IEGetDisplayName(&self, pidl: *const Common::ITEMIDLIST, pwszname: super::super::Foundation::PWSTR, uflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(pwszname), ::core::mem::transmute(uflags)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn IEParseDisplayName<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, uicp: u32, pwszpath: Param1) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(uicp), pwszpath.into_param().abi(), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DisplayParseError<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, hres: ::windows::core::HRESULT, pwszpath: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(hres), pwszpath.into_param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn NavigateToPidl(&self, pidl: *const Common::ITEMIDLIST, grfhlnf: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(grfhlnf)).ok() } pub unsafe fn SetNavigateState(&self, bnstate: BNSTATE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(bnstate)).ok() } pub unsafe fn GetNavigateState(&self) -> ::windows::core::Result<BNSTATE> { let mut result__: <BNSTATE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<BNSTATE>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn NotifyRedirect<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, psv: Param0, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), psv.into_param().abi(), ::core::mem::transmute(pidl), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } pub unsafe fn UpdateWindowList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn UpdateBackForwardState(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetFlags(&self, dwflags: u32, dwflagmask: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags), ::core::mem::transmute(dwflagmask)).ok() } pub unsafe fn GetFlags(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn CanNavigateNow(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetPidl(&self) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetReferrer(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl)).ok() } pub unsafe fn GetBrowserIndex(&self) -> u32 { ::core::mem::transmute((::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self))) } pub unsafe fn GetBrowserByIndex(&self, dwid: u32) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__: <::windows::core::IUnknown as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwid), &mut result__).from_abi::<::windows::core::IUnknown>(result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GetHistoryObject(&self, ppole: *mut ::core::option::Option<super::super::System::Ole::IOleObject>, pstm: *mut ::core::option::Option<super::super::System::Com::IStream>, ppbc: *mut ::core::option::Option<super::super::System::Com::IBindCtx>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppole), ::core::mem::transmute(pstm), ::core::mem::transmute(ppbc)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] pub unsafe fn SetHistoryObject<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Ole::IOleObject>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, pole: Param0, fislocalanchor: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self), pole.into_param().abi(), fislocalanchor.into_param().abi()).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn CacheOLEServer<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Ole::IOleObject>>(&self, pole: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self), pole.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GetSetCodePage(&self, pvarin: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), ::core::mem::transmute(pvarin), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn OnHttpEquiv<'a, Param0: ::windows::core::IntoParam<'a, IShellView>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, psv: Param0, fdone: Param1, pvarargin: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), psv.into_param().abi(), fdone.into_param().abi(), ::core::mem::transmute(pvarargin), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetPalette(&self) -> ::windows::core::Result<super::super::Graphics::Gdi::HPALETTE> { let mut result__: <super::super::Graphics::Gdi::HPALETTE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Graphics::Gdi::HPALETTE>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn RegisterWindow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fforceregister: Param0, swc: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), fforceregister.into_param().abi(), ::core::mem::transmute(swc)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn WndProcBS<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, hwnd: Param0, umsg: u32, wparam: Param2, lparam: Param3) -> super::super::Foundation::LRESULT { ::core::mem::transmute((::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(umsg), wparam.into_param().abi(), lparam.into_param().abi())) } pub unsafe fn SetAsDefFolderSettings(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetViewRect(&self) -> ::windows::core::Result<super::super::Foundation::RECT> { let mut result__: <super::super::Foundation::RECT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::RECT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnSize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>>(&self, wparam: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), wparam.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn OnCreate(&self, pcs: *const super::WindowsAndMessaging::CREATESTRUCTW) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), ::core::mem::transmute(pcs)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnCommand<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, wparam: Param0, lparam: Param1) -> super::super::Foundation::LRESULT { ::core::mem::transmute((::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self), wparam.into_param().abi(), lparam.into_param().abi())) } pub unsafe fn OnDestroy(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).39)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub unsafe fn OnNotify(&self, pnm: *const super::Controls::NMHDR) -> super::super::Foundation::LRESULT { ::core::mem::transmute((::windows::core::Interface::vtable(self).40)(::core::mem::transmute_copy(self), ::core::mem::transmute(pnm))) } pub unsafe fn OnSetFocus(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).41)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnFrameWindowActivateBS<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, factive: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).42)(::core::mem::transmute_copy(self), factive.into_param().abi()).ok() } pub unsafe fn ReleaseShellView(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).43)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ActivatePendingView(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).44)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CreateViewWindow<'a, Param0: ::windows::core::IntoParam<'a, IShellView>, Param1: ::windows::core::IntoParam<'a, IShellView>>(&self, psvnew: Param0, psvold: Param1, prcview: *const super::super::Foundation::RECT) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).45)(::core::mem::transmute_copy(self), psvnew.into_param().abi(), psvold.into_param().abi(), ::core::mem::transmute(prcview), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } pub unsafe fn CreateBrowserPropSheetExt(&self, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).46)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetViewWindow(&self) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).47)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] pub unsafe fn GetBaseBrowserData(&self) -> ::windows::core::Result<*mut BASEBROWSERDATALH> { let mut result__: <*mut BASEBROWSERDATALH as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).48)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut BASEBROWSERDATALH>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] pub unsafe fn PutBaseBrowserData(&self) -> *mut BASEBROWSERDATALH { ::core::mem::transmute((::windows::core::Interface::vtable(self).49)(::core::mem::transmute_copy(self))) } pub unsafe fn InitializeTravelLog<'a, Param0: ::windows::core::IntoParam<'a, ITravelLog>>(&self, ptl: Param0, dw: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).50)(::core::mem::transmute_copy(self), ptl.into_param().abi(), ::core::mem::transmute(dw)).ok() } pub unsafe fn SetTopBrowser(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).51)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Offline(&self, icmd: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).52)(::core::mem::transmute_copy(self), ::core::mem::transmute(icmd)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AllowViewResize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, f: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).53)(::core::mem::transmute_copy(self), f.into_param().abi()).ok() } pub unsafe fn SetActivateState(&self, u: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).54)(::core::mem::transmute_copy(self), ::core::mem::transmute(u)).ok() } pub unsafe fn UpdateSecureLockIcon(&self, esecurelock: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).55)(::core::mem::transmute_copy(self), ::core::mem::transmute(esecurelock)).ok() } pub unsafe fn InitializeDownloadManager(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).56)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn InitializeTransitionSite(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).57)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _Initialize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, hwnd: Param0, pauto: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).58)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), pauto.into_param().abi()).ok() } pub unsafe fn _CancelPendingNavigationAsync(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).59)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn _CancelPendingView(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).60)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn _MaySaveChanges(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).61)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _PauseOrResumeView<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fpaused: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).62)(::core::mem::transmute_copy(self), fpaused.into_param().abi()).ok() } pub unsafe fn _DisableModeless(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).63)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn _NavigateToPidl2(&self, pidl: *const Common::ITEMIDLIST, grfhlnf: u32, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).64)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(grfhlnf), ::core::mem::transmute(dwflags)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn _TryShell2Rename<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, psv: Param0, pidlnew: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).65)(::core::mem::transmute_copy(self), psv.into_param().abi(), ::core::mem::transmute(pidlnew)).ok() } pub unsafe fn _SwitchActivationNow(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).66)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn _ExecChildren<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, punkbar: Param0, fbroadcast: Param1, pguidcmdgroup: *const ::windows::core::GUID, ncmdid: u32, ncmdexecopt: u32, pvarargin: *const super::super::System::Com::VARIANT, pvarargout: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).67)(::core::mem::transmute_copy(self), punkbar.into_param().abi(), fbroadcast.into_param().abi(), ::core::mem::transmute(pguidcmdgroup), ::core::mem::transmute(ncmdid), ::core::mem::transmute(ncmdexecopt), ::core::mem::transmute(pvarargin), ::core::mem::transmute(pvarargout)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _SendChildren<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, hwndbar: Param0, fbroadcast: Param1, umsg: u32, wparam: Param3, lparam: Param4) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).68)(::core::mem::transmute_copy(self), hwndbar.into_param().abi(), fbroadcast.into_param().abi(), ::core::mem::transmute(umsg), wparam.into_param().abi(), lparam.into_param().abi()).ok() } pub unsafe fn GetFolderSetData(&self, pfsd: *mut FOLDERSETDATA) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).69)(::core::mem::transmute_copy(self), ::core::mem::transmute(pfsd)).ok() } pub unsafe fn _OnFocusChange(&self, itb: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).70)(::core::mem::transmute_copy(self), ::core::mem::transmute(itb)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn v_ShowHideChildWindows<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fchildonly: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).71)(::core::mem::transmute_copy(self), fchildonly.into_param().abi()).ok() } pub unsafe fn _get_itbLastFocus(&self) -> u32 { ::core::mem::transmute((::windows::core::Interface::vtable(self).72)(::core::mem::transmute_copy(self))) } pub unsafe fn _put_itbLastFocus(&self, itblastfocus: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).73)(::core::mem::transmute_copy(self), ::core::mem::transmute(itblastfocus)).ok() } pub unsafe fn _UIActivateView(&self, ustate: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).74)(::core::mem::transmute_copy(self), ::core::mem::transmute(ustate)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _GetViewBorderRect(&self, prc: *mut super::super::Foundation::RECT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).75)(::core::mem::transmute_copy(self), ::core::mem::transmute(prc)).ok() } pub unsafe fn _UpdateViewRectSize(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).76)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn _ResizeNextBorder(&self, itb: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).77)(::core::mem::transmute_copy(self), ::core::mem::transmute(itb)).ok() } pub unsafe fn _ResizeView(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).78)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe fn _GetEffectiveClientArea<'a, Param1: ::windows::core::IntoParam<'a, super::super::Graphics::Gdi::HMONITOR>>(&self, lprectborder: *mut super::super::Foundation::RECT, hmon: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).79)(::core::mem::transmute_copy(self), ::core::mem::transmute(lprectborder), hmon.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn v_GetViewStream<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pidl: *mut Common::ITEMIDLIST, grfmode: u32, pwszname: Param2) -> ::core::option::Option<super::super::System::Com::IStream> { ::core::mem::transmute((::windows::core::Interface::vtable(self).80)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(grfmode), pwszname.into_param().abi())) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ForwardViewMsg<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, umsg: u32, wparam: Param1, lparam: Param2) -> super::super::Foundation::LRESULT { ::core::mem::transmute((::windows::core::Interface::vtable(self).81)(::core::mem::transmute_copy(self), ::core::mem::transmute(umsg), wparam.into_param().abi(), lparam.into_param().abi())) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn SetAcceleratorMenu<'a, Param0: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HACCEL>>(&self, hacc: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).82)(::core::mem::transmute_copy(self), hacc.into_param().abi()).ok() } pub unsafe fn _GetToolbarCount(&self) -> i32 { ::core::mem::transmute((::windows::core::Interface::vtable(self).83)(::core::mem::transmute_copy(self))) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe fn _GetToolbarItem(&self, itb: i32) -> *mut TOOLBARITEM { ::core::mem::transmute((::windows::core::Interface::vtable(self).84)(::core::mem::transmute_copy(self), ::core::mem::transmute(itb))) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn _SaveToolbars<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>>(&self, pstm: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).85)(::core::mem::transmute_copy(self), pstm.into_param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn _LoadToolbars<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>>(&self, pstm: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).86)(::core::mem::transmute_copy(self), pstm.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _CloseAndReleaseToolbars<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fclose: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).87)(::core::mem::transmute_copy(self), fclose.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn v_MayGetNextToolbarFocus(&self, lpmsg: *const super::WindowsAndMessaging::MSG, itbnext: u32, citb: i32, pptbi: *mut *mut TOOLBARITEM, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).88)(::core::mem::transmute_copy(self), ::core::mem::transmute(lpmsg), ::core::mem::transmute(itbnext), ::core::mem::transmute(citb), ::core::mem::transmute(pptbi), ::core::mem::transmute(phwnd)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _ResizeNextBorderHelper<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, itb: u32, busehmonitor: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).89)(::core::mem::transmute_copy(self), ::core::mem::transmute(itb), busehmonitor.into_param().abi()).ok() } pub unsafe fn _FindTBar<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punksrc: Param0) -> u32 { ::core::mem::transmute((::windows::core::Interface::vtable(self).90)(::core::mem::transmute_copy(self), punksrc.into_param().abi())) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn _SetFocus<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, ptbi: *const TOOLBARITEM, hwnd: Param1, lpmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).91)(::core::mem::transmute_copy(self), ::core::mem::transmute(ptbi), hwnd.into_param().abi(), ::core::mem::transmute(lpmsg)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn v_MayTranslateAccelerator(&self, pmsg: *mut super::WindowsAndMessaging::MSG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).92)(::core::mem::transmute_copy(self), ::core::mem::transmute(pmsg)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _GetBorderDWHelper<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, punksrc: Param0, lprectborder: *mut super::super::Foundation::RECT, busehmonitor: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).93)(::core::mem::transmute_copy(self), punksrc.into_param().abi(), ::core::mem::transmute(lprectborder), busehmonitor.into_param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn v_CheckZoneCrossing(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).94)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn _PositionViewWindow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0, prc: *const super::super::Foundation::RECT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).95)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(prc)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn IEParseDisplayNameEx<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, uicp: u32, pwszpath: Param1, dwflags: u32) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).96)(::core::mem::transmute_copy(self), ::core::mem::transmute(uicp), pwszpath.into_param().abi(), ::core::mem::transmute(dwflags), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ActivateView<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fpendingview: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).97)(::core::mem::transmute_copy(self), fpendingview.into_param().abi()).ok() } pub unsafe fn SaveViewState(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).98)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn _ResizeAllBorders(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).99)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IBrowserService4 { type Vtable = IBrowserService4_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x639f1bff_e135_4096_abd8_e0f504d649a4); } impl ::core::convert::From<IBrowserService4> for ::windows::core::IUnknown { fn from(value: IBrowserService4) -> Self { value.0 } } impl ::core::convert::From<&IBrowserService4> for ::windows::core::IUnknown { fn from(value: &IBrowserService4) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IBrowserService4 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IBrowserService4 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IBrowserService4> for IBrowserService3 { fn from(value: IBrowserService4) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IBrowserService4> for IBrowserService3 { fn from(value: &IBrowserService4) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IBrowserService3> for IBrowserService4 { fn into_param(self) -> ::windows::core::Param<'a, IBrowserService3> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IBrowserService3> for &IBrowserService4 { fn into_param(self) -> ::windows::core::Param<'a, IBrowserService3> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IBrowserService4> for IBrowserService2 { fn from(value: IBrowserService4) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IBrowserService4> for IBrowserService2 { fn from(value: &IBrowserService4) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IBrowserService2> for IBrowserService4 { fn into_param(self) -> ::windows::core::Param<'a, IBrowserService2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IBrowserService2> for &IBrowserService4 { fn into_param(self) -> ::windows::core::Param<'a, IBrowserService2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IBrowserService4> for IBrowserService { fn from(value: IBrowserService4) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IBrowserService4> for IBrowserService { fn from(value: &IBrowserService4) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IBrowserService> for IBrowserService4 { fn into_param(self) -> ::windows::core::Param<'a, IBrowserService> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IBrowserService> for &IBrowserService4 { fn into_param(self) -> ::windows::core::Param<'a, IBrowserService> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IBrowserService4_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, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppipsite: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psv: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psv: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR, cchname: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppobjv: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pptl: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, id: u32, fshow: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, id: u32, pfshown: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, pwszname: super::super::Foundation::PWSTR, uflags: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uicp: u32, pwszpath: super::super::Foundation::PWSTR, ppidlout: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hres: ::windows::core::HRESULT, pwszpath: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, grfhlnf: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bnstate: BNSTATE) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbnstate: *mut BNSTATE) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psv: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, pfdidbrowse: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32, dwflagmask: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwflags: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwid: u32, ppunk: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppole: *mut ::windows::core::RawPtr, pstm: *mut ::windows::core::RawPtr, ppbc: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pole: ::windows::core::RawPtr, fislocalanchor: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pole: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvarin: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarout: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psv: ::windows::core::RawPtr, fdone: super::super::Foundation::BOOL, pvarargin: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarargout: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hpal: *mut super::super::Graphics::Gdi::HPALETTE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fforceregister: super::super::Foundation::BOOL, swc: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, prc: *mut super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, wparam: super::super::Foundation::WPARAM) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcs: *const super::WindowsAndMessaging::CREATESTRUCTW) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pnm: *const super::Controls::NMHDR) -> super::super::Foundation::LRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, factive: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psvnew: ::windows::core::RawPtr, psvold: ::windows::core::RawPtr, prcview: *const super::super::Foundation::RECT, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phwndview: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbbd: *mut *mut BASEBROWSERDATALH) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> *mut ::core::mem::ManuallyDrop<BASEBROWSERDATALH>, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ptl: ::windows::core::RawPtr, dw: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, icmd: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, f: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, u: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, esecurelock: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, pauto: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fpaused: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, grfhlnf: u32, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psv: ::windows::core::RawPtr, pidlnew: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punkbar: ::windows::core::RawPtr, fbroadcast: super::super::Foundation::BOOL, pguidcmdgroup: *const ::windows::core::GUID, ncmdid: u32, ncmdexecopt: u32, pvarargin: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarargout: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndbar: super::super::Foundation::HWND, fbroadcast: super::super::Foundation::BOOL, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfsd: *mut FOLDERSETDATA) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itb: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchildonly: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itblastfocus: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ustate: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, prc: *mut super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itb: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lprectborder: *mut super::super::Foundation::RECT, hmon: super::super::Graphics::Gdi::HMONITOR) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *mut Common::ITEMIDLIST, grfmode: u32, pwszname: super::super::Foundation::PWSTR) -> ::windows::core::RawPtr, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hacc: super::WindowsAndMessaging::HACCEL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> i32, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itb: i32) -> *mut ::core::mem::ManuallyDrop<TOOLBARITEM>, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pstm: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pstm: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fclose: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lpmsg: *const super::WindowsAndMessaging::MSG, itbnext: u32, citb: i32, pptbi: *mut *mut TOOLBARITEM, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itb: u32, busehmonitor: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punksrc: ::windows::core::RawPtr) -> u32, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ptbi: *const ::core::mem::ManuallyDrop<TOOLBARITEM>, hwnd: super::super::Foundation::HWND, lpmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmsg: *mut super::WindowsAndMessaging::MSG) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punksrc: ::windows::core::RawPtr, lprectborder: *mut super::super::Foundation::RECT, busehmonitor: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, prc: *const super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uicp: u32, pwszpath: super::super::Foundation::PWSTR, dwflags: u32, ppidlout: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fpendingview: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICDBurn(pub ::windows::core::IUnknown); impl ICDBurn { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetRecorderDriveLetter(&self, pszdrive: super::super::Foundation::PWSTR, cch: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszdrive), ::core::mem::transmute(cch)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Burn<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), hwnd.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn HasRecordableDrive(&self) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } } unsafe impl ::windows::core::Interface for ICDBurn { type Vtable = ICDBurn_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3d73a659_e5d0_4d42_afc0_5121ba425c8d); } impl ::core::convert::From<ICDBurn> for ::windows::core::IUnknown { fn from(value: ICDBurn) -> Self { value.0 } } impl ::core::convert::From<&ICDBurn> for ::windows::core::IUnknown { fn from(value: &ICDBurn) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICDBurn { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICDBurn { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ICDBurn_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszdrive: super::super::Foundation::PWSTR, cch: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfhasrecorder: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICDBurnExt(pub ::windows::core::IUnknown); impl ICDBurnExt { pub unsafe fn GetSupportedActionTypes(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } } unsafe impl ::windows::core::Interface for ICDBurnExt { type Vtable = ICDBurnExt_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2271dcca_74fc_4414_8fb7_c56b05ace2d7); } impl ::core::convert::From<ICDBurnExt> for ::windows::core::IUnknown { fn from(value: ICDBurnExt) -> Self { value.0 } } impl ::core::convert::From<&ICDBurnExt> for ::windows::core::IUnknown { fn from(value: &ICDBurnExt) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICDBurnExt { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICDBurnExt { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ICDBurnExt_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, pdwactions: *mut u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICategorizer(pub ::windows::core::IUnknown); impl ICategorizer { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDescription(&self, pszdesc: super::super::Foundation::PWSTR, cch: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszdesc), ::core::mem::transmute(cch)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetCategory(&self, cidl: u32, apidl: *const *const Common::ITEMIDLIST, rgcategoryids: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(cidl), ::core::mem::transmute(apidl), ::core::mem::transmute(rgcategoryids)).ok() } pub unsafe fn GetCategoryInfo(&self, dwcategoryid: u32) -> ::windows::core::Result<CATEGORY_INFO> { let mut result__: <CATEGORY_INFO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwcategoryid), &mut result__).from_abi::<CATEGORY_INFO>(result__) } pub unsafe fn CompareCategory(&self, csfflags: CATSORT_FLAGS, dwcategoryid1: u32, dwcategoryid2: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(csfflags), ::core::mem::transmute(dwcategoryid1), ::core::mem::transmute(dwcategoryid2)).ok() } } unsafe impl ::windows::core::Interface for ICategorizer { type Vtable = ICategorizer_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa3b14589_9174_49a8_89a3_06a1ae2b9ba7); } impl ::core::convert::From<ICategorizer> for ::windows::core::IUnknown { fn from(value: ICategorizer) -> Self { value.0 } } impl ::core::convert::From<&ICategorizer> for ::windows::core::IUnknown { fn from(value: &ICategorizer) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICategorizer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICategorizer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ICategorizer_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszdesc: super::super::Foundation::PWSTR, cch: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, cidl: u32, apidl: *const *const Common::ITEMIDLIST, rgcategoryids: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwcategoryid: u32, pci: *mut CATEGORY_INFO) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, csfflags: CATSORT_FLAGS, dwcategoryid1: u32, dwcategoryid2: u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICategoryProvider(pub ::windows::core::IUnknown); impl ICategoryProvider { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn CanCategorizeOnSCID(&self, pscid: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pscid)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetDefaultCategory(&self, pguid: *mut ::windows::core::GUID, pscid: *mut PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pguid), ::core::mem::transmute(pscid)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetCategoryForSCID(&self, pscid: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<::windows::core::GUID> { let mut result__: <::windows::core::GUID as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(pscid), &mut result__).from_abi::<::windows::core::GUID>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumCategories(&self) -> ::windows::core::Result<super::super::System::Com::IEnumGUID> { let mut result__: <super::super::System::Com::IEnumGUID as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IEnumGUID>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCategoryName(&self, pguid: *const ::windows::core::GUID, pszname: super::super::Foundation::PWSTR, cch: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(pguid), ::core::mem::transmute(pszname), ::core::mem::transmute(cch)).ok() } pub unsafe fn CreateCategory<T: ::windows::core::Interface>(&self, pguid: *const ::windows::core::GUID) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(pguid), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } } unsafe impl ::windows::core::Interface for ICategoryProvider { type Vtable = ICategoryProvider_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9af64809_5864_4c26_a720_c1f78c086ee3); } impl ::core::convert::From<ICategoryProvider> for ::windows::core::IUnknown { fn from(value: ICategoryProvider) -> Self { value.0 } } impl ::core::convert::From<&ICategoryProvider> for ::windows::core::IUnknown { fn from(value: &ICategoryProvider) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICategoryProvider { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICategoryProvider { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ICategoryProvider_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, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pscid: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pguid: *mut ::windows::core::GUID, pscid: *mut PropertiesSystem::PROPERTYKEY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pscid: *const PropertiesSystem::PROPERTYKEY, pguid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, penum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pguid: *const ::windows::core::GUID, pszname: super::super::Foundation::PWSTR, cch: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pguid: *const ::windows::core::GUID, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IColumnManager(pub ::windows::core::IUnknown); impl IColumnManager { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetColumnInfo(&self, propkey: *const PropertiesSystem::PROPERTYKEY, pcmci: *const CM_COLUMNINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(propkey), ::core::mem::transmute(pcmci)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetColumnInfo(&self, propkey: *const PropertiesSystem::PROPERTYKEY, pcmci: *mut CM_COLUMNINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(propkey), ::core::mem::transmute(pcmci)).ok() } pub unsafe fn GetColumnCount(&self, dwflags: CM_ENUM_FLAGS) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetColumns(&self, dwflags: CM_ENUM_FLAGS, rgkeyorder: *mut PropertiesSystem::PROPERTYKEY, ccolumns: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags), ::core::mem::transmute(rgkeyorder), ::core::mem::transmute(ccolumns)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetColumns(&self, rgkeyorder: *const PropertiesSystem::PROPERTYKEY, cvisible: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(rgkeyorder), ::core::mem::transmute(cvisible)).ok() } } unsafe impl ::windows::core::Interface for IColumnManager { type Vtable = IColumnManager_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd8ec27bb_3f3b_4042_b10a_4acfd924d453); } impl ::core::convert::From<IColumnManager> for ::windows::core::IUnknown { fn from(value: IColumnManager) -> Self { value.0 } } impl ::core::convert::From<&IColumnManager> for ::windows::core::IUnknown { fn from(value: &IColumnManager) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IColumnManager { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IColumnManager { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IColumnManager_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, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, propkey: *const PropertiesSystem::PROPERTYKEY, pcmci: *const CM_COLUMNINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, propkey: *const PropertiesSystem::PROPERTYKEY, pcmci: *mut CM_COLUMNINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: CM_ENUM_FLAGS, pucount: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: CM_ENUM_FLAGS, rgkeyorder: *mut PropertiesSystem::PROPERTYKEY, ccolumns: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rgkeyorder: *const PropertiesSystem::PROPERTYKEY, cvisible: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IColumnProvider(pub ::windows::core::IUnknown); impl IColumnProvider { pub unsafe fn Initialize(&self, psci: *const SHCOLUMNINIT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(psci)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetColumnInfo(&self, dwindex: u32) -> ::windows::core::Result<SHCOLUMNINFO> { let mut result__: <SHCOLUMNINFO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwindex), &mut result__).from_abi::<SHCOLUMNINFO>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn GetItemData(&self, pscid: *const PropertiesSystem::PROPERTYKEY, pscd: *const SHCOLUMNDATA) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(pscid), ::core::mem::transmute(pscd), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } } unsafe impl ::windows::core::Interface for IColumnProvider { type Vtable = IColumnProvider_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe8025004_1c42_11d2_be2c_00a0c9a83da1); } impl ::core::convert::From<IColumnProvider> for ::windows::core::IUnknown { fn from(value: IColumnProvider) -> Self { value.0 } } impl ::core::convert::From<&IColumnProvider> for ::windows::core::IUnknown { fn from(value: &IColumnProvider) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IColumnProvider { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IColumnProvider { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IColumnProvider_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, psci: *const SHCOLUMNINIT) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwindex: u32, psci: *mut SHCOLUMNINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pscid: *const PropertiesSystem::PROPERTYKEY, pscd: *const SHCOLUMNDATA, pvardata: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_PropertiesSystem")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICommDlgBrowser(pub ::windows::core::IUnknown); impl ICommDlgBrowser { pub unsafe fn OnDefaultCommand<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, ppshv: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ppshv.into_param().abi()).ok() } pub unsafe fn OnStateChange<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, ppshv: Param0, uchange: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ppshv.into_param().abi(), ::core::mem::transmute(uchange)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn IncludeObject<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, ppshv: Param0, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ppshv.into_param().abi(), ::core::mem::transmute(pidl)).ok() } } unsafe impl ::windows::core::Interface for ICommDlgBrowser { type Vtable = ICommDlgBrowser_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214f1_0000_0000_c000_000000000046); } impl ::core::convert::From<ICommDlgBrowser> for ::windows::core::IUnknown { fn from(value: ICommDlgBrowser) -> Self { value.0 } } impl ::core::convert::From<&ICommDlgBrowser> for ::windows::core::IUnknown { fn from(value: &ICommDlgBrowser) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICommDlgBrowser { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICommDlgBrowser { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ICommDlgBrowser_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, ppshv: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppshv: ::windows::core::RawPtr, uchange: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppshv: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICommDlgBrowser2(pub ::windows::core::IUnknown); impl ICommDlgBrowser2 { pub unsafe fn OnDefaultCommand<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, ppshv: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ppshv.into_param().abi()).ok() } pub unsafe fn OnStateChange<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, ppshv: Param0, uchange: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ppshv.into_param().abi(), ::core::mem::transmute(uchange)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn IncludeObject<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, ppshv: Param0, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ppshv.into_param().abi(), ::core::mem::transmute(pidl)).ok() } pub unsafe fn Notify<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, ppshv: Param0, dwnotifytype: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ppshv.into_param().abi(), ::core::mem::transmute(dwnotifytype)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDefaultMenuText<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, ppshv: Param0, psztext: super::super::Foundation::PWSTR, cchmax: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ppshv.into_param().abi(), ::core::mem::transmute(psztext), ::core::mem::transmute(cchmax)).ok() } pub unsafe fn GetViewFlags(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } } unsafe impl ::windows::core::Interface for ICommDlgBrowser2 { type Vtable = ICommDlgBrowser2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x10339516_2894_11d2_9039_00c04f8eeb3e); } impl ::core::convert::From<ICommDlgBrowser2> for ::windows::core::IUnknown { fn from(value: ICommDlgBrowser2) -> Self { value.0 } } impl ::core::convert::From<&ICommDlgBrowser2> for ::windows::core::IUnknown { fn from(value: &ICommDlgBrowser2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICommDlgBrowser2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICommDlgBrowser2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<ICommDlgBrowser2> for ICommDlgBrowser { fn from(value: ICommDlgBrowser2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&ICommDlgBrowser2> for ICommDlgBrowser { fn from(value: &ICommDlgBrowser2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, ICommDlgBrowser> for ICommDlgBrowser2 { fn into_param(self) -> ::windows::core::Param<'a, ICommDlgBrowser> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, ICommDlgBrowser> for &ICommDlgBrowser2 { fn into_param(self) -> ::windows::core::Param<'a, ICommDlgBrowser> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct ICommDlgBrowser2_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, ppshv: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppshv: ::windows::core::RawPtr, uchange: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppshv: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppshv: ::windows::core::RawPtr, dwnotifytype: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppshv: ::windows::core::RawPtr, psztext: super::super::Foundation::PWSTR, cchmax: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwflags: *mut u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICommDlgBrowser3(pub ::windows::core::IUnknown); impl ICommDlgBrowser3 { pub unsafe fn OnDefaultCommand<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, ppshv: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ppshv.into_param().abi()).ok() } pub unsafe fn OnStateChange<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, ppshv: Param0, uchange: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ppshv.into_param().abi(), ::core::mem::transmute(uchange)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn IncludeObject<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, ppshv: Param0, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ppshv.into_param().abi(), ::core::mem::transmute(pidl)).ok() } pub unsafe fn Notify<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, ppshv: Param0, dwnotifytype: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ppshv.into_param().abi(), ::core::mem::transmute(dwnotifytype)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDefaultMenuText<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, ppshv: Param0, psztext: super::super::Foundation::PWSTR, cchmax: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ppshv.into_param().abi(), ::core::mem::transmute(psztext), ::core::mem::transmute(cchmax)).ok() } pub unsafe fn GetViewFlags(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn OnColumnClicked<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, ppshv: Param0, icolumn: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ppshv.into_param().abi(), ::core::mem::transmute(icolumn)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCurrentFilter(&self, pszfilespec: super::super::Foundation::PWSTR, cchfilespec: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszfilespec), ::core::mem::transmute(cchfilespec)).ok() } pub unsafe fn OnPreViewCreated<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, ppshv: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ppshv.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for ICommDlgBrowser3 { type Vtable = ICommDlgBrowser3_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc8ad25a1_3294_41ee_8165_71174bd01c57); } impl ::core::convert::From<ICommDlgBrowser3> for ::windows::core::IUnknown { fn from(value: ICommDlgBrowser3) -> Self { value.0 } } impl ::core::convert::From<&ICommDlgBrowser3> for ::windows::core::IUnknown { fn from(value: &ICommDlgBrowser3) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICommDlgBrowser3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICommDlgBrowser3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<ICommDlgBrowser3> for ICommDlgBrowser2 { fn from(value: ICommDlgBrowser3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&ICommDlgBrowser3> for ICommDlgBrowser2 { fn from(value: &ICommDlgBrowser3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, ICommDlgBrowser2> for ICommDlgBrowser3 { fn into_param(self) -> ::windows::core::Param<'a, ICommDlgBrowser2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, ICommDlgBrowser2> for &ICommDlgBrowser3 { fn into_param(self) -> ::windows::core::Param<'a, ICommDlgBrowser2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<ICommDlgBrowser3> for ICommDlgBrowser { fn from(value: ICommDlgBrowser3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&ICommDlgBrowser3> for ICommDlgBrowser { fn from(value: &ICommDlgBrowser3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, ICommDlgBrowser> for ICommDlgBrowser3 { fn into_param(self) -> ::windows::core::Param<'a, ICommDlgBrowser> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, ICommDlgBrowser> for &ICommDlgBrowser3 { fn into_param(self) -> ::windows::core::Param<'a, ICommDlgBrowser> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct ICommDlgBrowser3_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, ppshv: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppshv: ::windows::core::RawPtr, uchange: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppshv: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppshv: ::windows::core::RawPtr, dwnotifytype: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppshv: ::windows::core::RawPtr, psztext: super::super::Foundation::PWSTR, cchmax: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwflags: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppshv: ::windows::core::RawPtr, icolumn: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszfilespec: super::super::Foundation::PWSTR, cchfilespec: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppshv: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IComputerInfoChangeNotify(pub ::windows::core::IUnknown); impl IComputerInfoChangeNotify { pub unsafe fn ComputerInfoChanged(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IComputerInfoChangeNotify { type Vtable = IComputerInfoChangeNotify_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0df60d92_6818_46d6_b358_d66170dde466); } impl ::core::convert::From<IComputerInfoChangeNotify> for ::windows::core::IUnknown { fn from(value: IComputerInfoChangeNotify) -> Self { value.0 } } impl ::core::convert::From<&IComputerInfoChangeNotify> for ::windows::core::IUnknown { fn from(value: &IComputerInfoChangeNotify) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IComputerInfoChangeNotify { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IComputerInfoChangeNotify { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IComputerInfoChangeNotify_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) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IConnectableCredentialProviderCredential(pub ::windows::core::IUnknown); impl IConnectableCredentialProviderCredential { pub unsafe fn Advise<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderCredentialEvents>>(&self, pcpce: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pcpce.into_param().abi()).ok() } pub unsafe fn UnAdvise(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetSelected(&self) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } pub unsafe fn SetDeselected(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GetFieldState(&self, dwfieldid: u32, pcpfs: *mut CREDENTIAL_PROVIDER_FIELD_STATE, pcpfis: *mut CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(pcpfs), ::core::mem::transmute(pcpfis)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetStringValue(&self, dwfieldid: u32) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetBitmapValue(&self, dwfieldid: u32) -> ::windows::core::Result<super::super::Graphics::Gdi::HBITMAP> { let mut result__: <super::super::Graphics::Gdi::HBITMAP as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), &mut result__).from_abi::<super::super::Graphics::Gdi::HBITMAP>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCheckboxValue(&self, dwfieldid: u32, pbchecked: *mut super::super::Foundation::BOOL, ppszlabel: *mut super::super::Foundation::PWSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(pbchecked), ::core::mem::transmute(ppszlabel)).ok() } pub unsafe fn GetSubmitButtonValue(&self, dwfieldid: u32) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), &mut result__).from_abi::<u32>(result__) } pub unsafe fn GetComboBoxValueCount(&self, dwfieldid: u32, pcitems: *mut u32, pdwselecteditem: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(pcitems), ::core::mem::transmute(pdwselecteditem)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetComboBoxValueAt(&self, dwfieldid: u32, dwitem: u32) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(dwitem), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetStringValue<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, dwfieldid: u32, psz: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), psz.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetCheckboxValue<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, dwfieldid: u32, bchecked: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), bchecked.into_param().abi()).ok() } pub unsafe fn SetComboBoxSelectedValue(&self, dwfieldid: u32, dwselecteditem: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(dwselecteditem)).ok() } pub unsafe fn CommandLinkClicked(&self, dwfieldid: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSerialization(&self, pcpgsr: *mut CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE, pcpcs: *mut CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION, ppszoptionalstatustext: *mut super::super::Foundation::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(pcpgsr), ::core::mem::transmute(pcpcs), ::core::mem::transmute(ppszoptionalstatustext), ::core::mem::transmute(pcpsioptionalstatusicon)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportResult<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::NTSTATUS>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::NTSTATUS>>(&self, ntsstatus: Param0, ntssubstatus: Param1, ppszoptionalstatustext: *mut super::super::Foundation::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), ntsstatus.into_param().abi(), ntssubstatus.into_param().abi(), ::core::mem::transmute(ppszoptionalstatustext), ::core::mem::transmute(pcpsioptionalstatusicon)).ok() } pub unsafe fn Connect<'a, Param0: ::windows::core::IntoParam<'a, IQueryContinueWithStatus>>(&self, pqcws: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), pqcws.into_param().abi()).ok() } pub unsafe fn Disconnect(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IConnectableCredentialProviderCredential { type Vtable = IConnectableCredentialProviderCredential_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9387928b_ac75_4bf9_8ab2_2b93c4a55290); } impl ::core::convert::From<IConnectableCredentialProviderCredential> for ::windows::core::IUnknown { fn from(value: IConnectableCredentialProviderCredential) -> Self { value.0 } } impl ::core::convert::From<&IConnectableCredentialProviderCredential> for ::windows::core::IUnknown { fn from(value: &IConnectableCredentialProviderCredential) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IConnectableCredentialProviderCredential { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IConnectableCredentialProviderCredential { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IConnectableCredentialProviderCredential> for ICredentialProviderCredential { fn from(value: IConnectableCredentialProviderCredential) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IConnectableCredentialProviderCredential> for ICredentialProviderCredential { fn from(value: &IConnectableCredentialProviderCredential) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, ICredentialProviderCredential> for IConnectableCredentialProviderCredential { fn into_param(self) -> ::windows::core::Param<'a, ICredentialProviderCredential> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, ICredentialProviderCredential> for &IConnectableCredentialProviderCredential { fn into_param(self) -> ::windows::core::Param<'a, ICredentialProviderCredential> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IConnectableCredentialProviderCredential_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, pcpce: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbautologon: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, pcpfs: *mut CREDENTIAL_PROVIDER_FIELD_STATE, pcpfis: *mut CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, ppsz: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, phbmp: *mut super::super::Graphics::Gdi::HBITMAP) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, pbchecked: *mut super::super::Foundation::BOOL, ppszlabel: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, pdwadjacentto: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, pcitems: *mut u32, pdwselecteditem: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, dwitem: u32, ppszitem: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, psz: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, bchecked: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, dwselecteditem: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpgsr: *mut CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE, pcpcs: *mut CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION, ppszoptionalstatustext: *mut super::super::Foundation::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ntsstatus: super::super::Foundation::NTSTATUS, ntssubstatus: super::super::Foundation::NTSTATUS, ppszoptionalstatustext: *mut super::super::Foundation::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pqcws: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IContactManagerInterop(pub ::windows::core::IUnknown); impl IContactManagerInterop { #[cfg(feature = "Win32_Foundation")] pub unsafe fn ShowContactCardForWindow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, appwindow: Param0, contact: Param1, selection: *const super::super::Foundation::RECT, preferredplacement: FLYOUT_PLACEMENT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), appwindow.into_param().abi(), contact.into_param().abi(), ::core::mem::transmute(selection), ::core::mem::transmute(preferredplacement)).ok() } } unsafe impl ::windows::core::Interface for IContactManagerInterop { type Vtable = IContactManagerInterop_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x99eacba7_e073_43b6_a896_55afe48a0833); } impl ::core::convert::From<IContactManagerInterop> for ::windows::core::IUnknown { fn from(value: IContactManagerInterop) -> Self { value.0 } } impl ::core::convert::From<&IContactManagerInterop> for ::windows::core::IUnknown { fn from(value: &IContactManagerInterop) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IContactManagerInterop { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IContactManagerInterop { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IContactManagerInterop_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, appwindow: super::super::Foundation::HWND, contact: ::windows::core::RawPtr, selection: *const super::super::Foundation::RECT, preferredplacement: FLYOUT_PLACEMENT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IContextMenu(pub ::windows::core::IUnknown); impl IContextMenu { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn QueryContextMenu<'a, Param0: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HMENU>>(&self, hmenu: Param0, indexmenu: u32, idcmdfirst: u32, idcmdlast: u32, uflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hmenu.into_param().abi(), ::core::mem::transmute(indexmenu), ::core::mem::transmute(idcmdfirst), ::core::mem::transmute(idcmdlast), ::core::mem::transmute(uflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn InvokeCommand(&self, pici: *const CMINVOKECOMMANDINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pici)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCommandString(&self, idcmd: usize, utype: u32, preserved: *mut u32, pszname: super::super::Foundation::PSTR, cchmax: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(idcmd), ::core::mem::transmute(utype), ::core::mem::transmute(preserved), ::core::mem::transmute(pszname), ::core::mem::transmute(cchmax)).ok() } } unsafe impl ::windows::core::Interface for IContextMenu { type Vtable = IContextMenu_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214e4_0000_0000_c000_000000000046); } impl ::core::convert::From<IContextMenu> for ::windows::core::IUnknown { fn from(value: IContextMenu) -> Self { value.0 } } impl ::core::convert::From<&IContextMenu> for ::windows::core::IUnknown { fn from(value: &IContextMenu) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IContextMenu { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IContextMenu { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IContextMenu_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, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hmenu: super::WindowsAndMessaging::HMENU, indexmenu: u32, idcmdfirst: u32, idcmdlast: u32, uflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pici: *const CMINVOKECOMMANDINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, idcmd: usize, utype: u32, preserved: *mut u32, pszname: super::super::Foundation::PSTR, cchmax: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IContextMenu2(pub ::windows::core::IUnknown); impl IContextMenu2 { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn QueryContextMenu<'a, Param0: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HMENU>>(&self, hmenu: Param0, indexmenu: u32, idcmdfirst: u32, idcmdlast: u32, uflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hmenu.into_param().abi(), ::core::mem::transmute(indexmenu), ::core::mem::transmute(idcmdfirst), ::core::mem::transmute(idcmdlast), ::core::mem::transmute(uflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn InvokeCommand(&self, pici: *const CMINVOKECOMMANDINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pici)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCommandString(&self, idcmd: usize, utype: u32, preserved: *mut u32, pszname: super::super::Foundation::PSTR, cchmax: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(idcmd), ::core::mem::transmute(utype), ::core::mem::transmute(preserved), ::core::mem::transmute(pszname), ::core::mem::transmute(cchmax)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn HandleMenuMsg<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, umsg: u32, wparam: Param1, lparam: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(umsg), wparam.into_param().abi(), lparam.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IContextMenu2 { type Vtable = IContextMenu2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214f4_0000_0000_c000_000000000046); } impl ::core::convert::From<IContextMenu2> for ::windows::core::IUnknown { fn from(value: IContextMenu2) -> Self { value.0 } } impl ::core::convert::From<&IContextMenu2> for ::windows::core::IUnknown { fn from(value: &IContextMenu2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IContextMenu2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IContextMenu2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IContextMenu2> for IContextMenu { fn from(value: IContextMenu2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IContextMenu2> for IContextMenu { fn from(value: &IContextMenu2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IContextMenu> for IContextMenu2 { fn into_param(self) -> ::windows::core::Param<'a, IContextMenu> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IContextMenu> for &IContextMenu2 { fn into_param(self) -> ::windows::core::Param<'a, IContextMenu> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IContextMenu2_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, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hmenu: super::WindowsAndMessaging::HMENU, indexmenu: u32, idcmdfirst: u32, idcmdlast: u32, uflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pici: *const CMINVOKECOMMANDINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, idcmd: usize, utype: u32, preserved: *mut u32, pszname: super::super::Foundation::PSTR, cchmax: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IContextMenu3(pub ::windows::core::IUnknown); impl IContextMenu3 { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn QueryContextMenu<'a, Param0: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HMENU>>(&self, hmenu: Param0, indexmenu: u32, idcmdfirst: u32, idcmdlast: u32, uflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hmenu.into_param().abi(), ::core::mem::transmute(indexmenu), ::core::mem::transmute(idcmdfirst), ::core::mem::transmute(idcmdlast), ::core::mem::transmute(uflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn InvokeCommand(&self, pici: *const CMINVOKECOMMANDINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pici)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCommandString(&self, idcmd: usize, utype: u32, preserved: *mut u32, pszname: super::super::Foundation::PSTR, cchmax: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(idcmd), ::core::mem::transmute(utype), ::core::mem::transmute(preserved), ::core::mem::transmute(pszname), ::core::mem::transmute(cchmax)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn HandleMenuMsg<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, umsg: u32, wparam: Param1, lparam: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(umsg), wparam.into_param().abi(), lparam.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn HandleMenuMsg2<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, umsg: u32, wparam: Param1, lparam: Param2) -> ::windows::core::Result<super::super::Foundation::LRESULT> { let mut result__: <super::super::Foundation::LRESULT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(umsg), wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::LRESULT>(result__) } } unsafe impl ::windows::core::Interface for IContextMenu3 { type Vtable = IContextMenu3_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbcfce0a0_ec17_11d0_8d10_00a0c90f2719); } impl ::core::convert::From<IContextMenu3> for ::windows::core::IUnknown { fn from(value: IContextMenu3) -> Self { value.0 } } impl ::core::convert::From<&IContextMenu3> for ::windows::core::IUnknown { fn from(value: &IContextMenu3) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IContextMenu3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IContextMenu3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IContextMenu3> for IContextMenu2 { fn from(value: IContextMenu3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IContextMenu3> for IContextMenu2 { fn from(value: &IContextMenu3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IContextMenu2> for IContextMenu3 { fn into_param(self) -> ::windows::core::Param<'a, IContextMenu2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IContextMenu2> for &IContextMenu3 { fn into_param(self) -> ::windows::core::Param<'a, IContextMenu2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IContextMenu3> for IContextMenu { fn from(value: IContextMenu3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IContextMenu3> for IContextMenu { fn from(value: &IContextMenu3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IContextMenu> for IContextMenu3 { fn into_param(self) -> ::windows::core::Param<'a, IContextMenu> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IContextMenu> for &IContextMenu3 { fn into_param(self) -> ::windows::core::Param<'a, IContextMenu> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IContextMenu3_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, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hmenu: super::WindowsAndMessaging::HMENU, indexmenu: u32, idcmdfirst: u32, idcmdlast: u32, uflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pici: *const CMINVOKECOMMANDINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, idcmd: usize, utype: u32, preserved: *mut u32, pszname: super::super::Foundation::PSTR, cchmax: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plresult: *mut super::super::Foundation::LRESULT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IContextMenuCB(pub ::windows::core::IUnknown); impl IContextMenuCB { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe fn CallBack<'a, Param0: ::windows::core::IntoParam<'a, IShellFolder>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param5: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>( &self, psf: Param0, hwndowner: Param1, pdtobj: Param2, umsg: u32, wparam: Param4, lparam: Param5, ) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psf.into_param().abi(), hwndowner.into_param().abi(), pdtobj.into_param().abi(), ::core::mem::transmute(umsg), wparam.into_param().abi(), lparam.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IContextMenuCB { type Vtable = IContextMenuCB_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3409e930_5a39_11d1_83fa_00a0c90dc849); } impl ::core::convert::From<IContextMenuCB> for ::windows::core::IUnknown { fn from(value: IContextMenuCB) -> Self { value.0 } } impl ::core::convert::From<&IContextMenuCB> for ::windows::core::IUnknown { fn from(value: &IContextMenuCB) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IContextMenuCB { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IContextMenuCB { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IContextMenuCB_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psf: ::windows::core::RawPtr, hwndowner: super::super::Foundation::HWND, pdtobj: ::windows::core::RawPtr, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IContextMenuSite(pub ::windows::core::IUnknown); impl IContextMenuSite { #[cfg(feature = "Win32_Foundation")] pub unsafe fn DoContextMenuPopup<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::POINT>>(&self, punkcontextmenu: Param0, fflags: u32, pt: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), punkcontextmenu.into_param().abi(), ::core::mem::transmute(fflags), pt.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IContextMenuSite { type Vtable = IContextMenuSite_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0811aebe_0b87_4c54_9e72_548cf649016b); } impl ::core::convert::From<IContextMenuSite> for ::windows::core::IUnknown { fn from(value: IContextMenuSite) -> Self { value.0 } } impl ::core::convert::From<&IContextMenuSite> for ::windows::core::IUnknown { fn from(value: &IContextMenuSite) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IContextMenuSite { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IContextMenuSite { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IContextMenuSite_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punkcontextmenu: ::windows::core::RawPtr, fflags: u32, pt: super::super::Foundation::POINT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICopyHookA(pub ::windows::core::IUnknown); impl ICopyHookA { #[cfg(feature = "Win32_Foundation")] pub unsafe fn CopyCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param5: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(&self, hwnd: Param0, wfunc: u32, wflags: u32, pszsrcfile: Param3, dwsrcattribs: u32, pszdestfile: Param5, dwdestattribs: u32) -> u32 { ::core::mem::transmute((::windows::core::Interface::vtable(self).3)( ::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(wfunc), ::core::mem::transmute(wflags), pszsrcfile.into_param().abi(), ::core::mem::transmute(dwsrcattribs), pszdestfile.into_param().abi(), ::core::mem::transmute(dwdestattribs), )) } } unsafe impl ::windows::core::Interface for ICopyHookA { type Vtable = ICopyHookA_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214ef_0000_0000_c000_000000000046); } impl ::core::convert::From<ICopyHookA> for ::windows::core::IUnknown { fn from(value: ICopyHookA) -> Self { value.0 } } impl ::core::convert::From<&ICopyHookA> for ::windows::core::IUnknown { fn from(value: &ICopyHookA) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICopyHookA { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICopyHookA { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ICopyHookA_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, wfunc: u32, wflags: u32, pszsrcfile: super::super::Foundation::PSTR, dwsrcattribs: u32, pszdestfile: super::super::Foundation::PSTR, dwdestattribs: u32) -> u32, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICopyHookW(pub ::windows::core::IUnknown); impl ICopyHookW { #[cfg(feature = "Win32_Foundation")] pub unsafe fn CopyCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param5: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, hwnd: Param0, wfunc: u32, wflags: u32, pszsrcfile: Param3, dwsrcattribs: u32, pszdestfile: Param5, dwdestattribs: u32) -> u32 { ::core::mem::transmute((::windows::core::Interface::vtable(self).3)( ::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(wfunc), ::core::mem::transmute(wflags), pszsrcfile.into_param().abi(), ::core::mem::transmute(dwsrcattribs), pszdestfile.into_param().abi(), ::core::mem::transmute(dwdestattribs), )) } } unsafe impl ::windows::core::Interface for ICopyHookW { type Vtable = ICopyHookW_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214fc_0000_0000_c000_000000000046); } impl ::core::convert::From<ICopyHookW> for ::windows::core::IUnknown { fn from(value: ICopyHookW) -> Self { value.0 } } impl ::core::convert::From<&ICopyHookW> for ::windows::core::IUnknown { fn from(value: &ICopyHookW) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICopyHookW { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICopyHookW { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ICopyHookW_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, wfunc: u32, wflags: u32, pszsrcfile: super::super::Foundation::PWSTR, dwsrcattribs: u32, pszdestfile: super::super::Foundation::PWSTR, dwdestattribs: u32) -> u32, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICreateProcessInputs(pub ::windows::core::IUnknown); impl ICreateProcessInputs { pub unsafe fn GetCreateFlags(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn SetCreateFlags(&self, dwcreationflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwcreationflags)).ok() } pub unsafe fn AddCreateFlags(&self, dwcreationflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwcreationflags)).ok() } pub unsafe fn SetHotKey(&self, whotkey: u16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(whotkey)).ok() } pub unsafe fn AddStartupFlags(&self, dwstartupinfoflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwstartupinfoflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetTitle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psztitle: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), psztitle.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetEnvironmentVariable<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszname: Param0, pszvalue: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), pszname.into_param().abi(), pszvalue.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for ICreateProcessInputs { type Vtable = ICreateProcessInputs_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf6ef6140_e26f_4d82_bac4_e9ba5fd239a8); } impl ::core::convert::From<ICreateProcessInputs> for ::windows::core::IUnknown { fn from(value: ICreateProcessInputs) -> Self { value.0 } } impl ::core::convert::From<&ICreateProcessInputs> for ::windows::core::IUnknown { fn from(value: &ICreateProcessInputs) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICreateProcessInputs { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICreateProcessInputs { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ICreateProcessInputs_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, pdwcreationflags: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwcreationflags: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwcreationflags: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, whotkey: u16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwstartupinfoflags: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psztitle: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR, pszvalue: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICreatingProcess(pub ::windows::core::IUnknown); impl ICreatingProcess { pub unsafe fn OnCreating<'a, Param0: ::windows::core::IntoParam<'a, ICreateProcessInputs>>(&self, pcpi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pcpi.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for ICreatingProcess { type Vtable = ICreatingProcess_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc2b937a9_3110_4398_8a56_f34c6342d244); } impl ::core::convert::From<ICreatingProcess> for ::windows::core::IUnknown { fn from(value: ICreatingProcess) -> Self { value.0 } } impl ::core::convert::From<&ICreatingProcess> for ::windows::core::IUnknown { fn from(value: &ICreatingProcess) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICreatingProcess { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICreatingProcess { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ICreatingProcess_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, pcpi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICredentialProvider(pub ::windows::core::IUnknown); impl ICredentialProvider { pub unsafe fn SetUsageScenario(&self, cpus: CREDENTIAL_PROVIDER_USAGE_SCENARIO, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(cpus), ::core::mem::transmute(dwflags)).ok() } pub unsafe fn SetSerialization(&self, pcpcs: *const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pcpcs)).ok() } pub unsafe fn Advise<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderEvents>>(&self, pcpe: Param0, upadvisecontext: usize) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), pcpe.into_param().abi(), ::core::mem::transmute(upadvisecontext)).ok() } pub unsafe fn UnAdvise(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GetFieldDescriptorCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetFieldDescriptorAt(&self, dwindex: u32) -> ::windows::core::Result<*mut CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR> { let mut result__: <*mut CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwindex), &mut result__).from_abi::<*mut CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCredentialCount(&self, pdwcount: *mut u32, pdwdefault: *mut u32, pbautologonwithdefault: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(pdwcount), ::core::mem::transmute(pdwdefault), ::core::mem::transmute(pbautologonwithdefault)).ok() } pub unsafe fn GetCredentialAt(&self, dwindex: u32) -> ::windows::core::Result<ICredentialProviderCredential> { let mut result__: <ICredentialProviderCredential as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwindex), &mut result__).from_abi::<ICredentialProviderCredential>(result__) } } unsafe impl ::windows::core::Interface for ICredentialProvider { type Vtable = ICredentialProvider_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd27c3481_5a1c_45b2_8aaa_c20ebbe8229e); } impl ::core::convert::From<ICredentialProvider> for ::windows::core::IUnknown { fn from(value: ICredentialProvider) -> Self { value.0 } } impl ::core::convert::From<&ICredentialProvider> for ::windows::core::IUnknown { fn from(value: &ICredentialProvider) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICredentialProvider { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICredentialProvider { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ICredentialProvider_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, cpus: CREDENTIAL_PROVIDER_USAGE_SCENARIO, dwflags: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpcs: *const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpe: ::windows::core::RawPtr, upadvisecontext: usize) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwcount: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwindex: u32, ppcpfd: *mut *mut CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwcount: *mut u32, pdwdefault: *mut u32, pbautologonwithdefault: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwindex: u32, ppcpc: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICredentialProviderCredential(pub ::windows::core::IUnknown); impl ICredentialProviderCredential { pub unsafe fn Advise<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderCredentialEvents>>(&self, pcpce: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pcpce.into_param().abi()).ok() } pub unsafe fn UnAdvise(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetSelected(&self) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } pub unsafe fn SetDeselected(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GetFieldState(&self, dwfieldid: u32, pcpfs: *mut CREDENTIAL_PROVIDER_FIELD_STATE, pcpfis: *mut CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(pcpfs), ::core::mem::transmute(pcpfis)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetStringValue(&self, dwfieldid: u32) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetBitmapValue(&self, dwfieldid: u32) -> ::windows::core::Result<super::super::Graphics::Gdi::HBITMAP> { let mut result__: <super::super::Graphics::Gdi::HBITMAP as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), &mut result__).from_abi::<super::super::Graphics::Gdi::HBITMAP>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCheckboxValue(&self, dwfieldid: u32, pbchecked: *mut super::super::Foundation::BOOL, ppszlabel: *mut super::super::Foundation::PWSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(pbchecked), ::core::mem::transmute(ppszlabel)).ok() } pub unsafe fn GetSubmitButtonValue(&self, dwfieldid: u32) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), &mut result__).from_abi::<u32>(result__) } pub unsafe fn GetComboBoxValueCount(&self, dwfieldid: u32, pcitems: *mut u32, pdwselecteditem: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(pcitems), ::core::mem::transmute(pdwselecteditem)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetComboBoxValueAt(&self, dwfieldid: u32, dwitem: u32) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(dwitem), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetStringValue<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, dwfieldid: u32, psz: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), psz.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetCheckboxValue<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, dwfieldid: u32, bchecked: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), bchecked.into_param().abi()).ok() } pub unsafe fn SetComboBoxSelectedValue(&self, dwfieldid: u32, dwselecteditem: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(dwselecteditem)).ok() } pub unsafe fn CommandLinkClicked(&self, dwfieldid: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSerialization(&self, pcpgsr: *mut CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE, pcpcs: *mut CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION, ppszoptionalstatustext: *mut super::super::Foundation::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(pcpgsr), ::core::mem::transmute(pcpcs), ::core::mem::transmute(ppszoptionalstatustext), ::core::mem::transmute(pcpsioptionalstatusicon)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportResult<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::NTSTATUS>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::NTSTATUS>>(&self, ntsstatus: Param0, ntssubstatus: Param1, ppszoptionalstatustext: *mut super::super::Foundation::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), ntsstatus.into_param().abi(), ntssubstatus.into_param().abi(), ::core::mem::transmute(ppszoptionalstatustext), ::core::mem::transmute(pcpsioptionalstatusicon)).ok() } } unsafe impl ::windows::core::Interface for ICredentialProviderCredential { type Vtable = ICredentialProviderCredential_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x63913a93_40c1_481a_818d_4072ff8c70cc); } impl ::core::convert::From<ICredentialProviderCredential> for ::windows::core::IUnknown { fn from(value: ICredentialProviderCredential) -> Self { value.0 } } impl ::core::convert::From<&ICredentialProviderCredential> for ::windows::core::IUnknown { fn from(value: &ICredentialProviderCredential) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICredentialProviderCredential { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICredentialProviderCredential { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ICredentialProviderCredential_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, pcpce: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbautologon: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, pcpfs: *mut CREDENTIAL_PROVIDER_FIELD_STATE, pcpfis: *mut CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, ppsz: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, phbmp: *mut super::super::Graphics::Gdi::HBITMAP) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, pbchecked: *mut super::super::Foundation::BOOL, ppszlabel: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, pdwadjacentto: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, pcitems: *mut u32, pdwselecteditem: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, dwitem: u32, ppszitem: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, psz: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, bchecked: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, dwselecteditem: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpgsr: *mut CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE, pcpcs: *mut CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION, ppszoptionalstatustext: *mut super::super::Foundation::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ntsstatus: super::super::Foundation::NTSTATUS, ntssubstatus: super::super::Foundation::NTSTATUS, ppszoptionalstatustext: *mut super::super::Foundation::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICredentialProviderCredential2(pub ::windows::core::IUnknown); impl ICredentialProviderCredential2 { pub unsafe fn Advise<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderCredentialEvents>>(&self, pcpce: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pcpce.into_param().abi()).ok() } pub unsafe fn UnAdvise(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetSelected(&self) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } pub unsafe fn SetDeselected(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GetFieldState(&self, dwfieldid: u32, pcpfs: *mut CREDENTIAL_PROVIDER_FIELD_STATE, pcpfis: *mut CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(pcpfs), ::core::mem::transmute(pcpfis)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetStringValue(&self, dwfieldid: u32) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetBitmapValue(&self, dwfieldid: u32) -> ::windows::core::Result<super::super::Graphics::Gdi::HBITMAP> { let mut result__: <super::super::Graphics::Gdi::HBITMAP as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), &mut result__).from_abi::<super::super::Graphics::Gdi::HBITMAP>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCheckboxValue(&self, dwfieldid: u32, pbchecked: *mut super::super::Foundation::BOOL, ppszlabel: *mut super::super::Foundation::PWSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(pbchecked), ::core::mem::transmute(ppszlabel)).ok() } pub unsafe fn GetSubmitButtonValue(&self, dwfieldid: u32) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), &mut result__).from_abi::<u32>(result__) } pub unsafe fn GetComboBoxValueCount(&self, dwfieldid: u32, pcitems: *mut u32, pdwselecteditem: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(pcitems), ::core::mem::transmute(pdwselecteditem)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetComboBoxValueAt(&self, dwfieldid: u32, dwitem: u32) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(dwitem), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetStringValue<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, dwfieldid: u32, psz: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), psz.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetCheckboxValue<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, dwfieldid: u32, bchecked: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), bchecked.into_param().abi()).ok() } pub unsafe fn SetComboBoxSelectedValue(&self, dwfieldid: u32, dwselecteditem: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(dwselecteditem)).ok() } pub unsafe fn CommandLinkClicked(&self, dwfieldid: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwfieldid)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSerialization(&self, pcpgsr: *mut CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE, pcpcs: *mut CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION, ppszoptionalstatustext: *mut super::super::Foundation::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(pcpgsr), ::core::mem::transmute(pcpcs), ::core::mem::transmute(ppszoptionalstatustext), ::core::mem::transmute(pcpsioptionalstatusicon)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportResult<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::NTSTATUS>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::NTSTATUS>>(&self, ntsstatus: Param0, ntssubstatus: Param1, ppszoptionalstatustext: *mut super::super::Foundation::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), ntsstatus.into_param().abi(), ntssubstatus.into_param().abi(), ::core::mem::transmute(ppszoptionalstatustext), ::core::mem::transmute(pcpsioptionalstatusicon)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetUserSid(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } } unsafe impl ::windows::core::Interface for ICredentialProviderCredential2 { type Vtable = ICredentialProviderCredential2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfd672c54_40ea_4d6e_9b49_cfb1a7507bd7); } impl ::core::convert::From<ICredentialProviderCredential2> for ::windows::core::IUnknown { fn from(value: ICredentialProviderCredential2) -> Self { value.0 } } impl ::core::convert::From<&ICredentialProviderCredential2> for ::windows::core::IUnknown { fn from(value: &ICredentialProviderCredential2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICredentialProviderCredential2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICredentialProviderCredential2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<ICredentialProviderCredential2> for ICredentialProviderCredential { fn from(value: ICredentialProviderCredential2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&ICredentialProviderCredential2> for ICredentialProviderCredential { fn from(value: &ICredentialProviderCredential2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, ICredentialProviderCredential> for ICredentialProviderCredential2 { fn into_param(self) -> ::windows::core::Param<'a, ICredentialProviderCredential> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, ICredentialProviderCredential> for &ICredentialProviderCredential2 { fn into_param(self) -> ::windows::core::Param<'a, ICredentialProviderCredential> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct ICredentialProviderCredential2_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, pcpce: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbautologon: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, pcpfs: *mut CREDENTIAL_PROVIDER_FIELD_STATE, pcpfis: *mut CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, ppsz: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, phbmp: *mut super::super::Graphics::Gdi::HBITMAP) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, pbchecked: *mut super::super::Foundation::BOOL, ppszlabel: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, pdwadjacentto: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, pcitems: *mut u32, pdwselecteditem: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, dwitem: u32, ppszitem: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, psz: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, bchecked: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32, dwselecteditem: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwfieldid: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpgsr: *mut CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE, pcpcs: *mut CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION, ppszoptionalstatustext: *mut super::super::Foundation::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ntsstatus: super::super::Foundation::NTSTATUS, ntssubstatus: super::super::Foundation::NTSTATUS, ppszoptionalstatustext: *mut super::super::Foundation::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, sid: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICredentialProviderCredentialEvents(pub ::windows::core::IUnknown); impl ICredentialProviderCredentialEvents { pub unsafe fn SetFieldState<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderCredential>>(&self, pcpc: Param0, dwfieldid: u32, cpfs: CREDENTIAL_PROVIDER_FIELD_STATE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pcpc.into_param().abi(), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(cpfs)).ok() } pub unsafe fn SetFieldInteractiveState<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderCredential>>(&self, pcpc: Param0, dwfieldid: u32, cpfis: CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pcpc.into_param().abi(), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(cpfis)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetFieldString<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderCredential>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pcpc: Param0, dwfieldid: u32, psz: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), pcpc.into_param().abi(), ::core::mem::transmute(dwfieldid), psz.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetFieldCheckbox<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderCredential>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pcpc: Param0, dwfieldid: u32, bchecked: Param2, pszlabel: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pcpc.into_param().abi(), ::core::mem::transmute(dwfieldid), bchecked.into_param().abi(), pszlabel.into_param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetFieldBitmap<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderCredential>, Param2: ::windows::core::IntoParam<'a, super::super::Graphics::Gdi::HBITMAP>>(&self, pcpc: Param0, dwfieldid: u32, hbmp: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pcpc.into_param().abi(), ::core::mem::transmute(dwfieldid), hbmp.into_param().abi()).ok() } pub unsafe fn SetFieldComboBoxSelectedItem<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderCredential>>(&self, pcpc: Param0, dwfieldid: u32, dwselecteditem: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), pcpc.into_param().abi(), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(dwselecteditem)).ok() } pub unsafe fn DeleteFieldComboBoxItem<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderCredential>>(&self, pcpc: Param0, dwfieldid: u32, dwitem: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), pcpc.into_param().abi(), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(dwitem)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AppendFieldComboBoxItem<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderCredential>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pcpc: Param0, dwfieldid: u32, pszitem: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), pcpc.into_param().abi(), ::core::mem::transmute(dwfieldid), pszitem.into_param().abi()).ok() } pub unsafe fn SetFieldSubmitButton<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderCredential>>(&self, pcpc: Param0, dwfieldid: u32, dwadjacentto: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), pcpc.into_param().abi(), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(dwadjacentto)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnCreatingWindow(&self) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } } unsafe impl ::windows::core::Interface for ICredentialProviderCredentialEvents { type Vtable = ICredentialProviderCredentialEvents_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfa6fa76b_66b7_4b11_95f1_86171118e816); } impl ::core::convert::From<ICredentialProviderCredentialEvents> for ::windows::core::IUnknown { fn from(value: ICredentialProviderCredentialEvents) -> Self { value.0 } } impl ::core::convert::From<&ICredentialProviderCredentialEvents> for ::windows::core::IUnknown { fn from(value: &ICredentialProviderCredentialEvents) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICredentialProviderCredentialEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICredentialProviderCredentialEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ICredentialProviderCredentialEvents_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, pcpc: ::windows::core::RawPtr, dwfieldid: u32, cpfs: CREDENTIAL_PROVIDER_FIELD_STATE) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpc: ::windows::core::RawPtr, dwfieldid: u32, cpfis: CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpc: ::windows::core::RawPtr, dwfieldid: u32, psz: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpc: ::windows::core::RawPtr, dwfieldid: u32, bchecked: super::super::Foundation::BOOL, pszlabel: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpc: ::windows::core::RawPtr, dwfieldid: u32, hbmp: super::super::Graphics::Gdi::HBITMAP) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpc: ::windows::core::RawPtr, dwfieldid: u32, dwselecteditem: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpc: ::windows::core::RawPtr, dwfieldid: u32, dwitem: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpc: ::windows::core::RawPtr, dwfieldid: u32, pszitem: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpc: ::windows::core::RawPtr, dwfieldid: u32, dwadjacentto: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phwndowner: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICredentialProviderCredentialEvents2(pub ::windows::core::IUnknown); impl ICredentialProviderCredentialEvents2 { pub unsafe fn SetFieldState<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderCredential>>(&self, pcpc: Param0, dwfieldid: u32, cpfs: CREDENTIAL_PROVIDER_FIELD_STATE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pcpc.into_param().abi(), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(cpfs)).ok() } pub unsafe fn SetFieldInteractiveState<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderCredential>>(&self, pcpc: Param0, dwfieldid: u32, cpfis: CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pcpc.into_param().abi(), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(cpfis)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetFieldString<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderCredential>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pcpc: Param0, dwfieldid: u32, psz: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), pcpc.into_param().abi(), ::core::mem::transmute(dwfieldid), psz.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetFieldCheckbox<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderCredential>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pcpc: Param0, dwfieldid: u32, bchecked: Param2, pszlabel: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pcpc.into_param().abi(), ::core::mem::transmute(dwfieldid), bchecked.into_param().abi(), pszlabel.into_param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetFieldBitmap<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderCredential>, Param2: ::windows::core::IntoParam<'a, super::super::Graphics::Gdi::HBITMAP>>(&self, pcpc: Param0, dwfieldid: u32, hbmp: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pcpc.into_param().abi(), ::core::mem::transmute(dwfieldid), hbmp.into_param().abi()).ok() } pub unsafe fn SetFieldComboBoxSelectedItem<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderCredential>>(&self, pcpc: Param0, dwfieldid: u32, dwselecteditem: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), pcpc.into_param().abi(), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(dwselecteditem)).ok() } pub unsafe fn DeleteFieldComboBoxItem<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderCredential>>(&self, pcpc: Param0, dwfieldid: u32, dwitem: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), pcpc.into_param().abi(), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(dwitem)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AppendFieldComboBoxItem<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderCredential>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pcpc: Param0, dwfieldid: u32, pszitem: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), pcpc.into_param().abi(), ::core::mem::transmute(dwfieldid), pszitem.into_param().abi()).ok() } pub unsafe fn SetFieldSubmitButton<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderCredential>>(&self, pcpc: Param0, dwfieldid: u32, dwadjacentto: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), pcpc.into_param().abi(), ::core::mem::transmute(dwfieldid), ::core::mem::transmute(dwadjacentto)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnCreatingWindow(&self) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } pub unsafe fn BeginFieldUpdates(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn EndFieldUpdates(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetFieldOptions<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderCredential>>(&self, credential: Param0, fieldid: u32, options: CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), credential.into_param().abi(), ::core::mem::transmute(fieldid), ::core::mem::transmute(options)).ok() } } unsafe impl ::windows::core::Interface for ICredentialProviderCredentialEvents2 { type Vtable = ICredentialProviderCredentialEvents2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb53c00b6_9922_4b78_b1f4_ddfe774dc39b); } impl ::core::convert::From<ICredentialProviderCredentialEvents2> for ::windows::core::IUnknown { fn from(value: ICredentialProviderCredentialEvents2) -> Self { value.0 } } impl ::core::convert::From<&ICredentialProviderCredentialEvents2> for ::windows::core::IUnknown { fn from(value: &ICredentialProviderCredentialEvents2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICredentialProviderCredentialEvents2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICredentialProviderCredentialEvents2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<ICredentialProviderCredentialEvents2> for ICredentialProviderCredentialEvents { fn from(value: ICredentialProviderCredentialEvents2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&ICredentialProviderCredentialEvents2> for ICredentialProviderCredentialEvents { fn from(value: &ICredentialProviderCredentialEvents2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, ICredentialProviderCredentialEvents> for ICredentialProviderCredentialEvents2 { fn into_param(self) -> ::windows::core::Param<'a, ICredentialProviderCredentialEvents> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, ICredentialProviderCredentialEvents> for &ICredentialProviderCredentialEvents2 { fn into_param(self) -> ::windows::core::Param<'a, ICredentialProviderCredentialEvents> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct ICredentialProviderCredentialEvents2_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, pcpc: ::windows::core::RawPtr, dwfieldid: u32, cpfs: CREDENTIAL_PROVIDER_FIELD_STATE) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpc: ::windows::core::RawPtr, dwfieldid: u32, cpfis: CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpc: ::windows::core::RawPtr, dwfieldid: u32, psz: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpc: ::windows::core::RawPtr, dwfieldid: u32, bchecked: super::super::Foundation::BOOL, pszlabel: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpc: ::windows::core::RawPtr, dwfieldid: u32, hbmp: super::super::Graphics::Gdi::HBITMAP) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpc: ::windows::core::RawPtr, dwfieldid: u32, dwselecteditem: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpc: ::windows::core::RawPtr, dwfieldid: u32, dwitem: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpc: ::windows::core::RawPtr, dwfieldid: u32, pszitem: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpc: ::windows::core::RawPtr, dwfieldid: u32, dwadjacentto: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phwndowner: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, credential: ::windows::core::RawPtr, fieldid: u32, options: CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICredentialProviderCredentialWithFieldOptions(pub ::windows::core::IUnknown); impl ICredentialProviderCredentialWithFieldOptions { pub unsafe fn GetFieldOptions(&self, fieldid: u32) -> ::windows::core::Result<CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS> { let mut result__: <CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(fieldid), &mut result__).from_abi::<CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS>(result__) } } unsafe impl ::windows::core::Interface for ICredentialProviderCredentialWithFieldOptions { type Vtable = ICredentialProviderCredentialWithFieldOptions_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdbc6fb30_c843_49e3_a645_573e6f39446a); } impl ::core::convert::From<ICredentialProviderCredentialWithFieldOptions> for ::windows::core::IUnknown { fn from(value: ICredentialProviderCredentialWithFieldOptions) -> Self { value.0 } } impl ::core::convert::From<&ICredentialProviderCredentialWithFieldOptions> for ::windows::core::IUnknown { fn from(value: &ICredentialProviderCredentialWithFieldOptions) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICredentialProviderCredentialWithFieldOptions { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICredentialProviderCredentialWithFieldOptions { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ICredentialProviderCredentialWithFieldOptions_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, fieldid: u32, options: *mut CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICredentialProviderEvents(pub ::windows::core::IUnknown); impl ICredentialProviderEvents { pub unsafe fn CredentialsChanged(&self, upadvisecontext: usize) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(upadvisecontext)).ok() } } unsafe impl ::windows::core::Interface for ICredentialProviderEvents { type Vtable = ICredentialProviderEvents_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x34201e5a_a787_41a3_a5a4_bd6dcf2a854e); } impl ::core::convert::From<ICredentialProviderEvents> for ::windows::core::IUnknown { fn from(value: ICredentialProviderEvents) -> Self { value.0 } } impl ::core::convert::From<&ICredentialProviderEvents> for ::windows::core::IUnknown { fn from(value: &ICredentialProviderEvents) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICredentialProviderEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICredentialProviderEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ICredentialProviderEvents_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, upadvisecontext: usize) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICredentialProviderFilter(pub ::windows::core::IUnknown); impl ICredentialProviderFilter { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Filter(&self, cpus: CREDENTIAL_PROVIDER_USAGE_SCENARIO, dwflags: u32, rgclsidproviders: *const ::windows::core::GUID, rgballow: *mut super::super::Foundation::BOOL, cproviders: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(cpus), ::core::mem::transmute(dwflags), ::core::mem::transmute(rgclsidproviders), ::core::mem::transmute(rgballow), ::core::mem::transmute(cproviders)).ok() } pub unsafe fn UpdateRemoteCredential(&self, pcpcsin: *const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION) -> ::windows::core::Result<CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION> { let mut result__: <CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pcpcsin), &mut result__).from_abi::<CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION>(result__) } } unsafe impl ::windows::core::Interface for ICredentialProviderFilter { type Vtable = ICredentialProviderFilter_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa5da53f9_d475_4080_a120_910c4a739880); } impl ::core::convert::From<ICredentialProviderFilter> for ::windows::core::IUnknown { fn from(value: ICredentialProviderFilter) -> Self { value.0 } } impl ::core::convert::From<&ICredentialProviderFilter> for ::windows::core::IUnknown { fn from(value: &ICredentialProviderFilter) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICredentialProviderFilter { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICredentialProviderFilter { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ICredentialProviderFilter_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, cpus: CREDENTIAL_PROVIDER_USAGE_SCENARIO, dwflags: u32, rgclsidproviders: *const ::windows::core::GUID, rgballow: *mut super::super::Foundation::BOOL, cproviders: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpcsin: *const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION, pcpcsout: *mut CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICredentialProviderSetUserArray(pub ::windows::core::IUnknown); impl ICredentialProviderSetUserArray { pub unsafe fn SetUserArray<'a, Param0: ::windows::core::IntoParam<'a, ICredentialProviderUserArray>>(&self, users: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), users.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for ICredentialProviderSetUserArray { type Vtable = ICredentialProviderSetUserArray_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x095c1484_1c0c_4388_9c6d_500e61bf84bd); } impl ::core::convert::From<ICredentialProviderSetUserArray> for ::windows::core::IUnknown { fn from(value: ICredentialProviderSetUserArray) -> Self { value.0 } } impl ::core::convert::From<&ICredentialProviderSetUserArray> for ::windows::core::IUnknown { fn from(value: &ICredentialProviderSetUserArray) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICredentialProviderSetUserArray { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICredentialProviderSetUserArray { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ICredentialProviderSetUserArray_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, users: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICredentialProviderUser(pub ::windows::core::IUnknown); impl ICredentialProviderUser { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSid(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } pub unsafe fn GetProviderID(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__: <::windows::core::GUID as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<::windows::core::GUID>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn GetStringValue(&self, key: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(key), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn GetValue(&self, key: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<super::super::System::Com::StructuredStorage::PROPVARIANT> { let mut result__: <super::super::System::Com::StructuredStorage::PROPVARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(key), &mut result__).from_abi::<super::super::System::Com::StructuredStorage::PROPVARIANT>(result__) } } unsafe impl ::windows::core::Interface for ICredentialProviderUser { type Vtable = ICredentialProviderUser_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x13793285_3ea6_40fd_b420_15f47da41fbb); } impl ::core::convert::From<ICredentialProviderUser> for ::windows::core::IUnknown { fn from(value: ICredentialProviderUser) -> Self { value.0 } } impl ::core::convert::From<&ICredentialProviderUser> for ::windows::core::IUnknown { fn from(value: &ICredentialProviderUser) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICredentialProviderUser { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICredentialProviderUser { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ICredentialProviderUser_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, sid: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, providerid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, key: *const PropertiesSystem::PROPERTYKEY, stringvalue: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, key: *const PropertiesSystem::PROPERTYKEY, value: *mut ::core::mem::ManuallyDrop<super::super::System::Com::StructuredStorage::PROPVARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICredentialProviderUserArray(pub ::windows::core::IUnknown); impl ICredentialProviderUserArray { pub unsafe fn SetProviderFilter(&self, guidprovidertofilterto: *const ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(guidprovidertofilterto)).ok() } pub unsafe fn GetAccountOptions(&self) -> ::windows::core::Result<CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS> { let mut result__: <CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS>(result__) } pub unsafe fn GetCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn GetAt(&self, userindex: u32) -> ::windows::core::Result<ICredentialProviderUser> { let mut result__: <ICredentialProviderUser as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(userindex), &mut result__).from_abi::<ICredentialProviderUser>(result__) } } unsafe impl ::windows::core::Interface for ICredentialProviderUserArray { type Vtable = ICredentialProviderUserArray_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x90c119ae_0f18_4520_a1f1_114366a40fe8); } impl ::core::convert::From<ICredentialProviderUserArray> for ::windows::core::IUnknown { fn from(value: ICredentialProviderUserArray) -> Self { value.0 } } impl ::core::convert::From<&ICredentialProviderUserArray> for ::windows::core::IUnknown { fn from(value: &ICredentialProviderUserArray) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICredentialProviderUserArray { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICredentialProviderUserArray { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ICredentialProviderUserArray_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, guidprovidertofilterto: *const ::windows::core::GUID) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, credentialprovideraccountoptions: *mut CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, usercount: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, userindex: u32, user: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICurrentItem(pub ::windows::core::IUnknown); impl ICurrentItem { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetItemIDList(&self) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } pub unsafe fn GetItem(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } } unsafe impl ::windows::core::Interface for ICurrentItem { type Vtable = ICurrentItem_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x240a7174_d653_4a1d_a6d3_d4943cfbfe3d); } impl ::core::convert::From<ICurrentItem> for ::windows::core::IUnknown { fn from(value: ICurrentItem) -> Self { value.0 } } impl ::core::convert::From<&ICurrentItem> for ::windows::core::IUnknown { fn from(value: &ICurrentItem) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICurrentItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICurrentItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<ICurrentItem> for IRelatedItem { fn from(value: ICurrentItem) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&ICurrentItem> for IRelatedItem { fn from(value: &ICurrentItem) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IRelatedItem> for ICurrentItem { fn into_param(self) -> ::windows::core::Param<'a, IRelatedItem> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IRelatedItem> for &ICurrentItem { fn into_param(self) -> ::windows::core::Param<'a, IRelatedItem> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct ICurrentItem_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, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICurrentWorkingDirectory(pub ::windows::core::IUnknown); impl ICurrentWorkingDirectory { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDirectory(&self, pwzpath: super::super::Foundation::PWSTR, cchsize: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pwzpath), ::core::mem::transmute(cchsize)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetDirectory<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwzpath: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pwzpath.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for ICurrentWorkingDirectory { type Vtable = ICurrentWorkingDirectory_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x91956d21_9276_11d1_921a_006097df5bd4); } impl ::core::convert::From<ICurrentWorkingDirectory> for ::windows::core::IUnknown { fn from(value: ICurrentWorkingDirectory) -> Self { value.0 } } impl ::core::convert::From<&ICurrentWorkingDirectory> for ::windows::core::IUnknown { fn from(value: &ICurrentWorkingDirectory) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICurrentWorkingDirectory { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICurrentWorkingDirectory { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ICurrentWorkingDirectory_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pwzpath: super::super::Foundation::PWSTR, cchsize: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pwzpath: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ICustomDestinationList(pub ::windows::core::IUnknown); impl ICustomDestinationList { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetAppID<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszappid: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszappid.into_param().abi()).ok() } pub unsafe fn BeginList<T: ::windows::core::Interface>(&self, pcminslots: *mut u32) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pcminslots), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn AppendCategory<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, Common::IObjectArray>>(&self, pszcategory: Param0, poa: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), pszcategory.into_param().abi(), poa.into_param().abi()).ok() } pub unsafe fn AppendKnownCategory(&self, category: KNOWNDESTCATEGORY) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(category)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn AddUserTasks<'a, Param0: ::windows::core::IntoParam<'a, Common::IObjectArray>>(&self, poa: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), poa.into_param().abi()).ok() } pub unsafe fn CommitList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GetRemovedDestinations<T: ::windows::core::Interface>(&self) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DeleteList<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszappid: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), pszappid.into_param().abi()).ok() } pub unsafe fn AbortList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for ICustomDestinationList { type Vtable = ICustomDestinationList_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6332debf_87b5_4670_90c0_5e57b408a49e); } impl ::core::convert::From<ICustomDestinationList> for ::windows::core::IUnknown { fn from(value: ICustomDestinationList) -> Self { value.0 } } impl ::core::convert::From<&ICustomDestinationList> for ::windows::core::IUnknown { fn from(value: &ICustomDestinationList) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICustomDestinationList { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICustomDestinationList { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ICustomDestinationList_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszappid: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcminslots: *mut u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszcategory: super::super::Foundation::PWSTR, poa: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, category: KNOWNDESTCATEGORY) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, poa: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszappid: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); pub const IDC_OFFLINE_HAND: u32 = 103u32; pub const IDC_PANTOOL_HAND_CLOSED: u32 = 105u32; pub const IDC_PANTOOL_HAND_OPEN: u32 = 104u32; pub const IDD_WIZEXTN_FIRST: u32 = 20480u32; pub const IDD_WIZEXTN_LAST: u32 = 20736u32; pub const IDO_SHGIOI_DEFAULT: u64 = 4294967292u64; pub const IDO_SHGIOI_LINK: u32 = 268435454u32; pub const IDO_SHGIOI_SHARE: u32 = 268435455u32; pub const IDO_SHGIOI_SLOWFILE: u64 = 4294967293u64; pub const IDS_DESCRIPTION: u32 = 1u32; pub const ID_APP: u32 = 100u32; #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDataObjectAsyncCapability(pub ::windows::core::IUnknown); impl IDataObjectAsyncCapability { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetAsyncMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fdoopasync: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), fdoopasync.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetAsyncMode(&self) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn StartOperation<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>>(&self, pbcreserved: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), pbcreserved.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn InOperation(&self) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn EndOperation<'a, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>>(&self, hresult: ::windows::core::HRESULT, pbcreserved: Param1, dweffects: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(hresult), pbcreserved.into_param().abi(), ::core::mem::transmute(dweffects)).ok() } } unsafe impl ::windows::core::Interface for IDataObjectAsyncCapability { type Vtable = IDataObjectAsyncCapability_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3d8b0590_f691_11d2_8ea9_006097df5bd4); } impl ::core::convert::From<IDataObjectAsyncCapability> for ::windows::core::IUnknown { fn from(value: IDataObjectAsyncCapability) -> Self { value.0 } } impl ::core::convert::From<&IDataObjectAsyncCapability> for ::windows::core::IUnknown { fn from(value: &IDataObjectAsyncCapability) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDataObjectAsyncCapability { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDataObjectAsyncCapability { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IDataObjectAsyncCapability_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fdoopasync: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfisopasync: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbcreserved: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfinasyncop: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hresult: ::windows::core::HRESULT, pbcreserved: ::windows::core::RawPtr, dweffects: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDataObjectProvider(pub ::windows::core::IUnknown); impl IDataObjectProvider { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetDataObject(&self) -> ::windows::core::Result<super::super::System::Com::IDataObject> { let mut result__: <super::super::System::Com::IDataObject as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDataObject>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetDataObject<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>>(&self, dataobject: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), dataobject.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IDataObjectProvider { type Vtable = IDataObjectProvider_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3d25f6d6_4b2a_433c_9184_7c33ad35d001); } impl ::core::convert::From<IDataObjectProvider> for ::windows::core::IUnknown { fn from(value: IDataObjectProvider) -> Self { value.0 } } impl ::core::convert::From<&IDataObjectProvider> for ::windows::core::IUnknown { fn from(value: &IDataObjectProvider) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDataObjectProvider { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDataObjectProvider { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IDataObjectProvider_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, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dataobject: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dataobject: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDataTransferManagerInterop(pub ::windows::core::IUnknown); impl IDataTransferManagerInterop { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetForWindow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, T: ::windows::core::Interface>(&self, appwindow: Param0) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), appwindow.into_param().abi(), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ShowShareUIForWindow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, appwindow: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), appwindow.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IDataTransferManagerInterop { type Vtable = IDataTransferManagerInterop_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3a3dcd6c_3eab_43dc_bcde_45671ce800c8); } impl ::core::convert::From<IDataTransferManagerInterop> for ::windows::core::IUnknown { fn from(value: IDataTransferManagerInterop) -> Self { value.0 } } impl ::core::convert::From<&IDataTransferManagerInterop> for ::windows::core::IUnknown { fn from(value: &IDataTransferManagerInterop) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDataTransferManagerInterop { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDataTransferManagerInterop { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IDataTransferManagerInterop_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, appwindow: super::super::Foundation::HWND, riid: *const ::windows::core::GUID, datatransfermanager: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, appwindow: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDefaultExtractIconInit(pub ::windows::core::IUnknown); impl IDefaultExtractIconInit { pub unsafe fn SetFlags(&self, uflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(uflags)).ok() } #[cfg(feature = "Win32_System_Registry")] pub unsafe fn SetKey<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>>(&self, hkey: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), hkey.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetNormalIcon<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszfile: Param0, iicon: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), pszfile.into_param().abi(), ::core::mem::transmute(iicon)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetOpenIcon<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszfile: Param0, iicon: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pszfile.into_param().abi(), ::core::mem::transmute(iicon)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetShortcutIcon<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszfile: Param0, iicon: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pszfile.into_param().abi(), ::core::mem::transmute(iicon)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetDefaultIcon<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszfile: Param0, iicon: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), pszfile.into_param().abi(), ::core::mem::transmute(iicon)).ok() } } unsafe impl ::windows::core::Interface for IDefaultExtractIconInit { type Vtable = IDefaultExtractIconInit_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x41ded17d_d6b3_4261_997d_88c60e4b1d58); } impl ::core::convert::From<IDefaultExtractIconInit> for ::windows::core::IUnknown { fn from(value: IDefaultExtractIconInit) -> Self { value.0 } } impl ::core::convert::From<&IDefaultExtractIconInit> for ::windows::core::IUnknown { fn from(value: &IDefaultExtractIconInit) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDefaultExtractIconInit { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDefaultExtractIconInit { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IDefaultExtractIconInit_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, uflags: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Registry")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hkey: super::super::System::Registry::HKEY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Registry"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszfile: super::super::Foundation::PWSTR, iicon: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszfile: super::super::Foundation::PWSTR, iicon: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszfile: super::super::Foundation::PWSTR, iicon: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszfile: super::super::Foundation::PWSTR, iicon: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDefaultFolderMenuInitialize(pub ::windows::core::IUnknown); impl IDefaultFolderMenuInitialize { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] pub unsafe fn Initialize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, IContextMenuCB>, Param3: ::windows::core::IntoParam<'a, IShellFolder>, Param6: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>( &self, hwnd: Param0, pcmcb: Param1, pidlfolder: *const Common::ITEMIDLIST, psf: Param3, cidl: u32, apidl: *const *const Common::ITEMIDLIST, punkassociation: Param6, ckeys: u32, akeys: *const super::super::System::Registry::HKEY, ) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)( ::core::mem::transmute_copy(self), hwnd.into_param().abi(), pcmcb.into_param().abi(), ::core::mem::transmute(pidlfolder), psf.into_param().abi(), ::core::mem::transmute(cidl), ::core::mem::transmute(apidl), punkassociation.into_param().abi(), ::core::mem::transmute(ckeys), ::core::mem::transmute(akeys), ) .ok() } pub unsafe fn SetMenuRestrictions(&self, dfmrvalues: DEFAULT_FOLDER_MENU_RESTRICTIONS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(dfmrvalues)).ok() } pub unsafe fn GetMenuRestrictions(&self, dfmrmask: DEFAULT_FOLDER_MENU_RESTRICTIONS) -> ::windows::core::Result<DEFAULT_FOLDER_MENU_RESTRICTIONS> { let mut result__: <DEFAULT_FOLDER_MENU_RESTRICTIONS as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dfmrmask), &mut result__).from_abi::<DEFAULT_FOLDER_MENU_RESTRICTIONS>(result__) } pub unsafe fn SetHandlerClsid(&self, rclsid: *const ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(rclsid)).ok() } } unsafe impl ::windows::core::Interface for IDefaultFolderMenuInitialize { type Vtable = IDefaultFolderMenuInitialize_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7690aa79_f8fc_4615_a327_36f7d18f5d91); } impl ::core::convert::From<IDefaultFolderMenuInitialize> for ::windows::core::IUnknown { fn from(value: IDefaultFolderMenuInitialize) -> Self { value.0 } } impl ::core::convert::From<&IDefaultFolderMenuInitialize> for ::windows::core::IUnknown { fn from(value: &IDefaultFolderMenuInitialize) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDefaultFolderMenuInitialize { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDefaultFolderMenuInitialize { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IDefaultFolderMenuInitialize_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, pcmcb: ::windows::core::RawPtr, pidlfolder: *const Common::ITEMIDLIST, psf: ::windows::core::RawPtr, cidl: u32, apidl: *const *const Common::ITEMIDLIST, punkassociation: ::windows::core::RawPtr, ckeys: u32, akeys: *const super::super::System::Registry::HKEY) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dfmrvalues: DEFAULT_FOLDER_MENU_RESTRICTIONS) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dfmrmask: DEFAULT_FOLDER_MENU_RESTRICTIONS, pdfmrvalues: *mut DEFAULT_FOLDER_MENU_RESTRICTIONS) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rclsid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDelegateFolder(pub ::windows::core::IUnknown); impl IDelegateFolder { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetItemAlloc<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IMalloc>>(&self, pmalloc: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pmalloc.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IDelegateFolder { type Vtable = IDelegateFolder_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xadd8ba80_002b_11d0_8f0f_00c04fd7d062); } impl ::core::convert::From<IDelegateFolder> for ::windows::core::IUnknown { fn from(value: IDelegateFolder) -> Self { value.0 } } impl ::core::convert::From<&IDelegateFolder> for ::windows::core::IUnknown { fn from(value: &IDelegateFolder) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDelegateFolder { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDelegateFolder { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IDelegateFolder_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, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmalloc: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDelegateItem(pub ::windows::core::IUnknown); impl IDelegateItem { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetItemIDList(&self) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } pub unsafe fn GetItem(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } } unsafe impl ::windows::core::Interface for IDelegateItem { type Vtable = IDelegateItem_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3c5a1c94_c951_4cb7_bb6d_3b93f30cce93); } impl ::core::convert::From<IDelegateItem> for ::windows::core::IUnknown { fn from(value: IDelegateItem) -> Self { value.0 } } impl ::core::convert::From<&IDelegateItem> for ::windows::core::IUnknown { fn from(value: &IDelegateItem) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDelegateItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDelegateItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IDelegateItem> for IRelatedItem { fn from(value: IDelegateItem) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IDelegateItem> for IRelatedItem { fn from(value: &IDelegateItem) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IRelatedItem> for IDelegateItem { fn into_param(self) -> ::windows::core::Param<'a, IRelatedItem> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IRelatedItem> for &IDelegateItem { fn into_param(self) -> ::windows::core::Param<'a, IRelatedItem> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IDelegateItem_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, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDeskBand(pub ::windows::core::IUnknown); impl IDeskBand { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetWindow(&self) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ContextSensitiveHelp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fentermode: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), fentermode.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ShowDW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fshow: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), fshow.into_param().abi()).ok() } pub unsafe fn CloseDW(&self, dwreserved: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwreserved)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ResizeBorderDW<'a, Param1: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, prcborder: *const super::super::Foundation::RECT, punktoolbarsite: Param1, freserved: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(prcborder), punktoolbarsite.into_param().abi(), freserved.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetBandInfo(&self, dwbandid: u32, dwviewmode: u32, pdbi: *mut DESKBANDINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwbandid), ::core::mem::transmute(dwviewmode), ::core::mem::transmute(pdbi)).ok() } } unsafe impl ::windows::core::Interface for IDeskBand { type Vtable = IDeskBand_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xeb0fe172_1a3a_11d0_89b3_00a0c90a90ac); } impl ::core::convert::From<IDeskBand> for ::windows::core::IUnknown { fn from(value: IDeskBand) -> Self { value.0 } } impl ::core::convert::From<&IDeskBand> for ::windows::core::IUnknown { fn from(value: &IDeskBand) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDeskBand { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDeskBand { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IDeskBand> for IDockingWindow { fn from(value: IDeskBand) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IDeskBand> for IDockingWindow { fn from(value: &IDeskBand) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IDockingWindow> for IDeskBand { fn into_param(self) -> ::windows::core::Param<'a, IDockingWindow> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IDockingWindow> for &IDeskBand { fn into_param(self) -> ::windows::core::Param<'a, IDockingWindow> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<IDeskBand> for super::super::System::Ole::IOleWindow { fn from(value: IDeskBand) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<&IDeskBand> for super::super::System::Ole::IOleWindow { fn from(value: &IDeskBand) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for IDeskBand { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for &IDeskBand { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IDeskBand_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fentermode: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fshow: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwreserved: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, prcborder: *const super::super::Foundation::RECT, punktoolbarsite: ::windows::core::RawPtr, freserved: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwbandid: u32, dwviewmode: u32, pdbi: *mut DESKBANDINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDeskBand2(pub ::windows::core::IUnknown); impl IDeskBand2 { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetWindow(&self) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ContextSensitiveHelp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fentermode: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), fentermode.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ShowDW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fshow: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), fshow.into_param().abi()).ok() } pub unsafe fn CloseDW(&self, dwreserved: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwreserved)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ResizeBorderDW<'a, Param1: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, prcborder: *const super::super::Foundation::RECT, punktoolbarsite: Param1, freserved: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(prcborder), punktoolbarsite.into_param().abi(), freserved.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetBandInfo(&self, dwbandid: u32, dwviewmode: u32, pdbi: *mut DESKBANDINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwbandid), ::core::mem::transmute(dwviewmode), ::core::mem::transmute(pdbi)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CanRenderComposited(&self) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetCompositionState<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fcompositionenabled: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), fcompositionenabled.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCompositionState(&self) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } } unsafe impl ::windows::core::Interface for IDeskBand2 { type Vtable = IDeskBand2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x79d16de4_abee_4021_8d9d_9169b261d657); } impl ::core::convert::From<IDeskBand2> for ::windows::core::IUnknown { fn from(value: IDeskBand2) -> Self { value.0 } } impl ::core::convert::From<&IDeskBand2> for ::windows::core::IUnknown { fn from(value: &IDeskBand2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDeskBand2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDeskBand2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IDeskBand2> for IDeskBand { fn from(value: IDeskBand2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IDeskBand2> for IDeskBand { fn from(value: &IDeskBand2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IDeskBand> for IDeskBand2 { fn into_param(self) -> ::windows::core::Param<'a, IDeskBand> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IDeskBand> for &IDeskBand2 { fn into_param(self) -> ::windows::core::Param<'a, IDeskBand> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IDeskBand2> for IDockingWindow { fn from(value: IDeskBand2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IDeskBand2> for IDockingWindow { fn from(value: &IDeskBand2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IDockingWindow> for IDeskBand2 { fn into_param(self) -> ::windows::core::Param<'a, IDockingWindow> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IDockingWindow> for &IDeskBand2 { fn into_param(self) -> ::windows::core::Param<'a, IDockingWindow> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<IDeskBand2> for super::super::System::Ole::IOleWindow { fn from(value: IDeskBand2) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<&IDeskBand2> for super::super::System::Ole::IOleWindow { fn from(value: &IDeskBand2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for IDeskBand2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for &IDeskBand2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IDeskBand2_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fentermode: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fshow: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwreserved: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, prcborder: *const super::super::Foundation::RECT, punktoolbarsite: ::windows::core::RawPtr, freserved: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwbandid: u32, dwviewmode: u32, pdbi: *mut DESKBANDINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfcanrendercomposited: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fcompositionenabled: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfcompositionenabled: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDeskBandInfo(pub ::windows::core::IUnknown); impl IDeskBandInfo { pub unsafe fn GetDefaultBandWidth(&self, dwbandid: u32, dwviewmode: u32) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwbandid), ::core::mem::transmute(dwviewmode), &mut result__).from_abi::<i32>(result__) } } unsafe impl ::windows::core::Interface for IDeskBandInfo { type Vtable = IDeskBandInfo_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x77e425fc_cbf9_4307_ba6a_bb5727745661); } impl ::core::convert::From<IDeskBandInfo> for ::windows::core::IUnknown { fn from(value: IDeskBandInfo) -> Self { value.0 } } impl ::core::convert::From<&IDeskBandInfo> for ::windows::core::IUnknown { fn from(value: &IDeskBandInfo) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDeskBandInfo { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDeskBandInfo { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IDeskBandInfo_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, dwbandid: u32, dwviewmode: u32, pnwidth: *mut i32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDeskBar(pub ::windows::core::IUnknown); impl IDeskBar { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetWindow(&self) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ContextSensitiveHelp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fentermode: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), fentermode.into_param().abi()).ok() } pub unsafe fn SetClient<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punkclient: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), punkclient.into_param().abi()).ok() } pub unsafe fn GetClient(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__: <::windows::core::IUnknown as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<::windows::core::IUnknown>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnPosRectChangeDB(&self, prc: *const super::super::Foundation::RECT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(prc)).ok() } } unsafe impl ::windows::core::Interface for IDeskBar { type Vtable = IDeskBar_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xeb0fe173_1a3a_11d0_89b3_00a0c90a90ac); } impl ::core::convert::From<IDeskBar> for ::windows::core::IUnknown { fn from(value: IDeskBar) -> Self { value.0 } } impl ::core::convert::From<&IDeskBar> for ::windows::core::IUnknown { fn from(value: &IDeskBar) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDeskBar { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDeskBar { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<IDeskBar> for super::super::System::Ole::IOleWindow { fn from(value: IDeskBar) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<&IDeskBar> for super::super::System::Ole::IOleWindow { fn from(value: &IDeskBar) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for IDeskBar { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for &IDeskBar { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IDeskBar_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fentermode: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punkclient: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppunkclient: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, prc: *const super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDeskBarClient(pub ::windows::core::IUnknown); impl IDeskBarClient { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetWindow(&self) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ContextSensitiveHelp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fentermode: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), fentermode.into_param().abi()).ok() } pub unsafe fn SetDeskBarSite<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punksite: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), punksite.into_param().abi()).ok() } pub unsafe fn SetModeDBC(&self, dwmode: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwmode)).ok() } pub unsafe fn UIActivateDBC(&self, dwstate: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwstate)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSize(&self, dwwhich: u32) -> ::windows::core::Result<super::super::Foundation::RECT> { let mut result__: <super::super::Foundation::RECT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwwhich), &mut result__).from_abi::<super::super::Foundation::RECT>(result__) } } unsafe impl ::windows::core::Interface for IDeskBarClient { type Vtable = IDeskBarClient_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xeb0fe175_1a3a_11d0_89b3_00a0c90a90ac); } impl ::core::convert::From<IDeskBarClient> for ::windows::core::IUnknown { fn from(value: IDeskBarClient) -> Self { value.0 } } impl ::core::convert::From<&IDeskBarClient> for ::windows::core::IUnknown { fn from(value: &IDeskBarClient) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDeskBarClient { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDeskBarClient { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<IDeskBarClient> for super::super::System::Ole::IOleWindow { fn from(value: IDeskBarClient) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<&IDeskBarClient> for super::super::System::Ole::IOleWindow { fn from(value: &IDeskBarClient) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for IDeskBarClient { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for &IDeskBarClient { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IDeskBarClient_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fentermode: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punksite: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwmode: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwstate: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwwhich: u32, prc: *mut super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDesktopGadget(pub ::windows::core::IUnknown); impl IDesktopGadget { #[cfg(feature = "Win32_Foundation")] pub unsafe fn RunGadget<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, gadgetpath: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), gadgetpath.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IDesktopGadget { type Vtable = IDesktopGadget_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc1646bc4_f298_4f91_a204_eb2dd1709d1a); } impl ::core::convert::From<IDesktopGadget> for ::windows::core::IUnknown { fn from(value: IDesktopGadget) -> Self { value.0 } } impl ::core::convert::From<&IDesktopGadget> for ::windows::core::IUnknown { fn from(value: &IDesktopGadget) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDesktopGadget { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDesktopGadget { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IDesktopGadget_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, gadgetpath: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDesktopWallpaper(pub ::windows::core::IUnknown); impl IDesktopWallpaper { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetWallpaper<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, monitorid: Param0, wallpaper: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), monitorid.into_param().abi(), wallpaper.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetWallpaper<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, monitorid: Param0) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), monitorid.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetMonitorDevicePathAt(&self, monitorindex: u32) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(monitorindex), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } pub unsafe fn GetMonitorDevicePathCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetMonitorRECT<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, monitorid: Param0) -> ::windows::core::Result<super::super::Foundation::RECT> { let mut result__: <super::super::Foundation::RECT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), monitorid.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::RECT>(result__) } pub unsafe fn SetBackgroundColor(&self, color: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(color)).ok() } pub unsafe fn GetBackgroundColor(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn SetPosition(&self, position: DESKTOP_WALLPAPER_POSITION) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(position)).ok() } pub unsafe fn GetPosition(&self) -> ::windows::core::Result<DESKTOP_WALLPAPER_POSITION> { let mut result__: <DESKTOP_WALLPAPER_POSITION as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<DESKTOP_WALLPAPER_POSITION>(result__) } pub unsafe fn SetSlideshow<'a, Param0: ::windows::core::IntoParam<'a, IShellItemArray>>(&self, items: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), items.into_param().abi()).ok() } pub unsafe fn GetSlideshow(&self) -> ::windows::core::Result<IShellItemArray> { let mut result__: <IShellItemArray as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItemArray>(result__) } pub unsafe fn SetSlideshowOptions(&self, options: DESKTOP_SLIDESHOW_OPTIONS, slideshowtick: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(options), ::core::mem::transmute(slideshowtick)).ok() } pub unsafe fn GetSlideshowOptions(&self, options: *mut DESKTOP_SLIDESHOW_OPTIONS, slideshowtick: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(options), ::core::mem::transmute(slideshowtick)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AdvanceSlideshow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, monitorid: Param0, direction: DESKTOP_SLIDESHOW_DIRECTION) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), monitorid.into_param().abi(), ::core::mem::transmute(direction)).ok() } pub unsafe fn GetStatus(&self) -> ::windows::core::Result<DESKTOP_SLIDESHOW_STATE> { let mut result__: <DESKTOP_SLIDESHOW_STATE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<DESKTOP_SLIDESHOW_STATE>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Enable<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, enable: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), enable.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IDesktopWallpaper { type Vtable = IDesktopWallpaper_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb92b56a9_8b55_4e14_9a89_0199bbb6f93b); } impl ::core::convert::From<IDesktopWallpaper> for ::windows::core::IUnknown { fn from(value: IDesktopWallpaper) -> Self { value.0 } } impl ::core::convert::From<&IDesktopWallpaper> for ::windows::core::IUnknown { fn from(value: &IDesktopWallpaper) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDesktopWallpaper { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDesktopWallpaper { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IDesktopWallpaper_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, monitorid: super::super::Foundation::PWSTR, wallpaper: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, monitorid: super::super::Foundation::PWSTR, wallpaper: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, monitorindex: u32, monitorid: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, monitorid: super::super::Foundation::PWSTR, displayrect: *mut super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, color: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, color: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, position: DESKTOP_WALLPAPER_POSITION) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, position: *mut DESKTOP_WALLPAPER_POSITION) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, items: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, items: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, options: DESKTOP_SLIDESHOW_OPTIONS, slideshowtick: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, options: *mut DESKTOP_SLIDESHOW_OPTIONS, slideshowtick: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, monitorid: super::super::Foundation::PWSTR, direction: DESKTOP_SLIDESHOW_DIRECTION) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, state: *mut DESKTOP_SLIDESHOW_STATE) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, enable: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDestinationStreamFactory(pub ::windows::core::IUnknown); impl IDestinationStreamFactory { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetDestinationStream(&self) -> ::windows::core::Result<super::super::System::Com::IStream> { let mut result__: <super::super::System::Com::IStream as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IStream>(result__) } } unsafe impl ::windows::core::Interface for IDestinationStreamFactory { type Vtable = IDestinationStreamFactory_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8a87781b_39a7_4a1f_aab3_a39b9c34a7d9); } impl ::core::convert::From<IDestinationStreamFactory> for ::windows::core::IUnknown { fn from(value: IDestinationStreamFactory) -> Self { value.0 } } impl ::core::convert::From<&IDestinationStreamFactory> for ::windows::core::IUnknown { fn from(value: &IDestinationStreamFactory) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDestinationStreamFactory { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDestinationStreamFactory { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IDestinationStreamFactory_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, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppstm: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDisplayItem(pub ::windows::core::IUnknown); impl IDisplayItem { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetItemIDList(&self) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } pub unsafe fn GetItem(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } } unsafe impl ::windows::core::Interface for IDisplayItem { type Vtable = IDisplayItem_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc6fd5997_9f6b_4888_8703_94e80e8cde3f); } impl ::core::convert::From<IDisplayItem> for ::windows::core::IUnknown { fn from(value: IDisplayItem) -> Self { value.0 } } impl ::core::convert::From<&IDisplayItem> for ::windows::core::IUnknown { fn from(value: &IDisplayItem) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDisplayItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDisplayItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IDisplayItem> for IRelatedItem { fn from(value: IDisplayItem) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IDisplayItem> for IRelatedItem { fn from(value: &IDisplayItem) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IRelatedItem> for IDisplayItem { fn into_param(self) -> ::windows::core::Param<'a, IRelatedItem> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IRelatedItem> for &IDisplayItem { fn into_param(self) -> ::windows::core::Param<'a, IRelatedItem> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IDisplayItem_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, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDocViewSite(pub ::windows::core::IUnknown); impl IDocViewSite { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn OnSetTitle(&self, pvtitle: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pvtitle)).ok() } } unsafe impl ::windows::core::Interface for IDocViewSite { type Vtable = IDocViewSite_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x87d605e0_c511_11cf_89a9_00a0c9054129); } impl ::core::convert::From<IDocViewSite> for ::windows::core::IUnknown { fn from(value: IDocViewSite) -> Self { value.0 } } impl ::core::convert::From<&IDocViewSite> for ::windows::core::IUnknown { fn from(value: &IDocViewSite) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDocViewSite { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDocViewSite { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IDocViewSite_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvtitle: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDockingWindow(pub ::windows::core::IUnknown); impl IDockingWindow { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetWindow(&self) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ContextSensitiveHelp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fentermode: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), fentermode.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ShowDW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fshow: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), fshow.into_param().abi()).ok() } pub unsafe fn CloseDW(&self, dwreserved: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwreserved)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ResizeBorderDW<'a, Param1: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, prcborder: *const super::super::Foundation::RECT, punktoolbarsite: Param1, freserved: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(prcborder), punktoolbarsite.into_param().abi(), freserved.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IDockingWindow { type Vtable = IDockingWindow_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x012dd920_7b26_11d0_8ca9_00a0c92dbfe8); } impl ::core::convert::From<IDockingWindow> for ::windows::core::IUnknown { fn from(value: IDockingWindow) -> Self { value.0 } } impl ::core::convert::From<&IDockingWindow> for ::windows::core::IUnknown { fn from(value: &IDockingWindow) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDockingWindow { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDockingWindow { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<IDockingWindow> for super::super::System::Ole::IOleWindow { fn from(value: IDockingWindow) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<&IDockingWindow> for super::super::System::Ole::IOleWindow { fn from(value: &IDockingWindow) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for IDockingWindow { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for &IDockingWindow { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IDockingWindow_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fentermode: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fshow: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwreserved: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, prcborder: *const super::super::Foundation::RECT, punktoolbarsite: ::windows::core::RawPtr, freserved: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDockingWindowFrame(pub ::windows::core::IUnknown); impl IDockingWindowFrame { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetWindow(&self) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ContextSensitiveHelp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fentermode: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), fentermode.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddToolbar<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, punksrc: Param0, pwszitem: Param1, dwaddflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), punksrc.into_param().abi(), pwszitem.into_param().abi(), ::core::mem::transmute(dwaddflags)).ok() } pub unsafe fn RemoveToolbar<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punksrc: Param0, dwremoveflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), punksrc.into_param().abi(), ::core::mem::transmute(dwremoveflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn FindToolbar<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszitem: Param0, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pwszitem.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } } unsafe impl ::windows::core::Interface for IDockingWindowFrame { type Vtable = IDockingWindowFrame_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x47d2657a_7b27_11d0_8ca9_00a0c92dbfe8); } impl ::core::convert::From<IDockingWindowFrame> for ::windows::core::IUnknown { fn from(value: IDockingWindowFrame) -> Self { value.0 } } impl ::core::convert::From<&IDockingWindowFrame> for ::windows::core::IUnknown { fn from(value: &IDockingWindowFrame) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDockingWindowFrame { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDockingWindowFrame { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<IDockingWindowFrame> for super::super::System::Ole::IOleWindow { fn from(value: IDockingWindowFrame) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<&IDockingWindowFrame> for super::super::System::Ole::IOleWindow { fn from(value: &IDockingWindowFrame) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for IDockingWindowFrame { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for &IDockingWindowFrame { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IDockingWindowFrame_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fentermode: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punksrc: ::windows::core::RawPtr, pwszitem: super::super::Foundation::PWSTR, dwaddflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punksrc: ::windows::core::RawPtr, dwremoveflags: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pwszitem: super::super::Foundation::PWSTR, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDockingWindowSite(pub ::windows::core::IUnknown); impl IDockingWindowSite { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetWindow(&self) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ContextSensitiveHelp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fentermode: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), fentermode.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetBorderDW<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punkobj: Param0) -> ::windows::core::Result<super::super::Foundation::RECT> { let mut result__: <super::super::Foundation::RECT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), punkobj.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::RECT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn RequestBorderSpaceDW<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punkobj: Param0, pbw: *const super::super::Foundation::RECT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), punkobj.into_param().abi(), ::core::mem::transmute(pbw)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetBorderSpaceDW<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punkobj: Param0, pbw: *const super::super::Foundation::RECT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), punkobj.into_param().abi(), ::core::mem::transmute(pbw)).ok() } } unsafe impl ::windows::core::Interface for IDockingWindowSite { type Vtable = IDockingWindowSite_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2a342fc2_7b26_11d0_8ca9_00a0c92dbfe8); } impl ::core::convert::From<IDockingWindowSite> for ::windows::core::IUnknown { fn from(value: IDockingWindowSite) -> Self { value.0 } } impl ::core::convert::From<&IDockingWindowSite> for ::windows::core::IUnknown { fn from(value: &IDockingWindowSite) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDockingWindowSite { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDockingWindowSite { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<IDockingWindowSite> for super::super::System::Ole::IOleWindow { fn from(value: IDockingWindowSite) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<&IDockingWindowSite> for super::super::System::Ole::IOleWindow { fn from(value: &IDockingWindowSite) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for IDockingWindowSite { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for &IDockingWindowSite { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IDockingWindowSite_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fentermode: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punkobj: ::windows::core::RawPtr, prcborder: *mut super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punkobj: ::windows::core::RawPtr, pbw: *const super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punkobj: ::windows::core::RawPtr, pbw: *const super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDragSourceHelper(pub ::windows::core::IUnknown); impl IDragSourceHelper { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub unsafe fn InitializeFromBitmap<'a, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>>(&self, pshdi: *const SHDRAGIMAGE, pdataobject: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pshdi), pdataobject.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe fn InitializeFromWindow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>>(&self, hwnd: Param0, ppt: *const super::super::Foundation::POINT, pdataobject: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(ppt), pdataobject.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IDragSourceHelper { type Vtable = IDragSourceHelper_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xde5bf786_477a_11d2_839d_00c04fd918d0); } impl ::core::convert::From<IDragSourceHelper> for ::windows::core::IUnknown { fn from(value: IDragSourceHelper) -> Self { value.0 } } impl ::core::convert::From<&IDragSourceHelper> for ::windows::core::IUnknown { fn from(value: &IDragSourceHelper) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDragSourceHelper { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDragSourceHelper { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IDragSourceHelper_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pshdi: *const SHDRAGIMAGE, pdataobject: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, ppt: *const super::super::Foundation::POINT, pdataobject: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDragSourceHelper2(pub ::windows::core::IUnknown); impl IDragSourceHelper2 { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub unsafe fn InitializeFromBitmap<'a, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>>(&self, pshdi: *const SHDRAGIMAGE, pdataobject: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pshdi), pdataobject.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe fn InitializeFromWindow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>>(&self, hwnd: Param0, ppt: *const super::super::Foundation::POINT, pdataobject: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(ppt), pdataobject.into_param().abi()).ok() } pub unsafe fn SetFlags(&self, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags)).ok() } } unsafe impl ::windows::core::Interface for IDragSourceHelper2 { type Vtable = IDragSourceHelper2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x83e07d0d_0c5f_4163_bf1a_60b274051e40); } impl ::core::convert::From<IDragSourceHelper2> for ::windows::core::IUnknown { fn from(value: IDragSourceHelper2) -> Self { value.0 } } impl ::core::convert::From<&IDragSourceHelper2> for ::windows::core::IUnknown { fn from(value: &IDragSourceHelper2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDragSourceHelper2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDragSourceHelper2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IDragSourceHelper2> for IDragSourceHelper { fn from(value: IDragSourceHelper2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IDragSourceHelper2> for IDragSourceHelper { fn from(value: &IDragSourceHelper2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IDragSourceHelper> for IDragSourceHelper2 { fn into_param(self) -> ::windows::core::Param<'a, IDragSourceHelper> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IDragSourceHelper> for &IDragSourceHelper2 { fn into_param(self) -> ::windows::core::Param<'a, IDragSourceHelper> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IDragSourceHelper2_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pshdi: *const SHDRAGIMAGE, pdataobject: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, ppt: *const super::super::Foundation::POINT, pdataobject: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDropTargetHelper(pub ::windows::core::IUnknown); impl IDropTargetHelper { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>>(&self, hwndtarget: Param0, pdataobject: Param1, ppt: *const super::super::Foundation::POINT, dweffect: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwndtarget.into_param().abi(), pdataobject.into_param().abi(), ::core::mem::transmute(ppt), ::core::mem::transmute(dweffect)).ok() } pub unsafe fn DragLeave(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DragOver(&self, ppt: *const super::super::Foundation::POINT, dweffect: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppt), ::core::mem::transmute(dweffect)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>>(&self, pdataobject: Param0, ppt: *const super::super::Foundation::POINT, dweffect: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pdataobject.into_param().abi(), ::core::mem::transmute(ppt), ::core::mem::transmute(dweffect)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Show<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fshow: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), fshow.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IDropTargetHelper { type Vtable = IDropTargetHelper_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4657278b_411b_11d2_839a_00c04fd918d0); } impl ::core::convert::From<IDropTargetHelper> for ::windows::core::IUnknown { fn from(value: IDropTargetHelper) -> Self { value.0 } } impl ::core::convert::From<&IDropTargetHelper> for ::windows::core::IUnknown { fn from(value: &IDropTargetHelper) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDropTargetHelper { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDropTargetHelper { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IDropTargetHelper_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndtarget: super::super::Foundation::HWND, pdataobject: ::windows::core::RawPtr, ppt: *const super::super::Foundation::POINT, dweffect: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppt: *const super::super::Foundation::POINT, dweffect: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdataobject: ::windows::core::RawPtr, ppt: *const super::super::Foundation::POINT, dweffect: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fshow: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IDynamicHWHandler(pub ::windows::core::IUnknown); impl IDynamicHWHandler { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDynamicInfo<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszdeviceid: Param0, dwcontenttype: u32) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszdeviceid.into_param().abi(), ::core::mem::transmute(dwcontenttype), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } } unsafe impl ::windows::core::Interface for IDynamicHWHandler { type Vtable = IDynamicHWHandler_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdc2601d7_059e_42fc_a09d_2afd21b6d5f7); } impl ::core::convert::From<IDynamicHWHandler> for ::windows::core::IUnknown { fn from(value: IDynamicHWHandler) -> Self { value.0 } } impl ::core::convert::From<&IDynamicHWHandler> for ::windows::core::IUnknown { fn from(value: &IDynamicHWHandler) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDynamicHWHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDynamicHWHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IDynamicHWHandler_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszdeviceid: super::super::Foundation::PWSTR, dwcontenttype: u32, ppszaction: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); pub const IEIFLAG_ASPECT: u32 = 4u32; pub const IEIFLAG_ASYNC: u32 = 1u32; pub const IEIFLAG_CACHE: u32 = 2u32; pub const IEIFLAG_GLEAM: u32 = 16u32; pub const IEIFLAG_NOBORDER: u32 = 256u32; pub const IEIFLAG_NOSTAMP: u32 = 128u32; pub const IEIFLAG_OFFLINE: u32 = 8u32; pub const IEIFLAG_ORIGSIZE: u32 = 64u32; pub const IEIFLAG_QUALITY: u32 = 512u32; pub const IEIFLAG_REFRESH: u32 = 1024u32; pub const IEIFLAG_SCREEN: u32 = 32u32; pub const IEIT_PRIORITY_NORMAL: u32 = 268435456u32; pub const IEI_PRIORITY_MAX: u32 = 2147483647u32; pub const IEI_PRIORITY_MIN: u32 = 0u32; pub const IENamespaceTreeControl: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xace52d03_e5cd_4b20_82ff_e71b11beae1d); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct IEPDNFLAGS(pub i32); pub const IEPDN_BINDINGUI: IEPDNFLAGS = IEPDNFLAGS(1i32); impl ::core::convert::From<i32> for IEPDNFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for IEPDNFLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct IESHORTCUTFLAGS(pub i32); pub const IESHORTCUT_NEWBROWSER: IESHORTCUTFLAGS = IESHORTCUTFLAGS(1i32); pub const IESHORTCUT_OPENNEWTAB: IESHORTCUTFLAGS = IESHORTCUTFLAGS(2i32); pub const IESHORTCUT_FORCENAVIGATE: IESHORTCUTFLAGS = IESHORTCUTFLAGS(4i32); pub const IESHORTCUT_BACKGROUNDTAB: IESHORTCUTFLAGS = IESHORTCUTFLAGS(8i32); impl ::core::convert::From<i32> for IESHORTCUTFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for IESHORTCUTFLAGS { type Abi = Self; } #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IEnumACString(pub ::windows::core::IUnknown); impl IEnumACString { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Next(&self, celt: u32, rgelt: *mut super::super::Foundation::PWSTR, pceltfetched: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt), ::core::mem::transmute(rgelt), ::core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt)).ok() } pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> ::windows::core::Result<super::super::System::Com::IEnumString> { let mut result__: <super::super::System::Com::IEnumString as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IEnumString>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn NextItem(&self, pszurl: super::super::Foundation::PWSTR, cchmax: u32, pulsortindex: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszurl), ::core::mem::transmute(cchmax), ::core::mem::transmute(pulsortindex)).ok() } pub unsafe fn SetEnumOptions(&self, dwoptions: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwoptions)).ok() } pub unsafe fn GetEnumOptions(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } } unsafe impl ::windows::core::Interface for IEnumACString { type Vtable = IEnumACString_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8e74c210_cf9d_4eaf_a403_7356428f0a5a); } impl ::core::convert::From<IEnumACString> for ::windows::core::IUnknown { fn from(value: IEnumACString) -> Self { value.0 } } impl ::core::convert::From<&IEnumACString> for ::windows::core::IUnknown { fn from(value: &IEnumACString) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IEnumACString { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IEnumACString { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IEnumACString> for super::super::System::Com::IEnumString { fn from(value: IEnumACString) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IEnumACString> for super::super::System::Com::IEnumString { fn from(value: &IEnumACString) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IEnumString> for IEnumACString { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IEnumString> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IEnumString> for &IEnumACString { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IEnumString> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IEnumACString_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, celt: u32, rgelt: *mut super::super::Foundation::PWSTR, pceltfetched: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, celt: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszurl: super::super::Foundation::PWSTR, cchmax: u32, pulsortindex: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwoptions: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwoptions: *mut u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IEnumAssocHandlers(pub ::windows::core::IUnknown); impl IEnumAssocHandlers { pub unsafe fn Next(&self, celt: u32, rgelt: *mut ::core::option::Option<IAssocHandler>, pceltfetched: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt), ::core::mem::transmute(rgelt), ::core::mem::transmute(pceltfetched)).ok() } } unsafe impl ::windows::core::Interface for IEnumAssocHandlers { type Vtable = IEnumAssocHandlers_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x973810ae_9599_4b88_9e4d_6ee98c9552da); } impl ::core::convert::From<IEnumAssocHandlers> for ::windows::core::IUnknown { fn from(value: IEnumAssocHandlers) -> Self { value.0 } } impl ::core::convert::From<&IEnumAssocHandlers> for ::windows::core::IUnknown { fn from(value: &IEnumAssocHandlers) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IEnumAssocHandlers { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IEnumAssocHandlers { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IEnumAssocHandlers_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, celt: u32, rgelt: *mut ::windows::core::RawPtr, pceltfetched: *mut u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IEnumExplorerCommand(pub ::windows::core::IUnknown); impl IEnumExplorerCommand { pub unsafe fn Next(&self, celt: u32, puicommand: *mut ::core::option::Option<IExplorerCommand>, pceltfetched: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt), ::core::mem::transmute(puicommand), ::core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt)).ok() } pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Clone(&self) -> ::windows::core::Result<IEnumExplorerCommand> { let mut result__: <IEnumExplorerCommand as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IEnumExplorerCommand>(result__) } } unsafe impl ::windows::core::Interface for IEnumExplorerCommand { type Vtable = IEnumExplorerCommand_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa88826f8_186f_4987_aade_ea0cef8fbfe8); } impl ::core::convert::From<IEnumExplorerCommand> for ::windows::core::IUnknown { fn from(value: IEnumExplorerCommand) -> Self { value.0 } } impl ::core::convert::From<&IEnumExplorerCommand> for ::windows::core::IUnknown { fn from(value: &IEnumExplorerCommand) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IEnumExplorerCommand { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IEnumExplorerCommand { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IEnumExplorerCommand_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, celt: u32, puicommand: *mut ::windows::core::RawPtr, pceltfetched: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, celt: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IEnumExtraSearch(pub ::windows::core::IUnknown); impl IEnumExtraSearch { pub unsafe fn Next(&self, celt: u32, rgelt: *mut EXTRASEARCH, pceltfetched: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt), ::core::mem::transmute(rgelt), ::core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt)).ok() } pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Clone(&self) -> ::windows::core::Result<IEnumExtraSearch> { let mut result__: <IEnumExtraSearch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IEnumExtraSearch>(result__) } } unsafe impl ::windows::core::Interface for IEnumExtraSearch { type Vtable = IEnumExtraSearch_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0e700be1_9db6_11d1_a1ce_00c04fd75d13); } impl ::core::convert::From<IEnumExtraSearch> for ::windows::core::IUnknown { fn from(value: IEnumExtraSearch) -> Self { value.0 } } impl ::core::convert::From<&IEnumExtraSearch> for ::windows::core::IUnknown { fn from(value: &IEnumExtraSearch) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IEnumExtraSearch { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IEnumExtraSearch { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IEnumExtraSearch_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, celt: u32, rgelt: *mut EXTRASEARCH, pceltfetched: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, celt: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IEnumFullIDList(pub ::windows::core::IUnknown); impl IEnumFullIDList { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn Next(&self, celt: u32, rgelt: *mut *mut Common::ITEMIDLIST, pceltfetched: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt), ::core::mem::transmute(rgelt), ::core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt)).ok() } pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Clone(&self) -> ::windows::core::Result<IEnumFullIDList> { let mut result__: <IEnumFullIDList as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IEnumFullIDList>(result__) } } unsafe impl ::windows::core::Interface for IEnumFullIDList { type Vtable = IEnumFullIDList_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd0191542_7954_4908_bc06_b2360bbe45ba); } impl ::core::convert::From<IEnumFullIDList> for ::windows::core::IUnknown { fn from(value: IEnumFullIDList) -> Self { value.0 } } impl ::core::convert::From<&IEnumFullIDList> for ::windows::core::IUnknown { fn from(value: &IEnumFullIDList) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IEnumFullIDList { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IEnumFullIDList { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IEnumFullIDList_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, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, celt: u32, rgelt: *mut *mut Common::ITEMIDLIST, pceltfetched: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, celt: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IEnumHLITEM(pub ::windows::core::IUnknown); impl IEnumHLITEM { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Next(&self, celt: u32, rgelt: *mut HLITEM, pceltfetched: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt), ::core::mem::transmute(rgelt), ::core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt)).ok() } pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Clone(&self) -> ::windows::core::Result<IEnumHLITEM> { let mut result__: <IEnumHLITEM as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IEnumHLITEM>(result__) } } unsafe impl ::windows::core::Interface for IEnumHLITEM { type Vtable = IEnumHLITEM_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x79eac9c6_baf9_11ce_8c82_00aa004ba90b); } impl ::core::convert::From<IEnumHLITEM> for ::windows::core::IUnknown { fn from(value: IEnumHLITEM) -> Self { value.0 } } impl ::core::convert::From<&IEnumHLITEM> for ::windows::core::IUnknown { fn from(value: &IEnumHLITEM) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IEnumHLITEM { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IEnumHLITEM { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IEnumHLITEM_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, celt: u32, rgelt: *mut HLITEM, pceltfetched: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, celt: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppienumhlitem: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IEnumIDList(pub ::windows::core::IUnknown); impl IEnumIDList { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn Next(&self, celt: u32, rgelt: *mut *mut Common::ITEMIDLIST, pceltfetched: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt), ::core::mem::transmute(rgelt), ::core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt)).ok() } pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Clone(&self) -> ::windows::core::Result<IEnumIDList> { let mut result__: <IEnumIDList as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IEnumIDList>(result__) } } unsafe impl ::windows::core::Interface for IEnumIDList { type Vtable = IEnumIDList_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214f2_0000_0000_c000_000000000046); } impl ::core::convert::From<IEnumIDList> for ::windows::core::IUnknown { fn from(value: IEnumIDList) -> Self { value.0 } } impl ::core::convert::From<&IEnumIDList> for ::windows::core::IUnknown { fn from(value: &IEnumIDList) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IEnumIDList { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IEnumIDList { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IEnumIDList_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, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, celt: u32, rgelt: *mut *mut Common::ITEMIDLIST, pceltfetched: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, celt: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IEnumObjects(pub ::windows::core::IUnknown); impl IEnumObjects { pub unsafe fn Next(&self, celt: u32, riid: *const ::windows::core::GUID, rgelt: *mut *mut ::core::ffi::c_void, pceltfetched: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt), ::core::mem::transmute(riid), ::core::mem::transmute(rgelt), ::core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt)).ok() } pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Clone(&self) -> ::windows::core::Result<IEnumObjects> { let mut result__: <IEnumObjects as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IEnumObjects>(result__) } } unsafe impl ::windows::core::Interface for IEnumObjects { type Vtable = IEnumObjects_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2c1c7e2e_2d0e_4059_831e_1e6f82335c2e); } impl ::core::convert::From<IEnumObjects> for ::windows::core::IUnknown { fn from(value: IEnumObjects) -> Self { value.0 } } impl ::core::convert::From<&IEnumObjects> for ::windows::core::IUnknown { fn from(value: &IEnumObjects) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IEnumObjects { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IEnumObjects { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IEnumObjects_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, celt: u32, riid: *const ::windows::core::GUID, rgelt: *mut *mut ::core::ffi::c_void, pceltfetched: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, celt: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IEnumPublishedApps(pub ::windows::core::IUnknown); impl IEnumPublishedApps { pub unsafe fn Next(&self) -> ::windows::core::Result<IPublishedApp> { let mut result__: <IPublishedApp as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IPublishedApp>(result__) } pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IEnumPublishedApps { type Vtable = IEnumPublishedApps_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0b124f8c_91f0_11d1_b8b5_006008059382); } impl ::core::convert::From<IEnumPublishedApps> for ::windows::core::IUnknown { fn from(value: IEnumPublishedApps) -> Self { value.0 } } impl ::core::convert::From<&IEnumPublishedApps> for ::windows::core::IUnknown { fn from(value: &IEnumPublishedApps) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IEnumPublishedApps { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IEnumPublishedApps { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IEnumPublishedApps_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, pia: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IEnumReadyCallback(pub ::windows::core::IUnknown); impl IEnumReadyCallback { pub unsafe fn EnumReady(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IEnumReadyCallback { type Vtable = IEnumReadyCallback_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x61e00d45_8fff_4e60_924e_6537b61612dd); } impl ::core::convert::From<IEnumReadyCallback> for ::windows::core::IUnknown { fn from(value: IEnumReadyCallback) -> Self { value.0 } } impl ::core::convert::From<&IEnumReadyCallback> for ::windows::core::IUnknown { fn from(value: &IEnumReadyCallback) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IEnumReadyCallback { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IEnumReadyCallback { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IEnumReadyCallback_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) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IEnumResources(pub ::windows::core::IUnknown); impl IEnumResources { pub unsafe fn Next(&self, celt: u32, psir: *mut SHELL_ITEM_RESOURCE, pceltfetched: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt), ::core::mem::transmute(psir), ::core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt)).ok() } pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Clone(&self) -> ::windows::core::Result<IEnumResources> { let mut result__: <IEnumResources as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IEnumResources>(result__) } } unsafe impl ::windows::core::Interface for IEnumResources { type Vtable = IEnumResources_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2dd81fe3_a83c_4da9_a330_47249d345ba1); } impl ::core::convert::From<IEnumResources> for ::windows::core::IUnknown { fn from(value: IEnumResources) -> Self { value.0 } } impl ::core::convert::From<&IEnumResources> for ::windows::core::IUnknown { fn from(value: &IEnumResources) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IEnumResources { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IEnumResources { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IEnumResources_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, celt: u32, psir: *mut SHELL_ITEM_RESOURCE, pceltfetched: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, celt: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenumr: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IEnumShellItems(pub ::windows::core::IUnknown); impl IEnumShellItems { pub unsafe fn Next(&self, celt: u32, rgelt: *mut ::core::option::Option<IShellItem>, pceltfetched: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt), ::core::mem::transmute(rgelt), ::core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt)).ok() } pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Clone(&self) -> ::windows::core::Result<IEnumShellItems> { let mut result__: <IEnumShellItems as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IEnumShellItems>(result__) } } unsafe impl ::windows::core::Interface for IEnumShellItems { type Vtable = IEnumShellItems_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x70629033_e363_4a28_a567_0db78006e6d7); } impl ::core::convert::From<IEnumShellItems> for ::windows::core::IUnknown { fn from(value: IEnumShellItems) -> Self { value.0 } } impl ::core::convert::From<&IEnumShellItems> for ::windows::core::IUnknown { fn from(value: &IEnumShellItems) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IEnumShellItems { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IEnumShellItems { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IEnumShellItems_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, celt: u32, rgelt: *mut ::windows::core::RawPtr, pceltfetched: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, celt: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IEnumSyncMgrConflict(pub ::windows::core::IUnknown); impl IEnumSyncMgrConflict { pub unsafe fn Next(&self, celt: u32, rgelt: *mut ::core::option::Option<ISyncMgrConflict>, pceltfetched: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt), ::core::mem::transmute(rgelt), ::core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt)).ok() } pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Clone(&self) -> ::windows::core::Result<IEnumSyncMgrConflict> { let mut result__: <IEnumSyncMgrConflict as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IEnumSyncMgrConflict>(result__) } } unsafe impl ::windows::core::Interface for IEnumSyncMgrConflict { type Vtable = IEnumSyncMgrConflict_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x82705914_dda3_4893_ba99_49de6c8c8036); } impl ::core::convert::From<IEnumSyncMgrConflict> for ::windows::core::IUnknown { fn from(value: IEnumSyncMgrConflict) -> Self { value.0 } } impl ::core::convert::From<&IEnumSyncMgrConflict> for ::windows::core::IUnknown { fn from(value: &IEnumSyncMgrConflict) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IEnumSyncMgrConflict { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IEnumSyncMgrConflict { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IEnumSyncMgrConflict_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, celt: u32, rgelt: *mut ::windows::core::RawPtr, pceltfetched: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, celt: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IEnumSyncMgrEvents(pub ::windows::core::IUnknown); impl IEnumSyncMgrEvents { pub unsafe fn Next(&self, celt: u32, rgelt: *mut ::core::option::Option<ISyncMgrEvent>, pceltfetched: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt), ::core::mem::transmute(rgelt), ::core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt)).ok() } pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Clone(&self) -> ::windows::core::Result<IEnumSyncMgrEvents> { let mut result__: <IEnumSyncMgrEvents as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IEnumSyncMgrEvents>(result__) } } unsafe impl ::windows::core::Interface for IEnumSyncMgrEvents { type Vtable = IEnumSyncMgrEvents_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc81a1d4e_8cf7_4683_80e0_bcae88d677b6); } impl ::core::convert::From<IEnumSyncMgrEvents> for ::windows::core::IUnknown { fn from(value: IEnumSyncMgrEvents) -> Self { value.0 } } impl ::core::convert::From<&IEnumSyncMgrEvents> for ::windows::core::IUnknown { fn from(value: &IEnumSyncMgrEvents) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IEnumSyncMgrEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IEnumSyncMgrEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IEnumSyncMgrEvents_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, celt: u32, rgelt: *mut ::windows::core::RawPtr, pceltfetched: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, celt: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IEnumSyncMgrSyncItems(pub ::windows::core::IUnknown); impl IEnumSyncMgrSyncItems { pub unsafe fn Next(&self, celt: u32, rgelt: *mut ::core::option::Option<ISyncMgrSyncItem>, pceltfetched: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt), ::core::mem::transmute(rgelt), ::core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt)).ok() } pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Clone(&self) -> ::windows::core::Result<IEnumSyncMgrSyncItems> { let mut result__: <IEnumSyncMgrSyncItems as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IEnumSyncMgrSyncItems>(result__) } } unsafe impl ::windows::core::Interface for IEnumSyncMgrSyncItems { type Vtable = IEnumSyncMgrSyncItems_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x54b3abf3_f085_4181_b546_e29c403c726b); } impl ::core::convert::From<IEnumSyncMgrSyncItems> for ::windows::core::IUnknown { fn from(value: IEnumSyncMgrSyncItems) -> Self { value.0 } } impl ::core::convert::From<&IEnumSyncMgrSyncItems> for ::windows::core::IUnknown { fn from(value: &IEnumSyncMgrSyncItems) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IEnumSyncMgrSyncItems { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IEnumSyncMgrSyncItems { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IEnumSyncMgrSyncItems_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, celt: u32, rgelt: *mut ::windows::core::RawPtr, pceltfetched: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, celt: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IEnumTravelLogEntry(pub ::windows::core::IUnknown); impl IEnumTravelLogEntry { pub unsafe fn Next(&self, celt: u32, rgelt: *mut ::core::option::Option<ITravelLogEntry>, pceltfetched: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt), ::core::mem::transmute(rgelt), ::core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt)).ok() } pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Clone(&self) -> ::windows::core::Result<IEnumTravelLogEntry> { let mut result__: <IEnumTravelLogEntry as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IEnumTravelLogEntry>(result__) } } unsafe impl ::windows::core::Interface for IEnumTravelLogEntry { type Vtable = IEnumTravelLogEntry_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7ebfdd85_ad18_11d3_a4c5_00c04f72d6b8); } impl ::core::convert::From<IEnumTravelLogEntry> for ::windows::core::IUnknown { fn from(value: IEnumTravelLogEntry) -> Self { value.0 } } impl ::core::convert::From<&IEnumTravelLogEntry> for ::windows::core::IUnknown { fn from(value: &IEnumTravelLogEntry) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IEnumTravelLogEntry { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IEnumTravelLogEntry { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IEnumTravelLogEntry_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, celt: u32, rgelt: *mut ::windows::core::RawPtr, pceltfetched: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, celt: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IEnumerableView(pub ::windows::core::IUnknown); impl IEnumerableView { pub unsafe fn SetEnumReadyCallback<'a, Param0: ::windows::core::IntoParam<'a, IEnumReadyCallback>>(&self, percb: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), percb.into_param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn CreateEnumIDListFromContents(&self, pidlfolder: *const Common::ITEMIDLIST, dwenumflags: u32) -> ::windows::core::Result<IEnumIDList> { let mut result__: <IEnumIDList as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidlfolder), ::core::mem::transmute(dwenumflags), &mut result__).from_abi::<IEnumIDList>(result__) } } unsafe impl ::windows::core::Interface for IEnumerableView { type Vtable = IEnumerableView_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8c8bf236_1aec_495f_9894_91d57c3c686f); } impl ::core::convert::From<IEnumerableView> for ::windows::core::IUnknown { fn from(value: IEnumerableView) -> Self { value.0 } } impl ::core::convert::From<&IEnumerableView> for ::windows::core::IUnknown { fn from(value: &IEnumerableView) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IEnumerableView { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IEnumerableView { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IEnumerableView_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, percb: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidlfolder: *const Common::ITEMIDLIST, dwenumflags: u32, ppenumidlist: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IExecuteCommand(pub ::windows::core::IUnknown); impl IExecuteCommand { pub unsafe fn SetKeyState(&self, grfkeystate: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(grfkeystate)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetParameters<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszparameters: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pszparameters.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetPosition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::POINT>>(&self, pt: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), pt.into_param().abi()).ok() } pub unsafe fn SetShowWindow(&self, nshow: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(nshow)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetNoShowUI<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fnoshowui: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), fnoshowui.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetDirectory<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszdirectory: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), pszdirectory.into_param().abi()).ok() } pub unsafe fn Execute(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IExecuteCommand { type Vtable = IExecuteCommand_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7f9185b0_cb92_43c5_80a9_92277a4f7b54); } impl ::core::convert::From<IExecuteCommand> for ::windows::core::IUnknown { fn from(value: IExecuteCommand) -> Self { value.0 } } impl ::core::convert::From<&IExecuteCommand> for ::windows::core::IUnknown { fn from(value: &IExecuteCommand) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IExecuteCommand { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IExecuteCommand { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IExecuteCommand_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, grfkeystate: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszparameters: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pt: super::super::Foundation::POINT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, nshow: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fnoshowui: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszdirectory: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IExecuteCommandApplicationHostEnvironment(pub ::windows::core::IUnknown); impl IExecuteCommandApplicationHostEnvironment { pub unsafe fn GetValue(&self) -> ::windows::core::Result<AHE_TYPE> { let mut result__: <AHE_TYPE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<AHE_TYPE>(result__) } } unsafe impl ::windows::core::Interface for IExecuteCommandApplicationHostEnvironment { type Vtable = IExecuteCommandApplicationHostEnvironment_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x18b21aa9_e184_4ff0_9f5e_f882d03771b3); } impl ::core::convert::From<IExecuteCommandApplicationHostEnvironment> for ::windows::core::IUnknown { fn from(value: IExecuteCommandApplicationHostEnvironment) -> Self { value.0 } } impl ::core::convert::From<&IExecuteCommandApplicationHostEnvironment> for ::windows::core::IUnknown { fn from(value: &IExecuteCommandApplicationHostEnvironment) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IExecuteCommandApplicationHostEnvironment { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IExecuteCommandApplicationHostEnvironment { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IExecuteCommandApplicationHostEnvironment_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, pahe: *mut AHE_TYPE) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IExecuteCommandHost(pub ::windows::core::IUnknown); impl IExecuteCommandHost { pub unsafe fn GetUIMode(&self) -> ::windows::core::Result<EC_HOST_UI_MODE> { let mut result__: <EC_HOST_UI_MODE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<EC_HOST_UI_MODE>(result__) } } unsafe impl ::windows::core::Interface for IExecuteCommandHost { type Vtable = IExecuteCommandHost_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4b6832a2_5f04_4c9d_b89d_727a15d103e7); } impl ::core::convert::From<IExecuteCommandHost> for ::windows::core::IUnknown { fn from(value: IExecuteCommandHost) -> Self { value.0 } } impl ::core::convert::From<&IExecuteCommandHost> for ::windows::core::IUnknown { fn from(value: &IExecuteCommandHost) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IExecuteCommandHost { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IExecuteCommandHost { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IExecuteCommandHost_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, puimode: *mut EC_HOST_UI_MODE) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IExpDispSupport(pub ::windows::core::IUnknown); impl IExpDispSupport { #[cfg(feature = "Win32_System_Com")] pub unsafe fn FindConnectionPoint(&self, riid: *const ::windows::core::GUID) -> ::windows::core::Result<super::super::System::Com::IConnectionPoint> { let mut result__: <super::super::System::Com::IConnectionPoint as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), &mut result__).from_abi::<super::super::System::Com::IConnectionPoint>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn OnTranslateAccelerator(&self, pmsg: *const super::WindowsAndMessaging::MSG, grfmodifiers: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pmsg), ::core::mem::transmute(grfmodifiers)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn OnInvoke(&self, dispidmember: i32, iid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(iid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } } unsafe impl ::windows::core::Interface for IExpDispSupport { type Vtable = IExpDispSupport_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0d7d1d00_6fc0_11d0_a974_00c04fd705a2); } impl ::core::convert::From<IExpDispSupport> for ::windows::core::IUnknown { fn from(value: IExpDispSupport) -> Self { value.0 } } impl ::core::convert::From<&IExpDispSupport> for ::windows::core::IUnknown { fn from(value: &IExpDispSupport) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IExpDispSupport { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IExpDispSupport { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IExpDispSupport_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, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppccp: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmsg: *const super::WindowsAndMessaging::MSG, grfmodifiers: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, iid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IExpDispSupportXP(pub ::windows::core::IUnknown); impl IExpDispSupportXP { pub unsafe fn FindCIE4ConnectionPoint(&self, riid: *const ::windows::core::GUID) -> ::windows::core::Result<CIE4ConnectionPoint> { let mut result__: <CIE4ConnectionPoint as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), &mut result__).from_abi::<CIE4ConnectionPoint>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn OnTranslateAccelerator(&self, pmsg: *const super::WindowsAndMessaging::MSG, grfmodifiers: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pmsg), ::core::mem::transmute(grfmodifiers)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn OnInvoke(&self, dispidmember: i32, iid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(iid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } } unsafe impl ::windows::core::Interface for IExpDispSupportXP { type Vtable = IExpDispSupportXP_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2f0dd58c_f789_4f14_99fb_9293b3c9c212); } impl ::core::convert::From<IExpDispSupportXP> for ::windows::core::IUnknown { fn from(value: IExpDispSupportXP) -> Self { value.0 } } impl ::core::convert::From<&IExpDispSupportXP> for ::windows::core::IUnknown { fn from(value: &IExpDispSupportXP) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IExpDispSupportXP { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IExpDispSupportXP { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IExpDispSupportXP_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, riid: *const ::windows::core::GUID, ppccp: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmsg: *const super::WindowsAndMessaging::MSG, grfmodifiers: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, iid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IExplorerBrowser(pub ::windows::core::IUnknown); impl IExplorerBrowser { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Initialize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndparent: Param0, prc: *const super::super::Foundation::RECT, pfs: *const FOLDERSETTINGS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwndparent.into_param().abi(), ::core::mem::transmute(prc), ::core::mem::transmute(pfs)).ok() } pub unsafe fn Destroy(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetRect<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::RECT>>(&self, phdwp: *mut isize, rcbrowser: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(phdwp), rcbrowser.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetPropertyBag<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszpropertybag: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pszpropertybag.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetEmptyText<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszemptytext: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pszemptytext.into_param().abi()).ok() } pub unsafe fn SetFolderSettings(&self, pfs: *const FOLDERSETTINGS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(pfs)).ok() } pub unsafe fn Advise<'a, Param0: ::windows::core::IntoParam<'a, IExplorerBrowserEvents>>(&self, psbe: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), psbe.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwcookie)).ok() } pub unsafe fn SetOptions(&self, dwflag: EXPLORER_BROWSER_OPTIONS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflag)).ok() } pub unsafe fn GetOptions(&self) -> ::windows::core::Result<EXPLORER_BROWSER_OPTIONS> { let mut result__: <EXPLORER_BROWSER_OPTIONS as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<EXPLORER_BROWSER_OPTIONS>(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn BrowseToIDList(&self, pidl: *const Common::ITEMIDLIST, uflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(uflags)).ok() } pub unsafe fn BrowseToObject<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punk: Param0, uflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), punk.into_param().abi(), ::core::mem::transmute(uflags)).ok() } pub unsafe fn FillFromObject<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punk: Param0, dwflags: EXPLORER_BROWSER_FILL_FLAGS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), punk.into_param().abi(), ::core::mem::transmute(dwflags)).ok() } pub unsafe fn RemoveAll(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GetCurrentView<T: ::windows::core::Interface>(&self) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } } unsafe impl ::windows::core::Interface for IExplorerBrowser { type Vtable = IExplorerBrowser_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdfd3b6b5_c10c_4be9_85f6_a66969f402f6); } impl ::core::convert::From<IExplorerBrowser> for ::windows::core::IUnknown { fn from(value: IExplorerBrowser) -> Self { value.0 } } impl ::core::convert::From<&IExplorerBrowser> for ::windows::core::IUnknown { fn from(value: &IExplorerBrowser) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IExplorerBrowser { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IExplorerBrowser { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IExplorerBrowser_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndparent: super::super::Foundation::HWND, prc: *const super::super::Foundation::RECT, pfs: *const FOLDERSETTINGS) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phdwp: *mut isize, rcbrowser: super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszpropertybag: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszemptytext: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfs: *const FOLDERSETTINGS) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psbe: ::windows::core::RawPtr, pdwcookie: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwcookie: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflag: EXPLORER_BROWSER_OPTIONS) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwflag: *mut EXPLORER_BROWSER_OPTIONS) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, uflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punk: ::windows::core::RawPtr, uflags: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punk: ::windows::core::RawPtr, dwflags: EXPLORER_BROWSER_FILL_FLAGS) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IExplorerBrowserEvents(pub ::windows::core::IUnknown); impl IExplorerBrowserEvents { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn OnNavigationPending(&self, pidlfolder: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidlfolder)).ok() } pub unsafe fn OnViewCreated<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, psv: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), psv.into_param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn OnNavigationComplete(&self, pidlfolder: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidlfolder)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn OnNavigationFailed(&self, pidlfolder: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidlfolder)).ok() } } unsafe impl ::windows::core::Interface for IExplorerBrowserEvents { type Vtable = IExplorerBrowserEvents_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x361bbdc7_e6ee_4e13_be58_58e2240c810f); } impl ::core::convert::From<IExplorerBrowserEvents> for ::windows::core::IUnknown { fn from(value: IExplorerBrowserEvents) -> Self { value.0 } } impl ::core::convert::From<&IExplorerBrowserEvents> for ::windows::core::IUnknown { fn from(value: &IExplorerBrowserEvents) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IExplorerBrowserEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IExplorerBrowserEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IExplorerBrowserEvents_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, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidlfolder: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psv: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidlfolder: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidlfolder: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IExplorerCommand(pub ::windows::core::IUnknown); impl IExplorerCommand { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetTitle<'a, Param0: ::windows::core::IntoParam<'a, IShellItemArray>>(&self, psiitemarray: Param0) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psiitemarray.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIcon<'a, Param0: ::windows::core::IntoParam<'a, IShellItemArray>>(&self, psiitemarray: Param0) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), psiitemarray.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetToolTip<'a, Param0: ::windows::core::IntoParam<'a, IShellItemArray>>(&self, psiitemarray: Param0) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), psiitemarray.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } pub unsafe fn GetCanonicalName(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__: <::windows::core::GUID as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<::windows::core::GUID>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetState<'a, Param0: ::windows::core::IntoParam<'a, IShellItemArray>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, psiitemarray: Param0, foktobeslow: Param1) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), psiitemarray.into_param().abi(), foktobeslow.into_param().abi(), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Invoke<'a, Param0: ::windows::core::IntoParam<'a, IShellItemArray>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>>(&self, psiitemarray: Param0, pbc: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), psiitemarray.into_param().abi(), pbc.into_param().abi()).ok() } pub unsafe fn GetFlags(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn EnumSubCommands(&self) -> ::windows::core::Result<IEnumExplorerCommand> { let mut result__: <IEnumExplorerCommand as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IEnumExplorerCommand>(result__) } } unsafe impl ::windows::core::Interface for IExplorerCommand { type Vtable = IExplorerCommand_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa08ce4d0_fa25_44ab_b57c_c7b1c323e0b9); } impl ::core::convert::From<IExplorerCommand> for ::windows::core::IUnknown { fn from(value: IExplorerCommand) -> Self { value.0 } } impl ::core::convert::From<&IExplorerCommand> for ::windows::core::IUnknown { fn from(value: &IExplorerCommand) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IExplorerCommand { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IExplorerCommand { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IExplorerCommand_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiitemarray: ::windows::core::RawPtr, ppszname: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiitemarray: ::windows::core::RawPtr, ppszicon: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiitemarray: ::windows::core::RawPtr, ppszinfotip: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pguidcommandname: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiitemarray: ::windows::core::RawPtr, foktobeslow: super::super::Foundation::BOOL, pcmdstate: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiitemarray: ::windows::core::RawPtr, pbc: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pflags: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IExplorerCommandProvider(pub ::windows::core::IUnknown); impl IExplorerCommandProvider { pub unsafe fn GetCommands<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, T: ::windows::core::Interface>(&self, punksite: Param0) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), punksite.into_param().abi(), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } pub unsafe fn GetCommand<T: ::windows::core::Interface>(&self, rguidcommandid: *const ::windows::core::GUID) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(rguidcommandid), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } } unsafe impl ::windows::core::Interface for IExplorerCommandProvider { type Vtable = IExplorerCommandProvider_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x64961751_0835_43c0_8ffe_d57686530e64); } impl ::core::convert::From<IExplorerCommandProvider> for ::windows::core::IUnknown { fn from(value: IExplorerCommandProvider) -> Self { value.0 } } impl ::core::convert::From<&IExplorerCommandProvider> for ::windows::core::IUnknown { fn from(value: &IExplorerCommandProvider) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IExplorerCommandProvider { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IExplorerCommandProvider { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IExplorerCommandProvider_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, punksite: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rguidcommandid: *const ::windows::core::GUID, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IExplorerCommandState(pub ::windows::core::IUnknown); impl IExplorerCommandState { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetState<'a, Param0: ::windows::core::IntoParam<'a, IShellItemArray>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, psiitemarray: Param0, foktobeslow: Param1) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psiitemarray.into_param().abi(), foktobeslow.into_param().abi(), &mut result__).from_abi::<u32>(result__) } } unsafe impl ::windows::core::Interface for IExplorerCommandState { type Vtable = IExplorerCommandState_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbddacb60_7657_47ae_8445_d23e1acf82ae); } impl ::core::convert::From<IExplorerCommandState> for ::windows::core::IUnknown { fn from(value: IExplorerCommandState) -> Self { value.0 } } impl ::core::convert::From<&IExplorerCommandState> for ::windows::core::IUnknown { fn from(value: &IExplorerCommandState) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IExplorerCommandState { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IExplorerCommandState { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IExplorerCommandState_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiitemarray: ::windows::core::RawPtr, foktobeslow: super::super::Foundation::BOOL, pcmdstate: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IExplorerPaneVisibility(pub ::windows::core::IUnknown); impl IExplorerPaneVisibility { pub unsafe fn GetPaneState(&self, ep: *const ::windows::core::GUID) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(ep), &mut result__).from_abi::<u32>(result__) } } unsafe impl ::windows::core::Interface for IExplorerPaneVisibility { type Vtable = IExplorerPaneVisibility_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe07010ec_bc17_44c0_97b0_46c7c95b9edc); } impl ::core::convert::From<IExplorerPaneVisibility> for ::windows::core::IUnknown { fn from(value: IExplorerPaneVisibility) -> Self { value.0 } } impl ::core::convert::From<&IExplorerPaneVisibility> for ::windows::core::IUnknown { fn from(value: &IExplorerPaneVisibility) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IExplorerPaneVisibility { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IExplorerPaneVisibility { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IExplorerPaneVisibility_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, ep: *const ::windows::core::GUID, peps: *mut u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IExtensionServices(pub ::windows::core::IUnknown); impl IExtensionServices { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetAdditionalHeaders<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwzadditionalheaders: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pwzadditionalheaders.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetAuthenticateData<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, phwnd: Param0, pwzusername: Param1, pwzpassword: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), phwnd.into_param().abi(), pwzusername.into_param().abi(), pwzpassword.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IExtensionServices { type Vtable = IExtensionServices_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x79eac9cb_baf9_11ce_8c82_00aa004ba90b); } impl ::core::convert::From<IExtensionServices> for ::windows::core::IUnknown { fn from(value: IExtensionServices) -> Self { value.0 } } impl ::core::convert::From<&IExtensionServices> for ::windows::core::IUnknown { fn from(value: &IExtensionServices) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IExtensionServices { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IExtensionServices { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IExtensionServices_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pwzadditionalheaders: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phwnd: super::super::Foundation::HWND, pwzusername: super::super::Foundation::PWSTR, pwzpassword: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IExtractIconA(pub ::windows::core::IUnknown); impl IExtractIconA { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIconLocation(&self, uflags: u32, psziconfile: super::super::Foundation::PSTR, cchmax: u32, piindex: *mut i32, pwflags: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(uflags), ::core::mem::transmute(psziconfile), ::core::mem::transmute(cchmax), ::core::mem::transmute(piindex), ::core::mem::transmute(pwflags)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn Extract<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(&self, pszfile: Param0, niconindex: u32, phiconlarge: *mut super::WindowsAndMessaging::HICON, phiconsmall: *mut super::WindowsAndMessaging::HICON, niconsize: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pszfile.into_param().abi(), ::core::mem::transmute(niconindex), ::core::mem::transmute(phiconlarge), ::core::mem::transmute(phiconsmall), ::core::mem::transmute(niconsize)).ok() } } unsafe impl ::windows::core::Interface for IExtractIconA { type Vtable = IExtractIconA_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214eb_0000_0000_c000_000000000046); } impl ::core::convert::From<IExtractIconA> for ::windows::core::IUnknown { fn from(value: IExtractIconA) -> Self { value.0 } } impl ::core::convert::From<&IExtractIconA> for ::windows::core::IUnknown { fn from(value: &IExtractIconA) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IExtractIconA { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IExtractIconA { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IExtractIconA_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uflags: u32, psziconfile: super::super::Foundation::PSTR, cchmax: u32, piindex: *mut i32, pwflags: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszfile: super::super::Foundation::PSTR, niconindex: u32, phiconlarge: *mut super::WindowsAndMessaging::HICON, phiconsmall: *mut super::WindowsAndMessaging::HICON, niconsize: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IExtractIconW(pub ::windows::core::IUnknown); impl IExtractIconW { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIconLocation(&self, uflags: u32, psziconfile: super::super::Foundation::PWSTR, cchmax: u32, piindex: *mut i32, pwflags: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(uflags), ::core::mem::transmute(psziconfile), ::core::mem::transmute(cchmax), ::core::mem::transmute(piindex), ::core::mem::transmute(pwflags)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn Extract<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszfile: Param0, niconindex: u32, phiconlarge: *mut super::WindowsAndMessaging::HICON, phiconsmall: *mut super::WindowsAndMessaging::HICON, niconsize: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pszfile.into_param().abi(), ::core::mem::transmute(niconindex), ::core::mem::transmute(phiconlarge), ::core::mem::transmute(phiconsmall), ::core::mem::transmute(niconsize)).ok() } } unsafe impl ::windows::core::Interface for IExtractIconW { type Vtable = IExtractIconW_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214fa_0000_0000_c000_000000000046); } impl ::core::convert::From<IExtractIconW> for ::windows::core::IUnknown { fn from(value: IExtractIconW) -> Self { value.0 } } impl ::core::convert::From<&IExtractIconW> for ::windows::core::IUnknown { fn from(value: &IExtractIconW) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IExtractIconW { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IExtractIconW { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IExtractIconW_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uflags: u32, psziconfile: super::super::Foundation::PWSTR, cchmax: u32, piindex: *mut i32, pwflags: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszfile: super::super::Foundation::PWSTR, niconindex: u32, phiconlarge: *mut super::WindowsAndMessaging::HICON, phiconsmall: *mut super::WindowsAndMessaging::HICON, niconsize: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IExtractImage(pub ::windows::core::IUnknown); impl IExtractImage { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetLocation(&self, pszpathbuffer: super::super::Foundation::PWSTR, cch: u32, pdwpriority: *mut u32, prgsize: *const super::super::Foundation::SIZE, dwrecclrdepth: u32, pdwflags: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszpathbuffer), ::core::mem::transmute(cch), ::core::mem::transmute(pdwpriority), ::core::mem::transmute(prgsize), ::core::mem::transmute(dwrecclrdepth), ::core::mem::transmute(pdwflags)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Extract(&self) -> ::windows::core::Result<super::super::Graphics::Gdi::HBITMAP> { let mut result__: <super::super::Graphics::Gdi::HBITMAP as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Graphics::Gdi::HBITMAP>(result__) } } unsafe impl ::windows::core::Interface for IExtractImage { type Vtable = IExtractImage_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbb2e617c_0920_11d1_9a0b_00c04fc2d6c1); } impl ::core::convert::From<IExtractImage> for ::windows::core::IUnknown { fn from(value: IExtractImage) -> Self { value.0 } } impl ::core::convert::From<&IExtractImage> for ::windows::core::IUnknown { fn from(value: &IExtractImage) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IExtractImage { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IExtractImage { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IExtractImage_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszpathbuffer: super::super::Foundation::PWSTR, cch: u32, pdwpriority: *mut u32, prgsize: *const super::super::Foundation::SIZE, dwrecclrdepth: u32, pdwflags: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phbmpthumbnail: *mut super::super::Graphics::Gdi::HBITMAP) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IExtractImage2(pub ::windows::core::IUnknown); impl IExtractImage2 { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetLocation(&self, pszpathbuffer: super::super::Foundation::PWSTR, cch: u32, pdwpriority: *mut u32, prgsize: *const super::super::Foundation::SIZE, dwrecclrdepth: u32, pdwflags: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszpathbuffer), ::core::mem::transmute(cch), ::core::mem::transmute(pdwpriority), ::core::mem::transmute(prgsize), ::core::mem::transmute(dwrecclrdepth), ::core::mem::transmute(pdwflags)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Extract(&self) -> ::windows::core::Result<super::super::Graphics::Gdi::HBITMAP> { let mut result__: <super::super::Graphics::Gdi::HBITMAP as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Graphics::Gdi::HBITMAP>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDateStamp(&self) -> ::windows::core::Result<super::super::Foundation::FILETIME> { let mut result__: <super::super::Foundation::FILETIME as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::FILETIME>(result__) } } unsafe impl ::windows::core::Interface for IExtractImage2 { type Vtable = IExtractImage2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x953bb1ee_93b4_11d1_98a3_00c04fb687da); } impl ::core::convert::From<IExtractImage2> for ::windows::core::IUnknown { fn from(value: IExtractImage2) -> Self { value.0 } } impl ::core::convert::From<&IExtractImage2> for ::windows::core::IUnknown { fn from(value: &IExtractImage2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IExtractImage2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IExtractImage2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IExtractImage2> for IExtractImage { fn from(value: IExtractImage2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IExtractImage2> for IExtractImage { fn from(value: &IExtractImage2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IExtractImage> for IExtractImage2 { fn into_param(self) -> ::windows::core::Param<'a, IExtractImage> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IExtractImage> for &IExtractImage2 { fn into_param(self) -> ::windows::core::Param<'a, IExtractImage> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IExtractImage2_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszpathbuffer: super::super::Foundation::PWSTR, cch: u32, pdwpriority: *mut u32, prgsize: *const super::super::Foundation::SIZE, dwrecclrdepth: u32, pdwflags: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phbmpthumbnail: *mut super::super::Graphics::Gdi::HBITMAP) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdatestamp: *mut super::super::Foundation::FILETIME) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFileDialog(pub ::windows::core::IUnknown); impl IFileDialog { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Show<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndowner: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwndowner.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn SetFileTypes(&self, cfiletypes: u32, rgfilterspec: *const Common::COMDLG_FILTERSPEC) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(cfiletypes), ::core::mem::transmute(rgfilterspec)).ok() } pub unsafe fn SetFileTypeIndex(&self, ifiletype: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(ifiletype)).ok() } pub unsafe fn GetFileTypeIndex(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn Advise<'a, Param0: ::windows::core::IntoParam<'a, IFileDialogEvents>>(&self, pfde: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pfde.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwcookie)).ok() } pub unsafe fn SetOptions(&self, fos: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(fos)).ok() } pub unsafe fn GetOptions(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn SetDefaultFolder<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } pub unsafe fn SetFolder<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } pub unsafe fn GetFolder(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } pub unsafe fn GetCurrentSelection(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetFileName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), pszname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetFileName(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetTitle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psztitle: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), psztitle.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetOkButtonLabel<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psztext: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), psztext.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetFileNameLabel<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszlabel: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), pszlabel.into_param().abi()).ok() } pub unsafe fn GetResult(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } pub unsafe fn AddPlace<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, fdap: FDAP) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(fdap)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetDefaultExtension<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszdefaultextension: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), pszdefaultextension.into_param().abi()).ok() } pub unsafe fn Close(&self, hr: ::windows::core::HRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(hr)).ok() } pub unsafe fn SetClientGuid(&self, guid: *const ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), ::core::mem::transmute(guid)).ok() } pub unsafe fn ClearClientData(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetFilter<'a, Param0: ::windows::core::IntoParam<'a, IShellItemFilter>>(&self, pfilter: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), pfilter.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IFileDialog { type Vtable = IFileDialog_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x42f85136_db7e_439c_85f1_e4075d135fc8); } impl ::core::convert::From<IFileDialog> for ::windows::core::IUnknown { fn from(value: IFileDialog) -> Self { value.0 } } impl ::core::convert::From<&IFileDialog> for ::windows::core::IUnknown { fn from(value: &IFileDialog) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFileDialog { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFileDialog { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IFileDialog> for IModalWindow { fn from(value: IFileDialog) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IFileDialog> for IModalWindow { fn from(value: &IFileDialog) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IModalWindow> for IFileDialog { fn into_param(self) -> ::windows::core::Param<'a, IModalWindow> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IModalWindow> for &IFileDialog { fn into_param(self) -> ::windows::core::Param<'a, IModalWindow> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IFileDialog_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndowner: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, cfiletypes: u32, rgfilterspec: *const Common::COMDLG_FILTERSPEC) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ifiletype: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pifiletype: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfde: ::windows::core::RawPtr, pdwcookie: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwcookie: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fos: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfos: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psztitle: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psztext: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszlabel: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, fdap: FDAP) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszdefaultextension: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hr: ::windows::core::HRESULT) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, guid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfilter: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFileDialog2(pub ::windows::core::IUnknown); impl IFileDialog2 { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Show<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndowner: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwndowner.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn SetFileTypes(&self, cfiletypes: u32, rgfilterspec: *const Common::COMDLG_FILTERSPEC) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(cfiletypes), ::core::mem::transmute(rgfilterspec)).ok() } pub unsafe fn SetFileTypeIndex(&self, ifiletype: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(ifiletype)).ok() } pub unsafe fn GetFileTypeIndex(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn Advise<'a, Param0: ::windows::core::IntoParam<'a, IFileDialogEvents>>(&self, pfde: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pfde.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwcookie)).ok() } pub unsafe fn SetOptions(&self, fos: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(fos)).ok() } pub unsafe fn GetOptions(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn SetDefaultFolder<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } pub unsafe fn SetFolder<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } pub unsafe fn GetFolder(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } pub unsafe fn GetCurrentSelection(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetFileName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), pszname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetFileName(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetTitle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psztitle: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), psztitle.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetOkButtonLabel<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psztext: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), psztext.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetFileNameLabel<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszlabel: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), pszlabel.into_param().abi()).ok() } pub unsafe fn GetResult(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } pub unsafe fn AddPlace<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, fdap: FDAP) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(fdap)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetDefaultExtension<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszdefaultextension: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), pszdefaultextension.into_param().abi()).ok() } pub unsafe fn Close(&self, hr: ::windows::core::HRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(hr)).ok() } pub unsafe fn SetClientGuid(&self, guid: *const ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), ::core::mem::transmute(guid)).ok() } pub unsafe fn ClearClientData(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetFilter<'a, Param0: ::windows::core::IntoParam<'a, IShellItemFilter>>(&self, pfilter: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), pfilter.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetCancelButtonLabel<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszlabel: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self), pszlabel.into_param().abi()).ok() } pub unsafe fn SetNavigationRoot<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IFileDialog2 { type Vtable = IFileDialog2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x61744fc7_85b5_4791_a9b0_272276309b13); } impl ::core::convert::From<IFileDialog2> for ::windows::core::IUnknown { fn from(value: IFileDialog2) -> Self { value.0 } } impl ::core::convert::From<&IFileDialog2> for ::windows::core::IUnknown { fn from(value: &IFileDialog2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFileDialog2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFileDialog2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IFileDialog2> for IFileDialog { fn from(value: IFileDialog2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IFileDialog2> for IFileDialog { fn from(value: &IFileDialog2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IFileDialog> for IFileDialog2 { fn into_param(self) -> ::windows::core::Param<'a, IFileDialog> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IFileDialog> for &IFileDialog2 { fn into_param(self) -> ::windows::core::Param<'a, IFileDialog> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IFileDialog2> for IModalWindow { fn from(value: IFileDialog2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IFileDialog2> for IModalWindow { fn from(value: &IFileDialog2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IModalWindow> for IFileDialog2 { fn into_param(self) -> ::windows::core::Param<'a, IModalWindow> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IModalWindow> for &IFileDialog2 { fn into_param(self) -> ::windows::core::Param<'a, IModalWindow> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IFileDialog2_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndowner: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, cfiletypes: u32, rgfilterspec: *const Common::COMDLG_FILTERSPEC) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ifiletype: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pifiletype: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfde: ::windows::core::RawPtr, pdwcookie: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwcookie: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fos: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfos: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psztitle: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psztext: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszlabel: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, fdap: FDAP) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszdefaultextension: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hr: ::windows::core::HRESULT) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, guid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfilter: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszlabel: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFileDialogControlEvents(pub ::windows::core::IUnknown); impl IFileDialogControlEvents { pub unsafe fn OnItemSelected<'a, Param0: ::windows::core::IntoParam<'a, IFileDialogCustomize>>(&self, pfdc: Param0, dwidctl: u32, dwiditem: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pfdc.into_param().abi(), ::core::mem::transmute(dwidctl), ::core::mem::transmute(dwiditem)).ok() } pub unsafe fn OnButtonClicked<'a, Param0: ::windows::core::IntoParam<'a, IFileDialogCustomize>>(&self, pfdc: Param0, dwidctl: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pfdc.into_param().abi(), ::core::mem::transmute(dwidctl)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnCheckButtonToggled<'a, Param0: ::windows::core::IntoParam<'a, IFileDialogCustomize>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, pfdc: Param0, dwidctl: u32, bchecked: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), pfdc.into_param().abi(), ::core::mem::transmute(dwidctl), bchecked.into_param().abi()).ok() } pub unsafe fn OnControlActivating<'a, Param0: ::windows::core::IntoParam<'a, IFileDialogCustomize>>(&self, pfdc: Param0, dwidctl: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pfdc.into_param().abi(), ::core::mem::transmute(dwidctl)).ok() } } unsafe impl ::windows::core::Interface for IFileDialogControlEvents { type Vtable = IFileDialogControlEvents_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x36116642_d713_4b97_9b83_7484a9d00433); } impl ::core::convert::From<IFileDialogControlEvents> for ::windows::core::IUnknown { fn from(value: IFileDialogControlEvents) -> Self { value.0 } } impl ::core::convert::From<&IFileDialogControlEvents> for ::windows::core::IUnknown { fn from(value: &IFileDialogControlEvents) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFileDialogControlEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFileDialogControlEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IFileDialogControlEvents_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, pfdc: ::windows::core::RawPtr, dwidctl: u32, dwiditem: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfdc: ::windows::core::RawPtr, dwidctl: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfdc: ::windows::core::RawPtr, dwidctl: u32, bchecked: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfdc: ::windows::core::RawPtr, dwidctl: u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFileDialogCustomize(pub ::windows::core::IUnknown); impl IFileDialogCustomize { pub unsafe fn EnableOpenDropDown(&self, dwidctl: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddMenu<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, dwidctl: u32, pszlabel: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl), pszlabel.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddPushButton<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, dwidctl: u32, pszlabel: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl), pszlabel.into_param().abi()).ok() } pub unsafe fn AddComboBox(&self, dwidctl: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl)).ok() } pub unsafe fn AddRadioButtonList(&self, dwidctl: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddCheckButton<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, dwidctl: u32, pszlabel: Param1, bchecked: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl), pszlabel.into_param().abi(), bchecked.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddEditBox<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, dwidctl: u32, psztext: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl), psztext.into_param().abi()).ok() } pub unsafe fn AddSeparator(&self, dwidctl: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddText<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, dwidctl: u32, psztext: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl), psztext.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetControlLabel<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, dwidctl: u32, pszlabel: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl), pszlabel.into_param().abi()).ok() } pub unsafe fn GetControlState(&self, dwidctl: u32) -> ::windows::core::Result<CDCONTROLSTATEF> { let mut result__: <CDCONTROLSTATEF as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl), &mut result__).from_abi::<CDCONTROLSTATEF>(result__) } pub unsafe fn SetControlState(&self, dwidctl: u32, dwstate: CDCONTROLSTATEF) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl), ::core::mem::transmute(dwstate)).ok() } pub unsafe fn GetEditBoxText(&self, dwidctl: u32) -> ::windows::core::Result<*mut u16> { let mut result__: <*mut u16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl), &mut result__).from_abi::<*mut u16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetEditBoxText<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, dwidctl: u32, psztext: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl), psztext.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCheckButtonState(&self, dwidctl: u32) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetCheckButtonState<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, dwidctl: u32, bchecked: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl), bchecked.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddControlItem<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, dwidctl: u32, dwiditem: u32, pszlabel: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl), ::core::mem::transmute(dwiditem), pszlabel.into_param().abi()).ok() } pub unsafe fn RemoveControlItem(&self, dwidctl: u32, dwiditem: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl), ::core::mem::transmute(dwiditem)).ok() } pub unsafe fn RemoveAllControlItems(&self, dwidctl: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl)).ok() } pub unsafe fn GetControlItemState(&self, dwidctl: u32, dwiditem: u32) -> ::windows::core::Result<CDCONTROLSTATEF> { let mut result__: <CDCONTROLSTATEF as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl), ::core::mem::transmute(dwiditem), &mut result__).from_abi::<CDCONTROLSTATEF>(result__) } pub unsafe fn SetControlItemState(&self, dwidctl: u32, dwiditem: u32, dwstate: CDCONTROLSTATEF) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl), ::core::mem::transmute(dwiditem), ::core::mem::transmute(dwstate)).ok() } pub unsafe fn GetSelectedControlItem(&self, dwidctl: u32) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl), &mut result__).from_abi::<u32>(result__) } pub unsafe fn SetSelectedControlItem(&self, dwidctl: u32, dwiditem: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl), ::core::mem::transmute(dwiditem)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn StartVisualGroup<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, dwidctl: u32, pszlabel: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl), pszlabel.into_param().abi()).ok() } pub unsafe fn EndVisualGroup(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn MakeProminent(&self, dwidctl: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetControlItemText<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, dwidctl: u32, dwiditem: u32, pszlabel: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwidctl), ::core::mem::transmute(dwiditem), pszlabel.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IFileDialogCustomize { type Vtable = IFileDialogCustomize_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe6fdd21a_163f_4975_9c8c_a69f1ba37034); } impl ::core::convert::From<IFileDialogCustomize> for ::windows::core::IUnknown { fn from(value: IFileDialogCustomize) -> Self { value.0 } } impl ::core::convert::From<&IFileDialogCustomize> for ::windows::core::IUnknown { fn from(value: &IFileDialogCustomize) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFileDialogCustomize { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFileDialogCustomize { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IFileDialogCustomize_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, dwidctl: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32, pszlabel: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32, pszlabel: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32, pszlabel: super::super::Foundation::PWSTR, bchecked: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32, psztext: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32, psztext: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32, pszlabel: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32, pdwstate: *mut CDCONTROLSTATEF) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32, dwstate: CDCONTROLSTATEF) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32, ppsztext: *mut *mut u16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32, psztext: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32, pbchecked: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32, bchecked: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32, dwiditem: u32, pszlabel: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32, dwiditem: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32, dwiditem: u32, pdwstate: *mut CDCONTROLSTATEF) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32, dwiditem: u32, dwstate: CDCONTROLSTATEF) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32, pdwiditem: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32, dwiditem: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32, pszlabel: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwidctl: u32, dwiditem: u32, pszlabel: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFileDialogEvents(pub ::windows::core::IUnknown); impl IFileDialogEvents { pub unsafe fn OnFileOk<'a, Param0: ::windows::core::IntoParam<'a, IFileDialog>>(&self, pfd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pfd.into_param().abi()).ok() } pub unsafe fn OnFolderChanging<'a, Param0: ::windows::core::IntoParam<'a, IFileDialog>, Param1: ::windows::core::IntoParam<'a, IShellItem>>(&self, pfd: Param0, psifolder: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pfd.into_param().abi(), psifolder.into_param().abi()).ok() } pub unsafe fn OnFolderChange<'a, Param0: ::windows::core::IntoParam<'a, IFileDialog>>(&self, pfd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), pfd.into_param().abi()).ok() } pub unsafe fn OnSelectionChange<'a, Param0: ::windows::core::IntoParam<'a, IFileDialog>>(&self, pfd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pfd.into_param().abi()).ok() } pub unsafe fn OnShareViolation<'a, Param0: ::windows::core::IntoParam<'a, IFileDialog>, Param1: ::windows::core::IntoParam<'a, IShellItem>>(&self, pfd: Param0, psi: Param1) -> ::windows::core::Result<FDE_SHAREVIOLATION_RESPONSE> { let mut result__: <FDE_SHAREVIOLATION_RESPONSE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pfd.into_param().abi(), psi.into_param().abi(), &mut result__).from_abi::<FDE_SHAREVIOLATION_RESPONSE>(result__) } pub unsafe fn OnTypeChange<'a, Param0: ::windows::core::IntoParam<'a, IFileDialog>>(&self, pfd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), pfd.into_param().abi()).ok() } pub unsafe fn OnOverwrite<'a, Param0: ::windows::core::IntoParam<'a, IFileDialog>, Param1: ::windows::core::IntoParam<'a, IShellItem>>(&self, pfd: Param0, psi: Param1) -> ::windows::core::Result<FDE_OVERWRITE_RESPONSE> { let mut result__: <FDE_OVERWRITE_RESPONSE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), pfd.into_param().abi(), psi.into_param().abi(), &mut result__).from_abi::<FDE_OVERWRITE_RESPONSE>(result__) } } unsafe impl ::windows::core::Interface for IFileDialogEvents { type Vtable = IFileDialogEvents_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x973510db_7d7f_452b_8975_74a85828d354); } impl ::core::convert::From<IFileDialogEvents> for ::windows::core::IUnknown { fn from(value: IFileDialogEvents) -> Self { value.0 } } impl ::core::convert::From<&IFileDialogEvents> for ::windows::core::IUnknown { fn from(value: &IFileDialogEvents) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFileDialogEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFileDialogEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IFileDialogEvents_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, pfd: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfd: ::windows::core::RawPtr, psifolder: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfd: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfd: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfd: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, presponse: *mut FDE_SHAREVIOLATION_RESPONSE) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfd: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfd: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, presponse: *mut FDE_OVERWRITE_RESPONSE) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFileIsInUse(pub ::windows::core::IUnknown); impl IFileIsInUse { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetAppName(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } pub unsafe fn GetUsage(&self) -> ::windows::core::Result<FILE_USAGE_TYPE> { let mut result__: <FILE_USAGE_TYPE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<FILE_USAGE_TYPE>(result__) } pub unsafe fn GetCapabilities(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSwitchToHWND(&self) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } pub unsafe fn CloseFile(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IFileIsInUse { type Vtable = IFileIsInUse_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x64a1cbf0_3a1a_4461_9158_376969693950); } impl ::core::convert::From<IFileIsInUse> for ::windows::core::IUnknown { fn from(value: IFileIsInUse) -> Self { value.0 } } impl ::core::convert::From<&IFileIsInUse> for ::windows::core::IUnknown { fn from(value: &IFileIsInUse) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFileIsInUse { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFileIsInUse { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IFileIsInUse_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppszname: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfut: *mut FILE_USAGE_TYPE) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwcapflags: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFileOpenDialog(pub ::windows::core::IUnknown); impl IFileOpenDialog { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Show<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndowner: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwndowner.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn SetFileTypes(&self, cfiletypes: u32, rgfilterspec: *const Common::COMDLG_FILTERSPEC) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(cfiletypes), ::core::mem::transmute(rgfilterspec)).ok() } pub unsafe fn SetFileTypeIndex(&self, ifiletype: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(ifiletype)).ok() } pub unsafe fn GetFileTypeIndex(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn Advise<'a, Param0: ::windows::core::IntoParam<'a, IFileDialogEvents>>(&self, pfde: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pfde.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwcookie)).ok() } pub unsafe fn SetOptions(&self, fos: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(fos)).ok() } pub unsafe fn GetOptions(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn SetDefaultFolder<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } pub unsafe fn SetFolder<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } pub unsafe fn GetFolder(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } pub unsafe fn GetCurrentSelection(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetFileName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), pszname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetFileName(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetTitle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psztitle: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), psztitle.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetOkButtonLabel<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psztext: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), psztext.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetFileNameLabel<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszlabel: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), pszlabel.into_param().abi()).ok() } pub unsafe fn GetResult(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } pub unsafe fn AddPlace<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, fdap: FDAP) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(fdap)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetDefaultExtension<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszdefaultextension: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), pszdefaultextension.into_param().abi()).ok() } pub unsafe fn Close(&self, hr: ::windows::core::HRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(hr)).ok() } pub unsafe fn SetClientGuid(&self, guid: *const ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), ::core::mem::transmute(guid)).ok() } pub unsafe fn ClearClientData(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetFilter<'a, Param0: ::windows::core::IntoParam<'a, IShellItemFilter>>(&self, pfilter: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), pfilter.into_param().abi()).ok() } pub unsafe fn GetResults(&self) -> ::windows::core::Result<IShellItemArray> { let mut result__: <IShellItemArray as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItemArray>(result__) } pub unsafe fn GetSelectedItems(&self) -> ::windows::core::Result<IShellItemArray> { let mut result__: <IShellItemArray as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItemArray>(result__) } } unsafe impl ::windows::core::Interface for IFileOpenDialog { type Vtable = IFileOpenDialog_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd57c7288_d4ad_4768_be02_9d969532d960); } impl ::core::convert::From<IFileOpenDialog> for ::windows::core::IUnknown { fn from(value: IFileOpenDialog) -> Self { value.0 } } impl ::core::convert::From<&IFileOpenDialog> for ::windows::core::IUnknown { fn from(value: &IFileOpenDialog) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFileOpenDialog { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFileOpenDialog { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IFileOpenDialog> for IFileDialog { fn from(value: IFileOpenDialog) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IFileOpenDialog> for IFileDialog { fn from(value: &IFileOpenDialog) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IFileDialog> for IFileOpenDialog { fn into_param(self) -> ::windows::core::Param<'a, IFileDialog> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IFileDialog> for &IFileOpenDialog { fn into_param(self) -> ::windows::core::Param<'a, IFileDialog> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IFileOpenDialog> for IModalWindow { fn from(value: IFileOpenDialog) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IFileOpenDialog> for IModalWindow { fn from(value: &IFileOpenDialog) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IModalWindow> for IFileOpenDialog { fn into_param(self) -> ::windows::core::Param<'a, IModalWindow> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IModalWindow> for &IFileOpenDialog { fn into_param(self) -> ::windows::core::Param<'a, IModalWindow> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IFileOpenDialog_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndowner: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, cfiletypes: u32, rgfilterspec: *const Common::COMDLG_FILTERSPEC) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ifiletype: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pifiletype: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfde: ::windows::core::RawPtr, pdwcookie: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwcookie: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fos: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfos: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psztitle: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psztext: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszlabel: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, fdap: FDAP) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszdefaultextension: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hr: ::windows::core::HRESULT) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, guid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfilter: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsai: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFileOperation(pub ::windows::core::IUnknown); impl IFileOperation { pub unsafe fn Advise<'a, Param0: ::windows::core::IntoParam<'a, IFileOperationProgressSink>>(&self, pfops: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pfops.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwcookie)).ok() } pub unsafe fn SetOperationFlags(&self, dwoperationflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwoperationflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetProgressMessage<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszmessage: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pszmessage.into_param().abi()).ok() } pub unsafe fn SetProgressDialog<'a, Param0: ::windows::core::IntoParam<'a, IOperationsProgressDialog>>(&self, popd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), popd.into_param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetProperties<'a, Param0: ::windows::core::IntoParam<'a, PropertiesSystem::IPropertyChangeArray>>(&self, pproparray: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), pproparray.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetOwnerWindow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndowner: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), hwndowner.into_param().abi()).ok() } pub unsafe fn ApplyPropertiesToItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psiitem: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), psiitem.into_param().abi()).ok() } pub unsafe fn ApplyPropertiesToItems<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punkitems: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), punkitems.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn RenameItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, IFileOperationProgressSink>>(&self, psiitem: Param0, psznewname: Param1, pfopsitem: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), psiitem.into_param().abi(), psznewname.into_param().abi(), pfopsitem.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn RenameItems<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, punkitems: Param0, psznewname: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), punkitems.into_param().abi(), psznewname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn MoveItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, IShellItem>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, IFileOperationProgressSink>>(&self, psiitem: Param0, psidestinationfolder: Param1, psznewname: Param2, pfopsitem: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), psiitem.into_param().abi(), psidestinationfolder.into_param().abi(), psznewname.into_param().abi(), pfopsitem.into_param().abi()).ok() } pub unsafe fn MoveItems<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param1: ::windows::core::IntoParam<'a, IShellItem>>(&self, punkitems: Param0, psidestinationfolder: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), punkitems.into_param().abi(), psidestinationfolder.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CopyItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, IShellItem>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, IFileOperationProgressSink>>(&self, psiitem: Param0, psidestinationfolder: Param1, pszcopyname: Param2, pfopsitem: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), psiitem.into_param().abi(), psidestinationfolder.into_param().abi(), pszcopyname.into_param().abi(), pfopsitem.into_param().abi()).ok() } pub unsafe fn CopyItems<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param1: ::windows::core::IntoParam<'a, IShellItem>>(&self, punkitems: Param0, psidestinationfolder: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), punkitems.into_param().abi(), psidestinationfolder.into_param().abi()).ok() } pub unsafe fn DeleteItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, IFileOperationProgressSink>>(&self, psiitem: Param0, pfopsitem: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), psiitem.into_param().abi(), pfopsitem.into_param().abi()).ok() } pub unsafe fn DeleteItems<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punkitems: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), punkitems.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn NewItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param4: ::windows::core::IntoParam<'a, IFileOperationProgressSink>>(&self, psidestinationfolder: Param0, dwfileattributes: u32, pszname: Param2, psztemplatename: Param3, pfopsitem: Param4) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), psidestinationfolder.into_param().abi(), ::core::mem::transmute(dwfileattributes), pszname.into_param().abi(), psztemplatename.into_param().abi(), pfopsitem.into_param().abi()).ok() } pub unsafe fn PerformOperations(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetAnyOperationsAborted(&self) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } } unsafe impl ::windows::core::Interface for IFileOperation { type Vtable = IFileOperation_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x947aab5f_0a5c_4c13_b4d6_4bf7836fc9f8); } impl ::core::convert::From<IFileOperation> for ::windows::core::IUnknown { fn from(value: IFileOperation) -> Self { value.0 } } impl ::core::convert::From<&IFileOperation> for ::windows::core::IUnknown { fn from(value: &IFileOperation) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFileOperation { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFileOperation { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IFileOperation_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, pfops: ::windows::core::RawPtr, pdwcookie: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwcookie: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwoperationflags: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszmessage: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, popd: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pproparray: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndowner: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiitem: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punkitems: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiitem: ::windows::core::RawPtr, psznewname: super::super::Foundation::PWSTR, pfopsitem: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punkitems: ::windows::core::RawPtr, psznewname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiitem: ::windows::core::RawPtr, psidestinationfolder: ::windows::core::RawPtr, psznewname: super::super::Foundation::PWSTR, pfopsitem: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punkitems: ::windows::core::RawPtr, psidestinationfolder: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiitem: ::windows::core::RawPtr, psidestinationfolder: ::windows::core::RawPtr, pszcopyname: super::super::Foundation::PWSTR, pfopsitem: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punkitems: ::windows::core::RawPtr, psidestinationfolder: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiitem: ::windows::core::RawPtr, pfopsitem: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punkitems: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psidestinationfolder: ::windows::core::RawPtr, dwfileattributes: u32, pszname: super::super::Foundation::PWSTR, psztemplatename: super::super::Foundation::PWSTR, pfopsitem: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfanyoperationsaborted: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFileOperation2(pub ::windows::core::IUnknown); impl IFileOperation2 { pub unsafe fn Advise<'a, Param0: ::windows::core::IntoParam<'a, IFileOperationProgressSink>>(&self, pfops: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pfops.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwcookie)).ok() } pub unsafe fn SetOperationFlags(&self, dwoperationflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwoperationflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetProgressMessage<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszmessage: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pszmessage.into_param().abi()).ok() } pub unsafe fn SetProgressDialog<'a, Param0: ::windows::core::IntoParam<'a, IOperationsProgressDialog>>(&self, popd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), popd.into_param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetProperties<'a, Param0: ::windows::core::IntoParam<'a, PropertiesSystem::IPropertyChangeArray>>(&self, pproparray: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), pproparray.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetOwnerWindow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndowner: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), hwndowner.into_param().abi()).ok() } pub unsafe fn ApplyPropertiesToItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psiitem: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), psiitem.into_param().abi()).ok() } pub unsafe fn ApplyPropertiesToItems<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punkitems: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), punkitems.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn RenameItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, IFileOperationProgressSink>>(&self, psiitem: Param0, psznewname: Param1, pfopsitem: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), psiitem.into_param().abi(), psznewname.into_param().abi(), pfopsitem.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn RenameItems<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, punkitems: Param0, psznewname: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), punkitems.into_param().abi(), psznewname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn MoveItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, IShellItem>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, IFileOperationProgressSink>>(&self, psiitem: Param0, psidestinationfolder: Param1, psznewname: Param2, pfopsitem: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), psiitem.into_param().abi(), psidestinationfolder.into_param().abi(), psznewname.into_param().abi(), pfopsitem.into_param().abi()).ok() } pub unsafe fn MoveItems<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param1: ::windows::core::IntoParam<'a, IShellItem>>(&self, punkitems: Param0, psidestinationfolder: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), punkitems.into_param().abi(), psidestinationfolder.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CopyItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, IShellItem>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, IFileOperationProgressSink>>(&self, psiitem: Param0, psidestinationfolder: Param1, pszcopyname: Param2, pfopsitem: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), psiitem.into_param().abi(), psidestinationfolder.into_param().abi(), pszcopyname.into_param().abi(), pfopsitem.into_param().abi()).ok() } pub unsafe fn CopyItems<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param1: ::windows::core::IntoParam<'a, IShellItem>>(&self, punkitems: Param0, psidestinationfolder: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), punkitems.into_param().abi(), psidestinationfolder.into_param().abi()).ok() } pub unsafe fn DeleteItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, IFileOperationProgressSink>>(&self, psiitem: Param0, pfopsitem: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), psiitem.into_param().abi(), pfopsitem.into_param().abi()).ok() } pub unsafe fn DeleteItems<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punkitems: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), punkitems.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn NewItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param4: ::windows::core::IntoParam<'a, IFileOperationProgressSink>>(&self, psidestinationfolder: Param0, dwfileattributes: u32, pszname: Param2, psztemplatename: Param3, pfopsitem: Param4) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), psidestinationfolder.into_param().abi(), ::core::mem::transmute(dwfileattributes), pszname.into_param().abi(), psztemplatename.into_param().abi(), pfopsitem.into_param().abi()).ok() } pub unsafe fn PerformOperations(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetAnyOperationsAborted(&self) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } pub unsafe fn SetOperationFlags2(&self, operationflags2: FILE_OPERATION_FLAGS2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(operationflags2)).ok() } } unsafe impl ::windows::core::Interface for IFileOperation2 { type Vtable = IFileOperation2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcd8f23c1_8f61_4916_909d_55bdd0918753); } impl ::core::convert::From<IFileOperation2> for ::windows::core::IUnknown { fn from(value: IFileOperation2) -> Self { value.0 } } impl ::core::convert::From<&IFileOperation2> for ::windows::core::IUnknown { fn from(value: &IFileOperation2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFileOperation2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFileOperation2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IFileOperation2> for IFileOperation { fn from(value: IFileOperation2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IFileOperation2> for IFileOperation { fn from(value: &IFileOperation2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IFileOperation> for IFileOperation2 { fn into_param(self) -> ::windows::core::Param<'a, IFileOperation> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IFileOperation> for &IFileOperation2 { fn into_param(self) -> ::windows::core::Param<'a, IFileOperation> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IFileOperation2_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, pfops: ::windows::core::RawPtr, pdwcookie: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwcookie: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwoperationflags: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszmessage: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, popd: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pproparray: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndowner: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiitem: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punkitems: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiitem: ::windows::core::RawPtr, psznewname: super::super::Foundation::PWSTR, pfopsitem: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punkitems: ::windows::core::RawPtr, psznewname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiitem: ::windows::core::RawPtr, psidestinationfolder: ::windows::core::RawPtr, psznewname: super::super::Foundation::PWSTR, pfopsitem: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punkitems: ::windows::core::RawPtr, psidestinationfolder: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiitem: ::windows::core::RawPtr, psidestinationfolder: ::windows::core::RawPtr, pszcopyname: super::super::Foundation::PWSTR, pfopsitem: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punkitems: ::windows::core::RawPtr, psidestinationfolder: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiitem: ::windows::core::RawPtr, pfopsitem: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punkitems: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psidestinationfolder: ::windows::core::RawPtr, dwfileattributes: u32, pszname: super::super::Foundation::PWSTR, psztemplatename: super::super::Foundation::PWSTR, pfopsitem: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfanyoperationsaborted: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, operationflags2: FILE_OPERATION_FLAGS2) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFileOperationProgressSink(pub ::windows::core::IUnknown); impl IFileOperationProgressSink { pub unsafe fn StartOperations(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn FinishOperations(&self, hrresult: ::windows::core::HRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(hrresult)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn PreRenameItem<'a, Param1: ::windows::core::IntoParam<'a, IShellItem>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, dwflags: u32, psiitem: Param1, psznewname: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags), psiitem.into_param().abi(), psznewname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn PostRenameItem<'a, Param1: ::windows::core::IntoParam<'a, IShellItem>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param4: ::windows::core::IntoParam<'a, IShellItem>>(&self, dwflags: u32, psiitem: Param1, psznewname: Param2, hrrename: ::windows::core::HRESULT, psinewlycreated: Param4) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags), psiitem.into_param().abi(), psznewname.into_param().abi(), ::core::mem::transmute(hrrename), psinewlycreated.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn PreMoveItem<'a, Param1: ::windows::core::IntoParam<'a, IShellItem>, Param2: ::windows::core::IntoParam<'a, IShellItem>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, dwflags: u32, psiitem: Param1, psidestinationfolder: Param2, psznewname: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags), psiitem.into_param().abi(), psidestinationfolder.into_param().abi(), psznewname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn PostMoveItem<'a, Param1: ::windows::core::IntoParam<'a, IShellItem>, Param2: ::windows::core::IntoParam<'a, IShellItem>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param5: ::windows::core::IntoParam<'a, IShellItem>>(&self, dwflags: u32, psiitem: Param1, psidestinationfolder: Param2, psznewname: Param3, hrmove: ::windows::core::HRESULT, psinewlycreated: Param5) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags), psiitem.into_param().abi(), psidestinationfolder.into_param().abi(), psznewname.into_param().abi(), ::core::mem::transmute(hrmove), psinewlycreated.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn PreCopyItem<'a, Param1: ::windows::core::IntoParam<'a, IShellItem>, Param2: ::windows::core::IntoParam<'a, IShellItem>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, dwflags: u32, psiitem: Param1, psidestinationfolder: Param2, psznewname: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags), psiitem.into_param().abi(), psidestinationfolder.into_param().abi(), psznewname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn PostCopyItem<'a, Param1: ::windows::core::IntoParam<'a, IShellItem>, Param2: ::windows::core::IntoParam<'a, IShellItem>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param5: ::windows::core::IntoParam<'a, IShellItem>>(&self, dwflags: u32, psiitem: Param1, psidestinationfolder: Param2, psznewname: Param3, hrcopy: ::windows::core::HRESULT, psinewlycreated: Param5) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags), psiitem.into_param().abi(), psidestinationfolder.into_param().abi(), psznewname.into_param().abi(), ::core::mem::transmute(hrcopy), psinewlycreated.into_param().abi()).ok() } pub unsafe fn PreDeleteItem<'a, Param1: ::windows::core::IntoParam<'a, IShellItem>>(&self, dwflags: u32, psiitem: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags), psiitem.into_param().abi()).ok() } pub unsafe fn PostDeleteItem<'a, Param1: ::windows::core::IntoParam<'a, IShellItem>, Param3: ::windows::core::IntoParam<'a, IShellItem>>(&self, dwflags: u32, psiitem: Param1, hrdelete: ::windows::core::HRESULT, psinewlycreated: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags), psiitem.into_param().abi(), ::core::mem::transmute(hrdelete), psinewlycreated.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn PreNewItem<'a, Param1: ::windows::core::IntoParam<'a, IShellItem>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, dwflags: u32, psidestinationfolder: Param1, psznewname: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags), psidestinationfolder.into_param().abi(), psznewname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn PostNewItem<'a, Param1: ::windows::core::IntoParam<'a, IShellItem>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param6: ::windows::core::IntoParam<'a, IShellItem>>(&self, dwflags: u32, psidestinationfolder: Param1, psznewname: Param2, psztemplatename: Param3, dwfileattributes: u32, hrnew: ::windows::core::HRESULT, psinewitem: Param6) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags), psidestinationfolder.into_param().abi(), psznewname.into_param().abi(), psztemplatename.into_param().abi(), ::core::mem::transmute(dwfileattributes), ::core::mem::transmute(hrnew), psinewitem.into_param().abi()).ok() } pub unsafe fn UpdateProgress(&self, iworktotal: u32, iworksofar: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(iworktotal), ::core::mem::transmute(iworksofar)).ok() } pub unsafe fn ResetTimer(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn PauseTimer(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ResumeTimer(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IFileOperationProgressSink { type Vtable = IFileOperationProgressSink_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x04b0f1a7_9490_44bc_96e1_4296a31252e2); } impl ::core::convert::From<IFileOperationProgressSink> for ::windows::core::IUnknown { fn from(value: IFileOperationProgressSink) -> Self { value.0 } } impl ::core::convert::From<&IFileOperationProgressSink> for ::windows::core::IUnknown { fn from(value: &IFileOperationProgressSink) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFileOperationProgressSink { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFileOperationProgressSink { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IFileOperationProgressSink_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) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hrresult: ::windows::core::HRESULT) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32, psiitem: ::windows::core::RawPtr, psznewname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32, psiitem: ::windows::core::RawPtr, psznewname: super::super::Foundation::PWSTR, hrrename: ::windows::core::HRESULT, psinewlycreated: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32, psiitem: ::windows::core::RawPtr, psidestinationfolder: ::windows::core::RawPtr, psznewname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32, psiitem: ::windows::core::RawPtr, psidestinationfolder: ::windows::core::RawPtr, psznewname: super::super::Foundation::PWSTR, hrmove: ::windows::core::HRESULT, psinewlycreated: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32, psiitem: ::windows::core::RawPtr, psidestinationfolder: ::windows::core::RawPtr, psznewname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32, psiitem: ::windows::core::RawPtr, psidestinationfolder: ::windows::core::RawPtr, psznewname: super::super::Foundation::PWSTR, hrcopy: ::windows::core::HRESULT, psinewlycreated: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32, psiitem: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32, psiitem: ::windows::core::RawPtr, hrdelete: ::windows::core::HRESULT, psinewlycreated: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32, psidestinationfolder: ::windows::core::RawPtr, psznewname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32, psidestinationfolder: ::windows::core::RawPtr, psznewname: super::super::Foundation::PWSTR, psztemplatename: super::super::Foundation::PWSTR, dwfileattributes: u32, hrnew: ::windows::core::HRESULT, psinewitem: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iworktotal: u32, iworksofar: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFileSaveDialog(pub ::windows::core::IUnknown); impl IFileSaveDialog { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Show<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndowner: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwndowner.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn SetFileTypes(&self, cfiletypes: u32, rgfilterspec: *const Common::COMDLG_FILTERSPEC) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(cfiletypes), ::core::mem::transmute(rgfilterspec)).ok() } pub unsafe fn SetFileTypeIndex(&self, ifiletype: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(ifiletype)).ok() } pub unsafe fn GetFileTypeIndex(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn Advise<'a, Param0: ::windows::core::IntoParam<'a, IFileDialogEvents>>(&self, pfde: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pfde.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwcookie)).ok() } pub unsafe fn SetOptions(&self, fos: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(fos)).ok() } pub unsafe fn GetOptions(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn SetDefaultFolder<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } pub unsafe fn SetFolder<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } pub unsafe fn GetFolder(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } pub unsafe fn GetCurrentSelection(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetFileName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), pszname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetFileName(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetTitle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psztitle: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), psztitle.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetOkButtonLabel<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psztext: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), psztext.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetFileNameLabel<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszlabel: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), pszlabel.into_param().abi()).ok() } pub unsafe fn GetResult(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } pub unsafe fn AddPlace<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, fdap: FDAP) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(fdap)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetDefaultExtension<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszdefaultextension: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), pszdefaultextension.into_param().abi()).ok() } pub unsafe fn Close(&self, hr: ::windows::core::HRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(hr)).ok() } pub unsafe fn SetClientGuid(&self, guid: *const ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), ::core::mem::transmute(guid)).ok() } pub unsafe fn ClearClientData(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetFilter<'a, Param0: ::windows::core::IntoParam<'a, IShellItemFilter>>(&self, pfilter: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), pfilter.into_param().abi()).ok() } pub unsafe fn SetSaveAsItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetProperties<'a, Param0: ::windows::core::IntoParam<'a, PropertiesSystem::IPropertyStore>>(&self, pstore: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self), pstore.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn SetCollectedProperties<'a, Param0: ::windows::core::IntoParam<'a, PropertiesSystem::IPropertyDescriptionList>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, plist: Param0, fappenddefault: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), plist.into_param().abi(), fappenddefault.into_param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetProperties(&self) -> ::windows::core::Result<PropertiesSystem::IPropertyStore> { let mut result__: <PropertiesSystem::IPropertyStore as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), &mut result__).from_abi::<PropertiesSystem::IPropertyStore>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn ApplyProperties<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, PropertiesSystem::IPropertyStore>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param3: ::windows::core::IntoParam<'a, IFileOperationProgressSink>>(&self, psi: Param0, pstore: Param1, hwnd: Param2, psink: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), psi.into_param().abi(), pstore.into_param().abi(), hwnd.into_param().abi(), psink.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IFileSaveDialog { type Vtable = IFileSaveDialog_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x84bccd23_5fde_4cdb_aea4_af64b83d78ab); } impl ::core::convert::From<IFileSaveDialog> for ::windows::core::IUnknown { fn from(value: IFileSaveDialog) -> Self { value.0 } } impl ::core::convert::From<&IFileSaveDialog> for ::windows::core::IUnknown { fn from(value: &IFileSaveDialog) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFileSaveDialog { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFileSaveDialog { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IFileSaveDialog> for IFileDialog { fn from(value: IFileSaveDialog) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IFileSaveDialog> for IFileDialog { fn from(value: &IFileSaveDialog) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IFileDialog> for IFileSaveDialog { fn into_param(self) -> ::windows::core::Param<'a, IFileDialog> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IFileDialog> for &IFileSaveDialog { fn into_param(self) -> ::windows::core::Param<'a, IFileDialog> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IFileSaveDialog> for IModalWindow { fn from(value: IFileSaveDialog) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IFileSaveDialog> for IModalWindow { fn from(value: &IFileSaveDialog) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IModalWindow> for IFileSaveDialog { fn into_param(self) -> ::windows::core::Param<'a, IModalWindow> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IModalWindow> for &IFileSaveDialog { fn into_param(self) -> ::windows::core::Param<'a, IModalWindow> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IFileSaveDialog_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndowner: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, cfiletypes: u32, rgfilterspec: *const Common::COMDLG_FILTERSPEC) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ifiletype: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pifiletype: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfde: ::windows::core::RawPtr, pdwcookie: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwcookie: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fos: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfos: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psztitle: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psztext: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszlabel: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, fdap: FDAP) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszdefaultextension: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hr: ::windows::core::HRESULT) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, guid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfilter: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pstore: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, plist: ::windows::core::RawPtr, fappenddefault: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem")))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppstore: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, pstore: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, psink: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFileSearchBand(pub ::windows::core::IUnknown); impl IFileSearchBand { pub unsafe fn SetFocus(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SetSearchParameters(&self, pbstrsearchid: *const super::super::Foundation::BSTR, bnavtoresults: i16, pvarscope: *const super::super::System::Com::VARIANT, pvarqueryfile: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(pbstrsearchid), ::core::mem::transmute(bnavtoresults), ::core::mem::transmute(pvarscope), ::core::mem::transmute(pvarqueryfile)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SearchID(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Scope(&self) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn QueryFile(&self) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } } unsafe impl ::windows::core::Interface for IFileSearchBand { type Vtable = IFileSearchBand_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2d91eea1_9932_11d2_be86_00a0c9a83da1); } impl ::core::convert::From<IFileSearchBand> for ::windows::core::IUnknown { fn from(value: IFileSearchBand) -> Self { value.0 } } impl ::core::convert::From<&IFileSearchBand> for ::windows::core::IUnknown { fn from(value: &IFileSearchBand) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFileSearchBand { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFileSearchBand { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IFileSearchBand> for super::super::System::Com::IDispatch { fn from(value: IFileSearchBand) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IFileSearchBand> for super::super::System::Com::IDispatch { fn from(value: &IFileSearchBand) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IFileSearchBand { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IFileSearchBand { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IFileSearchBand_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrsearchid: *const ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bnavtoresults: i16, pvarscope: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarqueryfile: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrsearchid: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvarscope: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvarfile: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFileSyncMergeHandler(pub ::windows::core::IUnknown); impl IFileSyncMergeHandler { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Merge<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, localfilepath: Param0, serverfilepath: Param1) -> ::windows::core::Result<MERGE_UPDATE_STATUS> { let mut result__: <MERGE_UPDATE_STATUS as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), localfilepath.into_param().abi(), serverfilepath.into_param().abi(), &mut result__).from_abi::<MERGE_UPDATE_STATUS>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe fn ShowResolveConflictUIAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Graphics::Gdi::HMONITOR>>(&self, localfilepath: Param0, monitortodisplayon: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), localfilepath.into_param().abi(), monitortodisplayon.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IFileSyncMergeHandler { type Vtable = IFileSyncMergeHandler_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd97b5aac_c792_433c_975d_35c4eadc7a9d); } impl ::core::convert::From<IFileSyncMergeHandler> for ::windows::core::IUnknown { fn from(value: IFileSyncMergeHandler) -> Self { value.0 } } impl ::core::convert::From<&IFileSyncMergeHandler> for ::windows::core::IUnknown { fn from(value: &IFileSyncMergeHandler) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFileSyncMergeHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFileSyncMergeHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IFileSyncMergeHandler_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, localfilepath: super::super::Foundation::PWSTR, serverfilepath: super::super::Foundation::PWSTR, updatestatus: *mut MERGE_UPDATE_STATUS) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, localfilepath: super::super::Foundation::PWSTR, monitortodisplayon: super::super::Graphics::Gdi::HMONITOR) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFileSystemBindData(pub ::windows::core::IUnknown); impl IFileSystemBindData { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_FileSystem"))] pub unsafe fn SetFindData(&self, pfd: *const super::super::Storage::FileSystem::WIN32_FIND_DATAW) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pfd)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_FileSystem"))] pub unsafe fn GetFindData(&self) -> ::windows::core::Result<super::super::Storage::FileSystem::WIN32_FIND_DATAW> { let mut result__: <super::super::Storage::FileSystem::WIN32_FIND_DATAW as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Storage::FileSystem::WIN32_FIND_DATAW>(result__) } } unsafe impl ::windows::core::Interface for IFileSystemBindData { type Vtable = IFileSystemBindData_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x01e18d10_4d8b_11d2_855d_006008059367); } impl ::core::convert::From<IFileSystemBindData> for ::windows::core::IUnknown { fn from(value: IFileSystemBindData) -> Self { value.0 } } impl ::core::convert::From<&IFileSystemBindData> for ::windows::core::IUnknown { fn from(value: &IFileSystemBindData) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFileSystemBindData { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFileSystemBindData { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IFileSystemBindData_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_FileSystem"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfd: *const super::super::Storage::FileSystem::WIN32_FIND_DATAW) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Storage_FileSystem")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_FileSystem"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfd: *mut super::super::Storage::FileSystem::WIN32_FIND_DATAW) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Storage_FileSystem")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFileSystemBindData2(pub ::windows::core::IUnknown); impl IFileSystemBindData2 { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_FileSystem"))] pub unsafe fn SetFindData(&self, pfd: *const super::super::Storage::FileSystem::WIN32_FIND_DATAW) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pfd)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_FileSystem"))] pub unsafe fn GetFindData(&self) -> ::windows::core::Result<super::super::Storage::FileSystem::WIN32_FIND_DATAW> { let mut result__: <super::super::Storage::FileSystem::WIN32_FIND_DATAW as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Storage::FileSystem::WIN32_FIND_DATAW>(result__) } pub unsafe fn SetFileID(&self, lifileid: i64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(lifileid)).ok() } pub unsafe fn GetFileID(&self) -> ::windows::core::Result<i64> { let mut result__: <i64 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i64>(result__) } pub unsafe fn SetJunctionCLSID(&self, clsid: *const ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(clsid)).ok() } pub unsafe fn GetJunctionCLSID(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__: <::windows::core::GUID as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<::windows::core::GUID>(result__) } } unsafe impl ::windows::core::Interface for IFileSystemBindData2 { type Vtable = IFileSystemBindData2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3acf075f_71db_4afa_81f0_3fc4fdf2a5b8); } impl ::core::convert::From<IFileSystemBindData2> for ::windows::core::IUnknown { fn from(value: IFileSystemBindData2) -> Self { value.0 } } impl ::core::convert::From<&IFileSystemBindData2> for ::windows::core::IUnknown { fn from(value: &IFileSystemBindData2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFileSystemBindData2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFileSystemBindData2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IFileSystemBindData2> for IFileSystemBindData { fn from(value: IFileSystemBindData2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IFileSystemBindData2> for IFileSystemBindData { fn from(value: &IFileSystemBindData2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IFileSystemBindData> for IFileSystemBindData2 { fn into_param(self) -> ::windows::core::Param<'a, IFileSystemBindData> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IFileSystemBindData> for &IFileSystemBindData2 { fn into_param(self) -> ::windows::core::Param<'a, IFileSystemBindData> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IFileSystemBindData2_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_FileSystem"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfd: *const super::super::Storage::FileSystem::WIN32_FIND_DATAW) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Storage_FileSystem")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_FileSystem"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfd: *mut super::super::Storage::FileSystem::WIN32_FIND_DATAW) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Storage_FileSystem")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lifileid: i64) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, plifileid: *mut i64) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, clsid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pclsid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFolderBandPriv(pub ::windows::core::IUnknown); impl IFolderBandPriv { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetCascade<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fcascade: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), fcascade.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, faccelerators: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), faccelerators.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetNoIcons<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fnoicons: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), fnoicons.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetNoText<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fnotext: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), fnotext.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IFolderBandPriv { type Vtable = IFolderBandPriv_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x47c01f95_e185_412c_b5c5_4f27df965aea); } impl ::core::convert::From<IFolderBandPriv> for ::windows::core::IUnknown { fn from(value: IFolderBandPriv) -> Self { value.0 } } impl ::core::convert::From<&IFolderBandPriv> for ::windows::core::IUnknown { fn from(value: &IFolderBandPriv) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFolderBandPriv { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFolderBandPriv { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IFolderBandPriv_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fcascade: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, faccelerators: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fnoicons: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fnotext: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFolderFilter(pub ::windows::core::IUnknown); impl IFolderFilter { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn ShouldShow<'a, Param0: ::windows::core::IntoParam<'a, IShellFolder>>(&self, psf: Param0, pidlfolder: *const Common::ITEMIDLIST, pidlitem: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psf.into_param().abi(), ::core::mem::transmute(pidlfolder), ::core::mem::transmute(pidlitem)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn GetEnumFlags<'a, Param0: ::windows::core::IntoParam<'a, IShellFolder>>(&self, psf: Param0, pidlfolder: *const Common::ITEMIDLIST, phwnd: *mut super::super::Foundation::HWND, pgrfflags: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), psf.into_param().abi(), ::core::mem::transmute(pidlfolder), ::core::mem::transmute(phwnd), ::core::mem::transmute(pgrfflags)).ok() } } unsafe impl ::windows::core::Interface for IFolderFilter { type Vtable = IFolderFilter_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9cc22886_dc8e_11d2_b1d0_00c04f8eeb3e); } impl ::core::convert::From<IFolderFilter> for ::windows::core::IUnknown { fn from(value: IFolderFilter) -> Self { value.0 } } impl ::core::convert::From<&IFolderFilter> for ::windows::core::IUnknown { fn from(value: &IFolderFilter) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFolderFilter { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFolderFilter { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IFolderFilter_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, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psf: ::windows::core::RawPtr, pidlfolder: *const Common::ITEMIDLIST, pidlitem: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psf: ::windows::core::RawPtr, pidlfolder: *const Common::ITEMIDLIST, phwnd: *mut super::super::Foundation::HWND, pgrfflags: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFolderFilterSite(pub ::windows::core::IUnknown); impl IFolderFilterSite { pub unsafe fn SetFilter<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punk: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), punk.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IFolderFilterSite { type Vtable = IFolderFilterSite_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc0a651f5_b48b_11d2_b5ed_006097c686f6); } impl ::core::convert::From<IFolderFilterSite> for ::windows::core::IUnknown { fn from(value: IFolderFilterSite) -> Self { value.0 } } impl ::core::convert::From<&IFolderFilterSite> for ::windows::core::IUnknown { fn from(value: &IFolderFilterSite) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFolderFilterSite { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFolderFilterSite { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IFolderFilterSite_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, punk: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFolderView(pub ::windows::core::IUnknown); impl IFolderView { pub unsafe fn GetCurrentViewMode(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn SetCurrentViewMode(&self, viewmode: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(viewmode)).ok() } pub unsafe fn GetFolder<T: ::windows::core::Interface>(&self) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn Item(&self, iitemindex: i32) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(iitemindex), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } pub unsafe fn ItemCount(&self, uflags: u32) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(uflags), &mut result__).from_abi::<i32>(result__) } pub unsafe fn Items<T: ::windows::core::Interface>(&self, uflags: u32) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(uflags), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } pub unsafe fn GetSelectionMarkedItem(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn GetFocusedItem(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn GetItemPosition(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<super::super::Foundation::POINT> { let mut result__: <super::super::Foundation::POINT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), &mut result__).from_abi::<super::super::Foundation::POINT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSpacing(&self, ppt: *mut super::super::Foundation::POINT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppt)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDefaultSpacing(&self) -> ::windows::core::Result<super::super::Foundation::POINT> { let mut result__: <super::super::Foundation::POINT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::POINT>(result__) } pub unsafe fn GetAutoArrange(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SelectItem(&self, iitem: i32, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(iitem), ::core::mem::transmute(dwflags)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn SelectAndPositionItems(&self, cidl: u32, apidl: *const *const Common::ITEMIDLIST, apt: *const super::super::Foundation::POINT, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(cidl), ::core::mem::transmute(apidl), ::core::mem::transmute(apt), ::core::mem::transmute(dwflags)).ok() } } unsafe impl ::windows::core::Interface for IFolderView { type Vtable = IFolderView_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcde725b0_ccc9_4519_917e_325d72fab4ce); } impl ::core::convert::From<IFolderView> for ::windows::core::IUnknown { fn from(value: IFolderView) -> Self { value.0 } } impl ::core::convert::From<&IFolderView> for ::windows::core::IUnknown { fn from(value: &IFolderView) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFolderView { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFolderView { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IFolderView_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, pviewmode: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, viewmode: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iitemindex: i32, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uflags: u32, pcitems: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uflags: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, piitem: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, piitem: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, ppt: *mut super::super::Foundation::POINT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppt: *mut super::super::Foundation::POINT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppt: *mut super::super::Foundation::POINT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iitem: i32, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, cidl: u32, apidl: *const *const Common::ITEMIDLIST, apt: *const super::super::Foundation::POINT, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFolderView2(pub ::windows::core::IUnknown); impl IFolderView2 { pub unsafe fn GetCurrentViewMode(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn SetCurrentViewMode(&self, viewmode: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(viewmode)).ok() } pub unsafe fn GetFolder<T: ::windows::core::Interface>(&self) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn Item(&self, iitemindex: i32) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(iitemindex), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } pub unsafe fn ItemCount(&self, uflags: u32) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(uflags), &mut result__).from_abi::<i32>(result__) } pub unsafe fn Items<T: ::windows::core::Interface>(&self, uflags: u32) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(uflags), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } pub unsafe fn GetSelectionMarkedItem(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn GetFocusedItem(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn GetItemPosition(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<super::super::Foundation::POINT> { let mut result__: <super::super::Foundation::POINT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), &mut result__).from_abi::<super::super::Foundation::POINT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSpacing(&self, ppt: *mut super::super::Foundation::POINT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppt)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDefaultSpacing(&self) -> ::windows::core::Result<super::super::Foundation::POINT> { let mut result__: <super::super::Foundation::POINT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::POINT>(result__) } pub unsafe fn GetAutoArrange(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SelectItem(&self, iitem: i32, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(iitem), ::core::mem::transmute(dwflags)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn SelectAndPositionItems(&self, cidl: u32, apidl: *const *const Common::ITEMIDLIST, apt: *const super::super::Foundation::POINT, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(cidl), ::core::mem::transmute(apidl), ::core::mem::transmute(apt), ::core::mem::transmute(dwflags)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn SetGroupBy<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, key: *const PropertiesSystem::PROPERTYKEY, fascending: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), ::core::mem::transmute(key), fascending.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn GetGroupBy(&self, pkey: *mut PropertiesSystem::PROPERTYKEY, pfascending: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(pkey), ::core::mem::transmute(pfascending)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn SetViewProperty(&self, pidl: *const Common::ITEMIDLIST, propkey: *const PropertiesSystem::PROPERTYKEY, propvar: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(propkey), ::core::mem::transmute(propvar)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn GetViewProperty(&self, pidl: *const Common::ITEMIDLIST, propkey: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<super::super::System::Com::StructuredStorage::PROPVARIANT> { let mut result__: <super::super::System::Com::StructuredStorage::PROPVARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(propkey), &mut result__).from_abi::<super::super::System::Com::StructuredStorage::PROPVARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn SetTileViewProperties<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pidl: *const Common::ITEMIDLIST, pszproplist: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), pszproplist.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn SetExtendedTileViewProperties<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pidl: *const Common::ITEMIDLIST, pszproplist: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), pszproplist.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetText<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, itype: FVTEXTTYPE, pwsztext: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(itype), pwsztext.into_param().abi()).ok() } pub unsafe fn SetCurrentFolderFlags(&self, dwmask: u32, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwmask), ::core::mem::transmute(dwflags)).ok() } pub unsafe fn GetCurrentFolderFlags(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn GetSortColumnCount(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetSortColumns(&self, rgsortcolumns: *const SORTCOLUMN, ccolumns: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self), ::core::mem::transmute(rgsortcolumns), ::core::mem::transmute(ccolumns)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetSortColumns(&self, rgsortcolumns: *mut SORTCOLUMN, ccolumns: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self), ::core::mem::transmute(rgsortcolumns), ::core::mem::transmute(ccolumns)).ok() } pub unsafe fn GetItem<T: ::windows::core::Interface>(&self, iitem: i32) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), ::core::mem::transmute(iitem), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetVisibleItem<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, istart: i32, fprevious: Param1) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), ::core::mem::transmute(istart), fprevious.into_param().abi(), &mut result__).from_abi::<i32>(result__) } pub unsafe fn GetSelectedItem(&self, istart: i32) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), ::core::mem::transmute(istart), &mut result__).from_abi::<i32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSelection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fnoneimpliesfolder: Param0) -> ::windows::core::Result<IShellItemArray> { let mut result__: <IShellItemArray as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), fnoneimpliesfolder.into_param().abi(), &mut result__).from_abi::<IShellItemArray>(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetSelectionState(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn InvokeVerbOnSelection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(&self, pszverb: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), pszverb.into_param().abi()).ok() } pub unsafe fn SetViewModeAndIconSize(&self, uviewmode: FOLDERVIEWMODE, iimagesize: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), ::core::mem::transmute(uviewmode), ::core::mem::transmute(iimagesize)).ok() } pub unsafe fn GetViewModeAndIconSize(&self, puviewmode: *mut FOLDERVIEWMODE, piimagesize: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), ::core::mem::transmute(puviewmode), ::core::mem::transmute(piimagesize)).ok() } pub unsafe fn SetGroupSubsetCount(&self, cvisiblerows: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), ::core::mem::transmute(cvisiblerows)).ok() } pub unsafe fn GetGroupSubsetCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetRedraw<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fredrawon: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).39)(::core::mem::transmute_copy(self), fredrawon.into_param().abi()).ok() } pub unsafe fn IsMoveInSameFolder(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).40)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn DoRename(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).41)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IFolderView2 { type Vtable = IFolderView2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1af3a467_214f_4298_908e_06b03e0b39f9); } impl ::core::convert::From<IFolderView2> for ::windows::core::IUnknown { fn from(value: IFolderView2) -> Self { value.0 } } impl ::core::convert::From<&IFolderView2> for ::windows::core::IUnknown { fn from(value: &IFolderView2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFolderView2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFolderView2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IFolderView2> for IFolderView { fn from(value: IFolderView2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IFolderView2> for IFolderView { fn from(value: &IFolderView2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IFolderView> for IFolderView2 { fn into_param(self) -> ::windows::core::Param<'a, IFolderView> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IFolderView> for &IFolderView2 { fn into_param(self) -> ::windows::core::Param<'a, IFolderView> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IFolderView2_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, pviewmode: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, viewmode: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iitemindex: i32, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uflags: u32, pcitems: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uflags: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, piitem: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, piitem: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, ppt: *mut super::super::Foundation::POINT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppt: *mut super::super::Foundation::POINT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppt: *mut super::super::Foundation::POINT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iitem: i32, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, cidl: u32, apidl: *const *const Common::ITEMIDLIST, apt: *const super::super::Foundation::POINT, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, key: *const PropertiesSystem::PROPERTYKEY, fascending: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pkey: *mut PropertiesSystem::PROPERTYKEY, pfascending: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, propkey: *const PropertiesSystem::PROPERTYKEY, propvar: *const ::core::mem::ManuallyDrop<super::super::System::Com::StructuredStorage::PROPVARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_Shell_PropertiesSystem")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, propkey: *const PropertiesSystem::PROPERTYKEY, ppropvar: *mut ::core::mem::ManuallyDrop<super::super::System::Com::StructuredStorage::PROPVARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_Shell_PropertiesSystem")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, pszproplist: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, pszproplist: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itype: FVTEXTTYPE, pwsztext: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwmask: u32, dwflags: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwflags: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pccolumns: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rgsortcolumns: *const SORTCOLUMN, ccolumns: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rgsortcolumns: *mut SORTCOLUMN, ccolumns: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iitem: i32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, istart: i32, fprevious: super::super::Foundation::BOOL, piitem: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, istart: i32, piitem: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fnoneimpliesfolder: super::super::Foundation::BOOL, ppsia: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, pdwflags: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszverb: super::super::Foundation::PSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uviewmode: FOLDERVIEWMODE, iimagesize: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, puviewmode: *mut FOLDERVIEWMODE, piimagesize: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, cvisiblerows: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcvisiblerows: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fredrawon: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFolderViewHost(pub ::windows::core::IUnknown); impl IFolderViewHost { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe fn Initialize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>>(&self, hwndparent: Param0, pdo: Param1, prc: *const super::super::Foundation::RECT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwndparent.into_param().abi(), pdo.into_param().abi(), ::core::mem::transmute(prc)).ok() } } unsafe impl ::windows::core::Interface for IFolderViewHost { type Vtable = IFolderViewHost_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1ea58f02_d55a_411d_b09e_9e65ac21605b); } impl ::core::convert::From<IFolderViewHost> for ::windows::core::IUnknown { fn from(value: IFolderViewHost) -> Self { value.0 } } impl ::core::convert::From<&IFolderViewHost> for ::windows::core::IUnknown { fn from(value: &IFolderViewHost) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFolderViewHost { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFolderViewHost { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IFolderViewHost_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndparent: super::super::Foundation::HWND, pdo: ::windows::core::RawPtr, prc: *const super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFolderViewOC(pub ::windows::core::IUnknown); impl IFolderViewOC { #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetFolderView<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch>>(&self, pdisp: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pdisp.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IFolderViewOC { type Vtable = IFolderViewOC_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9ba05970_f6a8_11cf_a442_00a0c90a8f39); } impl ::core::convert::From<IFolderViewOC> for ::windows::core::IUnknown { fn from(value: IFolderViewOC) -> Self { value.0 } } impl ::core::convert::From<&IFolderViewOC> for ::windows::core::IUnknown { fn from(value: &IFolderViewOC) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFolderViewOC { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFolderViewOC { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IFolderViewOC> for super::super::System::Com::IDispatch { fn from(value: IFolderViewOC) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IFolderViewOC> for super::super::System::Com::IDispatch { fn from(value: &IFolderViewOC) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IFolderViewOC { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IFolderViewOC { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IFolderViewOC_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdisp: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFolderViewOptions(pub ::windows::core::IUnknown); impl IFolderViewOptions { pub unsafe fn SetFolderViewOptions(&self, fvomask: FOLDERVIEWOPTIONS, fvoflags: FOLDERVIEWOPTIONS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(fvomask), ::core::mem::transmute(fvoflags)).ok() } pub unsafe fn GetFolderViewOptions(&self) -> ::windows::core::Result<FOLDERVIEWOPTIONS> { let mut result__: <FOLDERVIEWOPTIONS as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<FOLDERVIEWOPTIONS>(result__) } } unsafe impl ::windows::core::Interface for IFolderViewOptions { type Vtable = IFolderViewOptions_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3cc974d2_b302_4d36_ad3e_06d93f695d3f); } impl ::core::convert::From<IFolderViewOptions> for ::windows::core::IUnknown { fn from(value: IFolderViewOptions) -> Self { value.0 } } impl ::core::convert::From<&IFolderViewOptions> for ::windows::core::IUnknown { fn from(value: &IFolderViewOptions) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFolderViewOptions { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFolderViewOptions { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IFolderViewOptions_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, fvomask: FOLDERVIEWOPTIONS, fvoflags: FOLDERVIEWOPTIONS) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfvoflags: *mut FOLDERVIEWOPTIONS) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFolderViewSettings(pub ::windows::core::IUnknown); impl IFolderViewSettings { pub unsafe fn GetColumnPropertyList<T: ::windows::core::Interface>(&self) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn GetGroupByProperty(&self, pkey: *mut PropertiesSystem::PROPERTYKEY, pfgroupascending: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pkey), ::core::mem::transmute(pfgroupascending)).ok() } pub unsafe fn GetViewMode(&self) -> ::windows::core::Result<FOLDERLOGICALVIEWMODE> { let mut result__: <FOLDERLOGICALVIEWMODE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<FOLDERLOGICALVIEWMODE>(result__) } pub unsafe fn GetIconSize(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn GetFolderFlags(&self, pfoldermask: *mut FOLDERFLAGS, pfolderflags: *mut FOLDERFLAGS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(pfoldermask), ::core::mem::transmute(pfolderflags)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetSortColumns(&self, rgsortcolumns: *mut SORTCOLUMN, ccolumnsin: u32, pccolumnsout: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(rgsortcolumns), ::core::mem::transmute(ccolumnsin), ::core::mem::transmute(pccolumnsout)).ok() } pub unsafe fn GetGroupSubsetCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } } unsafe impl ::windows::core::Interface for IFolderViewSettings { type Vtable = IFolderViewSettings_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xae8c987d_8797_4ed3_be72_2a47dd938db0); } impl ::core::convert::From<IFolderViewSettings> for ::windows::core::IUnknown { fn from(value: IFolderViewSettings) -> Self { value.0 } } impl ::core::convert::From<&IFolderViewSettings> for ::windows::core::IUnknown { fn from(value: &IFolderViewSettings) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFolderViewSettings { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFolderViewSettings { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IFolderViewSettings_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, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pkey: *mut PropertiesSystem::PROPERTYKEY, pfgroupascending: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, plvm: *mut FOLDERLOGICALVIEWMODE) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, puiconsize: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfoldermask: *mut FOLDERFLAGS, pfolderflags: *mut FOLDERFLAGS) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rgsortcolumns: *mut SORTCOLUMN, ccolumnsin: u32, pccolumnsout: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcvisiblerows: *mut u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFrameworkInputPane(pub ::windows::core::IUnknown); impl IFrameworkInputPane { pub unsafe fn Advise<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param1: ::windows::core::IntoParam<'a, IFrameworkInputPaneHandler>>(&self, pwindow: Param0, phandler: Param1) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pwindow.into_param().abi(), phandler.into_param().abi(), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AdviseWithHWND<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, IFrameworkInputPaneHandler>>(&self, hwnd: Param0, phandler: Param1) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), phandler.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwcookie)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Location(&self) -> ::windows::core::Result<super::super::Foundation::RECT> { let mut result__: <super::super::Foundation::RECT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::RECT>(result__) } } unsafe impl ::windows::core::Interface for IFrameworkInputPane { type Vtable = IFrameworkInputPane_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5752238b_24f0_495a_82f1_2fd593056796); } impl ::core::convert::From<IFrameworkInputPane> for ::windows::core::IUnknown { fn from(value: IFrameworkInputPane) -> Self { value.0 } } impl ::core::convert::From<&IFrameworkInputPane> for ::windows::core::IUnknown { fn from(value: &IFrameworkInputPane) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFrameworkInputPane { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFrameworkInputPane { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IFrameworkInputPane_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, pwindow: ::windows::core::RawPtr, phandler: ::windows::core::RawPtr, pdwcookie: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, phandler: ::windows::core::RawPtr, pdwcookie: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwcookie: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, prcinputpanescreenlocation: *mut super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IFrameworkInputPaneHandler(pub ::windows::core::IUnknown); impl IFrameworkInputPaneHandler { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Showing<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, prcinputpanescreenlocation: *const super::super::Foundation::RECT, fensurefocusedelementinview: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(prcinputpanescreenlocation), fensurefocusedelementinview.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Hiding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fensurefocusedelementinview: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), fensurefocusedelementinview.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IFrameworkInputPaneHandler { type Vtable = IFrameworkInputPaneHandler_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x226c537b_1e76_4d9e_a760_33db29922f18); } impl ::core::convert::From<IFrameworkInputPaneHandler> for ::windows::core::IUnknown { fn from(value: IFrameworkInputPaneHandler) -> Self { value.0 } } impl ::core::convert::From<&IFrameworkInputPaneHandler> for ::windows::core::IUnknown { fn from(value: &IFrameworkInputPaneHandler) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IFrameworkInputPaneHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IFrameworkInputPaneHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IFrameworkInputPaneHandler_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, prcinputpanescreenlocation: *const super::super::Foundation::RECT, fensurefocusedelementinview: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fensurefocusedelementinview: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGetServiceIds(pub ::windows::core::IUnknown); impl IGetServiceIds { pub unsafe fn GetServiceIds(&self, serviceidcount: *mut u32, serviceids: *mut *mut ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(serviceidcount), ::core::mem::transmute(serviceids)).ok() } } unsafe impl ::windows::core::Interface for IGetServiceIds { type Vtable = IGetServiceIds_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4a073526_6103_4e21_b7bc_f519d1524e5d); } impl ::core::convert::From<IGetServiceIds> for ::windows::core::IUnknown { fn from(value: IGetServiceIds) -> Self { value.0 } } impl ::core::convert::From<&IGetServiceIds> for ::windows::core::IUnknown { fn from(value: &IGetServiceIds) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGetServiceIds { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGetServiceIds { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IGetServiceIds_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, serviceidcount: *mut u32, serviceids: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IHWEventHandler(pub ::windows::core::IUnknown); impl IHWEventHandler { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Initialize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszparams: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszparams.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn HandleEvent<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszdeviceid: Param0, pszaltdeviceid: Param1, pszeventtype: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pszdeviceid.into_param().abi(), pszaltdeviceid.into_param().abi(), pszeventtype.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe fn HandleEventWithContent<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param4: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>>( &self, pszdeviceid: Param0, pszaltdeviceid: Param1, pszeventtype: Param2, pszcontenttypehandler: Param3, pdataobject: Param4, ) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), pszdeviceid.into_param().abi(), pszaltdeviceid.into_param().abi(), pszeventtype.into_param().abi(), pszcontenttypehandler.into_param().abi(), pdataobject.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IHWEventHandler { type Vtable = IHWEventHandler_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc1fb73d0_ec3a_4ba2_b512_8cdb9187b6d1); } impl ::core::convert::From<IHWEventHandler> for ::windows::core::IUnknown { fn from(value: IHWEventHandler) -> Self { value.0 } } impl ::core::convert::From<&IHWEventHandler> for ::windows::core::IUnknown { fn from(value: &IHWEventHandler) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IHWEventHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IHWEventHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IHWEventHandler_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszparams: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszdeviceid: super::super::Foundation::PWSTR, pszaltdeviceid: super::super::Foundation::PWSTR, pszeventtype: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszdeviceid: super::super::Foundation::PWSTR, pszaltdeviceid: super::super::Foundation::PWSTR, pszeventtype: super::super::Foundation::PWSTR, pszcontenttypehandler: super::super::Foundation::PWSTR, pdataobject: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IHWEventHandler2(pub ::windows::core::IUnknown); impl IHWEventHandler2 { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Initialize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszparams: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszparams.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn HandleEvent<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszdeviceid: Param0, pszaltdeviceid: Param1, pszeventtype: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pszdeviceid.into_param().abi(), pszaltdeviceid.into_param().abi(), pszeventtype.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe fn HandleEventWithContent<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param4: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>>( &self, pszdeviceid: Param0, pszaltdeviceid: Param1, pszeventtype: Param2, pszcontenttypehandler: Param3, pdataobject: Param4, ) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), pszdeviceid.into_param().abi(), pszaltdeviceid.into_param().abi(), pszeventtype.into_param().abi(), pszcontenttypehandler.into_param().abi(), pdataobject.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn HandleEventWithHWND<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, pszdeviceid: Param0, pszaltdeviceid: Param1, pszeventtype: Param2, hwndowner: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pszdeviceid.into_param().abi(), pszaltdeviceid.into_param().abi(), pszeventtype.into_param().abi(), hwndowner.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IHWEventHandler2 { type Vtable = IHWEventHandler2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcfcc809f_295d_42e8_9ffc_424b33c487e6); } impl ::core::convert::From<IHWEventHandler2> for ::windows::core::IUnknown { fn from(value: IHWEventHandler2) -> Self { value.0 } } impl ::core::convert::From<&IHWEventHandler2> for ::windows::core::IUnknown { fn from(value: &IHWEventHandler2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IHWEventHandler2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IHWEventHandler2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IHWEventHandler2> for IHWEventHandler { fn from(value: IHWEventHandler2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IHWEventHandler2> for IHWEventHandler { fn from(value: &IHWEventHandler2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IHWEventHandler> for IHWEventHandler2 { fn into_param(self) -> ::windows::core::Param<'a, IHWEventHandler> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IHWEventHandler> for &IHWEventHandler2 { fn into_param(self) -> ::windows::core::Param<'a, IHWEventHandler> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IHWEventHandler2_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszparams: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszdeviceid: super::super::Foundation::PWSTR, pszaltdeviceid: super::super::Foundation::PWSTR, pszeventtype: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszdeviceid: super::super::Foundation::PWSTR, pszaltdeviceid: super::super::Foundation::PWSTR, pszeventtype: super::super::Foundation::PWSTR, pszcontenttypehandler: super::super::Foundation::PWSTR, pdataobject: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszdeviceid: super::super::Foundation::PWSTR, pszaltdeviceid: super::super::Foundation::PWSTR, pszeventtype: super::super::Foundation::PWSTR, hwndowner: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IHandlerActivationHost(pub ::windows::core::IUnknown); impl IHandlerActivationHost { pub unsafe fn BeforeCoCreateInstance<'a, Param1: ::windows::core::IntoParam<'a, IShellItemArray>, Param2: ::windows::core::IntoParam<'a, IHandlerInfo>>(&self, clsidhandler: *const ::windows::core::GUID, itemsbeingactivated: Param1, handlerinfo: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(clsidhandler), itemsbeingactivated.into_param().abi(), handlerinfo.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn BeforeCreateProcess<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, IHandlerInfo>>(&self, applicationpath: Param0, commandline: Param1, handlerinfo: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), applicationpath.into_param().abi(), commandline.into_param().abi(), handlerinfo.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IHandlerActivationHost { type Vtable = IHandlerActivationHost_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x35094a87_8bb1_4237_96c6_c417eebdb078); } impl ::core::convert::From<IHandlerActivationHost> for ::windows::core::IUnknown { fn from(value: IHandlerActivationHost) -> Self { value.0 } } impl ::core::convert::From<&IHandlerActivationHost> for ::windows::core::IUnknown { fn from(value: &IHandlerActivationHost) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IHandlerActivationHost { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IHandlerActivationHost { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IHandlerActivationHost_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, clsidhandler: *const ::windows::core::GUID, itemsbeingactivated: ::windows::core::RawPtr, handlerinfo: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, applicationpath: super::super::Foundation::PWSTR, commandline: super::super::Foundation::PWSTR, handlerinfo: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IHandlerInfo(pub ::windows::core::IUnknown); impl IHandlerInfo { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetApplicationDisplayName(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetApplicationPublisher(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetApplicationIconReference(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } } unsafe impl ::windows::core::Interface for IHandlerInfo { type Vtable = IHandlerInfo_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x997706ef_f880_453b_8118_39e1a2d2655a); } impl ::core::convert::From<IHandlerInfo> for ::windows::core::IUnknown { fn from(value: IHandlerInfo) -> Self { value.0 } } impl ::core::convert::From<&IHandlerInfo> for ::windows::core::IUnknown { fn from(value: &IHandlerInfo) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IHandlerInfo { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IHandlerInfo { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IHandlerInfo_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IHandlerInfo2(pub ::windows::core::IUnknown); impl IHandlerInfo2 { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetApplicationDisplayName(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetApplicationPublisher(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetApplicationIconReference(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetApplicationId(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } } unsafe impl ::windows::core::Interface for IHandlerInfo2 { type Vtable = IHandlerInfo2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x31cca04c_04d3_4ea9_90de_97b15e87a532); } impl ::core::convert::From<IHandlerInfo2> for ::windows::core::IUnknown { fn from(value: IHandlerInfo2) -> Self { value.0 } } impl ::core::convert::From<&IHandlerInfo2> for ::windows::core::IUnknown { fn from(value: &IHandlerInfo2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IHandlerInfo2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IHandlerInfo2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IHandlerInfo2> for IHandlerInfo { fn from(value: IHandlerInfo2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IHandlerInfo2> for IHandlerInfo { fn from(value: &IHandlerInfo2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IHandlerInfo> for IHandlerInfo2 { fn into_param(self) -> ::windows::core::Param<'a, IHandlerInfo> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IHandlerInfo> for &IHandlerInfo2 { fn into_param(self) -> ::windows::core::Param<'a, IHandlerInfo> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IHandlerInfo2_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IHlink(pub ::windows::core::IUnknown); impl IHlink { pub unsafe fn SetHlinkSite<'a, Param0: ::windows::core::IntoParam<'a, IHlinkSite>>(&self, pihlsite: Param0, dwsitedata: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pihlsite.into_param().abi(), ::core::mem::transmute(dwsitedata)).ok() } pub unsafe fn GetHlinkSite(&self, ppihlsite: *mut ::core::option::Option<IHlinkSite>, pdwsitedata: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppihlsite), ::core::mem::transmute(pdwsitedata)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe fn SetMonikerReference<'a, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IMoniker>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, grfhlsetf: u32, pimktarget: Param1, pwzlocation: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(grfhlsetf), pimktarget.into_param().abi(), pwzlocation.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe fn GetMonikerReference(&self, dwwhichref: u32, ppimktarget: *mut ::core::option::Option<super::super::System::Com::IMoniker>, ppwzlocation: *mut super::super::Foundation::PWSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwwhichref), ::core::mem::transmute(ppimktarget), ::core::mem::transmute(ppwzlocation)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetStringReference<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, grfhlsetf: u32, pwztarget: Param1, pwzlocation: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(grfhlsetf), pwztarget.into_param().abi(), pwzlocation.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetStringReference(&self, dwwhichref: u32, ppwztarget: *mut super::super::Foundation::PWSTR, ppwzlocation: *mut super::super::Foundation::PWSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwwhichref), ::core::mem::transmute(ppwztarget), ::core::mem::transmute(ppwzlocation)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetFriendlyName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwzfriendlyname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), pwzfriendlyname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetFriendlyName(&self, grfhlfnamef: u32) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(grfhlfnamef), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetTargetFrameName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwztargetframename: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), pwztargetframename.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetTargetFrameName(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } pub unsafe fn GetMiscStatus(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Navigate<'a, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::IBindStatusCallback>, Param3: ::windows::core::IntoParam<'a, IHlinkBrowseContext>>(&self, grfhlnf: u32, pibc: Param1, pibsc: Param2, pihlbc: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(grfhlnf), pibc.into_param().abi(), pibsc.into_param().abi(), pihlbc.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetAdditionalParams<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwzadditionalparams: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), pwzadditionalparams.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetAdditionalParams(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } } unsafe impl ::windows::core::Interface for IHlink { type Vtable = IHlink_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x79eac9c3_baf9_11ce_8c82_00aa004ba90b); } impl ::core::convert::From<IHlink> for ::windows::core::IUnknown { fn from(value: IHlink) -> Self { value.0 } } impl ::core::convert::From<&IHlink> for ::windows::core::IUnknown { fn from(value: &IHlink) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IHlink { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IHlink { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IHlink_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, pihlsite: ::windows::core::RawPtr, dwsitedata: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppihlsite: *mut ::windows::core::RawPtr, pdwsitedata: *mut u32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, grfhlsetf: u32, pimktarget: ::windows::core::RawPtr, pwzlocation: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwwhichref: u32, ppimktarget: *mut ::windows::core::RawPtr, ppwzlocation: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, grfhlsetf: u32, pwztarget: super::super::Foundation::PWSTR, pwzlocation: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwwhichref: u32, ppwztarget: *mut super::super::Foundation::PWSTR, ppwzlocation: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pwzfriendlyname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, grfhlfnamef: u32, ppwzfriendlyname: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pwztargetframename: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppwztargetframename: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwstatus: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, grfhlnf: u32, pibc: ::windows::core::RawPtr, pibsc: ::windows::core::RawPtr, pihlbc: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pwzadditionalparams: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppwzadditionalparams: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IHlinkBrowseContext(pub ::windows::core::IUnknown); impl IHlinkBrowseContext { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Register<'a, Param1: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::IMoniker>>(&self, reserved: u32, piunk: Param1, pimk: Param2) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(reserved), piunk.into_param().abi(), pimk.into_param().abi(), &mut result__).from_abi::<u32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe fn GetObject<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IMoniker>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, pimk: Param0, fbindifrootregistered: Param1) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__: <::windows::core::IUnknown as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pimk.into_param().abi(), fbindifrootregistered.into_param().abi(), &mut result__).from_abi::<::windows::core::IUnknown>(result__) } pub unsafe fn Revoke(&self, dwregister: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwregister)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetBrowseWindowInfo(&self, phlbwi: *const HLBWINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(phlbwi)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetBrowseWindowInfo(&self) -> ::windows::core::Result<HLBWINFO> { let mut result__: <HLBWINFO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<HLBWINFO>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe fn SetInitialHlink<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IMoniker>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pimktarget: Param0, pwzlocation: Param1, pwzfriendlyname: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), pimktarget.into_param().abi(), pwzlocation.into_param().abi(), pwzfriendlyname.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe fn OnNavigateHlink<'a, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IMoniker>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, grfhlnf: u32, pimktarget: Param1, pwzlocation: Param2, pwzfriendlyname: Param3) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(grfhlnf), pimktarget.into_param().abi(), pwzlocation.into_param().abi(), pwzfriendlyname.into_param().abi(), &mut result__).from_abi::<u32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe fn UpdateHlink<'a, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IMoniker>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, uhlid: u32, pimktarget: Param1, pwzlocation: Param2, pwzfriendlyname: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(uhlid), pimktarget.into_param().abi(), pwzlocation.into_param().abi(), pwzfriendlyname.into_param().abi()).ok() } pub unsafe fn EnumNavigationStack(&self, dwreserved: u32, grfhlfnamef: u32) -> ::windows::core::Result<IEnumHLITEM> { let mut result__: <IEnumHLITEM as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwreserved), ::core::mem::transmute(grfhlfnamef), &mut result__).from_abi::<IEnumHLITEM>(result__) } pub unsafe fn QueryHlink(&self, grfhlqf: u32, uhlid: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(grfhlqf), ::core::mem::transmute(uhlid)).ok() } pub unsafe fn GetHlink(&self, uhlid: u32) -> ::windows::core::Result<IHlink> { let mut result__: <IHlink as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(uhlid), &mut result__).from_abi::<IHlink>(result__) } pub unsafe fn SetCurrentHlink(&self, uhlid: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(uhlid)).ok() } pub unsafe fn Clone<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, piunkouter: Param0, riid: *const ::windows::core::GUID) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__: <::windows::core::IUnknown as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), piunkouter.into_param().abi(), ::core::mem::transmute(riid), &mut result__).from_abi::<::windows::core::IUnknown>(result__) } pub unsafe fn Close(&self, reserved: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(reserved)).ok() } } unsafe impl ::windows::core::Interface for IHlinkBrowseContext { type Vtable = IHlinkBrowseContext_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x79eac9c7_baf9_11ce_8c82_00aa004ba90b); } impl ::core::convert::From<IHlinkBrowseContext> for ::windows::core::IUnknown { fn from(value: IHlinkBrowseContext) -> Self { value.0 } } impl ::core::convert::From<&IHlinkBrowseContext> for ::windows::core::IUnknown { fn from(value: &IHlinkBrowseContext) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IHlinkBrowseContext { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IHlinkBrowseContext { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IHlinkBrowseContext_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, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, reserved: u32, piunk: ::windows::core::RawPtr, pimk: ::windows::core::RawPtr, pdwregister: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pimk: ::windows::core::RawPtr, fbindifrootregistered: super::super::Foundation::BOOL, ppiunk: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwregister: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phlbwi: *const HLBWINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phlbwi: *mut HLBWINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pimktarget: ::windows::core::RawPtr, pwzlocation: super::super::Foundation::PWSTR, pwzfriendlyname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, grfhlnf: u32, pimktarget: ::windows::core::RawPtr, pwzlocation: super::super::Foundation::PWSTR, pwzfriendlyname: super::super::Foundation::PWSTR, puhlid: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uhlid: u32, pimktarget: ::windows::core::RawPtr, pwzlocation: super::super::Foundation::PWSTR, pwzfriendlyname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwreserved: u32, grfhlfnamef: u32, ppienumhlitem: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, grfhlqf: u32, uhlid: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uhlid: u32, ppihl: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uhlid: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, piunkouter: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppiunkobj: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, reserved: u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IHlinkFrame(pub ::windows::core::IUnknown); impl IHlinkFrame { pub unsafe fn SetBrowseContext<'a, Param0: ::windows::core::IntoParam<'a, IHlinkBrowseContext>>(&self, pihlbc: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pihlbc.into_param().abi()).ok() } pub unsafe fn GetBrowseContext(&self) -> ::windows::core::Result<IHlinkBrowseContext> { let mut result__: <IHlinkBrowseContext as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IHlinkBrowseContext>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Navigate<'a, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::IBindStatusCallback>, Param3: ::windows::core::IntoParam<'a, IHlink>>(&self, grfhlnf: u32, pbc: Param1, pibsc: Param2, pihlnavigate: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(grfhlnf), pbc.into_param().abi(), pibsc.into_param().abi(), pihlnavigate.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe fn OnNavigate<'a, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IMoniker>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, grfhlnf: u32, pimktarget: Param1, pwzlocation: Param2, pwzfriendlyname: Param3, dwreserved: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(grfhlnf), pimktarget.into_param().abi(), pwzlocation.into_param().abi(), pwzfriendlyname.into_param().abi(), ::core::mem::transmute(dwreserved)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe fn UpdateHlink<'a, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IMoniker>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, uhlid: u32, pimktarget: Param1, pwzlocation: Param2, pwzfriendlyname: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(uhlid), pimktarget.into_param().abi(), pwzlocation.into_param().abi(), pwzfriendlyname.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IHlinkFrame { type Vtable = IHlinkFrame_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x79eac9c5_baf9_11ce_8c82_00aa004ba90b); } impl ::core::convert::From<IHlinkFrame> for ::windows::core::IUnknown { fn from(value: IHlinkFrame) -> Self { value.0 } } impl ::core::convert::From<&IHlinkFrame> for ::windows::core::IUnknown { fn from(value: &IHlinkFrame) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IHlinkFrame { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IHlinkFrame { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IHlinkFrame_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, pihlbc: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppihlbc: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, grfhlnf: u32, pbc: ::windows::core::RawPtr, pibsc: ::windows::core::RawPtr, pihlnavigate: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, grfhlnf: u32, pimktarget: ::windows::core::RawPtr, pwzlocation: super::super::Foundation::PWSTR, pwzfriendlyname: super::super::Foundation::PWSTR, dwreserved: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uhlid: u32, pimktarget: ::windows::core::RawPtr, pwzlocation: super::super::Foundation::PWSTR, pwzfriendlyname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IHlinkSite(pub ::windows::core::IUnknown); impl IHlinkSite { pub unsafe fn QueryService(&self, dwsitedata: u32, guidservice: *const ::windows::core::GUID, riid: *const ::windows::core::GUID) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__: <::windows::core::IUnknown as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwsitedata), ::core::mem::transmute(guidservice), ::core::mem::transmute(riid), &mut result__).from_abi::<::windows::core::IUnknown>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetMoniker(&self, dwsitedata: u32, dwassign: u32, dwwhich: u32) -> ::windows::core::Result<super::super::System::Com::IMoniker> { let mut result__: <super::super::System::Com::IMoniker as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwsitedata), ::core::mem::transmute(dwassign), ::core::mem::transmute(dwwhich), &mut result__).from_abi::<super::super::System::Com::IMoniker>(result__) } pub unsafe fn ReadyToNavigate(&self, dwsitedata: u32, dwreserved: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwsitedata), ::core::mem::transmute(dwreserved)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnNavigationComplete<'a, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, dwsitedata: u32, dwreserved: u32, hrerror: ::windows::core::HRESULT, pwzerror: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwsitedata), ::core::mem::transmute(dwreserved), ::core::mem::transmute(hrerror), pwzerror.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IHlinkSite { type Vtable = IHlinkSite_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x79eac9c2_baf9_11ce_8c82_00aa004ba90b); } impl ::core::convert::From<IHlinkSite> for ::windows::core::IUnknown { fn from(value: IHlinkSite) -> Self { value.0 } } impl ::core::convert::From<&IHlinkSite> for ::windows::core::IUnknown { fn from(value: &IHlinkSite) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IHlinkSite { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IHlinkSite { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IHlinkSite_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, dwsitedata: u32, guidservice: *const ::windows::core::GUID, riid: *const ::windows::core::GUID, ppiunk: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwsitedata: u32, dwassign: u32, dwwhich: u32, ppimk: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwsitedata: u32, dwreserved: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwsitedata: u32, dwreserved: u32, hrerror: ::windows::core::HRESULT, pwzerror: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IHlinkTarget(pub ::windows::core::IUnknown); impl IHlinkTarget { pub unsafe fn SetBrowseContext<'a, Param0: ::windows::core::IntoParam<'a, IHlinkBrowseContext>>(&self, pihlbc: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pihlbc.into_param().abi()).ok() } pub unsafe fn GetBrowseContext(&self) -> ::windows::core::Result<IHlinkBrowseContext> { let mut result__: <IHlinkBrowseContext as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IHlinkBrowseContext>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Navigate<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, grfhlnf: u32, pwzjumplocation: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(grfhlnf), pwzjumplocation.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe fn GetMoniker<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwzlocation: Param0, dwassign: u32) -> ::windows::core::Result<super::super::System::Com::IMoniker> { let mut result__: <super::super::System::Com::IMoniker as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pwzlocation.into_param().abi(), ::core::mem::transmute(dwassign), &mut result__).from_abi::<super::super::System::Com::IMoniker>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetFriendlyName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwzlocation: Param0) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pwzlocation.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } } unsafe impl ::windows::core::Interface for IHlinkTarget { type Vtable = IHlinkTarget_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x79eac9c4_baf9_11ce_8c82_00aa004ba90b); } impl ::core::convert::From<IHlinkTarget> for ::windows::core::IUnknown { fn from(value: IHlinkTarget) -> Self { value.0 } } impl ::core::convert::From<&IHlinkTarget> for ::windows::core::IUnknown { fn from(value: &IHlinkTarget) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IHlinkTarget { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IHlinkTarget { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IHlinkTarget_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, pihlbc: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppihlbc: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, grfhlnf: u32, pwzjumplocation: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pwzlocation: super::super::Foundation::PWSTR, dwassign: u32, ppimklocation: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pwzlocation: super::super::Foundation::PWSTR, ppwzfriendlyname: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IHomeGroup(pub ::windows::core::IUnknown); impl IHomeGroup { #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsMember(&self) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ShowSharingWizard<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, owner: Param0) -> ::windows::core::Result<HOMEGROUPSHARINGCHOICES> { let mut result__: <HOMEGROUPSHARINGCHOICES as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), owner.into_param().abi(), &mut result__).from_abi::<HOMEGROUPSHARINGCHOICES>(result__) } } unsafe impl ::windows::core::Interface for IHomeGroup { type Vtable = IHomeGroup_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7a3bd1d9_35a9_4fb3_a467_f48cac35e2d0); } impl ::core::convert::From<IHomeGroup> for ::windows::core::IUnknown { fn from(value: IHomeGroup) -> Self { value.0 } } impl ::core::convert::From<&IHomeGroup> for ::windows::core::IUnknown { fn from(value: &IHomeGroup) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IHomeGroup { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IHomeGroup { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IHomeGroup_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, member: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: super::super::Foundation::HWND, sharingchoices: *mut HOMEGROUPSHARINGCHOICES) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IIOCancelInformation(pub ::windows::core::IUnknown); impl IIOCancelInformation { pub unsafe fn SetCancelInformation(&self, dwthreadid: u32, umsgcancel: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwthreadid), ::core::mem::transmute(umsgcancel)).ok() } pub unsafe fn GetCancelInformation(&self, pdwthreadid: *mut u32, pumsgcancel: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pdwthreadid), ::core::mem::transmute(pumsgcancel)).ok() } } unsafe impl ::windows::core::Interface for IIOCancelInformation { type Vtable = IIOCancelInformation_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf5b0bf81_8cb5_4b1b_9449_1a159e0c733c); } impl ::core::convert::From<IIOCancelInformation> for ::windows::core::IUnknown { fn from(value: IIOCancelInformation) -> Self { value.0 } } impl ::core::convert::From<&IIOCancelInformation> for ::windows::core::IUnknown { fn from(value: &IIOCancelInformation) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IIOCancelInformation { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IIOCancelInformation { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IIOCancelInformation_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, dwthreadid: u32, umsgcancel: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwthreadid: *mut u32, pumsgcancel: *mut u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IIdentityName(pub ::windows::core::IUnknown); impl IIdentityName { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetItemIDList(&self) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } pub unsafe fn GetItem(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } } unsafe impl ::windows::core::Interface for IIdentityName { type Vtable = IIdentityName_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7d903fca_d6f9_4810_8332_946c0177e247); } impl ::core::convert::From<IIdentityName> for ::windows::core::IUnknown { fn from(value: IIdentityName) -> Self { value.0 } } impl ::core::convert::From<&IIdentityName> for ::windows::core::IUnknown { fn from(value: &IIdentityName) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IIdentityName { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IIdentityName { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IIdentityName> for IRelatedItem { fn from(value: IIdentityName) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IIdentityName> for IRelatedItem { fn from(value: &IIdentityName) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IRelatedItem> for IIdentityName { fn into_param(self) -> ::windows::core::Param<'a, IRelatedItem> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IRelatedItem> for &IIdentityName { fn into_param(self) -> ::windows::core::Param<'a, IRelatedItem> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IIdentityName_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, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IImageRecompress(pub ::windows::core::IUnknown); impl IImageRecompress { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe fn RecompressImage<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param4: ::windows::core::IntoParam<'a, super::super::System::Com::StructuredStorage::IStorage>>(&self, psi: Param0, cx: i32, cy: i32, iquality: i32, pstg: Param4) -> ::windows::core::Result<super::super::System::Com::IStream> { let mut result__: <super::super::System::Com::IStream as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(cx), ::core::mem::transmute(cy), ::core::mem::transmute(iquality), pstg.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::IStream>(result__) } } unsafe impl ::windows::core::Interface for IImageRecompress { type Vtable = IImageRecompress_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x505f1513_6b3e_4892_a272_59f8889a4d3e); } impl ::core::convert::From<IImageRecompress> for ::windows::core::IUnknown { fn from(value: IImageRecompress) -> Self { value.0 } } impl ::core::convert::From<&IImageRecompress> for ::windows::core::IUnknown { fn from(value: &IImageRecompress) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IImageRecompress { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IImageRecompress { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IImageRecompress_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, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, cx: i32, cy: i32, iquality: i32, pstg: ::windows::core::RawPtr, ppstrmout: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IInitializeCommand(pub ::windows::core::IUnknown); impl IInitializeCommand { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe fn Initialize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::StructuredStorage::IPropertyBag>>(&self, pszcommandname: Param0, ppb: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszcommandname.into_param().abi(), ppb.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IInitializeCommand { type Vtable = IInitializeCommand_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x85075acf_231f_40ea_9610_d26b7b58f638); } impl ::core::convert::From<IInitializeCommand> for ::windows::core::IUnknown { fn from(value: IInitializeCommand) -> Self { value.0 } } impl ::core::convert::From<&IInitializeCommand> for ::windows::core::IUnknown { fn from(value: &IInitializeCommand) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IInitializeCommand { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IInitializeCommand { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IInitializeCommand_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszcommandname: super::super::Foundation::PWSTR, ppb: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IInitializeNetworkFolder(pub ::windows::core::IUnknown); impl IInitializeNetworkFolder { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn Initialize<'a, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pidl: *const Common::ITEMIDLIST, pidltarget: *const Common::ITEMIDLIST, udisplaytype: u32, pszresname: Param3, pszprovider: Param4) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(pidltarget), ::core::mem::transmute(udisplaytype), pszresname.into_param().abi(), pszprovider.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IInitializeNetworkFolder { type Vtable = IInitializeNetworkFolder_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6e0f9881_42a8_4f2a_97f8_8af4e026d92d); } impl ::core::convert::From<IInitializeNetworkFolder> for ::windows::core::IUnknown { fn from(value: IInitializeNetworkFolder) -> Self { value.0 } } impl ::core::convert::From<&IInitializeNetworkFolder> for ::windows::core::IUnknown { fn from(value: &IInitializeNetworkFolder) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IInitializeNetworkFolder { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IInitializeNetworkFolder { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IInitializeNetworkFolder_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, pidltarget: *const Common::ITEMIDLIST, udisplaytype: u32, pszresname: super::super::Foundation::PWSTR, pszprovider: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IInitializeObject(pub ::windows::core::IUnknown); impl IInitializeObject { pub unsafe fn Initialize(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IInitializeObject { type Vtable = IInitializeObject_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4622ad16_ff23_11d0_8d34_00a0c90f2719); } impl ::core::convert::From<IInitializeObject> for ::windows::core::IUnknown { fn from(value: IInitializeObject) -> Self { value.0 } } impl ::core::convert::From<&IInitializeObject> for ::windows::core::IUnknown { fn from(value: &IInitializeObject) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IInitializeObject { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IInitializeObject { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IInitializeObject_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) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IInitializeWithBindCtx(pub ::windows::core::IUnknown); impl IInitializeWithBindCtx { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>>(&self, pbc: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pbc.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IInitializeWithBindCtx { type Vtable = IInitializeWithBindCtx_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x71c0d2bc_726d_45cc_a6c0_2e31c1db2159); } impl ::core::convert::From<IInitializeWithBindCtx> for ::windows::core::IUnknown { fn from(value: IInitializeWithBindCtx) -> Self { value.0 } } impl ::core::convert::From<&IInitializeWithBindCtx> for ::windows::core::IUnknown { fn from(value: &IInitializeWithBindCtx) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IInitializeWithBindCtx { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IInitializeWithBindCtx { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IInitializeWithBindCtx_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, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbc: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IInitializeWithItem(pub ::windows::core::IUnknown); impl IInitializeWithItem { pub unsafe fn Initialize<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, grfmode: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(grfmode)).ok() } } unsafe impl ::windows::core::Interface for IInitializeWithItem { type Vtable = IInitializeWithItem_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7f73be3f_fb79_493c_a6c7_7ee14e245841); } impl ::core::convert::From<IInitializeWithItem> for ::windows::core::IUnknown { fn from(value: IInitializeWithItem) -> Self { value.0 } } impl ::core::convert::From<&IInitializeWithItem> for ::windows::core::IUnknown { fn from(value: &IInitializeWithItem) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IInitializeWithItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IInitializeWithItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IInitializeWithItem_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, psi: ::windows::core::RawPtr, grfmode: u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IInitializeWithPropertyStore(pub ::windows::core::IUnknown); impl IInitializeWithPropertyStore { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn Initialize<'a, Param0: ::windows::core::IntoParam<'a, PropertiesSystem::IPropertyStore>>(&self, pps: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pps.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IInitializeWithPropertyStore { type Vtable = IInitializeWithPropertyStore_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc3e12eb5_7d8d_44f8_b6dd_0e77b34d6de4); } impl ::core::convert::From<IInitializeWithPropertyStore> for ::windows::core::IUnknown { fn from(value: IInitializeWithPropertyStore) -> Self { value.0 } } impl ::core::convert::From<&IInitializeWithPropertyStore> for ::windows::core::IUnknown { fn from(value: &IInitializeWithPropertyStore) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IInitializeWithPropertyStore { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IInitializeWithPropertyStore { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IInitializeWithPropertyStore_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, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pps: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IInitializeWithWindow(pub ::windows::core::IUnknown); impl IInitializeWithWindow { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Initialize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwnd.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IInitializeWithWindow { type Vtable = IInitializeWithWindow_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3e68d4bd_7135_4d10_8018_9fb6d9f33fa1); } impl ::core::convert::From<IInitializeWithWindow> for ::windows::core::IUnknown { fn from(value: IInitializeWithWindow) -> Self { value.0 } } impl ::core::convert::From<&IInitializeWithWindow> for ::windows::core::IUnknown { fn from(value: &IInitializeWithWindow) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IInitializeWithWindow { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IInitializeWithWindow { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IInitializeWithWindow_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IInputObject(pub ::windows::core::IUnknown); impl IInputObject { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn UIActivateIO<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, factivate: Param0, pmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), factivate.into_param().abi(), ::core::mem::transmute(pmsg)).ok() } pub unsafe fn HasFocusIO(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn TranslateAcceleratorIO(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(pmsg)).ok() } } unsafe impl ::windows::core::Interface for IInputObject { type Vtable = IInputObject_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x68284faa_6a48_11d0_8c78_00c04fd918b4); } impl ::core::convert::From<IInputObject> for ::windows::core::IUnknown { fn from(value: IInputObject) -> Self { value.0 } } impl ::core::convert::From<&IInputObject> for ::windows::core::IUnknown { fn from(value: &IInputObject) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IInputObject { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IInputObject { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IInputObject_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, factivate: super::super::Foundation::BOOL, pmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IInputObject2(pub ::windows::core::IUnknown); impl IInputObject2 { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn UIActivateIO<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, factivate: Param0, pmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), factivate.into_param().abi(), ::core::mem::transmute(pmsg)).ok() } pub unsafe fn HasFocusIO(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn TranslateAcceleratorIO(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(pmsg)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn TranslateAcceleratorGlobal(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(pmsg)).ok() } } unsafe impl ::windows::core::Interface for IInputObject2 { type Vtable = IInputObject2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6915c085_510b_44cd_94af_28dfa56cf92b); } impl ::core::convert::From<IInputObject2> for ::windows::core::IUnknown { fn from(value: IInputObject2) -> Self { value.0 } } impl ::core::convert::From<&IInputObject2> for ::windows::core::IUnknown { fn from(value: &IInputObject2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IInputObject2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IInputObject2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IInputObject2> for IInputObject { fn from(value: IInputObject2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IInputObject2> for IInputObject { fn from(value: &IInputObject2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IInputObject> for IInputObject2 { fn into_param(self) -> ::windows::core::Param<'a, IInputObject> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IInputObject> for &IInputObject2 { fn into_param(self) -> ::windows::core::Param<'a, IInputObject> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IInputObject2_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, factivate: super::super::Foundation::BOOL, pmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IInputObjectSite(pub ::windows::core::IUnknown); impl IInputObjectSite { #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnFocusChangeIS<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, punkobj: Param0, fsetfocus: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), punkobj.into_param().abi(), fsetfocus.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IInputObjectSite { type Vtable = IInputObjectSite_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf1db8392_7331_11d0_8c99_00a0c92dbfe8); } impl ::core::convert::From<IInputObjectSite> for ::windows::core::IUnknown { fn from(value: IInputObjectSite) -> Self { value.0 } } impl ::core::convert::From<&IInputObjectSite> for ::windows::core::IUnknown { fn from(value: &IInputObjectSite) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IInputObjectSite { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IInputObjectSite { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IInputObjectSite_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punkobj: ::windows::core::RawPtr, fsetfocus: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IInputPaneAnimationCoordinator(pub ::windows::core::IUnknown); impl IInputPaneAnimationCoordinator { #[cfg(feature = "Win32_Graphics_DirectComposition")] pub unsafe fn AddAnimation<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param1: ::windows::core::IntoParam<'a, super::super::Graphics::DirectComposition::IDCompositionAnimation>>(&self, device: Param0, animation: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), device.into_param().abi(), animation.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IInputPaneAnimationCoordinator { type Vtable = IInputPaneAnimationCoordinator_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2af16ba9_2de5_4b75_82d9_01372afbffb4); } impl ::core::convert::From<IInputPaneAnimationCoordinator> for ::windows::core::IUnknown { fn from(value: IInputPaneAnimationCoordinator) -> Self { value.0 } } impl ::core::convert::From<&IInputPaneAnimationCoordinator> for ::windows::core::IUnknown { fn from(value: &IInputPaneAnimationCoordinator) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IInputPaneAnimationCoordinator { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IInputPaneAnimationCoordinator { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IInputPaneAnimationCoordinator_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, #[cfg(feature = "Win32_Graphics_DirectComposition")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, device: ::windows::core::RawPtr, animation: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_DirectComposition"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IInputPanelConfiguration(pub ::windows::core::IUnknown); impl IInputPanelConfiguration { pub unsafe fn EnableFocusTracking(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IInputPanelConfiguration { type Vtable = IInputPanelConfiguration_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x41c81592_514c_48bd_a22e_e6af638521a6); } impl ::core::convert::From<IInputPanelConfiguration> for ::windows::core::IUnknown { fn from(value: IInputPanelConfiguration) -> Self { value.0 } } impl ::core::convert::From<&IInputPanelConfiguration> for ::windows::core::IUnknown { fn from(value: &IInputPanelConfiguration) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IInputPanelConfiguration { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IInputPanelConfiguration { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IInputPanelConfiguration_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) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IInputPanelInvocationConfiguration(pub ::windows::core::IUnknown); impl IInputPanelInvocationConfiguration { pub unsafe fn RequireTouchInEditControl(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IInputPanelInvocationConfiguration { type Vtable = IInputPanelInvocationConfiguration_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa213f136_3b45_4362_a332_efb6547cd432); } impl ::core::convert::From<IInputPanelInvocationConfiguration> for ::windows::core::IUnknown { fn from(value: IInputPanelInvocationConfiguration) -> Self { value.0 } } impl ::core::convert::From<&IInputPanelInvocationConfiguration> for ::windows::core::IUnknown { fn from(value: &IInputPanelInvocationConfiguration) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IInputPanelInvocationConfiguration { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IInputPanelInvocationConfiguration { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IInputPanelInvocationConfiguration_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) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IInsertItem(pub ::windows::core::IUnknown); impl IInsertItem { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn InsertItem(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl)).ok() } } unsafe impl ::windows::core::Interface for IInsertItem { type Vtable = IInsertItem_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd2b57227_3d23_4b95_93c0_492bd454c356); } impl ::core::convert::From<IInsertItem> for ::windows::core::IUnknown { fn from(value: IInsertItem) -> Self { value.0 } } impl ::core::convert::From<&IInsertItem> for ::windows::core::IUnknown { fn from(value: &IInsertItem) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IInsertItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IInsertItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IInsertItem_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, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IItemNameLimits(pub ::windows::core::IUnknown); impl IItemNameLimits { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetValidCharacters(&self, ppwszvalidchars: *mut super::super::Foundation::PWSTR, ppwszinvalidchars: *mut super::super::Foundation::PWSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppwszvalidchars), ::core::mem::transmute(ppwszinvalidchars)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetMaxLength<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszname: Param0) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pszname.into_param().abi(), &mut result__).from_abi::<i32>(result__) } } unsafe impl ::windows::core::Interface for IItemNameLimits { type Vtable = IItemNameLimits_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1df0d7f1_b267_4d28_8b10_12e23202a5c4); } impl ::core::convert::From<IItemNameLimits> for ::windows::core::IUnknown { fn from(value: IItemNameLimits) -> Self { value.0 } } impl ::core::convert::From<&IItemNameLimits> for ::windows::core::IUnknown { fn from(value: &IItemNameLimits) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IItemNameLimits { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IItemNameLimits { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IItemNameLimits_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppwszvalidchars: *mut super::super::Foundation::PWSTR, ppwszinvalidchars: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR, pimaxnamelen: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IKnownFolder(pub ::windows::core::IUnknown); impl IKnownFolder { pub unsafe fn GetId(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__: <::windows::core::GUID as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<::windows::core::GUID>(result__) } pub unsafe fn GetCategory(&self) -> ::windows::core::Result<KF_CATEGORY> { let mut result__: <KF_CATEGORY as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<KF_CATEGORY>(result__) } pub unsafe fn GetShellItem<T: ::windows::core::Interface>(&self, dwflags: u32) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetPath(&self, dwflags: u32) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetPath<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, dwflags: u32, pszpath: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags), pszpath.into_param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetIDList(&self, dwflags: u32) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } pub unsafe fn GetFolderType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__: <::windows::core::GUID as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<::windows::core::GUID>(result__) } pub unsafe fn GetRedirectionCapabilities(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetFolderDefinition(&self) -> ::windows::core::Result<KNOWNFOLDER_DEFINITION> { let mut result__: <KNOWNFOLDER_DEFINITION as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<KNOWNFOLDER_DEFINITION>(result__) } } unsafe impl ::windows::core::Interface for IKnownFolder { type Vtable = IKnownFolder_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3aa7af7e_9b36_420c_a8e3_f77d4674a488); } impl ::core::convert::From<IKnownFolder> for ::windows::core::IUnknown { fn from(value: IKnownFolder) -> Self { value.0 } } impl ::core::convert::From<&IKnownFolder> for ::windows::core::IUnknown { fn from(value: &IKnownFolder) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IKnownFolder { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IKnownFolder { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IKnownFolder_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, pkfid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcategory: *mut KF_CATEGORY) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32, ppszpath: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32, pszpath: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pftid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcapabilities: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pkfd: *mut KNOWNFOLDER_DEFINITION) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IKnownFolderManager(pub ::windows::core::IUnknown); impl IKnownFolderManager { pub unsafe fn FolderIdFromCsidl(&self, ncsidl: i32) -> ::windows::core::Result<::windows::core::GUID> { let mut result__: <::windows::core::GUID as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(ncsidl), &mut result__).from_abi::<::windows::core::GUID>(result__) } pub unsafe fn FolderIdToCsidl(&self, rfid: *const ::windows::core::GUID) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(rfid), &mut result__).from_abi::<i32>(result__) } pub unsafe fn GetFolderIds(&self, ppkfid: *mut *mut ::windows::core::GUID, pcount: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppkfid), ::core::mem::transmute(pcount)).ok() } pub unsafe fn GetFolder(&self, rfid: *const ::windows::core::GUID) -> ::windows::core::Result<IKnownFolder> { let mut result__: <IKnownFolder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(rfid), &mut result__).from_abi::<IKnownFolder>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetFolderByName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszcanonicalname: Param0) -> ::windows::core::Result<IKnownFolder> { let mut result__: <IKnownFolder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pszcanonicalname.into_param().abi(), &mut result__).from_abi::<IKnownFolder>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn RegisterFolder(&self, rfid: *const ::windows::core::GUID, pkfd: *const KNOWNFOLDER_DEFINITION) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(rfid), ::core::mem::transmute(pkfd)).ok() } pub unsafe fn UnregisterFolder(&self, rfid: *const ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(rfid)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn FindFolderFromPath<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszpath: Param0, mode: FFFP_MODE) -> ::windows::core::Result<IKnownFolder> { let mut result__: <IKnownFolder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), pszpath.into_param().abi(), ::core::mem::transmute(mode), &mut result__).from_abi::<IKnownFolder>(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn FindFolderFromIDList(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<IKnownFolder> { let mut result__: <IKnownFolder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), &mut result__).from_abi::<IKnownFolder>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Redirect<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, rfid: *const ::windows::core::GUID, hwnd: Param1, flags: u32, psztargetpath: Param3, cfolders: u32, pexclusion: *const ::windows::core::GUID) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(rfid), hwnd.into_param().abi(), ::core::mem::transmute(flags), psztargetpath.into_param().abi(), ::core::mem::transmute(cfolders), ::core::mem::transmute(pexclusion), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } } unsafe impl ::windows::core::Interface for IKnownFolderManager { type Vtable = IKnownFolderManager_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8be2d872_86aa_4d47_b776_32cca40c7018); } impl ::core::convert::From<IKnownFolderManager> for ::windows::core::IUnknown { fn from(value: IKnownFolderManager) -> Self { value.0 } } impl ::core::convert::From<&IKnownFolderManager> for ::windows::core::IUnknown { fn from(value: &IKnownFolderManager) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IKnownFolderManager { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IKnownFolderManager { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IKnownFolderManager_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, ncsidl: i32, pfid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rfid: *const ::windows::core::GUID, pncsidl: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppkfid: *mut *mut ::windows::core::GUID, pcount: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rfid: *const ::windows::core::GUID, ppkf: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszcanonicalname: super::super::Foundation::PWSTR, ppkf: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rfid: *const ::windows::core::GUID, pkfd: *const KNOWNFOLDER_DEFINITION) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rfid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszpath: super::super::Foundation::PWSTR, mode: FFFP_MODE, ppkf: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, ppkf: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rfid: *const ::windows::core::GUID, hwnd: super::super::Foundation::HWND, flags: u32, psztargetpath: super::super::Foundation::PWSTR, cfolders: u32, pexclusion: *const ::windows::core::GUID, ppszerror: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn ILAppendID<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(pidl: *const Common::ITEMIDLIST, pmkid: *const Common::SHITEMID, fappend: Param2) -> *mut Common::ITEMIDLIST { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ILAppendID(pidl: *const Common::ITEMIDLIST, pmkid: *const Common::SHITEMID, fappend: super::super::Foundation::BOOL) -> *mut Common::ITEMIDLIST; } ::core::mem::transmute(ILAppendID(::core::mem::transmute(pidl), ::core::mem::transmute(pmkid), fappend.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn ILClone(pidl: *const Common::ITEMIDLIST) -> *mut Common::ITEMIDLIST { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ILClone(pidl: *const Common::ITEMIDLIST) -> *mut Common::ITEMIDLIST; } ::core::mem::transmute(ILClone(::core::mem::transmute(pidl))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn ILCloneFirst(pidl: *const Common::ITEMIDLIST) -> *mut Common::ITEMIDLIST { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ILCloneFirst(pidl: *const Common::ITEMIDLIST) -> *mut Common::ITEMIDLIST; } ::core::mem::transmute(ILCloneFirst(::core::mem::transmute(pidl))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn ILCombine(pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST) -> *mut Common::ITEMIDLIST { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ILCombine(pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST) -> *mut Common::ITEMIDLIST; } ::core::mem::transmute(ILCombine(::core::mem::transmute(pidl1), ::core::mem::transmute(pidl2))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn ILCreateFromPathA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> *mut Common::ITEMIDLIST { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ILCreateFromPathA(pszpath: super::super::Foundation::PSTR) -> *mut Common::ITEMIDLIST; } ::core::mem::transmute(ILCreateFromPathA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn ILCreateFromPathW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> *mut Common::ITEMIDLIST { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ILCreateFromPathW(pszpath: super::super::Foundation::PWSTR) -> *mut Common::ITEMIDLIST; } ::core::mem::transmute(ILCreateFromPathW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn ILFindChild(pidlparent: *const Common::ITEMIDLIST, pidlchild: *const Common::ITEMIDLIST) -> *mut Common::ITEMIDLIST { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ILFindChild(pidlparent: *const Common::ITEMIDLIST, pidlchild: *const Common::ITEMIDLIST) -> *mut Common::ITEMIDLIST; } ::core::mem::transmute(ILFindChild(::core::mem::transmute(pidlparent), ::core::mem::transmute(pidlchild))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn ILFindLastID(pidl: *const Common::ITEMIDLIST) -> *mut Common::ITEMIDLIST { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ILFindLastID(pidl: *const Common::ITEMIDLIST) -> *mut Common::ITEMIDLIST; } ::core::mem::transmute(ILFindLastID(::core::mem::transmute(pidl))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn ILFree(pidl: *const Common::ITEMIDLIST) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ILFree(pidl: *const Common::ITEMIDLIST); } ::core::mem::transmute(ILFree(::core::mem::transmute(pidl))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn ILGetNext(pidl: *const Common::ITEMIDLIST) -> *mut Common::ITEMIDLIST { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ILGetNext(pidl: *const Common::ITEMIDLIST) -> *mut Common::ITEMIDLIST; } ::core::mem::transmute(ILGetNext(::core::mem::transmute(pidl))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn ILGetSize(pidl: *const Common::ITEMIDLIST) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ILGetSize(pidl: *const Common::ITEMIDLIST) -> u32; } ::core::mem::transmute(ILGetSize(::core::mem::transmute(pidl))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn ILIsEqual(pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ILIsEqual(pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST) -> super::super::Foundation::BOOL; } ::core::mem::transmute(ILIsEqual(::core::mem::transmute(pidl1), ::core::mem::transmute(pidl2))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn ILIsParent<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST, fimmediate: Param2) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ILIsParent(pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST, fimmediate: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; } ::core::mem::transmute(ILIsParent(::core::mem::transmute(pidl1), ::core::mem::transmute(pidl2), fimmediate.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn ILLoadFromStreamEx<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>>(pstm: Param0) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ILLoadFromStreamEx(pstm: ::windows::core::RawPtr, pidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT; } let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); ILLoadFromStreamEx(pstm.into_param().abi(), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const ILMM_IE4: u32 = 0u32; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn ILRemoveLastID(pidl: *mut Common::ITEMIDLIST) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ILRemoveLastID(pidl: *mut Common::ITEMIDLIST) -> super::super::Foundation::BOOL; } ::core::mem::transmute(ILRemoveLastID(::core::mem::transmute(pidl))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn ILSaveToStream<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>>(pstm: Param0, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ILSaveToStream(pstm: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT; } ILSaveToStream(pstm.into_param().abi(), ::core::mem::transmute(pidl)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ILaunchSourceAppUserModelId(pub ::windows::core::IUnknown); impl ILaunchSourceAppUserModelId { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetAppUserModelId(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } } unsafe impl ::windows::core::Interface for ILaunchSourceAppUserModelId { type Vtable = ILaunchSourceAppUserModelId_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x989191ac_28ff_4cf0_9584_e0d078bc2396); } impl ::core::convert::From<ILaunchSourceAppUserModelId> for ::windows::core::IUnknown { fn from(value: ILaunchSourceAppUserModelId) -> Self { value.0 } } impl ::core::convert::From<&ILaunchSourceAppUserModelId> for ::windows::core::IUnknown { fn from(value: &ILaunchSourceAppUserModelId) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ILaunchSourceAppUserModelId { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ILaunchSourceAppUserModelId { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ILaunchSourceAppUserModelId_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, launchingapp: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ILaunchSourceViewSizePreference(pub ::windows::core::IUnknown); impl ILaunchSourceViewSizePreference { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSourceViewToPosition(&self) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } pub unsafe fn GetSourceViewSizePreference(&self) -> ::windows::core::Result<APPLICATION_VIEW_SIZE_PREFERENCE> { let mut result__: <APPLICATION_VIEW_SIZE_PREFERENCE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<APPLICATION_VIEW_SIZE_PREFERENCE>(result__) } } unsafe impl ::windows::core::Interface for ILaunchSourceViewSizePreference { type Vtable = ILaunchSourceViewSizePreference_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe5aa01f7_1fb8_4830_8720_4e6734cbd5f3); } impl ::core::convert::From<ILaunchSourceViewSizePreference> for ::windows::core::IUnknown { fn from(value: ILaunchSourceViewSizePreference) -> Self { value.0 } } impl ::core::convert::From<&ILaunchSourceViewSizePreference> for ::windows::core::IUnknown { fn from(value: &ILaunchSourceViewSizePreference) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ILaunchSourceViewSizePreference { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ILaunchSourceViewSizePreference { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ILaunchSourceViewSizePreference_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, sourcesizeafterlaunch: *mut APPLICATION_VIEW_SIZE_PREFERENCE) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ILaunchTargetMonitor(pub ::windows::core::IUnknown); impl ILaunchTargetMonitor { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetMonitor(&self) -> ::windows::core::Result<super::super::Graphics::Gdi::HMONITOR> { let mut result__: <super::super::Graphics::Gdi::HMONITOR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Graphics::Gdi::HMONITOR>(result__) } } unsafe impl ::windows::core::Interface for ILaunchTargetMonitor { type Vtable = ILaunchTargetMonitor_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x266fbc7e_490d_46ed_a96b_2274db252003); } impl ::core::convert::From<ILaunchTargetMonitor> for ::windows::core::IUnknown { fn from(value: ILaunchTargetMonitor) -> Self { value.0 } } impl ::core::convert::From<&ILaunchTargetMonitor> for ::windows::core::IUnknown { fn from(value: &ILaunchTargetMonitor) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ILaunchTargetMonitor { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ILaunchTargetMonitor { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ILaunchTargetMonitor_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, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, monitor: *mut super::super::Graphics::Gdi::HMONITOR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ILaunchTargetViewSizePreference(pub ::windows::core::IUnknown); impl ILaunchTargetViewSizePreference { pub unsafe fn GetTargetViewSizePreference(&self) -> ::windows::core::Result<APPLICATION_VIEW_SIZE_PREFERENCE> { let mut result__: <APPLICATION_VIEW_SIZE_PREFERENCE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<APPLICATION_VIEW_SIZE_PREFERENCE>(result__) } } unsafe impl ::windows::core::Interface for ILaunchTargetViewSizePreference { type Vtable = ILaunchTargetViewSizePreference_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2f0666c6_12f7_4360_b511_a394a0553725); } impl ::core::convert::From<ILaunchTargetViewSizePreference> for ::windows::core::IUnknown { fn from(value: ILaunchTargetViewSizePreference) -> Self { value.0 } } impl ::core::convert::From<&ILaunchTargetViewSizePreference> for ::windows::core::IUnknown { fn from(value: &ILaunchTargetViewSizePreference) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ILaunchTargetViewSizePreference { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ILaunchTargetViewSizePreference { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ILaunchTargetViewSizePreference_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, targetsizeonlaunch: *mut APPLICATION_VIEW_SIZE_PREFERENCE) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ILaunchUIContext(pub ::windows::core::IUnknown); impl ILaunchUIContext { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetAssociatedWindow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, value: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), value.into_param().abi()).ok() } pub unsafe fn SetTabGroupingPreference(&self, value: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(value)).ok() } } unsafe impl ::windows::core::Interface for ILaunchUIContext { type Vtable = ILaunchUIContext_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1791e8f6_21c7_4340_882a_a6a93e3fd73b); } impl ::core::convert::From<ILaunchUIContext> for ::windows::core::IUnknown { fn from(value: ILaunchUIContext) -> Self { value.0 } } impl ::core::convert::From<&ILaunchUIContext> for ::windows::core::IUnknown { fn from(value: &ILaunchUIContext) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ILaunchUIContext { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ILaunchUIContext { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ILaunchUIContext_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ILaunchUIContextProvider(pub ::windows::core::IUnknown); impl ILaunchUIContextProvider { pub unsafe fn UpdateContext<'a, Param0: ::windows::core::IntoParam<'a, ILaunchUIContext>>(&self, context: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), context.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for ILaunchUIContextProvider { type Vtable = ILaunchUIContextProvider_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0d12c4c8_a3d9_4e24_94c1_0e20c5a956c4); } impl ::core::convert::From<ILaunchUIContextProvider> for ::windows::core::IUnknown { fn from(value: ILaunchUIContextProvider) -> Self { value.0 } } impl ::core::convert::From<&ILaunchUIContextProvider> for ::windows::core::IUnknown { fn from(value: &ILaunchUIContextProvider) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ILaunchUIContextProvider { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ILaunchUIContextProvider { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ILaunchUIContextProvider_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, context: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); pub const IMM_ACC_DOCKING_E_DOCKOCCUPIED: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927183i32 as _); pub const IMM_ACC_DOCKING_E_INSUFFICIENTHEIGHT: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927184i32 as _); pub const IMSC_E_SHELL_COMPONENT_STARTUP_FAILURE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927181i32 as _); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IMenuBand(pub ::windows::core::IUnknown); impl IMenuBand { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn IsMenuMessage(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pmsg)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn TranslateMenuMessage(&self, pmsg: *mut super::WindowsAndMessaging::MSG, plret: *mut super::super::Foundation::LRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pmsg), ::core::mem::transmute(plret)).ok() } } unsafe impl ::windows::core::Interface for IMenuBand { type Vtable = IMenuBand_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x568804cd_cbd7_11d0_9816_00c04fd91972); } impl ::core::convert::From<IMenuBand> for ::windows::core::IUnknown { fn from(value: IMenuBand) -> Self { value.0 } } impl ::core::convert::From<&IMenuBand> for ::windows::core::IUnknown { fn from(value: &IMenuBand) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IMenuBand { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IMenuBand { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IMenuBand_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmsg: *mut super::WindowsAndMessaging::MSG, plret: *mut super::super::Foundation::LRESULT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IMenuPopup(pub ::windows::core::IUnknown); impl IMenuPopup { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetWindow(&self) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ContextSensitiveHelp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fentermode: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), fentermode.into_param().abi()).ok() } pub unsafe fn SetClient<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punkclient: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), punkclient.into_param().abi()).ok() } pub unsafe fn GetClient(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__: <::windows::core::IUnknown as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<::windows::core::IUnknown>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnPosRectChangeDB(&self, prc: *const super::super::Foundation::RECT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(prc)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Popup(&self, ppt: *const super::super::Foundation::POINTL, prcexclude: *const super::super::Foundation::RECTL, dwflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppt), ::core::mem::transmute(prcexclude), ::core::mem::transmute(dwflags)).ok() } pub unsafe fn OnSelect(&self, dwselecttype: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwselecttype)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetSubMenu<'a, Param0: ::windows::core::IntoParam<'a, IMenuPopup>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, pmp: Param0, fset: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), pmp.into_param().abi(), fset.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IMenuPopup { type Vtable = IMenuPopup_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd1e7afeb_6a2e_11d0_8c78_00c04fd918b4); } impl ::core::convert::From<IMenuPopup> for ::windows::core::IUnknown { fn from(value: IMenuPopup) -> Self { value.0 } } impl ::core::convert::From<&IMenuPopup> for ::windows::core::IUnknown { fn from(value: &IMenuPopup) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IMenuPopup { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IMenuPopup { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IMenuPopup> for IDeskBar { fn from(value: IMenuPopup) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IMenuPopup> for IDeskBar { fn from(value: &IMenuPopup) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IDeskBar> for IMenuPopup { fn into_param(self) -> ::windows::core::Param<'a, IDeskBar> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IDeskBar> for &IMenuPopup { fn into_param(self) -> ::windows::core::Param<'a, IDeskBar> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<IMenuPopup> for super::super::System::Ole::IOleWindow { fn from(value: IMenuPopup) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<&IMenuPopup> for super::super::System::Ole::IOleWindow { fn from(value: &IMenuPopup) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for IMenuPopup { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for &IMenuPopup { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IMenuPopup_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fentermode: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punkclient: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppunkclient: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, prc: *const super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppt: *const super::super::Foundation::POINTL, prcexclude: *const super::super::Foundation::RECTL, dwflags: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwselecttype: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmp: ::windows::core::RawPtr, fset: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IModalWindow(pub ::windows::core::IUnknown); impl IModalWindow { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Show<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndowner: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwndowner.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IModalWindow { type Vtable = IModalWindow_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb4db1657_70d7_485e_8e3e_6fcb5a5c1802); } impl ::core::convert::From<IModalWindow> for ::windows::core::IUnknown { fn from(value: IModalWindow) -> Self { value.0 } } impl ::core::convert::From<&IModalWindow> for ::windows::core::IUnknown { fn from(value: &IModalWindow) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IModalWindow { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IModalWindow { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IModalWindow_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndowner: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); pub const INTERNET_MAX_PATH_LENGTH: u32 = 2048u32; pub const INTERNET_MAX_SCHEME_LENGTH: u32 = 32u32; #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct INameSpaceTreeAccessible(pub ::windows::core::IUnknown); impl INameSpaceTreeAccessible { #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnGetDefaultAccessibilityAction<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psi.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn OnDoDefaultAccessibilityAction<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn OnGetAccessibilityRole<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), psi.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } } unsafe impl ::windows::core::Interface for INameSpaceTreeAccessible { type Vtable = INameSpaceTreeAccessible_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x71f312de_43ed_4190_8477_e9536b82350b); } impl ::core::convert::From<INameSpaceTreeAccessible> for ::windows::core::IUnknown { fn from(value: INameSpaceTreeAccessible) -> Self { value.0 } } impl ::core::convert::From<&INameSpaceTreeAccessible> for ::windows::core::IUnknown { fn from(value: &INameSpaceTreeAccessible) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for INameSpaceTreeAccessible { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a INameSpaceTreeAccessible { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct INameSpaceTreeAccessible_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, pbstrdefaultaction: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, pvarrole: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct INameSpaceTreeControl(pub ::windows::core::IUnknown); impl INameSpaceTreeControl { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Initialize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndparent: Param0, prc: *const super::super::Foundation::RECT, nsctsflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwndparent.into_param().abi(), ::core::mem::transmute(prc), ::core::mem::transmute(nsctsflags)).ok() } pub unsafe fn TreeAdvise<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punk: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), punk.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn TreeUnadvise(&self, dwcookie: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwcookie)).ok() } pub unsafe fn AppendRoot<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param3: ::windows::core::IntoParam<'a, IShellItemFilter>>(&self, psiroot: Param0, grfenumflags: u32, grfrootstyle: u32, pif: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), psiroot.into_param().abi(), ::core::mem::transmute(grfenumflags), ::core::mem::transmute(grfrootstyle), pif.into_param().abi()).ok() } pub unsafe fn InsertRoot<'a, Param1: ::windows::core::IntoParam<'a, IShellItem>, Param4: ::windows::core::IntoParam<'a, IShellItemFilter>>(&self, iindex: i32, psiroot: Param1, grfenumflags: u32, grfrootstyle: u32, pif: Param4) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(iindex), psiroot.into_param().abi(), ::core::mem::transmute(grfenumflags), ::core::mem::transmute(grfrootstyle), pif.into_param().abi()).ok() } pub unsafe fn RemoveRoot<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psiroot: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), psiroot.into_param().abi()).ok() } pub unsafe fn RemoveAllRoots(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GetRootItems(&self) -> ::windows::core::Result<IShellItemArray> { let mut result__: <IShellItemArray as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItemArray>(result__) } pub unsafe fn SetItemState<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, nstcismask: u32, nstcisflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(nstcismask), ::core::mem::transmute(nstcisflags)).ok() } pub unsafe fn GetItemState<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, nstcismask: u32) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(nstcismask), &mut result__).from_abi::<u32>(result__) } pub unsafe fn GetSelectedItems(&self) -> ::windows::core::Result<IShellItemArray> { let mut result__: <IShellItemArray as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItemArray>(result__) } pub unsafe fn GetItemCustomState<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), psi.into_param().abi(), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetItemCustomState<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, istatenumber: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(istatenumber)).ok() } pub unsafe fn EnsureItemVisible<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetTheme<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psztheme: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), psztheme.into_param().abi()).ok() } pub unsafe fn GetNextItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, nstcgi: NSTCGNI) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(nstcgi), &mut result__).from_abi::<IShellItem>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn HitTest(&self, ppt: *const super::super::Foundation::POINT) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppt), &mut result__).from_abi::<IShellItem>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetItemRect<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<super::super::Foundation::RECT> { let mut result__: <super::super::Foundation::RECT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), psi.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::RECT>(result__) } pub unsafe fn CollapseAll(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for INameSpaceTreeControl { type Vtable = INameSpaceTreeControl_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x028212a3_b627_47e9_8856_c14265554e4f); } impl ::core::convert::From<INameSpaceTreeControl> for ::windows::core::IUnknown { fn from(value: INameSpaceTreeControl) -> Self { value.0 } } impl ::core::convert::From<&INameSpaceTreeControl> for ::windows::core::IUnknown { fn from(value: &INameSpaceTreeControl) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for INameSpaceTreeControl { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a INameSpaceTreeControl { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct INameSpaceTreeControl_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndparent: super::super::Foundation::HWND, prc: *const super::super::Foundation::RECT, nsctsflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punk: ::windows::core::RawPtr, pdwcookie: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwcookie: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiroot: ::windows::core::RawPtr, grfenumflags: u32, grfrootstyle: u32, pif: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iindex: i32, psiroot: ::windows::core::RawPtr, grfenumflags: u32, grfrootstyle: u32, pif: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiroot: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsiarootitems: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, nstcismask: u32, nstcisflags: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, nstcismask: u32, pnstcisflags: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiaitems: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, pistatenumber: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, istatenumber: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psztheme: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, nstcgi: NSTCGNI, ppsinext: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppt: *const super::super::Foundation::POINT, ppsiout: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, prect: *mut super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct INameSpaceTreeControl2(pub ::windows::core::IUnknown); impl INameSpaceTreeControl2 { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Initialize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndparent: Param0, prc: *const super::super::Foundation::RECT, nsctsflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwndparent.into_param().abi(), ::core::mem::transmute(prc), ::core::mem::transmute(nsctsflags)).ok() } pub unsafe fn TreeAdvise<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punk: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), punk.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn TreeUnadvise(&self, dwcookie: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwcookie)).ok() } pub unsafe fn AppendRoot<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param3: ::windows::core::IntoParam<'a, IShellItemFilter>>(&self, psiroot: Param0, grfenumflags: u32, grfrootstyle: u32, pif: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), psiroot.into_param().abi(), ::core::mem::transmute(grfenumflags), ::core::mem::transmute(grfrootstyle), pif.into_param().abi()).ok() } pub unsafe fn InsertRoot<'a, Param1: ::windows::core::IntoParam<'a, IShellItem>, Param4: ::windows::core::IntoParam<'a, IShellItemFilter>>(&self, iindex: i32, psiroot: Param1, grfenumflags: u32, grfrootstyle: u32, pif: Param4) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(iindex), psiroot.into_param().abi(), ::core::mem::transmute(grfenumflags), ::core::mem::transmute(grfrootstyle), pif.into_param().abi()).ok() } pub unsafe fn RemoveRoot<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psiroot: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), psiroot.into_param().abi()).ok() } pub unsafe fn RemoveAllRoots(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GetRootItems(&self) -> ::windows::core::Result<IShellItemArray> { let mut result__: <IShellItemArray as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItemArray>(result__) } pub unsafe fn SetItemState<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, nstcismask: u32, nstcisflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(nstcismask), ::core::mem::transmute(nstcisflags)).ok() } pub unsafe fn GetItemState<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, nstcismask: u32) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(nstcismask), &mut result__).from_abi::<u32>(result__) } pub unsafe fn GetSelectedItems(&self) -> ::windows::core::Result<IShellItemArray> { let mut result__: <IShellItemArray as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItemArray>(result__) } pub unsafe fn GetItemCustomState<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), psi.into_param().abi(), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetItemCustomState<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, istatenumber: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(istatenumber)).ok() } pub unsafe fn EnsureItemVisible<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetTheme<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psztheme: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), psztheme.into_param().abi()).ok() } pub unsafe fn GetNextItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, nstcgi: NSTCGNI) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(nstcgi), &mut result__).from_abi::<IShellItem>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn HitTest(&self, ppt: *const super::super::Foundation::POINT) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppt), &mut result__).from_abi::<IShellItem>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetItemRect<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<super::super::Foundation::RECT> { let mut result__: <super::super::Foundation::RECT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), psi.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::RECT>(result__) } pub unsafe fn CollapseAll(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetControlStyle(&self, nstcsmask: u32, nstcsstyle: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), ::core::mem::transmute(nstcsmask), ::core::mem::transmute(nstcsstyle)).ok() } pub unsafe fn GetControlStyle(&self, nstcsmask: u32) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(nstcsmask), &mut result__).from_abi::<u32>(result__) } pub unsafe fn SetControlStyle2(&self, nstcsmask: NSTCSTYLE2, nstcsstyle: NSTCSTYLE2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), ::core::mem::transmute(nstcsmask), ::core::mem::transmute(nstcsstyle)).ok() } pub unsafe fn GetControlStyle2(&self, nstcsmask: NSTCSTYLE2) -> ::windows::core::Result<NSTCSTYLE2> { let mut result__: <NSTCSTYLE2 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), ::core::mem::transmute(nstcsmask), &mut result__).from_abi::<NSTCSTYLE2>(result__) } } unsafe impl ::windows::core::Interface for INameSpaceTreeControl2 { type Vtable = INameSpaceTreeControl2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7cc7aed8_290e_49bc_8945_c1401cc9306c); } impl ::core::convert::From<INameSpaceTreeControl2> for ::windows::core::IUnknown { fn from(value: INameSpaceTreeControl2) -> Self { value.0 } } impl ::core::convert::From<&INameSpaceTreeControl2> for ::windows::core::IUnknown { fn from(value: &INameSpaceTreeControl2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for INameSpaceTreeControl2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a INameSpaceTreeControl2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<INameSpaceTreeControl2> for INameSpaceTreeControl { fn from(value: INameSpaceTreeControl2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&INameSpaceTreeControl2> for INameSpaceTreeControl { fn from(value: &INameSpaceTreeControl2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, INameSpaceTreeControl> for INameSpaceTreeControl2 { fn into_param(self) -> ::windows::core::Param<'a, INameSpaceTreeControl> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, INameSpaceTreeControl> for &INameSpaceTreeControl2 { fn into_param(self) -> ::windows::core::Param<'a, INameSpaceTreeControl> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct INameSpaceTreeControl2_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndparent: super::super::Foundation::HWND, prc: *const super::super::Foundation::RECT, nsctsflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punk: ::windows::core::RawPtr, pdwcookie: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwcookie: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiroot: ::windows::core::RawPtr, grfenumflags: u32, grfrootstyle: u32, pif: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iindex: i32, psiroot: ::windows::core::RawPtr, grfenumflags: u32, grfrootstyle: u32, pif: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiroot: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsiarootitems: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, nstcismask: u32, nstcisflags: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, nstcismask: u32, pnstcisflags: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiaitems: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, pistatenumber: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, istatenumber: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psztheme: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, nstcgi: NSTCGNI, ppsinext: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppt: *const super::super::Foundation::POINT, ppsiout: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, prect: *mut super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, nstcsmask: u32, nstcsstyle: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, nstcsmask: u32, pnstcsstyle: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, nstcsmask: NSTCSTYLE2, nstcsstyle: NSTCSTYLE2) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, nstcsmask: NSTCSTYLE2, pnstcsstyle: *mut NSTCSTYLE2) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct INameSpaceTreeControlCustomDraw(pub ::windows::core::IUnknown); impl INameSpaceTreeControlCustomDraw { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe fn PrePaint<'a, Param0: ::windows::core::IntoParam<'a, super::super::Graphics::Gdi::HDC>>(&self, hdc: Param0, prc: *const super::super::Foundation::RECT) -> ::windows::core::Result<super::super::Foundation::LRESULT> { let mut result__: <super::super::Foundation::LRESULT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hdc.into_param().abi(), ::core::mem::transmute(prc), &mut result__).from_abi::<super::super::Foundation::LRESULT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe fn PostPaint<'a, Param0: ::windows::core::IntoParam<'a, super::super::Graphics::Gdi::HDC>>(&self, hdc: Param0, prc: *const super::super::Foundation::RECT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), hdc.into_param().abi(), ::core::mem::transmute(prc)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls"))] pub unsafe fn ItemPrePaint<'a, Param0: ::windows::core::IntoParam<'a, super::super::Graphics::Gdi::HDC>>(&self, hdc: Param0, prc: *const super::super::Foundation::RECT, pnstccditem: *const NSTCCUSTOMDRAW, pclrtext: *mut u32, pclrtextbk: *mut u32, plres: *mut super::super::Foundation::LRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), hdc.into_param().abi(), ::core::mem::transmute(prc), ::core::mem::transmute(pnstccditem), ::core::mem::transmute(pclrtext), ::core::mem::transmute(pclrtextbk), ::core::mem::transmute(plres)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls"))] pub unsafe fn ItemPostPaint<'a, Param0: ::windows::core::IntoParam<'a, super::super::Graphics::Gdi::HDC>>(&self, hdc: Param0, prc: *const super::super::Foundation::RECT, pnstccditem: *const NSTCCUSTOMDRAW) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), hdc.into_param().abi(), ::core::mem::transmute(prc), ::core::mem::transmute(pnstccditem)).ok() } } unsafe impl ::windows::core::Interface for INameSpaceTreeControlCustomDraw { type Vtable = INameSpaceTreeControlCustomDraw_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2d3ba758_33ee_42d5_bb7b_5f3431d86c78); } impl ::core::convert::From<INameSpaceTreeControlCustomDraw> for ::windows::core::IUnknown { fn from(value: INameSpaceTreeControlCustomDraw) -> Self { value.0 } } impl ::core::convert::From<&INameSpaceTreeControlCustomDraw> for ::windows::core::IUnknown { fn from(value: &INameSpaceTreeControlCustomDraw) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for INameSpaceTreeControlCustomDraw { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a INameSpaceTreeControlCustomDraw { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct INameSpaceTreeControlCustomDraw_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hdc: super::super::Graphics::Gdi::HDC, prc: *const super::super::Foundation::RECT, plres: *mut super::super::Foundation::LRESULT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hdc: super::super::Graphics::Gdi::HDC, prc: *const super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hdc: super::super::Graphics::Gdi::HDC, prc: *const super::super::Foundation::RECT, pnstccditem: *const ::core::mem::ManuallyDrop<NSTCCUSTOMDRAW>, pclrtext: *mut u32, pclrtextbk: *mut u32, plres: *mut super::super::Foundation::LRESULT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hdc: super::super::Graphics::Gdi::HDC, prc: *const super::super::Foundation::RECT, pnstccditem: *const ::core::mem::ManuallyDrop<NSTCCUSTOMDRAW>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct INameSpaceTreeControlDropHandler(pub ::windows::core::IUnknown); impl INameSpaceTreeControlDropHandler { #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnDragEnter<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, IShellItemArray>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, psiover: Param0, psiadata: Param1, foutsidesource: Param2, grfkeystate: u32, pdweffect: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psiover.into_param().abi(), psiadata.into_param().abi(), foutsidesource.into_param().abi(), ::core::mem::transmute(grfkeystate), ::core::mem::transmute(pdweffect)).ok() } pub unsafe fn OnDragOver<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, IShellItemArray>>(&self, psiover: Param0, psiadata: Param1, grfkeystate: u32, pdweffect: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), psiover.into_param().abi(), psiadata.into_param().abi(), ::core::mem::transmute(grfkeystate), ::core::mem::transmute(pdweffect)).ok() } pub unsafe fn OnDragPosition<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, IShellItemArray>>(&self, psiover: Param0, psiadata: Param1, inewposition: i32, ioldposition: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), psiover.into_param().abi(), psiadata.into_param().abi(), ::core::mem::transmute(inewposition), ::core::mem::transmute(ioldposition)).ok() } pub unsafe fn OnDrop<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, IShellItemArray>>(&self, psiover: Param0, psiadata: Param1, iposition: i32, grfkeystate: u32, pdweffect: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), psiover.into_param().abi(), psiadata.into_param().abi(), ::core::mem::transmute(iposition), ::core::mem::transmute(grfkeystate), ::core::mem::transmute(pdweffect)).ok() } pub unsafe fn OnDropPosition<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, IShellItemArray>>(&self, psiover: Param0, psiadata: Param1, inewposition: i32, ioldposition: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), psiover.into_param().abi(), psiadata.into_param().abi(), ::core::mem::transmute(inewposition), ::core::mem::transmute(ioldposition)).ok() } pub unsafe fn OnDragLeave<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psiover: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), psiover.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for INameSpaceTreeControlDropHandler { type Vtable = INameSpaceTreeControlDropHandler_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf9c665d6_c2f2_4c19_bf33_8322d7352f51); } impl ::core::convert::From<INameSpaceTreeControlDropHandler> for ::windows::core::IUnknown { fn from(value: INameSpaceTreeControlDropHandler) -> Self { value.0 } } impl ::core::convert::From<&INameSpaceTreeControlDropHandler> for ::windows::core::IUnknown { fn from(value: &INameSpaceTreeControlDropHandler) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for INameSpaceTreeControlDropHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a INameSpaceTreeControlDropHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct INameSpaceTreeControlDropHandler_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiover: ::windows::core::RawPtr, psiadata: ::windows::core::RawPtr, foutsidesource: super::super::Foundation::BOOL, grfkeystate: u32, pdweffect: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiover: ::windows::core::RawPtr, psiadata: ::windows::core::RawPtr, grfkeystate: u32, pdweffect: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiover: ::windows::core::RawPtr, psiadata: ::windows::core::RawPtr, inewposition: i32, ioldposition: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiover: ::windows::core::RawPtr, psiadata: ::windows::core::RawPtr, iposition: i32, grfkeystate: u32, pdweffect: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiover: ::windows::core::RawPtr, psiadata: ::windows::core::RawPtr, inewposition: i32, ioldposition: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiover: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct INameSpaceTreeControlEvents(pub ::windows::core::IUnknown); impl INameSpaceTreeControlEvents { pub unsafe fn OnItemClick<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, nstcehittest: u32, nstceclicktype: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(nstcehittest), ::core::mem::transmute(nstceclicktype)).ok() } pub unsafe fn OnPropertyItemCommit<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } pub unsafe fn OnItemStateChanging<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, nstcismask: u32, nstcisstate: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(nstcismask), ::core::mem::transmute(nstcisstate)).ok() } pub unsafe fn OnItemStateChanged<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, nstcismask: u32, nstcisstate: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(nstcismask), ::core::mem::transmute(nstcisstate)).ok() } pub unsafe fn OnSelectionChanged<'a, Param0: ::windows::core::IntoParam<'a, IShellItemArray>>(&self, psiaselection: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), psiaselection.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnKeyboardInput<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, umsg: u32, wparam: Param1, lparam: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(umsg), wparam.into_param().abi(), lparam.into_param().abi()).ok() } pub unsafe fn OnBeforeExpand<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } pub unsafe fn OnAfterExpand<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } pub unsafe fn OnBeginLabelEdit<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } pub unsafe fn OnEndLabelEdit<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnGetToolTip<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, psztip: super::super::Foundation::PWSTR, cchtip: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(psztip), ::core::mem::transmute(cchtip)).ok() } pub unsafe fn OnBeforeItemDelete<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnItemAdded<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, psi: Param0, fisroot: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), psi.into_param().abi(), fisroot.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnItemDeleted<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, psi: Param0, fisroot: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), psi.into_param().abi(), fisroot.into_param().abi()).ok() } pub unsafe fn OnBeforeContextMenu<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } pub unsafe fn OnAfterContextMenu<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, IContextMenu>>(&self, psi: Param0, pcmin: Param1, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), psi.into_param().abi(), pcmin.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } pub unsafe fn OnBeforeStateImageChange<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } pub unsafe fn OnGetDefaultIconIndex<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, pidefaulticon: *mut i32, piopenicon: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(pidefaulticon), ::core::mem::transmute(piopenicon)).ok() } } unsafe impl ::windows::core::Interface for INameSpaceTreeControlEvents { type Vtable = INameSpaceTreeControlEvents_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x93d77985_b3d8_4484_8318_672cdda002ce); } impl ::core::convert::From<INameSpaceTreeControlEvents> for ::windows::core::IUnknown { fn from(value: INameSpaceTreeControlEvents) -> Self { value.0 } } impl ::core::convert::From<&INameSpaceTreeControlEvents> for ::windows::core::IUnknown { fn from(value: &INameSpaceTreeControlEvents) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for INameSpaceTreeControlEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a INameSpaceTreeControlEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct INameSpaceTreeControlEvents_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, psi: ::windows::core::RawPtr, nstcehittest: u32, nstceclicktype: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, nstcismask: u32, nstcisstate: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, nstcismask: u32, nstcisstate: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiaselection: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, psztip: super::super::Foundation::PWSTR, cchtip: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, fisroot: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, fisroot: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, pcmin: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, pidefaulticon: *mut i32, piopenicon: *mut i32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct INameSpaceTreeControlFolderCapabilities(pub ::windows::core::IUnknown); impl INameSpaceTreeControlFolderCapabilities { pub unsafe fn GetFolderCapabilities(&self, nfcmask: NSTCFOLDERCAPABILITIES) -> ::windows::core::Result<NSTCFOLDERCAPABILITIES> { let mut result__: <NSTCFOLDERCAPABILITIES as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(nfcmask), &mut result__).from_abi::<NSTCFOLDERCAPABILITIES>(result__) } } unsafe impl ::windows::core::Interface for INameSpaceTreeControlFolderCapabilities { type Vtable = INameSpaceTreeControlFolderCapabilities_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe9701183_e6b3_4ff2_8568_813615fec7be); } impl ::core::convert::From<INameSpaceTreeControlFolderCapabilities> for ::windows::core::IUnknown { fn from(value: INameSpaceTreeControlFolderCapabilities) -> Self { value.0 } } impl ::core::convert::From<&INameSpaceTreeControlFolderCapabilities> for ::windows::core::IUnknown { fn from(value: &INameSpaceTreeControlFolderCapabilities) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for INameSpaceTreeControlFolderCapabilities { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a INameSpaceTreeControlFolderCapabilities { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct INameSpaceTreeControlFolderCapabilities_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, nfcmask: NSTCFOLDERCAPABILITIES, pnfcvalue: *mut NSTCFOLDERCAPABILITIES) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct INamedPropertyBag(pub ::windows::core::IUnknown); impl INamedPropertyBag { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe fn ReadPropertyNPB<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszbagname: Param0, pszpropname: Param1, pvar: *mut super::super::System::Com::StructuredStorage::PROPVARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszbagname.into_param().abi(), pszpropname.into_param().abi(), ::core::mem::transmute(pvar)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe fn WritePropertyNPB<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszbagname: Param0, pszpropname: Param1, pvar: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pszbagname.into_param().abi(), pszpropname.into_param().abi(), ::core::mem::transmute(pvar)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn RemovePropertyNPB<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszbagname: Param0, pszpropname: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), pszbagname.into_param().abi(), pszpropname.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for INamedPropertyBag { type Vtable = INamedPropertyBag_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfb700430_952c_11d1_946f_000000000000); } impl ::core::convert::From<INamedPropertyBag> for ::windows::core::IUnknown { fn from(value: INamedPropertyBag) -> Self { value.0 } } impl ::core::convert::From<&INamedPropertyBag> for ::windows::core::IUnknown { fn from(value: &INamedPropertyBag) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for INamedPropertyBag { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a INamedPropertyBag { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct INamedPropertyBag_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszbagname: super::super::Foundation::PWSTR, pszpropname: super::super::Foundation::PWSTR, pvar: *mut ::core::mem::ManuallyDrop<super::super::System::Com::StructuredStorage::PROPVARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszbagname: super::super::Foundation::PWSTR, pszpropname: super::super::Foundation::PWSTR, pvar: *const ::core::mem::ManuallyDrop<super::super::System::Com::StructuredStorage::PROPVARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszbagname: super::super::Foundation::PWSTR, pszpropname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct INamespaceWalk(pub ::windows::core::IUnknown); impl INamespaceWalk { pub unsafe fn Walk<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param3: ::windows::core::IntoParam<'a, INamespaceWalkCB>>(&self, punktowalk: Param0, dwflags: u32, cdepth: i32, pnswcb: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), punktowalk.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(cdepth), pnswcb.into_param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetIDArrayResult(&self, pcitems: *mut u32, prgpidl: *mut *mut *mut Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pcitems), ::core::mem::transmute(prgpidl)).ok() } } unsafe impl ::windows::core::Interface for INamespaceWalk { type Vtable = INamespaceWalk_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x57ced8a7_3f4a_432c_9350_30f24483f74f); } impl ::core::convert::From<INamespaceWalk> for ::windows::core::IUnknown { fn from(value: INamespaceWalk) -> Self { value.0 } } impl ::core::convert::From<&INamespaceWalk> for ::windows::core::IUnknown { fn from(value: &INamespaceWalk) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for INamespaceWalk { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a INamespaceWalk { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct INamespaceWalk_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, punktowalk: ::windows::core::RawPtr, dwflags: u32, cdepth: i32, pnswcb: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcitems: *mut u32, prgpidl: *mut *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct INamespaceWalkCB(pub ::windows::core::IUnknown); impl INamespaceWalkCB { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn FoundItem<'a, Param0: ::windows::core::IntoParam<'a, IShellFolder>>(&self, psf: Param0, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psf.into_param().abi(), ::core::mem::transmute(pidl)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn EnterFolder<'a, Param0: ::windows::core::IntoParam<'a, IShellFolder>>(&self, psf: Param0, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), psf.into_param().abi(), ::core::mem::transmute(pidl)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn LeaveFolder<'a, Param0: ::windows::core::IntoParam<'a, IShellFolder>>(&self, psf: Param0, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), psf.into_param().abi(), ::core::mem::transmute(pidl)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn InitializeProgressDialog(&self, ppsztitle: *mut super::super::Foundation::PWSTR, ppszcancel: *mut super::super::Foundation::PWSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppsztitle), ::core::mem::transmute(ppszcancel)).ok() } } unsafe impl ::windows::core::Interface for INamespaceWalkCB { type Vtable = INamespaceWalkCB_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd92995f8_cf5e_4a76_bf59_ead39ea2b97e); } impl ::core::convert::From<INamespaceWalkCB> for ::windows::core::IUnknown { fn from(value: INamespaceWalkCB) -> Self { value.0 } } impl ::core::convert::From<&INamespaceWalkCB> for ::windows::core::IUnknown { fn from(value: &INamespaceWalkCB) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for INamespaceWalkCB { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a INamespaceWalkCB { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct INamespaceWalkCB_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, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psf: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psf: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psf: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsztitle: *mut super::super::Foundation::PWSTR, ppszcancel: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct INamespaceWalkCB2(pub ::windows::core::IUnknown); impl INamespaceWalkCB2 { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn FoundItem<'a, Param0: ::windows::core::IntoParam<'a, IShellFolder>>(&self, psf: Param0, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psf.into_param().abi(), ::core::mem::transmute(pidl)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn EnterFolder<'a, Param0: ::windows::core::IntoParam<'a, IShellFolder>>(&self, psf: Param0, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), psf.into_param().abi(), ::core::mem::transmute(pidl)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn LeaveFolder<'a, Param0: ::windows::core::IntoParam<'a, IShellFolder>>(&self, psf: Param0, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), psf.into_param().abi(), ::core::mem::transmute(pidl)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn InitializeProgressDialog(&self, ppsztitle: *mut super::super::Foundation::PWSTR, ppszcancel: *mut super::super::Foundation::PWSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppsztitle), ::core::mem::transmute(ppszcancel)).ok() } pub unsafe fn WalkComplete(&self, hr: ::windows::core::HRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(hr)).ok() } } unsafe impl ::windows::core::Interface for INamespaceWalkCB2 { type Vtable = INamespaceWalkCB2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7ac7492b_c38e_438a_87db_68737844ff70); } impl ::core::convert::From<INamespaceWalkCB2> for ::windows::core::IUnknown { fn from(value: INamespaceWalkCB2) -> Self { value.0 } } impl ::core::convert::From<&INamespaceWalkCB2> for ::windows::core::IUnknown { fn from(value: &INamespaceWalkCB2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for INamespaceWalkCB2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a INamespaceWalkCB2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<INamespaceWalkCB2> for INamespaceWalkCB { fn from(value: INamespaceWalkCB2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&INamespaceWalkCB2> for INamespaceWalkCB { fn from(value: &INamespaceWalkCB2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, INamespaceWalkCB> for INamespaceWalkCB2 { fn into_param(self) -> ::windows::core::Param<'a, INamespaceWalkCB> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, INamespaceWalkCB> for &INamespaceWalkCB2 { fn into_param(self) -> ::windows::core::Param<'a, INamespaceWalkCB> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct INamespaceWalkCB2_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, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psf: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psf: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psf: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsztitle: *mut super::super::Foundation::PWSTR, ppszcancel: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hr: ::windows::core::HRESULT) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct INetworkFolderInternal(pub ::windows::core::IUnknown); impl INetworkFolderInternal { pub unsafe fn GetResourceDisplayType(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetIDList(&self) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn GetProvider(&self, itemidcount: u32, itemids: *const *const Common::ITEMIDLIST, providermaxlength: u32, provider: super::super::Foundation::PWSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(itemidcount), ::core::mem::transmute(itemids), ::core::mem::transmute(providermaxlength), ::core::mem::transmute(provider)).ok() } } unsafe impl ::windows::core::Interface for INetworkFolderInternal { type Vtable = INetworkFolderInternal_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xceb38218_c971_47bb_a703_f0bc99ccdb81); } impl ::core::convert::From<INetworkFolderInternal> for ::windows::core::IUnknown { fn from(value: INetworkFolderInternal) -> Self { value.0 } } impl ::core::convert::From<&INetworkFolderInternal> for ::windows::core::IUnknown { fn from(value: &INetworkFolderInternal) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for INetworkFolderInternal { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a INetworkFolderInternal { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct INetworkFolderInternal_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, displaytype: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, idlist: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itemidcount: u32, itemids: *const *const Common::ITEMIDLIST, providermaxlength: u32, provider: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct INewMenuClient(pub ::windows::core::IUnknown); impl INewMenuClient { pub unsafe fn IncludeItems(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SelectAndEditItem(&self, pidlitem: *const Common::ITEMIDLIST, flags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidlitem), ::core::mem::transmute(flags)).ok() } } unsafe impl ::windows::core::Interface for INewMenuClient { type Vtable = INewMenuClient_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdcb07fdc_3bb5_451c_90be_966644fed7b0); } impl ::core::convert::From<INewMenuClient> for ::windows::core::IUnknown { fn from(value: INewMenuClient) -> Self { value.0 } } impl ::core::convert::From<&INewMenuClient> for ::windows::core::IUnknown { fn from(value: &INewMenuClient) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for INewMenuClient { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a INewMenuClient { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct INewMenuClient_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, pflags: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidlitem: *const Common::ITEMIDLIST, flags: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct INewShortcutHookA(pub ::windows::core::IUnknown); impl INewShortcutHookA { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetReferent<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, pcszreferent: Param0, hwnd: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pcszreferent.into_param().abi(), hwnd.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetReferent(&self, pszreferent: super::super::Foundation::PSTR, cchreferent: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszreferent), ::core::mem::transmute(cchreferent)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetFolder<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(&self, pcszfolder: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), pcszfolder.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetFolder(&self, pszfolder: super::super::Foundation::PSTR, cchfolder: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszfolder), ::core::mem::transmute(cchfolder)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetName(&self, pszname: super::super::Foundation::PSTR, cchname: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszname), ::core::mem::transmute(cchname)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetExtension(&self, pszextension: super::super::Foundation::PSTR, cchextension: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszextension), ::core::mem::transmute(cchextension)).ok() } } unsafe impl ::windows::core::Interface for INewShortcutHookA { type Vtable = INewShortcutHookA_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214e1_0000_0000_c000_000000000046); } impl ::core::convert::From<INewShortcutHookA> for ::windows::core::IUnknown { fn from(value: INewShortcutHookA) -> Self { value.0 } } impl ::core::convert::From<&INewShortcutHookA> for ::windows::core::IUnknown { fn from(value: &INewShortcutHookA) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for INewShortcutHookA { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a INewShortcutHookA { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct INewShortcutHookA_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcszreferent: super::super::Foundation::PSTR, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszreferent: super::super::Foundation::PSTR, cchreferent: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcszfolder: super::super::Foundation::PSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszfolder: super::super::Foundation::PSTR, cchfolder: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: super::super::Foundation::PSTR, cchname: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszextension: super::super::Foundation::PSTR, cchextension: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct INewShortcutHookW(pub ::windows::core::IUnknown); impl INewShortcutHookW { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetReferent<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, pcszreferent: Param0, hwnd: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pcszreferent.into_param().abi(), hwnd.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetReferent(&self, pszreferent: super::super::Foundation::PWSTR, cchreferent: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszreferent), ::core::mem::transmute(cchreferent)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetFolder<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pcszfolder: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), pcszfolder.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetFolder(&self, pszfolder: super::super::Foundation::PWSTR, cchfolder: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszfolder), ::core::mem::transmute(cchfolder)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetName(&self, pszname: super::super::Foundation::PWSTR, cchname: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszname), ::core::mem::transmute(cchname)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetExtension(&self, pszextension: super::super::Foundation::PWSTR, cchextension: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszextension), ::core::mem::transmute(cchextension)).ok() } } unsafe impl ::windows::core::Interface for INewShortcutHookW { type Vtable = INewShortcutHookW_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214f7_0000_0000_c000_000000000046); } impl ::core::convert::From<INewShortcutHookW> for ::windows::core::IUnknown { fn from(value: INewShortcutHookW) -> Self { value.0 } } impl ::core::convert::From<&INewShortcutHookW> for ::windows::core::IUnknown { fn from(value: &INewShortcutHookW) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for INewShortcutHookW { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a INewShortcutHookW { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct INewShortcutHookW_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcszreferent: super::super::Foundation::PWSTR, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszreferent: super::super::Foundation::PWSTR, cchreferent: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcszfolder: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszfolder: super::super::Foundation::PWSTR, cchfolder: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR, cchname: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszextension: super::super::Foundation::PWSTR, cchextension: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct INewWDEvents(pub ::windows::core::IUnknown); impl INewWDEvents { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } pub unsafe fn FinalBack(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn FinalNext(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Cancel(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetCaption<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrcaption: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), bstrcaption.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Caption(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SetProperty<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrpropertyname: Param0, pvproperty: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), bstrpropertyname.into_param().abi(), ::core::mem::transmute(pvproperty)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Property<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrpropertyname: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), bstrpropertyname.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } pub unsafe fn SetWizardButtons(&self, vfenableback: i16, vfenablenext: i16, vflastpage: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(vfenableback), ::core::mem::transmute(vfenablenext), ::core::mem::transmute(vflastpage)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetHeaderText<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrheadertitle: Param0, bstrheadersubtitle: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), bstrheadertitle.into_param().abi(), bstrheadersubtitle.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn PassportAuthenticate<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrsigninurl: Param0) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), bstrsigninurl.into_param().abi(), &mut result__).from_abi::<i16>(result__) } } unsafe impl ::windows::core::Interface for INewWDEvents { type Vtable = INewWDEvents_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0751c551_7568_41c9_8e5b_e22e38919236); } impl ::core::convert::From<INewWDEvents> for ::windows::core::IUnknown { fn from(value: INewWDEvents) -> Self { value.0 } } impl ::core::convert::From<&INewWDEvents> for ::windows::core::IUnknown { fn from(value: &INewWDEvents) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for INewWDEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a INewWDEvents { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<INewWDEvents> for IWebWizardHost { fn from(value: INewWDEvents) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&INewWDEvents> for IWebWizardHost { fn from(value: &INewWDEvents) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IWebWizardHost> for INewWDEvents { fn into_param(self) -> ::windows::core::Param<'a, IWebWizardHost> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IWebWizardHost> for &INewWDEvents { fn into_param(self) -> ::windows::core::Param<'a, IWebWizardHost> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<INewWDEvents> for super::super::System::Com::IDispatch { fn from(value: INewWDEvents) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&INewWDEvents> for super::super::System::Com::IDispatch { fn from(value: &INewWDEvents) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for INewWDEvents { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &INewWDEvents { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct INewWDEvents_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrcaption: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrcaption: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrpropertyname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvproperty: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrpropertyname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvproperty: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vfenableback: i16, vfenablenext: i16, vflastpage: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrheadertitle: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrheadersubtitle: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrsigninurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvfauthenitcated: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct INewWindowManager(pub ::windows::core::IUnknown); impl INewWindowManager { #[cfg(feature = "Win32_Foundation")] pub unsafe fn EvaluateNewWindow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>( &self, pszurl: Param0, pszname: Param1, pszurlcontext: Param2, pszfeatures: Param3, freplace: Param4, dwflags: u32, dwuseractiontime: u32, ) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszurl.into_param().abi(), pszname.into_param().abi(), pszurlcontext.into_param().abi(), pszfeatures.into_param().abi(), freplace.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(dwuseractiontime)).ok() } } unsafe impl ::windows::core::Interface for INewWindowManager { type Vtable = INewWindowManager_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd2bc4c84_3f72_4a52_a604_7bcbf3982cbb); } impl ::core::convert::From<INewWindowManager> for ::windows::core::IUnknown { fn from(value: INewWindowManager) -> Self { value.0 } } impl ::core::convert::From<&INewWindowManager> for ::windows::core::IUnknown { fn from(value: &INewWindowManager) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for INewWindowManager { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a INewWindowManager { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct INewWindowManager_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszurl: super::super::Foundation::PWSTR, pszname: super::super::Foundation::PWSTR, pszurlcontext: super::super::Foundation::PWSTR, pszfeatures: super::super::Foundation::PWSTR, freplace: super::super::Foundation::BOOL, dwflags: u32, dwuseractiontime: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct INotifyReplica(pub ::windows::core::IUnknown); impl INotifyReplica { #[cfg(feature = "Win32_System_Com")] pub unsafe fn YouAreAReplica(&self, ulcotherreplicas: u32, rgpmkotherreplicas: *mut ::core::option::Option<super::super::System::Com::IMoniker>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(ulcotherreplicas), ::core::mem::transmute(rgpmkotherreplicas)).ok() } } unsafe impl ::windows::core::Interface for INotifyReplica { type Vtable = INotifyReplica_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x99180163_da16_101a_935c_444553540000); } impl ::core::convert::From<INotifyReplica> for ::windows::core::IUnknown { fn from(value: INotifyReplica) -> Self { value.0 } } impl ::core::convert::From<&INotifyReplica> for ::windows::core::IUnknown { fn from(value: &INotifyReplica) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for INotifyReplica { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a INotifyReplica { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct INotifyReplica_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, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ulcotherreplicas: u32, rgpmkotherreplicas: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IObjMgr(pub ::windows::core::IUnknown); impl IObjMgr { pub unsafe fn Append<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punk: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), punk.into_param().abi()).ok() } pub unsafe fn Remove<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punk: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), punk.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IObjMgr { type Vtable = IObjMgr_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00bb2761_6a77_11d0_a535_00c04fd7d062); } impl ::core::convert::From<IObjMgr> for ::windows::core::IUnknown { fn from(value: IObjMgr) -> Self { value.0 } } impl ::core::convert::From<&IObjMgr> for ::windows::core::IUnknown { fn from(value: &IObjMgr) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IObjMgr { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IObjMgr { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IObjMgr_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, punk: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punk: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IObjectProvider(pub ::windows::core::IUnknown); impl IObjectProvider { pub unsafe fn QueryObject<T: ::windows::core::Interface>(&self, guidobject: *const ::windows::core::GUID) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(guidobject), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } } unsafe impl ::windows::core::Interface for IObjectProvider { type Vtable = IObjectProvider_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa6087428_3be3_4d73_b308_7c04a540bf1a); } impl ::core::convert::From<IObjectProvider> for ::windows::core::IUnknown { fn from(value: IObjectProvider) -> Self { value.0 } } impl ::core::convert::From<&IObjectProvider> for ::windows::core::IUnknown { fn from(value: &IObjectProvider) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IObjectProvider { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IObjectProvider { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IObjectProvider_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, guidobject: *const ::windows::core::GUID, riid: *const ::windows::core::GUID, ppvout: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IObjectWithAppUserModelID(pub ::windows::core::IUnknown); impl IObjectWithAppUserModelID { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetAppID<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszappid: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszappid.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetAppID(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } } unsafe impl ::windows::core::Interface for IObjectWithAppUserModelID { type Vtable = IObjectWithAppUserModelID_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x36db0196_9665_46d1_9ba7_d3709eecf9ed); } impl ::core::convert::From<IObjectWithAppUserModelID> for ::windows::core::IUnknown { fn from(value: IObjectWithAppUserModelID) -> Self { value.0 } } impl ::core::convert::From<&IObjectWithAppUserModelID> for ::windows::core::IUnknown { fn from(value: &IObjectWithAppUserModelID) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IObjectWithAppUserModelID { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IObjectWithAppUserModelID { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IObjectWithAppUserModelID_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszappid: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppszappid: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IObjectWithBackReferences(pub ::windows::core::IUnknown); impl IObjectWithBackReferences { pub unsafe fn RemoveBackReferences(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IObjectWithBackReferences { type Vtable = IObjectWithBackReferences_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x321a6a6a_d61f_4bf3_97ae_14be2986bb36); } impl ::core::convert::From<IObjectWithBackReferences> for ::windows::core::IUnknown { fn from(value: IObjectWithBackReferences) -> Self { value.0 } } impl ::core::convert::From<&IObjectWithBackReferences> for ::windows::core::IUnknown { fn from(value: &IObjectWithBackReferences) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IObjectWithBackReferences { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IObjectWithBackReferences { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IObjectWithBackReferences_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) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IObjectWithCancelEvent(pub ::windows::core::IUnknown); impl IObjectWithCancelEvent { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCancelEvent(&self) -> ::windows::core::Result<super::super::Foundation::HANDLE> { let mut result__: <super::super::Foundation::HANDLE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::HANDLE>(result__) } } unsafe impl ::windows::core::Interface for IObjectWithCancelEvent { type Vtable = IObjectWithCancelEvent_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf279b885_0ae9_4b85_ac06_ddecf9408941); } impl ::core::convert::From<IObjectWithCancelEvent> for ::windows::core::IUnknown { fn from(value: IObjectWithCancelEvent) -> Self { value.0 } } impl ::core::convert::From<&IObjectWithCancelEvent> for ::windows::core::IUnknown { fn from(value: &IObjectWithCancelEvent) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IObjectWithCancelEvent { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IObjectWithCancelEvent { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IObjectWithCancelEvent_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phevent: *mut super::super::Foundation::HANDLE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IObjectWithFolderEnumMode(pub ::windows::core::IUnknown); impl IObjectWithFolderEnumMode { pub unsafe fn SetMode(&self, femode: FOLDER_ENUM_MODE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(femode)).ok() } pub unsafe fn GetMode(&self) -> ::windows::core::Result<FOLDER_ENUM_MODE> { let mut result__: <FOLDER_ENUM_MODE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<FOLDER_ENUM_MODE>(result__) } } unsafe impl ::windows::core::Interface for IObjectWithFolderEnumMode { type Vtable = IObjectWithFolderEnumMode_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6a9d9026_0e6e_464c_b000_42ecc07de673); } impl ::core::convert::From<IObjectWithFolderEnumMode> for ::windows::core::IUnknown { fn from(value: IObjectWithFolderEnumMode) -> Self { value.0 } } impl ::core::convert::From<&IObjectWithFolderEnumMode> for ::windows::core::IUnknown { fn from(value: &IObjectWithFolderEnumMode) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IObjectWithFolderEnumMode { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IObjectWithFolderEnumMode { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IObjectWithFolderEnumMode_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, femode: FOLDER_ENUM_MODE) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfemode: *mut FOLDER_ENUM_MODE) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IObjectWithProgID(pub ::windows::core::IUnknown); impl IObjectWithProgID { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetProgID<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszprogid: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszprogid.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetProgID(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } } unsafe impl ::windows::core::Interface for IObjectWithProgID { type Vtable = IObjectWithProgID_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x71e806fb_8dee_46fc_bf8c_7748a8a1ae13); } impl ::core::convert::From<IObjectWithProgID> for ::windows::core::IUnknown { fn from(value: IObjectWithProgID) -> Self { value.0 } } impl ::core::convert::From<&IObjectWithProgID> for ::windows::core::IUnknown { fn from(value: &IObjectWithProgID) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IObjectWithProgID { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IObjectWithProgID { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IObjectWithProgID_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszprogid: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppszprogid: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IObjectWithSelection(pub ::windows::core::IUnknown); impl IObjectWithSelection { pub unsafe fn SetSelection<'a, Param0: ::windows::core::IntoParam<'a, IShellItemArray>>(&self, psia: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psia.into_param().abi()).ok() } pub unsafe fn GetSelection<T: ::windows::core::Interface>(&self) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } } unsafe impl ::windows::core::Interface for IObjectWithSelection { type Vtable = IObjectWithSelection_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1c9cd5bb_98e9_4491_a60f_31aacc72b83c); } impl ::core::convert::From<IObjectWithSelection> for ::windows::core::IUnknown { fn from(value: IObjectWithSelection) -> Self { value.0 } } impl ::core::convert::From<&IObjectWithSelection> for ::windows::core::IUnknown { fn from(value: &IObjectWithSelection) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IObjectWithSelection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IObjectWithSelection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IObjectWithSelection_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, psia: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IOpenControlPanel(pub ::windows::core::IUnknown); impl IOpenControlPanel { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Open<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, pszname: Param0, pszpage: Param1, punksite: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszname.into_param().abi(), pszpage.into_param().abi(), punksite.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetPath<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszname: Param0, pszpath: super::super::Foundation::PWSTR, cchpath: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pszname.into_param().abi(), ::core::mem::transmute(pszpath), ::core::mem::transmute(cchpath)).ok() } pub unsafe fn GetCurrentView(&self) -> ::windows::core::Result<CPVIEW> { let mut result__: <CPVIEW as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<CPVIEW>(result__) } } unsafe impl ::windows::core::Interface for IOpenControlPanel { type Vtable = IOpenControlPanel_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd11ad862_66de_4df4_bf6c_1f5621996af1); } impl ::core::convert::From<IOpenControlPanel> for ::windows::core::IUnknown { fn from(value: IOpenControlPanel) -> Self { value.0 } } impl ::core::convert::From<&IOpenControlPanel> for ::windows::core::IUnknown { fn from(value: &IOpenControlPanel) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IOpenControlPanel { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IOpenControlPanel { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IOpenControlPanel_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR, pszpage: super::super::Foundation::PWSTR, punksite: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR, pszpath: super::super::Foundation::PWSTR, cchpath: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pview: *mut CPVIEW) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IOpenSearchSource(pub ::windows::core::IUnknown); impl IOpenSearchSource { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetResults<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, T: ::windows::core::Interface>(&self, hwnd: Param0, pszquery: Param1, dwstartindex: u32, dwcount: u32) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), pszquery.into_param().abi(), ::core::mem::transmute(dwstartindex), ::core::mem::transmute(dwcount), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } } unsafe impl ::windows::core::Interface for IOpenSearchSource { type Vtable = IOpenSearchSource_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf0ee7333_e6fc_479b_9f25_a860c234a38e); } impl ::core::convert::From<IOpenSearchSource> for ::windows::core::IUnknown { fn from(value: IOpenSearchSource) -> Self { value.0 } } impl ::core::convert::From<&IOpenSearchSource> for ::windows::core::IUnknown { fn from(value: &IOpenSearchSource) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IOpenSearchSource { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IOpenSearchSource { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IOpenSearchSource_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, pszquery: super::super::Foundation::PWSTR, dwstartindex: u32, dwcount: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IOperationsProgressDialog(pub ::windows::core::IUnknown); impl IOperationsProgressDialog { #[cfg(feature = "Win32_Foundation")] pub unsafe fn StartProgressDialog<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndowner: Param0, flags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwndowner.into_param().abi(), ::core::mem::transmute(flags)).ok() } pub unsafe fn StopProgressDialog(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetOperation(&self, action: SPACTION) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(action)).ok() } pub unsafe fn SetMode(&self, mode: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(mode)).ok() } pub unsafe fn UpdateProgress(&self, ullpointscurrent: u64, ullpointstotal: u64, ullsizecurrent: u64, ullsizetotal: u64, ullitemscurrent: u64, ullitemstotal: u64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(ullpointscurrent), ::core::mem::transmute(ullpointstotal), ::core::mem::transmute(ullsizecurrent), ::core::mem::transmute(ullsizetotal), ::core::mem::transmute(ullitemscurrent), ::core::mem::transmute(ullitemstotal)).ok() } pub unsafe fn UpdateLocations<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, IShellItem>, Param2: ::windows::core::IntoParam<'a, IShellItem>>(&self, psisource: Param0, psitarget: Param1, psiitem: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), psisource.into_param().abi(), psitarget.into_param().abi(), psiitem.into_param().abi()).ok() } pub unsafe fn ResetTimer(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn PauseTimer(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ResumeTimer(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GetMilliseconds(&self, pullelapsed: *mut u64, pullremaining: *mut u64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(pullelapsed), ::core::mem::transmute(pullremaining)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetOperationStatus(&self) -> ::windows::core::Result<PropertiesSystem::PDOPSTATUS> { let mut result__: <PropertiesSystem::PDOPSTATUS as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<PropertiesSystem::PDOPSTATUS>(result__) } } unsafe impl ::windows::core::Interface for IOperationsProgressDialog { type Vtable = IOperationsProgressDialog_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0c9fb851_e5c9_43eb_a370_f0677b13874c); } impl ::core::convert::From<IOperationsProgressDialog> for ::windows::core::IUnknown { fn from(value: IOperationsProgressDialog) -> Self { value.0 } } impl ::core::convert::From<&IOperationsProgressDialog> for ::windows::core::IUnknown { fn from(value: &IOperationsProgressDialog) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IOperationsProgressDialog { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IOperationsProgressDialog { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IOperationsProgressDialog_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndowner: super::super::Foundation::HWND, flags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, action: SPACTION) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, mode: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ullpointscurrent: u64, ullpointstotal: u64, ullsizecurrent: u64, ullsizetotal: u64, ullitemscurrent: u64, ullitemstotal: u64) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psisource: ::windows::core::RawPtr, psitarget: ::windows::core::RawPtr, psiitem: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pullelapsed: *mut u64, pullremaining: *mut u64) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, popstatus: *mut PropertiesSystem::PDOPSTATUS) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IPackageDebugSettings(pub ::windows::core::IUnknown); impl IPackageDebugSettings { #[cfg(feature = "Win32_Foundation")] pub unsafe fn EnableDebugging<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0, debuggercommandline: Param1, environment: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), packagefullname.into_param().abi(), debuggercommandline.into_param().abi(), environment.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DisableDebugging<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), packagefullname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Suspend<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), packagefullname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Resume<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), packagefullname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn TerminateAllProcesses<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), packagefullname.into_param().abi()).ok() } pub unsafe fn SetTargetSessionId(&self, sessionid: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(sessionid)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn EnumerateBackgroundTasks<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0, taskcount: *mut u32, taskids: *mut *mut ::windows::core::GUID, tasknames: *mut *mut super::super::Foundation::PWSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), packagefullname.into_param().abi(), ::core::mem::transmute(taskcount), ::core::mem::transmute(taskids), ::core::mem::transmute(tasknames)).ok() } pub unsafe fn ActivateBackgroundTask(&self, taskid: *const ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(taskid)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn StartServicing<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), packagefullname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn StopServicing<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), packagefullname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn StartSessionRedirection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0, sessionid: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), packagefullname.into_param().abi(), ::core::mem::transmute(sessionid)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn StopSessionRedirection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), packagefullname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetPackageExecutionState<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0) -> ::windows::core::Result<PACKAGE_EXECUTION_STATE> { let mut result__: <PACKAGE_EXECUTION_STATE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), packagefullname.into_param().abi(), &mut result__).from_abi::<PACKAGE_EXECUTION_STATE>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn RegisterForPackageStateChanges<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, IPackageExecutionStateChangeNotification>>(&self, packagefullname: Param0, ppackageexecutionstatechangenotification: Param1) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), packagefullname.into_param().abi(), ppackageexecutionstatechangenotification.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn UnregisterForPackageStateChanges(&self, dwcookie: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwcookie)).ok() } } unsafe impl ::windows::core::Interface for IPackageDebugSettings { type Vtable = IPackageDebugSettings_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf27c3930_8029_4ad1_94e3_3dba417810c1); } impl ::core::convert::From<IPackageDebugSettings> for ::windows::core::IUnknown { fn from(value: IPackageDebugSettings) -> Self { value.0 } } impl ::core::convert::From<&IPackageDebugSettings> for ::windows::core::IUnknown { fn from(value: &IPackageDebugSettings) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IPackageDebugSettings { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IPackageDebugSettings { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IPackageDebugSettings_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR, debuggercommandline: super::super::Foundation::PWSTR, environment: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, sessionid: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR, taskcount: *mut u32, taskids: *mut *mut ::windows::core::GUID, tasknames: *mut *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, taskid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR, sessionid: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR, packageexecutionstate: *mut PACKAGE_EXECUTION_STATE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR, ppackageexecutionstatechangenotification: ::windows::core::RawPtr, pdwcookie: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwcookie: u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IPackageDebugSettings2(pub ::windows::core::IUnknown); impl IPackageDebugSettings2 { #[cfg(feature = "Win32_Foundation")] pub unsafe fn EnableDebugging<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0, debuggercommandline: Param1, environment: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), packagefullname.into_param().abi(), debuggercommandline.into_param().abi(), environment.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DisableDebugging<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), packagefullname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Suspend<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), packagefullname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Resume<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), packagefullname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn TerminateAllProcesses<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), packagefullname.into_param().abi()).ok() } pub unsafe fn SetTargetSessionId(&self, sessionid: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(sessionid)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn EnumerateBackgroundTasks<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0, taskcount: *mut u32, taskids: *mut *mut ::windows::core::GUID, tasknames: *mut *mut super::super::Foundation::PWSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), packagefullname.into_param().abi(), ::core::mem::transmute(taskcount), ::core::mem::transmute(taskids), ::core::mem::transmute(tasknames)).ok() } pub unsafe fn ActivateBackgroundTask(&self, taskid: *const ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(taskid)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn StartServicing<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), packagefullname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn StopServicing<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), packagefullname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn StartSessionRedirection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0, sessionid: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), packagefullname.into_param().abi(), ::core::mem::transmute(sessionid)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn StopSessionRedirection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), packagefullname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetPackageExecutionState<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0) -> ::windows::core::Result<PACKAGE_EXECUTION_STATE> { let mut result__: <PACKAGE_EXECUTION_STATE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), packagefullname.into_param().abi(), &mut result__).from_abi::<PACKAGE_EXECUTION_STATE>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn RegisterForPackageStateChanges<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, IPackageExecutionStateChangeNotification>>(&self, packagefullname: Param0, ppackageexecutionstatechangenotification: Param1) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), packagefullname.into_param().abi(), ppackageexecutionstatechangenotification.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn UnregisterForPackageStateChanges(&self, dwcookie: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwcookie)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn EnumerateApps<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, packagefullname: Param0, appcount: *mut u32, appusermodelids: *mut *mut super::super::Foundation::PWSTR, appdisplaynames: *mut *mut super::super::Foundation::PWSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), packagefullname.into_param().abi(), ::core::mem::transmute(appcount), ::core::mem::transmute(appusermodelids), ::core::mem::transmute(appdisplaynames)).ok() } } unsafe impl ::windows::core::Interface for IPackageDebugSettings2 { type Vtable = IPackageDebugSettings2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6e3194bb_ab82_4d22_93f5_fabda40e7b16); } impl ::core::convert::From<IPackageDebugSettings2> for ::windows::core::IUnknown { fn from(value: IPackageDebugSettings2) -> Self { value.0 } } impl ::core::convert::From<&IPackageDebugSettings2> for ::windows::core::IUnknown { fn from(value: &IPackageDebugSettings2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IPackageDebugSettings2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IPackageDebugSettings2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IPackageDebugSettings2> for IPackageDebugSettings { fn from(value: IPackageDebugSettings2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IPackageDebugSettings2> for IPackageDebugSettings { fn from(value: &IPackageDebugSettings2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IPackageDebugSettings> for IPackageDebugSettings2 { fn into_param(self) -> ::windows::core::Param<'a, IPackageDebugSettings> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IPackageDebugSettings> for &IPackageDebugSettings2 { fn into_param(self) -> ::windows::core::Param<'a, IPackageDebugSettings> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IPackageDebugSettings2_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR, debuggercommandline: super::super::Foundation::PWSTR, environment: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, sessionid: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR, taskcount: *mut u32, taskids: *mut *mut ::windows::core::GUID, tasknames: *mut *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, taskid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR, sessionid: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR, packageexecutionstate: *mut PACKAGE_EXECUTION_STATE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR, ppackageexecutionstatechangenotification: ::windows::core::RawPtr, pdwcookie: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwcookie: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, packagefullname: super::super::Foundation::PWSTR, appcount: *mut u32, appusermodelids: *mut *mut super::super::Foundation::PWSTR, appdisplaynames: *mut *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IPackageExecutionStateChangeNotification(pub ::windows::core::IUnknown); impl IPackageExecutionStateChangeNotification { #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnStateChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszpackagefullname: Param0, pesnewstate: PACKAGE_EXECUTION_STATE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszpackagefullname.into_param().abi(), ::core::mem::transmute(pesnewstate)).ok() } } unsafe impl ::windows::core::Interface for IPackageExecutionStateChangeNotification { type Vtable = IPackageExecutionStateChangeNotification_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1bb12a62_2ad8_432b_8ccf_0c2c52afcd5b); } impl ::core::convert::From<IPackageExecutionStateChangeNotification> for ::windows::core::IUnknown { fn from(value: IPackageExecutionStateChangeNotification) -> Self { value.0 } } impl ::core::convert::From<&IPackageExecutionStateChangeNotification> for ::windows::core::IUnknown { fn from(value: &IPackageExecutionStateChangeNotification) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IPackageExecutionStateChangeNotification { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IPackageExecutionStateChangeNotification { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IPackageExecutionStateChangeNotification_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszpackagefullname: super::super::Foundation::PWSTR, pesnewstate: PACKAGE_EXECUTION_STATE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IParentAndItem(pub ::windows::core::IUnknown); impl IParentAndItem { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetParentAndItem<'a, Param1: ::windows::core::IntoParam<'a, IShellFolder>>(&self, pidlparent: *const Common::ITEMIDLIST, psf: Param1, pidlchild: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidlparent), psf.into_param().abi(), ::core::mem::transmute(pidlchild)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetParentAndItem(&self, ppidlparent: *mut *mut Common::ITEMIDLIST, ppsf: *mut ::core::option::Option<IShellFolder>, ppidlchild: *mut *mut Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppidlparent), ::core::mem::transmute(ppsf), ::core::mem::transmute(ppidlchild)).ok() } } unsafe impl ::windows::core::Interface for IParentAndItem { type Vtable = IParentAndItem_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb3a4b685_b685_4805_99d9_5dead2873236); } impl ::core::convert::From<IParentAndItem> for ::windows::core::IUnknown { fn from(value: IParentAndItem) -> Self { value.0 } } impl ::core::convert::From<&IParentAndItem> for ::windows::core::IUnknown { fn from(value: &IParentAndItem) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IParentAndItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IParentAndItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IParentAndItem_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, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidlparent: *const Common::ITEMIDLIST, psf: ::windows::core::RawPtr, pidlchild: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppidlparent: *mut *mut Common::ITEMIDLIST, ppsf: *mut ::windows::core::RawPtr, ppidlchild: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IParseAndCreateItem(pub ::windows::core::IUnknown); impl IParseAndCreateItem { pub unsafe fn SetItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } pub unsafe fn GetItem<T: ::windows::core::Interface>(&self) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } } unsafe impl ::windows::core::Interface for IParseAndCreateItem { type Vtable = IParseAndCreateItem_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x67efed0e_e827_4408_b493_78f3982b685c); } impl ::core::convert::From<IParseAndCreateItem> for ::windows::core::IUnknown { fn from(value: IParseAndCreateItem) -> Self { value.0 } } impl ::core::convert::From<&IParseAndCreateItem> for ::windows::core::IUnknown { fn from(value: &IParseAndCreateItem) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IParseAndCreateItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IParseAndCreateItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IParseAndCreateItem_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, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IPersistFolder(pub ::windows::core::IUnknown); impl IPersistFolder { pub unsafe fn GetClassID(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__: <::windows::core::GUID as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<::windows::core::GUID>(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn Initialize(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl)).ok() } } unsafe impl ::windows::core::Interface for IPersistFolder { type Vtable = IPersistFolder_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214ea_0000_0000_c000_000000000046); } impl ::core::convert::From<IPersistFolder> for ::windows::core::IUnknown { fn from(value: IPersistFolder) -> Self { value.0 } } impl ::core::convert::From<&IPersistFolder> for ::windows::core::IUnknown { fn from(value: &IPersistFolder) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IPersistFolder { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IPersistFolder { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IPersistFolder> for super::super::System::Com::IPersist { fn from(value: IPersistFolder) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IPersistFolder> for super::super::System::Com::IPersist { fn from(value: &IPersistFolder) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IPersist> for IPersistFolder { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IPersist> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IPersist> for &IPersistFolder { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IPersist> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IPersistFolder_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, pclassid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IPersistFolder2(pub ::windows::core::IUnknown); impl IPersistFolder2 { pub unsafe fn GetClassID(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__: <::windows::core::GUID as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<::windows::core::GUID>(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn Initialize(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetCurFolder(&self) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } } unsafe impl ::windows::core::Interface for IPersistFolder2 { type Vtable = IPersistFolder2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1ac3d9f0_175c_11d1_95be_00609797ea4f); } impl ::core::convert::From<IPersistFolder2> for ::windows::core::IUnknown { fn from(value: IPersistFolder2) -> Self { value.0 } } impl ::core::convert::From<&IPersistFolder2> for ::windows::core::IUnknown { fn from(value: &IPersistFolder2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IPersistFolder2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IPersistFolder2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IPersistFolder2> for IPersistFolder { fn from(value: IPersistFolder2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IPersistFolder2> for IPersistFolder { fn from(value: &IPersistFolder2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IPersistFolder> for IPersistFolder2 { fn into_param(self) -> ::windows::core::Param<'a, IPersistFolder> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IPersistFolder> for &IPersistFolder2 { fn into_param(self) -> ::windows::core::Param<'a, IPersistFolder> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IPersistFolder2> for super::super::System::Com::IPersist { fn from(value: IPersistFolder2) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IPersistFolder2> for super::super::System::Com::IPersist { fn from(value: &IPersistFolder2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IPersist> for IPersistFolder2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IPersist> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IPersist> for &IPersistFolder2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IPersist> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IPersistFolder2_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, pclassid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IPersistFolder3(pub ::windows::core::IUnknown); impl IPersistFolder3 { pub unsafe fn GetClassID(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__: <::windows::core::GUID as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<::windows::core::GUID>(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn Initialize(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetCurFolder(&self) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn InitializeEx<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>>(&self, pbc: Param0, pidlroot: *const Common::ITEMIDLIST, ppfti: *const PERSIST_FOLDER_TARGET_INFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pbc.into_param().abi(), ::core::mem::transmute(pidlroot), ::core::mem::transmute(ppfti)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetFolderTargetInfo(&self) -> ::windows::core::Result<PERSIST_FOLDER_TARGET_INFO> { let mut result__: <PERSIST_FOLDER_TARGET_INFO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<PERSIST_FOLDER_TARGET_INFO>(result__) } } unsafe impl ::windows::core::Interface for IPersistFolder3 { type Vtable = IPersistFolder3_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcef04fdf_fe72_11d2_87a5_00c04f6837cf); } impl ::core::convert::From<IPersistFolder3> for ::windows::core::IUnknown { fn from(value: IPersistFolder3) -> Self { value.0 } } impl ::core::convert::From<&IPersistFolder3> for ::windows::core::IUnknown { fn from(value: &IPersistFolder3) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IPersistFolder3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IPersistFolder3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IPersistFolder3> for IPersistFolder2 { fn from(value: IPersistFolder3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IPersistFolder3> for IPersistFolder2 { fn from(value: &IPersistFolder3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IPersistFolder2> for IPersistFolder3 { fn into_param(self) -> ::windows::core::Param<'a, IPersistFolder2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IPersistFolder2> for &IPersistFolder3 { fn into_param(self) -> ::windows::core::Param<'a, IPersistFolder2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IPersistFolder3> for IPersistFolder { fn from(value: IPersistFolder3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IPersistFolder3> for IPersistFolder { fn from(value: &IPersistFolder3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IPersistFolder> for IPersistFolder3 { fn into_param(self) -> ::windows::core::Param<'a, IPersistFolder> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IPersistFolder> for &IPersistFolder3 { fn into_param(self) -> ::windows::core::Param<'a, IPersistFolder> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IPersistFolder3> for super::super::System::Com::IPersist { fn from(value: IPersistFolder3) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IPersistFolder3> for super::super::System::Com::IPersist { fn from(value: &IPersistFolder3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IPersist> for IPersistFolder3 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IPersist> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IPersist> for &IPersistFolder3 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IPersist> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IPersistFolder3_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, pclassid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbc: ::windows::core::RawPtr, pidlroot: *const Common::ITEMIDLIST, ppfti: *const PERSIST_FOLDER_TARGET_INFO) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppfti: *mut PERSIST_FOLDER_TARGET_INFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IPersistIDList(pub ::windows::core::IUnknown); impl IPersistIDList { pub unsafe fn GetClassID(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__: <::windows::core::GUID as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<::windows::core::GUID>(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetIDList(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetIDList(&self) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } } unsafe impl ::windows::core::Interface for IPersistIDList { type Vtable = IPersistIDList_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1079acfc_29bd_11d3_8e0d_00c04f6837d5); } impl ::core::convert::From<IPersistIDList> for ::windows::core::IUnknown { fn from(value: IPersistIDList) -> Self { value.0 } } impl ::core::convert::From<&IPersistIDList> for ::windows::core::IUnknown { fn from(value: &IPersistIDList) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IPersistIDList { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IPersistIDList { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IPersistIDList> for super::super::System::Com::IPersist { fn from(value: IPersistIDList) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IPersistIDList> for super::super::System::Com::IPersist { fn from(value: &IPersistIDList) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IPersist> for IPersistIDList { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IPersist> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IPersist> for &IPersistIDList { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IPersist> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IPersistIDList_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, pclassid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IPreviewHandler(pub ::windows::core::IUnknown); impl IPreviewHandler { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetWindow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0, prc: *const super::super::Foundation::RECT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(prc)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetRect(&self, prc: *const super::super::Foundation::RECT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(prc)).ok() } pub unsafe fn DoPreview(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Unload(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetFocus(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn QueryFocus(&self) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn TranslateAccelerator(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(pmsg)).ok() } } unsafe impl ::windows::core::Interface for IPreviewHandler { type Vtable = IPreviewHandler_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8895b1c6_b41f_4c1c_a562_0d564250836f); } impl ::core::convert::From<IPreviewHandler> for ::windows::core::IUnknown { fn from(value: IPreviewHandler) -> Self { value.0 } } impl ::core::convert::From<&IPreviewHandler> for ::windows::core::IUnknown { fn from(value: &IPreviewHandler) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IPreviewHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IPreviewHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IPreviewHandler_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, prc: *const super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, prc: *const super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IPreviewHandlerFrame(pub ::windows::core::IUnknown); impl IPreviewHandlerFrame { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn GetWindowContext(&self) -> ::windows::core::Result<PREVIEWHANDLERFRAMEINFO> { let mut result__: <PREVIEWHANDLERFRAMEINFO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<PREVIEWHANDLERFRAMEINFO>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn TranslateAccelerator(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pmsg)).ok() } } unsafe impl ::windows::core::Interface for IPreviewHandlerFrame { type Vtable = IPreviewHandlerFrame_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfec87aaf_35f9_447a_adb7_20234491401a); } impl ::core::convert::From<IPreviewHandlerFrame> for ::windows::core::IUnknown { fn from(value: IPreviewHandlerFrame) -> Self { value.0 } } impl ::core::convert::From<&IPreviewHandlerFrame> for ::windows::core::IUnknown { fn from(value: &IPreviewHandlerFrame) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IPreviewHandlerFrame { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IPreviewHandlerFrame { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IPreviewHandlerFrame_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, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pinfo: *mut PREVIEWHANDLERFRAMEINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IPreviewHandlerVisuals(pub ::windows::core::IUnknown); impl IPreviewHandlerVisuals { pub unsafe fn SetBackgroundColor(&self, color: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(color)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetFont(&self, plf: *const super::super::Graphics::Gdi::LOGFONTW) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(plf)).ok() } pub unsafe fn SetTextColor(&self, color: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(color)).ok() } } unsafe impl ::windows::core::Interface for IPreviewHandlerVisuals { type Vtable = IPreviewHandlerVisuals_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x196bf9a5_b346_4ef0_aa1e_5dcdb76768b1); } impl ::core::convert::From<IPreviewHandlerVisuals> for ::windows::core::IUnknown { fn from(value: IPreviewHandlerVisuals) -> Self { value.0 } } impl ::core::convert::From<&IPreviewHandlerVisuals> for ::windows::core::IUnknown { fn from(value: &IPreviewHandlerVisuals) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IPreviewHandlerVisuals { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IPreviewHandlerVisuals { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IPreviewHandlerVisuals_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, color: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, plf: *const super::super::Graphics::Gdi::LOGFONTW) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, color: u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IPreviewItem(pub ::windows::core::IUnknown); impl IPreviewItem { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetItemIDList(&self) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } pub unsafe fn GetItem(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } } unsafe impl ::windows::core::Interface for IPreviewItem { type Vtable = IPreviewItem_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x36149969_0a8f_49c8_8b00_4aecb20222fb); } impl ::core::convert::From<IPreviewItem> for ::windows::core::IUnknown { fn from(value: IPreviewItem) -> Self { value.0 } } impl ::core::convert::From<&IPreviewItem> for ::windows::core::IUnknown { fn from(value: &IPreviewItem) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IPreviewItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IPreviewItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IPreviewItem> for IRelatedItem { fn from(value: IPreviewItem) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IPreviewItem> for IRelatedItem { fn from(value: &IPreviewItem) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IRelatedItem> for IPreviewItem { fn into_param(self) -> ::windows::core::Param<'a, IRelatedItem> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IRelatedItem> for &IPreviewItem { fn into_param(self) -> ::windows::core::Param<'a, IRelatedItem> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IPreviewItem_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, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IPreviousVersionsInfo(pub ::windows::core::IUnknown); impl IPreviousVersionsInfo { #[cfg(feature = "Win32_Foundation")] pub unsafe fn AreSnapshotsAvailable<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, pszpath: Param0, foktobeslow: Param1) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszpath.into_param().abi(), foktobeslow.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } } unsafe impl ::windows::core::Interface for IPreviousVersionsInfo { type Vtable = IPreviousVersionsInfo_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x76e54780_ad74_48e3_a695_3ba9a0aff10d); } impl ::core::convert::From<IPreviousVersionsInfo> for ::windows::core::IUnknown { fn from(value: IPreviousVersionsInfo) -> Self { value.0 } } impl ::core::convert::From<&IPreviousVersionsInfo> for ::windows::core::IUnknown { fn from(value: &IPreviousVersionsInfo) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IPreviousVersionsInfo { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IPreviousVersionsInfo { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IPreviousVersionsInfo_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszpath: super::super::Foundation::PWSTR, foktobeslow: super::super::Foundation::BOOL, pfavailable: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IProfferService(pub ::windows::core::IUnknown); impl IProfferService { #[cfg(feature = "Win32_System_Com")] pub unsafe fn ProfferService<'a, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IServiceProvider>>(&self, serviceid: *const ::windows::core::GUID, serviceprovider: Param1) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(serviceid), serviceprovider.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn RevokeService(&self, cookie: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(cookie)).ok() } } unsafe impl ::windows::core::Interface for IProfferService { type Vtable = IProfferService_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcb728b20_f786_11ce_92ad_00aa00a74cd0); } impl ::core::convert::From<IProfferService> for ::windows::core::IUnknown { fn from(value: IProfferService) -> Self { value.0 } } impl ::core::convert::From<&IProfferService> for ::windows::core::IUnknown { fn from(value: &IProfferService) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IProfferService { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IProfferService { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IProfferService_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, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, serviceid: *const ::windows::core::GUID, serviceprovider: ::windows::core::RawPtr, cookie: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, cookie: u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IProgressDialog(pub ::windows::core::IUnknown); impl IProgressDialog { #[cfg(feature = "Win32_Foundation")] pub unsafe fn StartProgressDialog<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, hwndparent: Param0, punkenablemodless: Param1, dwflags: u32, pvresevered: *const ::core::ffi::c_void) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwndparent.into_param().abi(), punkenablemodless.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(pvresevered)).ok() } pub unsafe fn StopProgressDialog(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetTitle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwztitle: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), pwztitle.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HINSTANCE>>(&self, hinstanimation: Param0, idanimation: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), hinstanimation.into_param().abi(), ::core::mem::transmute(idanimation)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn HasUserCancelled(&self) -> super::super::Foundation::BOOL { ::core::mem::transmute((::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self))) } pub unsafe fn SetProgress(&self, dwcompleted: u32, dwtotal: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwcompleted), ::core::mem::transmute(dwtotal)).ok() } pub unsafe fn SetProgress64(&self, ullcompleted: u64, ulltotal: u64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(ullcompleted), ::core::mem::transmute(ulltotal)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetLine<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, dwlinenum: u32, pwzstring: Param1, fcompactpath: Param2, pvresevered: *const ::core::ffi::c_void) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwlinenum), pwzstring.into_param().abi(), fcompactpath.into_param().abi(), ::core::mem::transmute(pvresevered)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetCancelMsg<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwzcancelmsg: Param0, pvresevered: *const ::core::ffi::c_void) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), pwzcancelmsg.into_param().abi(), ::core::mem::transmute(pvresevered)).ok() } pub unsafe fn Timer(&self, dwtimeraction: u32, pvresevered: *const ::core::ffi::c_void) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwtimeraction), ::core::mem::transmute(pvresevered)).ok() } } unsafe impl ::windows::core::Interface for IProgressDialog { type Vtable = IProgressDialog_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xebbc7c04_315e_11d2_b62f_006097df5bd4); } impl ::core::convert::From<IProgressDialog> for ::windows::core::IUnknown { fn from(value: IProgressDialog) -> Self { value.0 } } impl ::core::convert::From<&IProgressDialog> for ::windows::core::IUnknown { fn from(value: &IProgressDialog) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IProgressDialog { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IProgressDialog { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IProgressDialog_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndparent: super::super::Foundation::HWND, punkenablemodless: ::windows::core::RawPtr, dwflags: u32, pvresevered: *const ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pwztitle: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hinstanimation: super::super::Foundation::HINSTANCE, idanimation: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> super::super::Foundation::BOOL, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwcompleted: u32, dwtotal: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ullcompleted: u64, ulltotal: u64) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwlinenum: u32, pwzstring: super::super::Foundation::PWSTR, fcompactpath: super::super::Foundation::BOOL, pvresevered: *const ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pwzcancelmsg: super::super::Foundation::PWSTR, pvresevered: *const ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwtimeraction: u32, pvresevered: *const ::core::ffi::c_void) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IPropertyKeyStore(pub ::windows::core::IUnknown); impl IPropertyKeyStore { pub unsafe fn GetKeyCount(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetKeyAt(&self, index: i32) -> ::windows::core::Result<PropertiesSystem::PROPERTYKEY> { let mut result__: <PropertiesSystem::PROPERTYKEY as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(index), &mut result__).from_abi::<PropertiesSystem::PROPERTYKEY>(result__) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn AppendKey(&self, key: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(key)).ok() } pub unsafe fn DeleteKey(&self, index: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(index)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn IsKeyInStore(&self, key: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(key)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn RemoveKey(&self, key: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(key)).ok() } } unsafe impl ::windows::core::Interface for IPropertyKeyStore { type Vtable = IPropertyKeyStore_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x75bd59aa_f23b_4963_aba4_0b355752a91b); } impl ::core::convert::From<IPropertyKeyStore> for ::windows::core::IUnknown { fn from(value: IPropertyKeyStore) -> Self { value.0 } } impl ::core::convert::From<&IPropertyKeyStore> for ::windows::core::IUnknown { fn from(value: &IPropertyKeyStore) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IPropertyKeyStore { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IPropertyKeyStore { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IPropertyKeyStore_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, keycount: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, index: i32, pkey: *mut PropertiesSystem::PROPERTYKEY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, key: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, index: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, key: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, key: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IPublishedApp(pub ::windows::core::IUnknown); impl IPublishedApp { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetAppInfo(&self, pai: *mut APPINFODATA) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pai)).ok() } pub unsafe fn GetPossibleActions(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSlowAppInfo(&self) -> ::windows::core::Result<SLOWAPPINFO> { let mut result__: <SLOWAPPINFO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<SLOWAPPINFO>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCachedSlowAppInfo(&self) -> ::windows::core::Result<SLOWAPPINFO> { let mut result__: <SLOWAPPINFO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<SLOWAPPINFO>(result__) } pub unsafe fn IsInstalled(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Install(&self, pstinstall: *const super::super::Foundation::SYSTEMTIME) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(pstinstall)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetPublishedAppInfo(&self, ppai: *mut PUBAPPINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppai)).ok() } pub unsafe fn Unschedule(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IPublishedApp { type Vtable = IPublishedApp_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1bc752e0_9046_11d1_b8b3_006008059382); } impl ::core::convert::From<IPublishedApp> for ::windows::core::IUnknown { fn from(value: IPublishedApp) -> Self { value.0 } } impl ::core::convert::From<&IPublishedApp> for ::windows::core::IUnknown { fn from(value: &IPublishedApp) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IPublishedApp { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IPublishedApp { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IPublishedApp> for IShellApp { fn from(value: IPublishedApp) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IPublishedApp> for IShellApp { fn from(value: &IPublishedApp) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellApp> for IPublishedApp { fn into_param(self) -> ::windows::core::Param<'a, IShellApp> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellApp> for &IPublishedApp { fn into_param(self) -> ::windows::core::Param<'a, IShellApp> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IPublishedApp_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pai: *mut APPINFODATA) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwactions: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psaid: *mut SLOWAPPINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psaid: *mut SLOWAPPINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pstinstall: *const super::super::Foundation::SYSTEMTIME) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppai: *mut PUBAPPINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IPublishedApp2(pub ::windows::core::IUnknown); impl IPublishedApp2 { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetAppInfo(&self, pai: *mut APPINFODATA) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pai)).ok() } pub unsafe fn GetPossibleActions(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSlowAppInfo(&self) -> ::windows::core::Result<SLOWAPPINFO> { let mut result__: <SLOWAPPINFO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<SLOWAPPINFO>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCachedSlowAppInfo(&self) -> ::windows::core::Result<SLOWAPPINFO> { let mut result__: <SLOWAPPINFO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<SLOWAPPINFO>(result__) } pub unsafe fn IsInstalled(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Install(&self, pstinstall: *const super::super::Foundation::SYSTEMTIME) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(pstinstall)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetPublishedAppInfo(&self, ppai: *mut PUBAPPINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppai)).ok() } pub unsafe fn Unschedule(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Install2<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, pstinstall: *const super::super::Foundation::SYSTEMTIME, hwndparent: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(pstinstall), hwndparent.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IPublishedApp2 { type Vtable = IPublishedApp2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x12b81347_1b3a_4a04_aa61_3f768b67fd7e); } impl ::core::convert::From<IPublishedApp2> for ::windows::core::IUnknown { fn from(value: IPublishedApp2) -> Self { value.0 } } impl ::core::convert::From<&IPublishedApp2> for ::windows::core::IUnknown { fn from(value: &IPublishedApp2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IPublishedApp2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IPublishedApp2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IPublishedApp2> for IPublishedApp { fn from(value: IPublishedApp2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IPublishedApp2> for IPublishedApp { fn from(value: &IPublishedApp2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IPublishedApp> for IPublishedApp2 { fn into_param(self) -> ::windows::core::Param<'a, IPublishedApp> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IPublishedApp> for &IPublishedApp2 { fn into_param(self) -> ::windows::core::Param<'a, IPublishedApp> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IPublishedApp2> for IShellApp { fn from(value: IPublishedApp2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IPublishedApp2> for IShellApp { fn from(value: &IPublishedApp2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellApp> for IPublishedApp2 { fn into_param(self) -> ::windows::core::Param<'a, IShellApp> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellApp> for &IPublishedApp2 { fn into_param(self) -> ::windows::core::Param<'a, IShellApp> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IPublishedApp2_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pai: *mut APPINFODATA) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwactions: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psaid: *mut SLOWAPPINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psaid: *mut SLOWAPPINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pstinstall: *const super::super::Foundation::SYSTEMTIME) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppai: *mut PUBAPPINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pstinstall: *const super::super::Foundation::SYSTEMTIME, hwndparent: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IPublishingWizard(pub ::windows::core::IUnknown); impl IPublishingWizard { #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn AddPages(&self, apages: *mut super::Controls::HPROPSHEETPAGE, cpages: u32, pnpagesadded: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(apages), ::core::mem::transmute(cpages), ::core::mem::transmute(pnpagesadded)).ok() } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn GetFirstPage(&self) -> ::windows::core::Result<super::Controls::HPROPSHEETPAGE> { let mut result__: <super::Controls::HPROPSHEETPAGE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Controls::HPROPSHEETPAGE>(result__) } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn GetLastPage(&self) -> ::windows::core::Result<super::Controls::HPROPSHEETPAGE> { let mut result__: <super::Controls::HPROPSHEETPAGE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Controls::HPROPSHEETPAGE>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe fn Initialize<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pdo: Param0, dwoptions: u32, pszservicescope: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pdo.into_param().abi(), ::core::mem::transmute(dwoptions), pszservicescope.into_param().abi()).ok() } #[cfg(feature = "Win32_Data_Xml_MsXml")] pub unsafe fn GetTransferManifest(&self, phrfromtransfer: *mut ::windows::core::HRESULT, pdocmanifest: *mut ::core::option::Option<super::super::Data::Xml::MsXml::IXMLDOMDocument>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(phrfromtransfer), ::core::mem::transmute(pdocmanifest)).ok() } } unsafe impl ::windows::core::Interface for IPublishingWizard { type Vtable = IPublishingWizard_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xaa9198bb_ccec_472d_beed_19a4f6733f7a); } impl ::core::convert::From<IPublishingWizard> for ::windows::core::IUnknown { fn from(value: IPublishingWizard) -> Self { value.0 } } impl ::core::convert::From<&IPublishingWizard> for ::windows::core::IUnknown { fn from(value: &IPublishingWizard) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IPublishingWizard { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IPublishingWizard { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IPublishingWizard> for IWizardExtension { fn from(value: IPublishingWizard) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IPublishingWizard> for IWizardExtension { fn from(value: &IPublishingWizard) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IWizardExtension> for IPublishingWizard { fn into_param(self) -> ::windows::core::Param<'a, IWizardExtension> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IWizardExtension> for &IPublishingWizard { fn into_param(self) -> ::windows::core::Param<'a, IWizardExtension> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IPublishingWizard_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, #[cfg(feature = "Win32_UI_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, apages: *mut super::Controls::HPROPSHEETPAGE, cpages: u32, pnpagesadded: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Controls"))] usize, #[cfg(feature = "Win32_UI_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phpage: *mut super::Controls::HPROPSHEETPAGE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Controls"))] usize, #[cfg(feature = "Win32_UI_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phpage: *mut super::Controls::HPROPSHEETPAGE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Controls"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdo: ::windows::core::RawPtr, dwoptions: u32, pszservicescope: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] usize, #[cfg(feature = "Win32_Data_Xml_MsXml")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phrfromtransfer: *mut ::windows::core::HRESULT, pdocmanifest: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Data_Xml_MsXml"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IQueryAssociations(pub ::windows::core::IUnknown); impl IQueryAssociations { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] pub unsafe fn Init<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, flags: u32, pszassoc: Param1, hkprogid: Param2, hwnd: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(flags), pszassoc.into_param().abi(), hkprogid.into_param().abi(), hwnd.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetString<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, flags: u32, str: ASSOCSTR, pszextra: Param2, pszout: super::super::Foundation::PWSTR, pcchout: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(flags), ::core::mem::transmute(str), pszextra.into_param().abi(), ::core::mem::transmute(pszout), ::core::mem::transmute(pcchout)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] pub unsafe fn GetKey<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, flags: u32, key: ASSOCKEY, pszextra: Param2) -> ::windows::core::Result<super::super::System::Registry::HKEY> { let mut result__: <super::super::System::Registry::HKEY as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(flags), ::core::mem::transmute(key), pszextra.into_param().abi(), &mut result__).from_abi::<super::super::System::Registry::HKEY>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetData<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, flags: u32, data: ASSOCDATA, pszextra: Param2, pvout: *mut ::core::ffi::c_void, pcbout: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(flags), ::core::mem::transmute(data), pszextra.into_param().abi(), ::core::mem::transmute(pvout), ::core::mem::transmute(pcbout)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetEnum<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, flags: u32, assocenum: ASSOCENUM, pszextra: Param2, riid: *const ::windows::core::GUID, ppvout: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(flags), ::core::mem::transmute(assocenum), pszextra.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppvout)).ok() } } unsafe impl ::windows::core::Interface for IQueryAssociations { type Vtable = IQueryAssociations_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc46ca590_3c3f_11d2_bee6_0000f805ca57); } impl ::core::convert::From<IQueryAssociations> for ::windows::core::IUnknown { fn from(value: IQueryAssociations) -> Self { value.0 } } impl ::core::convert::From<&IQueryAssociations> for ::windows::core::IUnknown { fn from(value: &IQueryAssociations) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IQueryAssociations { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IQueryAssociations { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IQueryAssociations_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, flags: u32, pszassoc: super::super::Foundation::PWSTR, hkprogid: super::super::System::Registry::HKEY, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Registry")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, flags: u32, str: ASSOCSTR, pszextra: super::super::Foundation::PWSTR, pszout: super::super::Foundation::PWSTR, pcchout: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, flags: u32, key: ASSOCKEY, pszextra: super::super::Foundation::PWSTR, phkeyout: *mut super::super::System::Registry::HKEY) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Registry")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, flags: u32, data: ASSOCDATA, pszextra: super::super::Foundation::PWSTR, pvout: *mut ::core::ffi::c_void, pcbout: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, flags: u32, assocenum: ASSOCENUM, pszextra: super::super::Foundation::PWSTR, riid: *const ::windows::core::GUID, ppvout: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IQueryCancelAutoPlay(pub ::windows::core::IUnknown); impl IQueryCancelAutoPlay { #[cfg(feature = "Win32_Foundation")] pub unsafe fn AllowAutoPlay<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszpath: Param0, dwcontenttype: u32, pszlabel: Param2, dwserialnumber: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszpath.into_param().abi(), ::core::mem::transmute(dwcontenttype), pszlabel.into_param().abi(), ::core::mem::transmute(dwserialnumber)).ok() } } unsafe impl ::windows::core::Interface for IQueryCancelAutoPlay { type Vtable = IQueryCancelAutoPlay_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xddefe873_6997_4e68_be26_39b633adbe12); } impl ::core::convert::From<IQueryCancelAutoPlay> for ::windows::core::IUnknown { fn from(value: IQueryCancelAutoPlay) -> Self { value.0 } } impl ::core::convert::From<&IQueryCancelAutoPlay> for ::windows::core::IUnknown { fn from(value: &IQueryCancelAutoPlay) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IQueryCancelAutoPlay { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IQueryCancelAutoPlay { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IQueryCancelAutoPlay_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszpath: super::super::Foundation::PWSTR, dwcontenttype: u32, pszlabel: super::super::Foundation::PWSTR, dwserialnumber: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IQueryCodePage(pub ::windows::core::IUnknown); impl IQueryCodePage { pub unsafe fn GetCodePage(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn SetCodePage(&self, uicodepage: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(uicodepage)).ok() } } unsafe impl ::windows::core::Interface for IQueryCodePage { type Vtable = IQueryCodePage_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc7b236ce_ee80_11d0_985f_006008059382); } impl ::core::convert::From<IQueryCodePage> for ::windows::core::IUnknown { fn from(value: IQueryCodePage) -> Self { value.0 } } impl ::core::convert::From<&IQueryCodePage> for ::windows::core::IUnknown { fn from(value: &IQueryCodePage) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IQueryCodePage { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IQueryCodePage { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IQueryCodePage_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, puicodepage: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uicodepage: u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IQueryContinue(pub ::windows::core::IUnknown); impl IQueryContinue { pub unsafe fn QueryContinue(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IQueryContinue { type Vtable = IQueryContinue_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7307055c_b24a_486b_9f25_163e597a28a9); } impl ::core::convert::From<IQueryContinue> for ::windows::core::IUnknown { fn from(value: IQueryContinue) -> Self { value.0 } } impl ::core::convert::From<&IQueryContinue> for ::windows::core::IUnknown { fn from(value: &IQueryContinue) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IQueryContinue { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IQueryContinue { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IQueryContinue_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) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IQueryContinueWithStatus(pub ::windows::core::IUnknown); impl IQueryContinueWithStatus { pub unsafe fn QueryContinue(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetStatusMessage<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psz: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), psz.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IQueryContinueWithStatus { type Vtable = IQueryContinueWithStatus_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9090be5b_502b_41fb_bccc_0049a6c7254b); } impl ::core::convert::From<IQueryContinueWithStatus> for ::windows::core::IUnknown { fn from(value: IQueryContinueWithStatus) -> Self { value.0 } } impl ::core::convert::From<&IQueryContinueWithStatus> for ::windows::core::IUnknown { fn from(value: &IQueryContinueWithStatus) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IQueryContinueWithStatus { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IQueryContinueWithStatus { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IQueryContinueWithStatus> for IQueryContinue { fn from(value: IQueryContinueWithStatus) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IQueryContinueWithStatus> for IQueryContinue { fn from(value: &IQueryContinueWithStatus) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IQueryContinue> for IQueryContinueWithStatus { fn into_param(self) -> ::windows::core::Param<'a, IQueryContinue> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IQueryContinue> for &IQueryContinueWithStatus { fn into_param(self) -> ::windows::core::Param<'a, IQueryContinue> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IQueryContinueWithStatus_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) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psz: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IQueryInfo(pub ::windows::core::IUnknown); impl IQueryInfo { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetInfoTip(&self, dwflags: QITIPF_FLAGS) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } pub unsafe fn GetInfoFlags(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } } unsafe impl ::windows::core::Interface for IQueryInfo { type Vtable = IQueryInfo_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00021500_0000_0000_c000_000000000046); } impl ::core::convert::From<IQueryInfo> for ::windows::core::IUnknown { fn from(value: IQueryInfo) -> Self { value.0 } } impl ::core::convert::From<&IQueryInfo> for ::windows::core::IUnknown { fn from(value: &IQueryInfo) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IQueryInfo { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IQueryInfo { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IQueryInfo_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: QITIPF_FLAGS, ppwsztip: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwflags: *mut u32) -> ::windows::core::HRESULT, ); pub const IRTIR_TASK_FINISHED: u32 = 4u32; pub const IRTIR_TASK_NOT_RUNNING: u32 = 0u32; pub const IRTIR_TASK_PENDING: u32 = 3u32; pub const IRTIR_TASK_RUNNING: u32 = 1u32; pub const IRTIR_TASK_SUSPENDED: u32 = 2u32; #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IRegTreeItem(pub ::windows::core::IUnknown); impl IRegTreeItem { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCheckState(&self) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetCheckState<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, bcheck: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), bcheck.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IRegTreeItem { type Vtable = IRegTreeItem_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa9521922_0812_4d44_9ec3_7fd38c726f3d); } impl ::core::convert::From<IRegTreeItem> for ::windows::core::IUnknown { fn from(value: IRegTreeItem) -> Self { value.0 } } impl ::core::convert::From<&IRegTreeItem> for ::windows::core::IUnknown { fn from(value: &IRegTreeItem) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IRegTreeItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IRegTreeItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IRegTreeItem_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbcheck: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bcheck: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IRelatedItem(pub ::windows::core::IUnknown); impl IRelatedItem { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetItemIDList(&self) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } pub unsafe fn GetItem(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } } unsafe impl ::windows::core::Interface for IRelatedItem { type Vtable = IRelatedItem_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa73ce67a_8ab1_44f1_8d43_d2fcbf6b1cd0); } impl ::core::convert::From<IRelatedItem> for ::windows::core::IUnknown { fn from(value: IRelatedItem) -> Self { value.0 } } impl ::core::convert::From<&IRelatedItem> for ::windows::core::IUnknown { fn from(value: &IRelatedItem) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IRelatedItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IRelatedItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IRelatedItem_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, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IRemoteComputer(pub ::windows::core::IUnknown); impl IRemoteComputer { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Initialize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, pszmachine: Param0, benumerating: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszmachine.into_param().abi(), benumerating.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IRemoteComputer { type Vtable = IRemoteComputer_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214fe_0000_0000_c000_000000000046); } impl ::core::convert::From<IRemoteComputer> for ::windows::core::IUnknown { fn from(value: IRemoteComputer) -> Self { value.0 } } impl ::core::convert::From<&IRemoteComputer> for ::windows::core::IUnknown { fn from(value: &IRemoteComputer) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IRemoteComputer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IRemoteComputer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IRemoteComputer_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszmachine: super::super::Foundation::PWSTR, benumerating: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IResolveShellLink(pub ::windows::core::IUnknown); impl IResolveShellLink { #[cfg(feature = "Win32_Foundation")] pub unsafe fn ResolveShellLink<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, punklink: Param0, hwnd: Param1, fflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), punklink.into_param().abi(), hwnd.into_param().abi(), ::core::mem::transmute(fflags)).ok() } } unsafe impl ::windows::core::Interface for IResolveShellLink { type Vtable = IResolveShellLink_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5cd52983_9449_11d2_963a_00c04f79adf0); } impl ::core::convert::From<IResolveShellLink> for ::windows::core::IUnknown { fn from(value: IResolveShellLink) -> Self { value.0 } } impl ::core::convert::From<&IResolveShellLink> for ::windows::core::IUnknown { fn from(value: &IResolveShellLink) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IResolveShellLink { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IResolveShellLink { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IResolveShellLink_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punklink: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, fflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IResultsFolder(pub ::windows::core::IUnknown); impl IResultsFolder { pub unsafe fn AddItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn AddIDList(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } pub unsafe fn RemoveItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn RemoveIDList(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl)).ok() } pub unsafe fn RemoveAll(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IResultsFolder { type Vtable = IResultsFolder_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x96e5ae6d_6ae1_4b1c_900c_c6480eaa8828); } impl ::core::convert::From<IResultsFolder> for ::windows::core::IUnknown { fn from(value: IResultsFolder) -> Self { value.0 } } impl ::core::convert::From<&IResultsFolder> for ::windows::core::IUnknown { fn from(value: &IResultsFolder) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IResultsFolder { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IResultsFolder { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IResultsFolder_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, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, ppidladded: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IRunnableTask(pub ::windows::core::IUnknown); impl IRunnableTask { pub unsafe fn Run(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Kill<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, bwait: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), bwait.into_param().abi()).ok() } pub unsafe fn Suspend(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Resume(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn IsRunning(&self) -> u32 { ::core::mem::transmute((::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self))) } } unsafe impl ::windows::core::Interface for IRunnableTask { type Vtable = IRunnableTask_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x85788d00_6807_11d0_b810_00c04fd706ec); } impl ::core::convert::From<IRunnableTask> for ::windows::core::IUnknown { fn from(value: IRunnableTask) -> Self { value.0 } } impl ::core::convert::From<&IRunnableTask> for ::windows::core::IUnknown { fn from(value: &IRunnableTask) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IRunnableTask { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IRunnableTask { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IRunnableTask_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) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bwait: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, ); pub const ISFBVIEWMODE_LARGEICONS: u32 = 2u32; pub const ISFBVIEWMODE_LOGOS: u32 = 3u32; pub const ISFBVIEWMODE_SMALLICONS: u32 = 1u32; pub const ISFB_MASK_BKCOLOR: u32 = 2u32; pub const ISFB_MASK_COLORS: u32 = 32u32; pub const ISFB_MASK_IDLIST: u32 = 16u32; pub const ISFB_MASK_SHELLFOLDER: u32 = 8u32; pub const ISFB_MASK_STATE: u32 = 1u32; pub const ISFB_MASK_VIEWMODE: u32 = 4u32; pub const ISFB_STATE_ALLOWRENAME: u32 = 2u32; pub const ISFB_STATE_BTNMINSIZE: u32 = 256u32; pub const ISFB_STATE_CHANNELBAR: u32 = 16u32; pub const ISFB_STATE_DEBOSSED: u32 = 1u32; pub const ISFB_STATE_DEFAULT: u32 = 0u32; pub const ISFB_STATE_FULLOPEN: u32 = 64u32; pub const ISFB_STATE_NONAMESORT: u32 = 128u32; pub const ISFB_STATE_NOSHOWTEXT: u32 = 4u32; pub const ISFB_STATE_QLINKSMODE: u32 = 32u32; pub const ISHCUTCMDID_COMMITHISTORY: i32 = 2i32; pub const ISHCUTCMDID_DOWNLOADICON: i32 = 0i32; pub const ISHCUTCMDID_INTSHORTCUTCREATE: i32 = 1i32; pub const ISHCUTCMDID_SETUSERAWURL: i32 = 3i32; pub const ISIOI_ICONFILE: u32 = 1u32; pub const ISIOI_ICONINDEX: u32 = 2u32; pub const IS_E_EXEC_FAILED: ::windows::core::HRESULT = ::windows::core::HRESULT(-2147213310i32 as _); pub const IS_FULLSCREEN: u32 = 2u32; pub const IS_NORMAL: u32 = 1u32; pub const IS_SPLIT: u32 = 4u32; #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IScriptErrorList(pub ::windows::core::IUnknown); impl IScriptErrorList { pub unsafe fn advanceError(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn retreatError(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn canAdvanceError(&self) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn canRetreatError(&self) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } pub unsafe fn getErrorLine(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn getErrorChar(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn getErrorCode(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn getErrorMsg(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn getErrorUrl(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn getAlwaysShowLockState(&self) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn getDetailsPaneOpen(&self) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn setDetailsPaneOpen<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fdetailspaneopen: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), fdetailspaneopen.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn getPerErrorDisplay(&self) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn setPerErrorDisplay<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fpererrordisplay: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), fpererrordisplay.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IScriptErrorList { type Vtable = IScriptErrorList_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf3470f24_15fd_11d2_bb2e_00805ff7efca); } impl ::core::convert::From<IScriptErrorList> for ::windows::core::IUnknown { fn from(value: IScriptErrorList) -> Self { value.0 } } impl ::core::convert::From<&IScriptErrorList> for ::windows::core::IUnknown { fn from(value: &IScriptErrorList) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IScriptErrorList { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IScriptErrorList { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IScriptErrorList> for super::super::System::Com::IDispatch { fn from(value: IScriptErrorList) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IScriptErrorList> for super::super::System::Com::IDispatch { fn from(value: &IScriptErrorList) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IScriptErrorList { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IScriptErrorList { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IScriptErrorList_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfcanadvance: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfcanretreat: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, plline: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, plchar: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, plcode: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pstr: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pstr: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfalwaysshowlocked: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfdetailspaneopen: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fdetailspaneopen: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfpererrordisplay: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fpererrordisplay: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISearchBoxInfo(pub ::windows::core::IUnknown); impl ISearchBoxInfo { pub unsafe fn GetCondition<T: ::windows::core::Interface>(&self) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetText(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } } unsafe impl ::windows::core::Interface for ISearchBoxInfo { type Vtable = ISearchBoxInfo_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6af6e03f_d664_4ef4_9626_f7e0ed36755e); } impl ::core::convert::From<ISearchBoxInfo> for ::windows::core::IUnknown { fn from(value: ISearchBoxInfo) -> Self { value.0 } } impl ::core::convert::From<&ISearchBoxInfo> for ::windows::core::IUnknown { fn from(value: &ISearchBoxInfo) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISearchBoxInfo { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISearchBoxInfo { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISearchBoxInfo_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, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsz: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISearchContext(pub ::windows::core::IUnknown); impl ISearchContext { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSearchUrl(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSearchText(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn GetSearchStyle(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } } unsafe impl ::windows::core::Interface for ISearchContext { type Vtable = ISearchContext_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x09f656a2_41af_480c_88f7_16cc0d164615); } impl ::core::convert::From<ISearchContext> for ::windows::core::IUnknown { fn from(value: ISearchContext) -> Self { value.0 } } impl ::core::convert::From<&ISearchContext> for ::windows::core::IUnknown { fn from(value: &ISearchContext) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISearchContext { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISearchContext { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISearchContext_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrsearchurl: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrsearchtext: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwsearchstyle: *mut u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISearchFolderItemFactory(pub ::windows::core::IUnknown); impl ISearchFolderItemFactory { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetDisplayName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszdisplayname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszdisplayname.into_param().abi()).ok() } pub unsafe fn SetFolderTypeID<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::GUID>>(&self, ftid: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ftid.into_param().abi()).ok() } pub unsafe fn SetFolderLogicalViewMode(&self, flvm: FOLDERLOGICALVIEWMODE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(flvm)).ok() } pub unsafe fn SetIconSize(&self, iiconsize: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(iiconsize)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetVisibleColumns(&self, cvisiblecolumns: u32, rgkey: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(cvisiblecolumns), ::core::mem::transmute(rgkey)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetSortColumns(&self, csortcolumns: u32, rgsortcolumns: *const SORTCOLUMN) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(csortcolumns), ::core::mem::transmute(rgsortcolumns)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetGroupColumn(&self, keygroup: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(keygroup)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetStacks(&self, cstackkeys: u32, rgstackkeys: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(cstackkeys), ::core::mem::transmute(rgstackkeys)).ok() } pub unsafe fn SetScope<'a, Param0: ::windows::core::IntoParam<'a, IShellItemArray>>(&self, psiascope: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), psiascope.into_param().abi()).ok() } #[cfg(feature = "Win32_System_Search")] pub unsafe fn SetCondition<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Search::ICondition>>(&self, pcondition: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), pcondition.into_param().abi()).ok() } pub unsafe fn GetShellItem<T: ::windows::core::Interface>(&self) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetIDList(&self) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } } unsafe impl ::windows::core::Interface for ISearchFolderItemFactory { type Vtable = ISearchFolderItemFactory_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa0ffbc28_5482_4366_be27_3e81e78e06c2); } impl ::core::convert::From<ISearchFolderItemFactory> for ::windows::core::IUnknown { fn from(value: ISearchFolderItemFactory) -> Self { value.0 } } impl ::core::convert::From<&ISearchFolderItemFactory> for ::windows::core::IUnknown { fn from(value: &ISearchFolderItemFactory) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISearchFolderItemFactory { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISearchFolderItemFactory { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISearchFolderItemFactory_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszdisplayname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ftid: ::windows::core::GUID) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, flvm: FOLDERLOGICALVIEWMODE) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iiconsize: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, cvisiblecolumns: u32, rgkey: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, csortcolumns: u32, rgsortcolumns: *const SORTCOLUMN) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, keygroup: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, cstackkeys: u32, rgstackkeys: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiascope: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Search")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcondition: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Search"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISharedBitmap(pub ::windows::core::IUnknown); impl ISharedBitmap { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetSharedBitmap(&self) -> ::windows::core::Result<super::super::Graphics::Gdi::HBITMAP> { let mut result__: <super::super::Graphics::Gdi::HBITMAP as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Graphics::Gdi::HBITMAP>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSize(&self) -> ::windows::core::Result<super::super::Foundation::SIZE> { let mut result__: <super::super::Foundation::SIZE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::SIZE>(result__) } pub unsafe fn GetFormat(&self) -> ::windows::core::Result<WTS_ALPHATYPE> { let mut result__: <WTS_ALPHATYPE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<WTS_ALPHATYPE>(result__) } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn InitializeBitmap<'a, Param0: ::windows::core::IntoParam<'a, super::super::Graphics::Gdi::HBITMAP>>(&self, hbm: Param0, wtsat: WTS_ALPHATYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), hbm.into_param().abi(), ::core::mem::transmute(wtsat)).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn Detach(&self) -> ::windows::core::Result<super::super::Graphics::Gdi::HBITMAP> { let mut result__: <super::super::Graphics::Gdi::HBITMAP as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Graphics::Gdi::HBITMAP>(result__) } } unsafe impl ::windows::core::Interface for ISharedBitmap { type Vtable = ISharedBitmap_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x091162a4_bc96_411f_aae8_c5122cd03363); } impl ::core::convert::From<ISharedBitmap> for ::windows::core::IUnknown { fn from(value: ISharedBitmap) -> Self { value.0 } } impl ::core::convert::From<&ISharedBitmap> for ::windows::core::IUnknown { fn from(value: &ISharedBitmap) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISharedBitmap { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISharedBitmap { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISharedBitmap_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, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phbm: *mut super::super::Graphics::Gdi::HBITMAP) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psize: *mut super::super::Foundation::SIZE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pat: *mut WTS_ALPHATYPE) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hbm: super::super::Graphics::Gdi::HBITMAP, wtsat: WTS_ALPHATYPE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phbm: *mut super::super::Graphics::Gdi::HBITMAP) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISharingConfigurationManager(pub ::windows::core::IUnknown); impl ISharingConfigurationManager { pub unsafe fn CreateShare(&self, dsid: DEF_SHARE_ID, role: SHARE_ROLE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(dsid), ::core::mem::transmute(role)).ok() } pub unsafe fn DeleteShare(&self, dsid: DEF_SHARE_ID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(dsid)).ok() } pub unsafe fn ShareExists(&self, dsid: DEF_SHARE_ID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dsid)).ok() } pub unsafe fn GetSharePermissions(&self, dsid: DEF_SHARE_ID) -> ::windows::core::Result<SHARE_ROLE> { let mut result__: <SHARE_ROLE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(dsid), &mut result__).from_abi::<SHARE_ROLE>(result__) } pub unsafe fn SharePrinters(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn StopSharingPrinters(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ArePrintersShared(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for ISharingConfigurationManager { type Vtable = ISharingConfigurationManager_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb4cd448a_9c86_4466_9201_2e62105b87ae); } impl ::core::convert::From<ISharingConfigurationManager> for ::windows::core::IUnknown { fn from(value: ISharingConfigurationManager) -> Self { value.0 } } impl ::core::convert::From<&ISharingConfigurationManager> for ::windows::core::IUnknown { fn from(value: &ISharingConfigurationManager) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISharingConfigurationManager { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISharingConfigurationManager { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISharingConfigurationManager_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, dsid: DEF_SHARE_ID, role: SHARE_ROLE) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dsid: DEF_SHARE_ID) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dsid: DEF_SHARE_ID) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dsid: DEF_SHARE_ID, prole: *mut SHARE_ROLE) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellApp(pub ::windows::core::IUnknown); impl IShellApp { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetAppInfo(&self, pai: *mut APPINFODATA) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pai)).ok() } pub unsafe fn GetPossibleActions(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSlowAppInfo(&self) -> ::windows::core::Result<SLOWAPPINFO> { let mut result__: <SLOWAPPINFO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<SLOWAPPINFO>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCachedSlowAppInfo(&self) -> ::windows::core::Result<SLOWAPPINFO> { let mut result__: <SLOWAPPINFO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<SLOWAPPINFO>(result__) } pub unsafe fn IsInstalled(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IShellApp { type Vtable = IShellApp_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa3e14960_935f_11d1_b8b8_006008059382); } impl ::core::convert::From<IShellApp> for ::windows::core::IUnknown { fn from(value: IShellApp) -> Self { value.0 } } impl ::core::convert::From<&IShellApp> for ::windows::core::IUnknown { fn from(value: &IShellApp) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellApp { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellApp { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellApp_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pai: *mut APPINFODATA) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwactions: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psaid: *mut SLOWAPPINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psaid: *mut SLOWAPPINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellBrowser(pub ::windows::core::IUnknown); impl IShellBrowser { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetWindow(&self) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ContextSensitiveHelp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fentermode: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), fentermode.into_param().abi()).ok() } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn InsertMenusSB<'a, Param0: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HMENU>>(&self, hmenushared: Param0, lpmenuwidths: *mut super::super::System::Ole::OleMenuGroupWidths) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), hmenushared.into_param().abi(), ::core::mem::transmute(lpmenuwidths)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn SetMenuSB<'a, Param0: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HMENU>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hmenushared: Param0, holemenures: isize, hwndactiveobject: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), hmenushared.into_param().abi(), ::core::mem::transmute(holemenures), hwndactiveobject.into_param().abi()).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn RemoveMenusSB<'a, Param0: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HMENU>>(&self, hmenushared: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), hmenushared.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetStatusTextSB<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszstatustext: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), pszstatustext.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn EnableModelessSB<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fenable: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), fenable.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn TranslateAcceleratorSB(&self, pmsg: *const super::WindowsAndMessaging::MSG, wid: u16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(pmsg), ::core::mem::transmute(wid)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn BrowseObject(&self, pidl: *const Common::ITEMIDLIST, wflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(wflags)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetViewStateStream(&self, grfmode: u32) -> ::windows::core::Result<super::super::System::Com::IStream> { let mut result__: <super::super::System::Com::IStream as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(grfmode), &mut result__).from_abi::<super::super::System::Com::IStream>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetControlWindow(&self, id: u32) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(id), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SendControlMsg<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, id: u32, umsg: u32, wparam: Param2, lparam: Param3) -> ::windows::core::Result<super::super::Foundation::LRESULT> { let mut result__: <super::super::Foundation::LRESULT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(id), ::core::mem::transmute(umsg), wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::LRESULT>(result__) } pub unsafe fn QueryActiveShellView(&self) -> ::windows::core::Result<IShellView> { let mut result__: <IShellView as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellView>(result__) } pub unsafe fn OnViewWindowActive<'a, Param0: ::windows::core::IntoParam<'a, IShellView>>(&self, pshv: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), pshv.into_param().abi()).ok() } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn SetToolbarItems(&self, lpbuttons: *const super::Controls::TBBUTTON, nbuttons: u32, uflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), ::core::mem::transmute(lpbuttons), ::core::mem::transmute(nbuttons), ::core::mem::transmute(uflags)).ok() } } unsafe impl ::windows::core::Interface for IShellBrowser { type Vtable = IShellBrowser_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214e2_0000_0000_c000_000000000046); } impl ::core::convert::From<IShellBrowser> for ::windows::core::IUnknown { fn from(value: IShellBrowser) -> Self { value.0 } } impl ::core::convert::From<&IShellBrowser> for ::windows::core::IUnknown { fn from(value: &IShellBrowser) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellBrowser { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellBrowser { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<IShellBrowser> for super::super::System::Ole::IOleWindow { fn from(value: IShellBrowser) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<&IShellBrowser> for super::super::System::Ole::IOleWindow { fn from(value: &IShellBrowser) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for IShellBrowser { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for &IShellBrowser { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellBrowser_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fentermode: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hmenushared: super::WindowsAndMessaging::HMENU, lpmenuwidths: *mut super::super::System::Ole::OleMenuGroupWidths) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hmenushared: super::WindowsAndMessaging::HMENU, holemenures: isize, hwndactiveobject: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hmenushared: super::WindowsAndMessaging::HMENU) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszstatustext: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fenable: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmsg: *const super::WindowsAndMessaging::MSG, wid: u16) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, wflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, grfmode: u32, ppstrm: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, id: u32, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, id: u32, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pret: *mut super::super::Foundation::LRESULT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppshv: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pshv: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lpbuttons: *const super::Controls::TBBUTTON, nbuttons: u32, uflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Controls"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellChangeNotify(pub ::windows::core::IUnknown); impl IShellChangeNotify { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn OnChange(&self, levent: i32, pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(levent), ::core::mem::transmute(pidl1), ::core::mem::transmute(pidl2)).ok() } } unsafe impl ::windows::core::Interface for IShellChangeNotify { type Vtable = IShellChangeNotify_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd82be2b1_5764_11d0_a96e_00c04fd705a2); } impl ::core::convert::From<IShellChangeNotify> for ::windows::core::IUnknown { fn from(value: IShellChangeNotify) -> Self { value.0 } } impl ::core::convert::From<&IShellChangeNotify> for ::windows::core::IUnknown { fn from(value: &IShellChangeNotify) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellChangeNotify { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellChangeNotify { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellChangeNotify_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, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, levent: i32, pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellDetails(pub ::windows::core::IUnknown); impl IShellDetails { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn GetDetailsOf(&self, pidl: *const Common::ITEMIDLIST, icolumn: u32) -> ::windows::core::Result<Common::SHELLDETAILS> { let mut result__: <Common::SHELLDETAILS as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(icolumn), &mut result__).from_abi::<Common::SHELLDETAILS>(result__) } pub unsafe fn ColumnClick(&self, icolumn: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(icolumn)).ok() } } unsafe impl ::windows::core::Interface for IShellDetails { type Vtable = IShellDetails_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214ec_0000_0000_c000_000000000046); } impl ::core::convert::From<IShellDetails> for ::windows::core::IUnknown { fn from(value: IShellDetails) -> Self { value.0 } } impl ::core::convert::From<&IShellDetails> for ::windows::core::IUnknown { fn from(value: &IShellDetails) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellDetails { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellDetails { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellDetails_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, icolumn: u32, pdetails: *mut Common::SHELLDETAILS) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, icolumn: u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellDispatch(pub ::windows::core::IUnknown); impl IShellDispatch { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Application(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn NameSpace<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vdir: Param0) -> ::windows::core::Result<Folder> { let mut result__: <Folder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), vdir.into_param().abi(), &mut result__).from_abi::<Folder>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn BrowseForFolder<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param3: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, hwnd: i32, title: Param1, options: i32, rootfolder: Param3) -> ::windows::core::Result<Folder> { let mut result__: <Folder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(hwnd), title.into_param().abi(), ::core::mem::transmute(options), rootfolder.into_param().abi(), &mut result__).from_abi::<Folder>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Windows(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Open<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vdir: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), vdir.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Explore<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vdir: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), vdir.into_param().abi()).ok() } pub unsafe fn MinimizeAll(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn UndoMinimizeALL(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn FileRun(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn CascadeWindows(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn TileVertically(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn TileHorizontally(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ShutdownWindows(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Suspend(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn EjectPC(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetTime(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn TrayProperties(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Help(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn FindFiles(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn FindComputer(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn RefreshMenu(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ControlPanelItem<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrdir: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), bstrdir.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IShellDispatch { type Vtable = IShellDispatch_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd8f015c0_c278_11ce_a49e_444553540000); } impl ::core::convert::From<IShellDispatch> for ::windows::core::IUnknown { fn from(value: IShellDispatch) -> Self { value.0 } } impl ::core::convert::From<&IShellDispatch> for ::windows::core::IUnknown { fn from(value: &IShellDispatch) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellDispatch { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellDispatch { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellDispatch> for super::super::System::Com::IDispatch { fn from(value: IShellDispatch) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellDispatch> for super::super::System::Com::IDispatch { fn from(value: &IShellDispatch) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellDispatch { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellDispatch { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellDispatch_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ppsdf: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: i32, title: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, options: i32, rootfolder: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ppsdf: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrdir: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellDispatch2(pub ::windows::core::IUnknown); impl IShellDispatch2 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Application(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn NameSpace<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vdir: Param0) -> ::windows::core::Result<Folder> { let mut result__: <Folder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), vdir.into_param().abi(), &mut result__).from_abi::<Folder>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn BrowseForFolder<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param3: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, hwnd: i32, title: Param1, options: i32, rootfolder: Param3) -> ::windows::core::Result<Folder> { let mut result__: <Folder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(hwnd), title.into_param().abi(), ::core::mem::transmute(options), rootfolder.into_param().abi(), &mut result__).from_abi::<Folder>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Windows(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Open<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vdir: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), vdir.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Explore<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vdir: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), vdir.into_param().abi()).ok() } pub unsafe fn MinimizeAll(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn UndoMinimizeALL(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn FileRun(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn CascadeWindows(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn TileVertically(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn TileHorizontally(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ShutdownWindows(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Suspend(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn EjectPC(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetTime(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn TrayProperties(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Help(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn FindFiles(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn FindComputer(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn RefreshMenu(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ControlPanelItem<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrdir: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), bstrdir.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsRestricted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, group: Param0, restriction: Param1) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), group.into_param().abi(), restriction.into_param().abi(), &mut result__).from_abi::<i32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ShellExecute<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param3: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param4: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>( &self, file: Param0, vargs: Param1, vdir: Param2, voperation: Param3, vshow: Param4, ) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), file.into_param().abi(), vargs.into_param().abi(), vdir.into_param().abi(), voperation.into_param().abi(), vshow.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn FindPrinter<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, name: Param0, location: Param1, model: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), name.into_param().abi(), location.into_param().abi(), model.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GetSystemInformation<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, name: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), name.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ServiceStart<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, servicename: Param0, persistent: Param1) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), servicename.into_param().abi(), persistent.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ServiceStop<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, servicename: Param0, persistent: Param1) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), servicename.into_param().abi(), persistent.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn IsServiceRunning<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, servicename: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), servicename.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn CanStartStopService<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, servicename: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), servicename.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ShowBrowserBar<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, bstrclsid: Param0, bshow: Param1) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self), bstrclsid.into_param().abi(), bshow.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } } unsafe impl ::windows::core::Interface for IShellDispatch2 { type Vtable = IShellDispatch2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa4c6892c_3ba9_11d2_9dea_00c04fb16162); } impl ::core::convert::From<IShellDispatch2> for ::windows::core::IUnknown { fn from(value: IShellDispatch2) -> Self { value.0 } } impl ::core::convert::From<&IShellDispatch2> for ::windows::core::IUnknown { fn from(value: &IShellDispatch2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellDispatch2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellDispatch2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IShellDispatch2> for IShellDispatch { fn from(value: IShellDispatch2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellDispatch2> for IShellDispatch { fn from(value: &IShellDispatch2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch> for IShellDispatch2 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch> for &IShellDispatch2 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellDispatch2> for super::super::System::Com::IDispatch { fn from(value: IShellDispatch2) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellDispatch2> for super::super::System::Com::IDispatch { fn from(value: &IShellDispatch2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellDispatch2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellDispatch2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellDispatch2_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ppsdf: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: i32, title: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, options: i32, rootfolder: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ppsdf: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrdir: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, group: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, restriction: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, plrestrictvalue: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, file: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, vargs: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, voperation: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, vshow: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, name: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, location: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, model: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, name: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pv: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, servicename: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, persistent: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, psuccess: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, servicename: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, persistent: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, psuccess: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, servicename: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, prunning: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, servicename: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pcanstartstop: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrclsid: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bshow: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, psuccess: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellDispatch3(pub ::windows::core::IUnknown); impl IShellDispatch3 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Application(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn NameSpace<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vdir: Param0) -> ::windows::core::Result<Folder> { let mut result__: <Folder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), vdir.into_param().abi(), &mut result__).from_abi::<Folder>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn BrowseForFolder<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param3: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, hwnd: i32, title: Param1, options: i32, rootfolder: Param3) -> ::windows::core::Result<Folder> { let mut result__: <Folder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(hwnd), title.into_param().abi(), ::core::mem::transmute(options), rootfolder.into_param().abi(), &mut result__).from_abi::<Folder>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Windows(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Open<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vdir: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), vdir.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Explore<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vdir: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), vdir.into_param().abi()).ok() } pub unsafe fn MinimizeAll(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn UndoMinimizeALL(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn FileRun(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn CascadeWindows(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn TileVertically(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn TileHorizontally(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ShutdownWindows(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Suspend(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn EjectPC(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetTime(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn TrayProperties(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Help(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn FindFiles(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn FindComputer(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn RefreshMenu(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ControlPanelItem<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrdir: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), bstrdir.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsRestricted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, group: Param0, restriction: Param1) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), group.into_param().abi(), restriction.into_param().abi(), &mut result__).from_abi::<i32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ShellExecute<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param3: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param4: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>( &self, file: Param0, vargs: Param1, vdir: Param2, voperation: Param3, vshow: Param4, ) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), file.into_param().abi(), vargs.into_param().abi(), vdir.into_param().abi(), voperation.into_param().abi(), vshow.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn FindPrinter<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, name: Param0, location: Param1, model: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), name.into_param().abi(), location.into_param().abi(), model.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GetSystemInformation<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, name: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), name.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ServiceStart<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, servicename: Param0, persistent: Param1) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), servicename.into_param().abi(), persistent.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ServiceStop<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, servicename: Param0, persistent: Param1) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), servicename.into_param().abi(), persistent.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn IsServiceRunning<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, servicename: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), servicename.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn CanStartStopService<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, servicename: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), servicename.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ShowBrowserBar<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, bstrclsid: Param0, bshow: Param1) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self), bstrclsid.into_param().abi(), bshow.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddToRecent<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, varfile: Param0, bstrcategory: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).39)(::core::mem::transmute_copy(self), varfile.into_param().abi(), bstrcategory.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IShellDispatch3 { type Vtable = IShellDispatch3_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x177160ca_bb5a_411c_841d_bd38facdeaa0); } impl ::core::convert::From<IShellDispatch3> for ::windows::core::IUnknown { fn from(value: IShellDispatch3) -> Self { value.0 } } impl ::core::convert::From<&IShellDispatch3> for ::windows::core::IUnknown { fn from(value: &IShellDispatch3) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellDispatch3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellDispatch3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IShellDispatch3> for IShellDispatch2 { fn from(value: IShellDispatch3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellDispatch3> for IShellDispatch2 { fn from(value: &IShellDispatch3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch2> for IShellDispatch3 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch2> for &IShellDispatch3 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellDispatch3> for IShellDispatch { fn from(value: IShellDispatch3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellDispatch3> for IShellDispatch { fn from(value: &IShellDispatch3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch> for IShellDispatch3 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch> for &IShellDispatch3 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellDispatch3> for super::super::System::Com::IDispatch { fn from(value: IShellDispatch3) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellDispatch3> for super::super::System::Com::IDispatch { fn from(value: &IShellDispatch3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellDispatch3 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellDispatch3 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellDispatch3_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ppsdf: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: i32, title: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, options: i32, rootfolder: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ppsdf: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrdir: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, group: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, restriction: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, plrestrictvalue: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, file: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, vargs: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, voperation: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, vshow: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, name: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, location: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, model: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, name: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pv: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, servicename: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, persistent: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, psuccess: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, servicename: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, persistent: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, psuccess: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, servicename: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, prunning: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, servicename: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pcanstartstop: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrclsid: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bshow: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, psuccess: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, varfile: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, bstrcategory: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellDispatch4(pub ::windows::core::IUnknown); impl IShellDispatch4 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Application(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn NameSpace<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vdir: Param0) -> ::windows::core::Result<Folder> { let mut result__: <Folder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), vdir.into_param().abi(), &mut result__).from_abi::<Folder>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn BrowseForFolder<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param3: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, hwnd: i32, title: Param1, options: i32, rootfolder: Param3) -> ::windows::core::Result<Folder> { let mut result__: <Folder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(hwnd), title.into_param().abi(), ::core::mem::transmute(options), rootfolder.into_param().abi(), &mut result__).from_abi::<Folder>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Windows(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Open<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vdir: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), vdir.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Explore<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vdir: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), vdir.into_param().abi()).ok() } pub unsafe fn MinimizeAll(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn UndoMinimizeALL(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn FileRun(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn CascadeWindows(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn TileVertically(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn TileHorizontally(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ShutdownWindows(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Suspend(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn EjectPC(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetTime(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn TrayProperties(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Help(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn FindFiles(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn FindComputer(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn RefreshMenu(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ControlPanelItem<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrdir: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), bstrdir.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsRestricted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, group: Param0, restriction: Param1) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), group.into_param().abi(), restriction.into_param().abi(), &mut result__).from_abi::<i32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ShellExecute<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param3: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param4: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>( &self, file: Param0, vargs: Param1, vdir: Param2, voperation: Param3, vshow: Param4, ) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), file.into_param().abi(), vargs.into_param().abi(), vdir.into_param().abi(), voperation.into_param().abi(), vshow.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn FindPrinter<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, name: Param0, location: Param1, model: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), name.into_param().abi(), location.into_param().abi(), model.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GetSystemInformation<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, name: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), name.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ServiceStart<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, servicename: Param0, persistent: Param1) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), servicename.into_param().abi(), persistent.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ServiceStop<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, servicename: Param0, persistent: Param1) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), servicename.into_param().abi(), persistent.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn IsServiceRunning<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, servicename: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), servicename.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn CanStartStopService<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, servicename: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), servicename.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ShowBrowserBar<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, bstrclsid: Param0, bshow: Param1) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self), bstrclsid.into_param().abi(), bshow.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddToRecent<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, varfile: Param0, bstrcategory: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).39)(::core::mem::transmute_copy(self), varfile.into_param().abi(), bstrcategory.into_param().abi()).ok() } pub unsafe fn WindowsSecurity(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).40)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ToggleDesktop(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).41)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ExplorerPolicy<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrpolicyname: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).42)(::core::mem::transmute_copy(self), bstrpolicyname.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } pub unsafe fn GetSetting(&self, lsetting: i32) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).43)(::core::mem::transmute_copy(self), ::core::mem::transmute(lsetting), &mut result__).from_abi::<i16>(result__) } } unsafe impl ::windows::core::Interface for IShellDispatch4 { type Vtable = IShellDispatch4_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xefd84b2d_4bcf_4298_be25_eb542a59fbda); } impl ::core::convert::From<IShellDispatch4> for ::windows::core::IUnknown { fn from(value: IShellDispatch4) -> Self { value.0 } } impl ::core::convert::From<&IShellDispatch4> for ::windows::core::IUnknown { fn from(value: &IShellDispatch4) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellDispatch4 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellDispatch4 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IShellDispatch4> for IShellDispatch3 { fn from(value: IShellDispatch4) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellDispatch4> for IShellDispatch3 { fn from(value: &IShellDispatch4) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch3> for IShellDispatch4 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch3> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch3> for &IShellDispatch4 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch3> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellDispatch4> for IShellDispatch2 { fn from(value: IShellDispatch4) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellDispatch4> for IShellDispatch2 { fn from(value: &IShellDispatch4) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch2> for IShellDispatch4 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch2> for &IShellDispatch4 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellDispatch4> for IShellDispatch { fn from(value: IShellDispatch4) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellDispatch4> for IShellDispatch { fn from(value: &IShellDispatch4) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch> for IShellDispatch4 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch> for &IShellDispatch4 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellDispatch4> for super::super::System::Com::IDispatch { fn from(value: IShellDispatch4) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellDispatch4> for super::super::System::Com::IDispatch { fn from(value: &IShellDispatch4) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellDispatch4 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellDispatch4 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellDispatch4_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ppsdf: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: i32, title: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, options: i32, rootfolder: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ppsdf: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrdir: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, group: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, restriction: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, plrestrictvalue: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, file: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, vargs: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, voperation: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, vshow: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, name: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, location: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, model: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, name: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pv: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, servicename: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, persistent: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, psuccess: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, servicename: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, persistent: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, psuccess: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, servicename: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, prunning: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, servicename: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pcanstartstop: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrclsid: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bshow: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, psuccess: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, varfile: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, bstrcategory: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrpolicyname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvalue: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lsetting: i32, presult: *mut i16) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellDispatch5(pub ::windows::core::IUnknown); impl IShellDispatch5 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Application(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn NameSpace<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vdir: Param0) -> ::windows::core::Result<Folder> { let mut result__: <Folder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), vdir.into_param().abi(), &mut result__).from_abi::<Folder>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn BrowseForFolder<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param3: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, hwnd: i32, title: Param1, options: i32, rootfolder: Param3) -> ::windows::core::Result<Folder> { let mut result__: <Folder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(hwnd), title.into_param().abi(), ::core::mem::transmute(options), rootfolder.into_param().abi(), &mut result__).from_abi::<Folder>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Windows(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Open<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vdir: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), vdir.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Explore<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vdir: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), vdir.into_param().abi()).ok() } pub unsafe fn MinimizeAll(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn UndoMinimizeALL(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn FileRun(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn CascadeWindows(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn TileVertically(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn TileHorizontally(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ShutdownWindows(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Suspend(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn EjectPC(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetTime(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn TrayProperties(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Help(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn FindFiles(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn FindComputer(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn RefreshMenu(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ControlPanelItem<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrdir: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), bstrdir.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsRestricted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, group: Param0, restriction: Param1) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), group.into_param().abi(), restriction.into_param().abi(), &mut result__).from_abi::<i32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ShellExecute<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param3: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param4: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>( &self, file: Param0, vargs: Param1, vdir: Param2, voperation: Param3, vshow: Param4, ) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), file.into_param().abi(), vargs.into_param().abi(), vdir.into_param().abi(), voperation.into_param().abi(), vshow.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn FindPrinter<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, name: Param0, location: Param1, model: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), name.into_param().abi(), location.into_param().abi(), model.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GetSystemInformation<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, name: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), name.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ServiceStart<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, servicename: Param0, persistent: Param1) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), servicename.into_param().abi(), persistent.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ServiceStop<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, servicename: Param0, persistent: Param1) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), servicename.into_param().abi(), persistent.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn IsServiceRunning<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, servicename: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), servicename.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn CanStartStopService<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, servicename: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), servicename.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ShowBrowserBar<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, bstrclsid: Param0, bshow: Param1) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self), bstrclsid.into_param().abi(), bshow.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddToRecent<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, varfile: Param0, bstrcategory: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).39)(::core::mem::transmute_copy(self), varfile.into_param().abi(), bstrcategory.into_param().abi()).ok() } pub unsafe fn WindowsSecurity(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).40)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ToggleDesktop(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).41)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ExplorerPolicy<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrpolicyname: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).42)(::core::mem::transmute_copy(self), bstrpolicyname.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } pub unsafe fn GetSetting(&self, lsetting: i32) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).43)(::core::mem::transmute_copy(self), ::core::mem::transmute(lsetting), &mut result__).from_abi::<i16>(result__) } pub unsafe fn WindowSwitcher(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).44)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IShellDispatch5 { type Vtable = IShellDispatch5_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x866738b9_6cf2_4de8_8767_f794ebe74f4e); } impl ::core::convert::From<IShellDispatch5> for ::windows::core::IUnknown { fn from(value: IShellDispatch5) -> Self { value.0 } } impl ::core::convert::From<&IShellDispatch5> for ::windows::core::IUnknown { fn from(value: &IShellDispatch5) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellDispatch5 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellDispatch5 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IShellDispatch5> for IShellDispatch4 { fn from(value: IShellDispatch5) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellDispatch5> for IShellDispatch4 { fn from(value: &IShellDispatch5) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch4> for IShellDispatch5 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch4> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch4> for &IShellDispatch5 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch4> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellDispatch5> for IShellDispatch3 { fn from(value: IShellDispatch5) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellDispatch5> for IShellDispatch3 { fn from(value: &IShellDispatch5) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch3> for IShellDispatch5 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch3> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch3> for &IShellDispatch5 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch3> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellDispatch5> for IShellDispatch2 { fn from(value: IShellDispatch5) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellDispatch5> for IShellDispatch2 { fn from(value: &IShellDispatch5) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch2> for IShellDispatch5 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch2> for &IShellDispatch5 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellDispatch5> for IShellDispatch { fn from(value: IShellDispatch5) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellDispatch5> for IShellDispatch { fn from(value: &IShellDispatch5) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch> for IShellDispatch5 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch> for &IShellDispatch5 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellDispatch5> for super::super::System::Com::IDispatch { fn from(value: IShellDispatch5) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellDispatch5> for super::super::System::Com::IDispatch { fn from(value: &IShellDispatch5) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellDispatch5 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellDispatch5 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellDispatch5_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ppsdf: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: i32, title: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, options: i32, rootfolder: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ppsdf: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrdir: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, group: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, restriction: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, plrestrictvalue: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, file: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, vargs: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, voperation: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, vshow: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, name: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, location: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, model: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, name: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pv: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, servicename: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, persistent: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, psuccess: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, servicename: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, persistent: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, psuccess: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, servicename: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, prunning: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, servicename: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pcanstartstop: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrclsid: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bshow: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, psuccess: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, varfile: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, bstrcategory: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrpolicyname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvalue: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lsetting: i32, presult: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellDispatch6(pub ::windows::core::IUnknown); impl IShellDispatch6 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Application(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn NameSpace<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vdir: Param0) -> ::windows::core::Result<Folder> { let mut result__: <Folder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), vdir.into_param().abi(), &mut result__).from_abi::<Folder>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn BrowseForFolder<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param3: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, hwnd: i32, title: Param1, options: i32, rootfolder: Param3) -> ::windows::core::Result<Folder> { let mut result__: <Folder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(hwnd), title.into_param().abi(), ::core::mem::transmute(options), rootfolder.into_param().abi(), &mut result__).from_abi::<Folder>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Windows(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Open<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vdir: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), vdir.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Explore<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vdir: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), vdir.into_param().abi()).ok() } pub unsafe fn MinimizeAll(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn UndoMinimizeALL(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn FileRun(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn CascadeWindows(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn TileVertically(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn TileHorizontally(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ShutdownWindows(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Suspend(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn EjectPC(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetTime(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn TrayProperties(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Help(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn FindFiles(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn FindComputer(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn RefreshMenu(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ControlPanelItem<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrdir: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), bstrdir.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsRestricted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, group: Param0, restriction: Param1) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), group.into_param().abi(), restriction.into_param().abi(), &mut result__).from_abi::<i32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ShellExecute<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param3: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param4: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>( &self, file: Param0, vargs: Param1, vdir: Param2, voperation: Param3, vshow: Param4, ) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), file.into_param().abi(), vargs.into_param().abi(), vdir.into_param().abi(), voperation.into_param().abi(), vshow.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn FindPrinter<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, name: Param0, location: Param1, model: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), name.into_param().abi(), location.into_param().abi(), model.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GetSystemInformation<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, name: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), name.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ServiceStart<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, servicename: Param0, persistent: Param1) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), servicename.into_param().abi(), persistent.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ServiceStop<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, servicename: Param0, persistent: Param1) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), servicename.into_param().abi(), persistent.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn IsServiceRunning<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, servicename: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), servicename.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn CanStartStopService<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, servicename: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), servicename.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ShowBrowserBar<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, bstrclsid: Param0, bshow: Param1) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self), bstrclsid.into_param().abi(), bshow.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddToRecent<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, varfile: Param0, bstrcategory: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).39)(::core::mem::transmute_copy(self), varfile.into_param().abi(), bstrcategory.into_param().abi()).ok() } pub unsafe fn WindowsSecurity(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).40)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ToggleDesktop(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).41)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ExplorerPolicy<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrpolicyname: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).42)(::core::mem::transmute_copy(self), bstrpolicyname.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } pub unsafe fn GetSetting(&self, lsetting: i32) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).43)(::core::mem::transmute_copy(self), ::core::mem::transmute(lsetting), &mut result__).from_abi::<i16>(result__) } pub unsafe fn WindowSwitcher(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).44)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SearchCommand(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).45)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IShellDispatch6 { type Vtable = IShellDispatch6_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x286e6f1b_7113_4355_9562_96b7e9d64c54); } impl ::core::convert::From<IShellDispatch6> for ::windows::core::IUnknown { fn from(value: IShellDispatch6) -> Self { value.0 } } impl ::core::convert::From<&IShellDispatch6> for ::windows::core::IUnknown { fn from(value: &IShellDispatch6) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellDispatch6 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellDispatch6 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IShellDispatch6> for IShellDispatch5 { fn from(value: IShellDispatch6) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellDispatch6> for IShellDispatch5 { fn from(value: &IShellDispatch6) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch5> for IShellDispatch6 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch5> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch5> for &IShellDispatch6 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch5> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellDispatch6> for IShellDispatch4 { fn from(value: IShellDispatch6) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellDispatch6> for IShellDispatch4 { fn from(value: &IShellDispatch6) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch4> for IShellDispatch6 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch4> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch4> for &IShellDispatch6 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch4> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellDispatch6> for IShellDispatch3 { fn from(value: IShellDispatch6) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellDispatch6> for IShellDispatch3 { fn from(value: &IShellDispatch6) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch3> for IShellDispatch6 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch3> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch3> for &IShellDispatch6 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch3> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellDispatch6> for IShellDispatch2 { fn from(value: IShellDispatch6) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellDispatch6> for IShellDispatch2 { fn from(value: &IShellDispatch6) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch2> for IShellDispatch6 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch2> for &IShellDispatch6 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellDispatch6> for IShellDispatch { fn from(value: IShellDispatch6) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellDispatch6> for IShellDispatch { fn from(value: &IShellDispatch6) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch> for IShellDispatch6 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellDispatch> for &IShellDispatch6 { fn into_param(self) -> ::windows::core::Param<'a, IShellDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellDispatch6> for super::super::System::Com::IDispatch { fn from(value: IShellDispatch6) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellDispatch6> for super::super::System::Com::IDispatch { fn from(value: &IShellDispatch6) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellDispatch6 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellDispatch6 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellDispatch6_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ppsdf: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: i32, title: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, options: i32, rootfolder: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ppsdf: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrdir: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, group: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, restriction: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, plrestrictvalue: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, file: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, vargs: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, vdir: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, voperation: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, vshow: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, name: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, location: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, model: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, name: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pv: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, servicename: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, persistent: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, psuccess: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, servicename: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, persistent: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, psuccess: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, servicename: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, prunning: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, servicename: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pcanstartstop: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrclsid: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bshow: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, psuccess: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, varfile: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, bstrcategory: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrpolicyname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvalue: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lsetting: i32, presult: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellExtInit(pub ::windows::core::IUnknown); impl IShellExtInit { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] pub unsafe fn Initialize<'a, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>, Param2: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>>(&self, pidlfolder: *const Common::ITEMIDLIST, pdtobj: Param1, hkeyprogid: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidlfolder), pdtobj.into_param().abi(), hkeyprogid.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IShellExtInit { type Vtable = IShellExtInit_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214e8_0000_0000_c000_000000000046); } impl ::core::convert::From<IShellExtInit> for ::windows::core::IUnknown { fn from(value: IShellExtInit) -> Self { value.0 } } impl ::core::convert::From<&IShellExtInit> for ::windows::core::IUnknown { fn from(value: &IShellExtInit) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellExtInit { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellExtInit { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellExtInit_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, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidlfolder: *const Common::ITEMIDLIST, pdtobj: ::windows::core::RawPtr, hkeyprogid: super::super::System::Registry::HKEY) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellFavoritesNameSpace(pub ::windows::core::IUnknown); impl IShellFavoritesNameSpace { pub unsafe fn MoveSelectionUp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn MoveSelectionDown(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ResetSort(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn NewFolder(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Synchronize(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Import(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Export(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn InvokeContextMenuCommand<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, strcommand: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), strcommand.into_param().abi()).ok() } pub unsafe fn MoveSelectionTo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SubscriptionsEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn CreateSubscriptionForSelection(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn DeleteSubscriptionForSelection(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrfullpath: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), bstrfullpath.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IShellFavoritesNameSpace { type Vtable = IShellFavoritesNameSpace_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x55136804_b2de_11d1_b9f2_00a0c98bc547); } impl ::core::convert::From<IShellFavoritesNameSpace> for ::windows::core::IUnknown { fn from(value: IShellFavoritesNameSpace) -> Self { value.0 } } impl ::core::convert::From<&IShellFavoritesNameSpace> for ::windows::core::IUnknown { fn from(value: &IShellFavoritesNameSpace) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellFavoritesNameSpace { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellFavoritesNameSpace { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellFavoritesNameSpace> for super::super::System::Com::IDispatch { fn from(value: IShellFavoritesNameSpace) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellFavoritesNameSpace> for super::super::System::Com::IDispatch { fn from(value: &IShellFavoritesNameSpace) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellFavoritesNameSpace { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellFavoritesNameSpace { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellFavoritesNameSpace_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, strcommand: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbool: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbool: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbool: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrfullpath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellFolder(pub ::windows::core::IUnknown); impl IShellFolder { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn ParseDisplayName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, hwnd: Param0, pbc: Param1, pszdisplayname: Param2, pcheaten: *mut u32, ppidl: *mut *mut Common::ITEMIDLIST, pdwattributes: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), pbc.into_param().abi(), pszdisplayname.into_param().abi(), ::core::mem::transmute(pcheaten), ::core::mem::transmute(ppidl), ::core::mem::transmute(pdwattributes)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn EnumObjects<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0, grfflags: u32, ppenumidlist: *mut ::core::option::Option<IEnumIDList>) -> ::windows::core::HRESULT { ::core::mem::transmute((::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(grfflags), ::core::mem::transmute(ppenumidlist))) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn BindToObject<'a, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>, T: ::windows::core::Interface>(&self, pidl: *const Common::ITEMIDLIST, pbc: Param1) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), pbc.into_param().abi(), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn BindToStorage<'a, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>, T: ::windows::core::Interface>(&self, pidl: *const Common::ITEMIDLIST, pbc: Param1) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), pbc.into_param().abi(), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn CompareIDs<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, lparam: Param0, pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), lparam.into_param().abi(), ::core::mem::transmute(pidl1), ::core::mem::transmute(pidl2)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CreateViewObject<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, T: ::windows::core::Interface>(&self, hwndowner: Param0) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), hwndowner.into_param().abi(), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetAttributesOf(&self, cidl: u32, apidl: *const *const Common::ITEMIDLIST, rgfinout: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(cidl), ::core::mem::transmute(apidl), ::core::mem::transmute(rgfinout)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn GetUIObjectOf<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndowner: Param0, cidl: u32, apidl: *const *const Common::ITEMIDLIST, riid: *const ::windows::core::GUID, rgfreserved: *mut u32, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), hwndowner.into_param().abi(), ::core::mem::transmute(cidl), ::core::mem::transmute(apidl), ::core::mem::transmute(riid), ::core::mem::transmute(rgfreserved), ::core::mem::transmute(ppv)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn GetDisplayNameOf(&self, pidl: *const Common::ITEMIDLIST, uflags: u32) -> ::windows::core::Result<Common::STRRET> { let mut result__: <Common::STRRET as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(uflags), &mut result__).from_abi::<Common::STRRET>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn SetNameOf<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, hwnd: Param0, pidl: *const Common::ITEMIDLIST, pszname: Param2, uflags: u32) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(pidl), pszname.into_param().abi(), ::core::mem::transmute(uflags), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } } unsafe impl ::windows::core::Interface for IShellFolder { type Vtable = IShellFolder_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214e6_0000_0000_c000_000000000046); } impl ::core::convert::From<IShellFolder> for ::windows::core::IUnknown { fn from(value: IShellFolder) -> Self { value.0 } } impl ::core::convert::From<&IShellFolder> for ::windows::core::IUnknown { fn from(value: &IShellFolder) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellFolder { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellFolder { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellFolder_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, pbc: ::windows::core::RawPtr, pszdisplayname: super::super::Foundation::PWSTR, pcheaten: *mut u32, ppidl: *mut *mut Common::ITEMIDLIST, pdwattributes: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, grfflags: u32, ppenumidlist: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, pbc: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, pbc: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lparam: super::super::Foundation::LPARAM, pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndowner: super::super::Foundation::HWND, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, cidl: u32, apidl: *const *const Common::ITEMIDLIST, rgfinout: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndowner: super::super::Foundation::HWND, cidl: u32, apidl: *const *const Common::ITEMIDLIST, riid: *const ::windows::core::GUID, rgfreserved: *mut u32, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, uflags: u32, pname: *mut Common::STRRET) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, pidl: *const Common::ITEMIDLIST, pszname: super::super::Foundation::PWSTR, uflags: u32, ppidlout: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellFolder2(pub ::windows::core::IUnknown); impl IShellFolder2 { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn ParseDisplayName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, hwnd: Param0, pbc: Param1, pszdisplayname: Param2, pcheaten: *mut u32, ppidl: *mut *mut Common::ITEMIDLIST, pdwattributes: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), pbc.into_param().abi(), pszdisplayname.into_param().abi(), ::core::mem::transmute(pcheaten), ::core::mem::transmute(ppidl), ::core::mem::transmute(pdwattributes)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn EnumObjects<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0, grfflags: u32, ppenumidlist: *mut ::core::option::Option<IEnumIDList>) -> ::windows::core::HRESULT { ::core::mem::transmute((::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(grfflags), ::core::mem::transmute(ppenumidlist))) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn BindToObject<'a, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>, T: ::windows::core::Interface>(&self, pidl: *const Common::ITEMIDLIST, pbc: Param1) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), pbc.into_param().abi(), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn BindToStorage<'a, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>, T: ::windows::core::Interface>(&self, pidl: *const Common::ITEMIDLIST, pbc: Param1) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), pbc.into_param().abi(), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn CompareIDs<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, lparam: Param0, pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), lparam.into_param().abi(), ::core::mem::transmute(pidl1), ::core::mem::transmute(pidl2)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CreateViewObject<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, T: ::windows::core::Interface>(&self, hwndowner: Param0) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), hwndowner.into_param().abi(), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetAttributesOf(&self, cidl: u32, apidl: *const *const Common::ITEMIDLIST, rgfinout: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(cidl), ::core::mem::transmute(apidl), ::core::mem::transmute(rgfinout)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn GetUIObjectOf<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndowner: Param0, cidl: u32, apidl: *const *const Common::ITEMIDLIST, riid: *const ::windows::core::GUID, rgfreserved: *mut u32, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), hwndowner.into_param().abi(), ::core::mem::transmute(cidl), ::core::mem::transmute(apidl), ::core::mem::transmute(riid), ::core::mem::transmute(rgfreserved), ::core::mem::transmute(ppv)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn GetDisplayNameOf(&self, pidl: *const Common::ITEMIDLIST, uflags: u32) -> ::windows::core::Result<Common::STRRET> { let mut result__: <Common::STRRET as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(uflags), &mut result__).from_abi::<Common::STRRET>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn SetNameOf<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, hwnd: Param0, pidl: *const Common::ITEMIDLIST, pszname: Param2, uflags: u32) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(pidl), pszname.into_param().abi(), ::core::mem::transmute(uflags), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } pub unsafe fn GetDefaultSearchGUID(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__: <::windows::core::GUID as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<::windows::core::GUID>(result__) } pub unsafe fn EnumSearches(&self) -> ::windows::core::Result<IEnumExtraSearch> { let mut result__: <IEnumExtraSearch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IEnumExtraSearch>(result__) } pub unsafe fn GetDefaultColumn(&self, dwres: u32, psort: *mut u32, pdisplay: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwres), ::core::mem::transmute(psort), ::core::mem::transmute(pdisplay)).ok() } pub unsafe fn GetDefaultColumnState(&self, icolumn: u32) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(icolumn), &mut result__).from_abi::<u32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn GetDetailsEx(&self, pidl: *const Common::ITEMIDLIST, pscid: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(pscid), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn GetDetailsOf(&self, pidl: *const Common::ITEMIDLIST, icolumn: u32) -> ::windows::core::Result<Common::SHELLDETAILS> { let mut result__: <Common::SHELLDETAILS as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(icolumn), &mut result__).from_abi::<Common::SHELLDETAILS>(result__) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn MapColumnToSCID(&self, icolumn: u32) -> ::windows::core::Result<PropertiesSystem::PROPERTYKEY> { let mut result__: <PropertiesSystem::PROPERTYKEY as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), ::core::mem::transmute(icolumn), &mut result__).from_abi::<PropertiesSystem::PROPERTYKEY>(result__) } } unsafe impl ::windows::core::Interface for IShellFolder2 { type Vtable = IShellFolder2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x93f2f68c_1d1b_11d3_a30e_00c04f79abd1); } impl ::core::convert::From<IShellFolder2> for ::windows::core::IUnknown { fn from(value: IShellFolder2) -> Self { value.0 } } impl ::core::convert::From<&IShellFolder2> for ::windows::core::IUnknown { fn from(value: &IShellFolder2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellFolder2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellFolder2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IShellFolder2> for IShellFolder { fn from(value: IShellFolder2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellFolder2> for IShellFolder { fn from(value: &IShellFolder2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellFolder> for IShellFolder2 { fn into_param(self) -> ::windows::core::Param<'a, IShellFolder> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellFolder> for &IShellFolder2 { fn into_param(self) -> ::windows::core::Param<'a, IShellFolder> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellFolder2_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, pbc: ::windows::core::RawPtr, pszdisplayname: super::super::Foundation::PWSTR, pcheaten: *mut u32, ppidl: *mut *mut Common::ITEMIDLIST, pdwattributes: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, grfflags: u32, ppenumidlist: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, pbc: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, pbc: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lparam: super::super::Foundation::LPARAM, pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndowner: super::super::Foundation::HWND, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, cidl: u32, apidl: *const *const Common::ITEMIDLIST, rgfinout: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndowner: super::super::Foundation::HWND, cidl: u32, apidl: *const *const Common::ITEMIDLIST, riid: *const ::windows::core::GUID, rgfreserved: *mut u32, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, uflags: u32, pname: *mut Common::STRRET) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, pidl: *const Common::ITEMIDLIST, pszname: super::super::Foundation::PWSTR, uflags: u32, ppidlout: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pguid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwres: u32, psort: *mut u32, pdisplay: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, icolumn: u32, pcsflags: *mut u32) -> ::windows::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"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, pscid: *const PropertiesSystem::PROPERTYKEY, pv: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_Shell_PropertiesSystem")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, icolumn: u32, psd: *mut Common::SHELLDETAILS) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, icolumn: u32, pscid: *mut PropertiesSystem::PROPERTYKEY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellFolderBand(pub ::windows::core::IUnknown); impl IShellFolderBand { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn InitializeSFB<'a, Param0: ::windows::core::IntoParam<'a, IShellFolder>>(&self, psf: Param0, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psf.into_param().abi(), ::core::mem::transmute(pidl)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetBandInfoSFB(&self, pbi: *const BANDINFOSFB) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pbi)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetBandInfoSFB(&self, pbi: *mut BANDINFOSFB) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(pbi)).ok() } } unsafe impl ::windows::core::Interface for IShellFolderBand { type Vtable = IShellFolderBand_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7fe80cc8_c247_11d0_b93a_00a0c90312e1); } impl ::core::convert::From<IShellFolderBand> for ::windows::core::IUnknown { fn from(value: IShellFolderBand) -> Self { value.0 } } impl ::core::convert::From<&IShellFolderBand> for ::windows::core::IUnknown { fn from(value: &IShellFolderBand) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellFolderBand { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellFolderBand { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellFolderBand_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, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psf: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbi: *const ::core::mem::ManuallyDrop<BANDINFOSFB>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbi: *mut ::core::mem::ManuallyDrop<BANDINFOSFB>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellFolderView(pub ::windows::core::IUnknown); impl IShellFolderView { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Rearrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, lparamsort: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), lparamsort.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetArrangeParam(&self) -> ::windows::core::Result<super::super::Foundation::LPARAM> { let mut result__: <super::super::Foundation::LPARAM as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::LPARAM>(result__) } pub unsafe fn ArrangeGrid(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn AutoArrange(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GetAutoArrange(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn AddObject(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetObject(&self, ppidl: *mut *mut Common::ITEMIDLIST, uitem: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppidl), ::core::mem::transmute(uitem)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn RemoveObject(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), &mut result__).from_abi::<u32>(result__) } pub unsafe fn GetObjectCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn SetObjectCount(&self, ucount: u32, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(ucount), ::core::mem::transmute(dwflags)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn UpdateObject(&self, pidlold: *const Common::ITEMIDLIST, pidlnew: *const Common::ITEMIDLIST) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidlold), ::core::mem::transmute(pidlnew), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn RefreshObject(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetRedraw<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, bredraw: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), bredraw.into_param().abi()).ok() } pub unsafe fn GetSelectedCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetSelectedObjects(&self, pppidl: *mut *mut *mut Common::ITEMIDLIST, puitems: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), ::core::mem::transmute(pppidl), ::core::mem::transmute(puitems)).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn IsDropOnSource<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Ole::IDropTarget>>(&self, pdroptarget: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), pdroptarget.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDragPoint(&self) -> ::windows::core::Result<super::super::Foundation::POINT> { let mut result__: <super::super::Foundation::POINT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::POINT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDropPoint(&self) -> ::windows::core::Result<super::super::Foundation::POINT> { let mut result__: <super::super::Foundation::POINT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::POINT>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn MoveIcons<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>>(&self, pdataobject: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), pdataobject.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn SetItemPos(&self, pidl: *const Common::ITEMIDLIST, ppt: *const super::super::Foundation::POINT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(ppt)).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn IsBkDropTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Ole::IDropTarget>>(&self, pdroptarget: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), pdroptarget.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetClipboard<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, bmove: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), bmove.into_param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetPoints<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>>(&self, pdataobject: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), pdataobject.into_param().abi()).ok() } pub unsafe fn GetItemSpacing(&self) -> ::windows::core::Result<ITEMSPACING> { let mut result__: <ITEMSPACING as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), &mut result__).from_abi::<ITEMSPACING>(result__) } pub unsafe fn SetCallback<'a, Param0: ::windows::core::IntoParam<'a, IShellFolderViewCB>>(&self, pnewcb: Param0) -> ::windows::core::Result<IShellFolderViewCB> { let mut result__: <IShellFolderViewCB as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self), pnewcb.into_param().abi(), &mut result__).from_abi::<IShellFolderViewCB>(result__) } pub unsafe fn Select(&self, dwflags: SFVS_SELECT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags)).ok() } pub unsafe fn QuerySupport(&self, pdwsupport: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), ::core::mem::transmute(pdwsupport)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetAutomationObject<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch>>(&self, pdisp: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), pdisp.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IShellFolderView { type Vtable = IShellFolderView_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x37a378c0_f82d_11ce_ae65_08002b2e1262); } impl ::core::convert::From<IShellFolderView> for ::windows::core::IUnknown { fn from(value: IShellFolderView) -> Self { value.0 } } impl ::core::convert::From<&IShellFolderView> for ::windows::core::IUnknown { fn from(value: &IShellFolderView) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellFolderView { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellFolderView { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellFolderView_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lparamsort: super::super::Foundation::LPARAM) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, plparamsort: *mut super::super::Foundation::LPARAM) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, puitem: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST, uitem: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, puitem: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pucount: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ucount: u32, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidlold: *const Common::ITEMIDLIST, pidlnew: *const Common::ITEMIDLIST, puitem: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, puitem: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bredraw: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, puselected: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pppidl: *mut *mut *mut Common::ITEMIDLIST, puitems: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdroptarget: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppt: *mut super::super::Foundation::POINT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppt: *mut super::super::Foundation::POINT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdataobject: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, ppt: *const super::super::Foundation::POINT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdroptarget: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bmove: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdataobject: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pspacing: *mut ITEMSPACING) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pnewcb: ::windows::core::RawPtr, ppoldcb: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: SFVS_SELECT) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwsupport: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdisp: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellFolderViewCB(pub ::windows::core::IUnknown); impl IShellFolderViewCB { #[cfg(feature = "Win32_Foundation")] pub unsafe fn MessageSFVCB<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, umsg: SFVM_MESSAGE_ID, wparam: Param1, lparam: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(umsg), wparam.into_param().abi(), lparam.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IShellFolderViewCB { type Vtable = IShellFolderViewCB_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2047e320_f2a9_11ce_ae65_08002b2e1262); } impl ::core::convert::From<IShellFolderViewCB> for ::windows::core::IUnknown { fn from(value: IShellFolderViewCB) -> Self { value.0 } } impl ::core::convert::From<&IShellFolderViewCB> for ::windows::core::IUnknown { fn from(value: &IShellFolderViewCB) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellFolderViewCB { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellFolderViewCB { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellFolderViewCB_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, umsg: SFVM_MESSAGE_ID, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellFolderViewDual(pub ::windows::core::IUnknown); impl IShellFolderViewDual { #[cfg(feature = "Win32_System_Com")] pub unsafe fn Application(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } pub unsafe fn Folder(&self) -> ::windows::core::Result<Folder> { let mut result__: <Folder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<Folder>(result__) } pub unsafe fn SelectedItems(&self) -> ::windows::core::Result<FolderItems> { let mut result__: <FolderItems as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<FolderItems>(result__) } pub unsafe fn FocusedItem(&self) -> ::windows::core::Result<FolderItem> { let mut result__: <FolderItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<FolderItem>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SelectItem(&self, pvfi: *const super::super::System::Com::VARIANT, dwflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(pvfi), ::core::mem::transmute(dwflags)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn PopupItemMenu<'a, Param0: ::windows::core::IntoParam<'a, FolderItem>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, pfi: Param0, vx: Param1, vy: Param2) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), pfi.into_param().abi(), vx.into_param().abi(), vy.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Script(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } pub unsafe fn ViewOptions(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } } unsafe impl ::windows::core::Interface for IShellFolderViewDual { type Vtable = IShellFolderViewDual_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe7a1af80_4d96_11cf_960c_0080c7f4ee85); } impl ::core::convert::From<IShellFolderViewDual> for ::windows::core::IUnknown { fn from(value: IShellFolderViewDual) -> Self { value.0 } } impl ::core::convert::From<&IShellFolderViewDual> for ::windows::core::IUnknown { fn from(value: &IShellFolderViewDual) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellFolderViewDual { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellFolderViewDual { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellFolderViewDual> for super::super::System::Com::IDispatch { fn from(value: IShellFolderViewDual) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellFolderViewDual> for super::super::System::Com::IDispatch { fn from(value: &IShellFolderViewDual) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellFolderViewDual { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellFolderViewDual { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellFolderViewDual_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvfi: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, dwflags: i32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfi: ::windows::core::RawPtr, vx: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, vy: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppdisp: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, plviewoptions: *mut i32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellFolderViewDual2(pub ::windows::core::IUnknown); impl IShellFolderViewDual2 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Application(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } pub unsafe fn Folder(&self) -> ::windows::core::Result<Folder> { let mut result__: <Folder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<Folder>(result__) } pub unsafe fn SelectedItems(&self) -> ::windows::core::Result<FolderItems> { let mut result__: <FolderItems as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<FolderItems>(result__) } pub unsafe fn FocusedItem(&self) -> ::windows::core::Result<FolderItem> { let mut result__: <FolderItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<FolderItem>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SelectItem(&self, pvfi: *const super::super::System::Com::VARIANT, dwflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(pvfi), ::core::mem::transmute(dwflags)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn PopupItemMenu<'a, Param0: ::windows::core::IntoParam<'a, FolderItem>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, pfi: Param0, vx: Param1, vy: Param2) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), pfi.into_param().abi(), vx.into_param().abi(), vy.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Script(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } pub unsafe fn ViewOptions(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn CurrentViewMode(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn SetCurrentViewMode(&self, viewmode: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), ::core::mem::transmute(viewmode)).ok() } pub unsafe fn SelectItemRelative(&self, irelative: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(irelative)).ok() } } unsafe impl ::windows::core::Interface for IShellFolderViewDual2 { type Vtable = IShellFolderViewDual2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x31c147b6_0ade_4a3c_b514_ddf932ef6d17); } impl ::core::convert::From<IShellFolderViewDual2> for ::windows::core::IUnknown { fn from(value: IShellFolderViewDual2) -> Self { value.0 } } impl ::core::convert::From<&IShellFolderViewDual2> for ::windows::core::IUnknown { fn from(value: &IShellFolderViewDual2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellFolderViewDual2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellFolderViewDual2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IShellFolderViewDual2> for IShellFolderViewDual { fn from(value: IShellFolderViewDual2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellFolderViewDual2> for IShellFolderViewDual { fn from(value: &IShellFolderViewDual2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellFolderViewDual> for IShellFolderViewDual2 { fn into_param(self) -> ::windows::core::Param<'a, IShellFolderViewDual> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellFolderViewDual> for &IShellFolderViewDual2 { fn into_param(self) -> ::windows::core::Param<'a, IShellFolderViewDual> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellFolderViewDual2> for super::super::System::Com::IDispatch { fn from(value: IShellFolderViewDual2) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellFolderViewDual2> for super::super::System::Com::IDispatch { fn from(value: &IShellFolderViewDual2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellFolderViewDual2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellFolderViewDual2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellFolderViewDual2_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvfi: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, dwflags: i32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfi: ::windows::core::RawPtr, vx: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, vy: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppdisp: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, plviewoptions: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pviewmode: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, viewmode: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, irelative: i32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellFolderViewDual3(pub ::windows::core::IUnknown); impl IShellFolderViewDual3 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Application(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } pub unsafe fn Folder(&self) -> ::windows::core::Result<Folder> { let mut result__: <Folder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<Folder>(result__) } pub unsafe fn SelectedItems(&self) -> ::windows::core::Result<FolderItems> { let mut result__: <FolderItems as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<FolderItems>(result__) } pub unsafe fn FocusedItem(&self) -> ::windows::core::Result<FolderItem> { let mut result__: <FolderItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<FolderItem>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SelectItem(&self, pvfi: *const super::super::System::Com::VARIANT, dwflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(pvfi), ::core::mem::transmute(dwflags)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn PopupItemMenu<'a, Param0: ::windows::core::IntoParam<'a, FolderItem>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, pfi: Param0, vx: Param1, vy: Param2) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), pfi.into_param().abi(), vx.into_param().abi(), vy.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Script(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } pub unsafe fn ViewOptions(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn CurrentViewMode(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn SetCurrentViewMode(&self, viewmode: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), ::core::mem::transmute(viewmode)).ok() } pub unsafe fn SelectItemRelative(&self, irelative: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(irelative)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GroupBy(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetGroupBy<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrgroupby: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), bstrgroupby.into_param().abi()).ok() } pub unsafe fn FolderFlags(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn SetFolderFlags(&self, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SortColumns(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetSortColumns<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrsortcolumns: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), bstrsortcolumns.into_param().abi()).ok() } pub unsafe fn SetIconSize(&self, iiconsize: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), ::core::mem::transmute(iiconsize)).ok() } pub unsafe fn IconSize(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn FilterView<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrfiltertext: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self), bstrfiltertext.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IShellFolderViewDual3 { type Vtable = IShellFolderViewDual3_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x29ec8e6c_46d3_411f_baaa_611a6c9cac66); } impl ::core::convert::From<IShellFolderViewDual3> for ::windows::core::IUnknown { fn from(value: IShellFolderViewDual3) -> Self { value.0 } } impl ::core::convert::From<&IShellFolderViewDual3> for ::windows::core::IUnknown { fn from(value: &IShellFolderViewDual3) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellFolderViewDual3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellFolderViewDual3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IShellFolderViewDual3> for IShellFolderViewDual2 { fn from(value: IShellFolderViewDual3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellFolderViewDual3> for IShellFolderViewDual2 { fn from(value: &IShellFolderViewDual3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellFolderViewDual2> for IShellFolderViewDual3 { fn into_param(self) -> ::windows::core::Param<'a, IShellFolderViewDual2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellFolderViewDual2> for &IShellFolderViewDual3 { fn into_param(self) -> ::windows::core::Param<'a, IShellFolderViewDual2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellFolderViewDual3> for IShellFolderViewDual { fn from(value: IShellFolderViewDual3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellFolderViewDual3> for IShellFolderViewDual { fn from(value: &IShellFolderViewDual3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellFolderViewDual> for IShellFolderViewDual3 { fn into_param(self) -> ::windows::core::Param<'a, IShellFolderViewDual> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellFolderViewDual> for &IShellFolderViewDual3 { fn into_param(self) -> ::windows::core::Param<'a, IShellFolderViewDual> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellFolderViewDual3> for super::super::System::Com::IDispatch { fn from(value: IShellFolderViewDual3) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellFolderViewDual3> for super::super::System::Com::IDispatch { fn from(value: &IShellFolderViewDual3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellFolderViewDual3 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellFolderViewDual3 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellFolderViewDual3_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvfi: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, dwflags: i32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfi: ::windows::core::RawPtr, vx: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, vy: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppdisp: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, plviewoptions: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pviewmode: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, viewmode: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, irelative: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrgroupby: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrgroupby: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwflags: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrsortcolumns: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrsortcolumns: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iiconsize: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, piiconsize: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrfiltertext: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellIcon(pub ::windows::core::IUnknown); impl IShellIcon { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetIconOf(&self, pidl: *const Common::ITEMIDLIST, flags: u32) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(flags), &mut result__).from_abi::<i32>(result__) } } unsafe impl ::windows::core::Interface for IShellIcon { type Vtable = IShellIcon_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214e5_0000_0000_c000_000000000046); } impl ::core::convert::From<IShellIcon> for ::windows::core::IUnknown { fn from(value: IShellIcon) -> Self { value.0 } } impl ::core::convert::From<&IShellIcon> for ::windows::core::IUnknown { fn from(value: &IShellIcon) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellIcon { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellIcon { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellIcon_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, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, flags: u32, piconindex: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellIconOverlay(pub ::windows::core::IUnknown); impl IShellIconOverlay { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetOverlayIndex(&self, pidl: *const Common::ITEMIDLIST, pindex: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(pindex)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetOverlayIconIndex(&self, pidl: *const Common::ITEMIDLIST, piconindex: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl), ::core::mem::transmute(piconindex)).ok() } } unsafe impl ::windows::core::Interface for IShellIconOverlay { type Vtable = IShellIconOverlay_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7d688a70_c613_11d0_999b_00c04fd655e1); } impl ::core::convert::From<IShellIconOverlay> for ::windows::core::IUnknown { fn from(value: IShellIconOverlay) -> Self { value.0 } } impl ::core::convert::From<&IShellIconOverlay> for ::windows::core::IUnknown { fn from(value: &IShellIconOverlay) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellIconOverlay { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellIconOverlay { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellIconOverlay_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, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, pindex: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, piconindex: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellIconOverlayIdentifier(pub ::windows::core::IUnknown); impl IShellIconOverlayIdentifier { #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsMemberOf<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszpath: Param0, dwattrib: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pwszpath.into_param().abi(), ::core::mem::transmute(dwattrib)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetOverlayInfo(&self, pwsziconfile: super::super::Foundation::PWSTR, cchmax: i32, pindex: *mut i32, pdwflags: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pwsziconfile), ::core::mem::transmute(cchmax), ::core::mem::transmute(pindex), ::core::mem::transmute(pdwflags)).ok() } pub unsafe fn GetPriority(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } } unsafe impl ::windows::core::Interface for IShellIconOverlayIdentifier { type Vtable = IShellIconOverlayIdentifier_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0c6c4200_c589_11d0_999a_00c04fd655e1); } impl ::core::convert::From<IShellIconOverlayIdentifier> for ::windows::core::IUnknown { fn from(value: IShellIconOverlayIdentifier) -> Self { value.0 } } impl ::core::convert::From<&IShellIconOverlayIdentifier> for ::windows::core::IUnknown { fn from(value: &IShellIconOverlayIdentifier) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellIconOverlayIdentifier { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellIconOverlayIdentifier { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellIconOverlayIdentifier_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pwszpath: super::super::Foundation::PWSTR, dwattrib: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pwsziconfile: super::super::Foundation::PWSTR, cchmax: i32, pindex: *mut i32, pdwflags: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppriority: *mut i32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellIconOverlayManager(pub ::windows::core::IUnknown); impl IShellIconOverlayManager { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetFileOverlayInfo<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszpath: Param0, dwattrib: u32, pindex: *mut i32, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pwszpath.into_param().abi(), ::core::mem::transmute(dwattrib), ::core::mem::transmute(pindex), ::core::mem::transmute(dwflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetReservedOverlayInfo<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszpath: Param0, dwattrib: u32, pindex: *mut i32, dwflags: u32, ireservedid: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pwszpath.into_param().abi(), ::core::mem::transmute(dwattrib), ::core::mem::transmute(pindex), ::core::mem::transmute(dwflags), ::core::mem::transmute(ireservedid)).ok() } pub unsafe fn RefreshOverlayImages(&self, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags)).ok() } pub unsafe fn LoadNonloadedOverlayIdentifiers(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OverlayIndexFromImageIndex<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, iimage: i32, piindex: *mut i32, fadd: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(iimage), ::core::mem::transmute(piindex), fadd.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IShellIconOverlayManager { type Vtable = IShellIconOverlayManager_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf10b5e34_dd3b_42a7_aa7d_2f4ec54bb09b); } impl ::core::convert::From<IShellIconOverlayManager> for ::windows::core::IUnknown { fn from(value: IShellIconOverlayManager) -> Self { value.0 } } impl ::core::convert::From<&IShellIconOverlayManager> for ::windows::core::IUnknown { fn from(value: &IShellIconOverlayManager) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellIconOverlayManager { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellIconOverlayManager { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellIconOverlayManager_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pwszpath: super::super::Foundation::PWSTR, dwattrib: u32, pindex: *mut i32, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pwszpath: super::super::Foundation::PWSTR, dwattrib: u32, pindex: *mut i32, dwflags: u32, ireservedid: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iimage: i32, piindex: *mut i32, fadd: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellImageData(pub ::windows::core::IUnknown); impl IShellImageData { pub unsafe fn Decode(&self, dwflags: u32, cxdesired: u32, cydesired: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags), ::core::mem::transmute(cxdesired), ::core::mem::transmute(cydesired)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe fn Draw<'a, Param0: ::windows::core::IntoParam<'a, super::super::Graphics::Gdi::HDC>>(&self, hdc: Param0, prcdest: *mut super::super::Foundation::RECT, prcsrc: *mut super::super::Foundation::RECT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), hdc.into_param().abi(), ::core::mem::transmute(prcdest), ::core::mem::transmute(prcsrc)).ok() } pub unsafe fn NextFrame(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn NextPage(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn PrevPage(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn IsTransparent(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn IsAnimated(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn IsVector(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn IsMultipage(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn IsEditable(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn IsPrintable(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn IsDecoded(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GetCurrentPage(&self, pnpage: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(pnpage)).ok() } pub unsafe fn GetPageCount(&self, pcpages: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(pcpages)).ok() } pub unsafe fn SelectPage(&self, ipage: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), ::core::mem::transmute(ipage)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSize(&self, psize: *mut super::super::Foundation::SIZE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(psize)).ok() } pub unsafe fn GetRawDataFormat(&self, pdataformat: *mut ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), ::core::mem::transmute(pdataformat)).ok() } pub unsafe fn GetPixelFormat(&self, pformat: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), ::core::mem::transmute(pformat)).ok() } pub unsafe fn GetDelay(&self, pdwdelay: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), ::core::mem::transmute(pdwdelay)).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn GetProperties(&self, dwmode: u32) -> ::windows::core::Result<super::super::System::Com::StructuredStorage::IPropertySetStorage> { let mut result__: <super::super::System::Com::StructuredStorage::IPropertySetStorage as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwmode), &mut result__).from_abi::<super::super::System::Com::StructuredStorage::IPropertySetStorage>(result__) } pub unsafe fn Rotate(&self, dwangle: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwangle)).ok() } pub unsafe fn Scale(&self, cx: u32, cy: u32, hints: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), ::core::mem::transmute(cx), ::core::mem::transmute(cy), ::core::mem::transmute(hints)).ok() } pub unsafe fn DiscardEdit(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe fn SetEncoderParams<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::StructuredStorage::IPropertyBag>>(&self, pbagenc: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), pbagenc.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DisplayName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, wszname: Param0, cch: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self), wszname.into_param().abi(), ::core::mem::transmute(cch)).ok() } pub unsafe fn GetResolution(&self, puresolutionx: *mut u32, puresolutiony: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self), ::core::mem::transmute(puresolutionx), ::core::mem::transmute(puresolutiony)).ok() } pub unsafe fn GetEncoderParams(&self, pguidfmt: *mut ::windows::core::GUID, ppencparams: *mut *mut u8) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), ::core::mem::transmute(pguidfmt), ::core::mem::transmute(ppencparams)).ok() } pub unsafe fn RegisterAbort<'a, Param0: ::windows::core::IntoParam<'a, IShellImageDataAbort>>(&self, pabort: Param0) -> ::windows::core::Result<IShellImageDataAbort> { let mut result__: <IShellImageDataAbort as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), pabort.into_param().abi(), &mut result__).from_abi::<IShellImageDataAbort>(result__) } pub unsafe fn CloneFrame(&self, ppimg: *mut *mut u8) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppimg)).ok() } pub unsafe fn ReplaceFrame(&self, pimg: *mut u8) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), ::core::mem::transmute(pimg)).ok() } } unsafe impl ::windows::core::Interface for IShellImageData { type Vtable = IShellImageData_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbfdeec12_8040_4403_a5ea_9e07dafcf530); } impl ::core::convert::From<IShellImageData> for ::windows::core::IUnknown { fn from(value: IShellImageData) -> Self { value.0 } } impl ::core::convert::From<&IShellImageData> for ::windows::core::IUnknown { fn from(value: &IShellImageData) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellImageData { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellImageData { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellImageData_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, dwflags: u32, cxdesired: u32, cydesired: u32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hdc: super::super::Graphics::Gdi::HDC, prcdest: *mut super::super::Foundation::RECT, prcsrc: *mut super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pnpage: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcpages: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ipage: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psize: *mut super::super::Foundation::SIZE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdataformat: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pformat: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwdelay: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwmode: u32, pppropset: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwangle: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, cx: u32, cy: u32, hints: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbagenc: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, wszname: super::super::Foundation::PWSTR, cch: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, puresolutionx: *mut u32, puresolutiony: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pguidfmt: *mut ::windows::core::GUID, ppencparams: *mut *mut u8) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pabort: ::windows::core::RawPtr, ppabortprev: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppimg: *mut *mut u8) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pimg: *mut u8) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellImageDataAbort(pub ::windows::core::IUnknown); impl IShellImageDataAbort { pub unsafe fn QueryAbort(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IShellImageDataAbort { type Vtable = IShellImageDataAbort_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x53fb8e58_50c0_4003_b4aa_0c8df28e7f3a); } impl ::core::convert::From<IShellImageDataAbort> for ::windows::core::IUnknown { fn from(value: IShellImageDataAbort) -> Self { value.0 } } impl ::core::convert::From<&IShellImageDataAbort> for ::windows::core::IUnknown { fn from(value: &IShellImageDataAbort) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellImageDataAbort { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellImageDataAbort { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellImageDataAbort_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) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellImageDataFactory(pub ::windows::core::IUnknown); impl IShellImageDataFactory { pub unsafe fn CreateIShellImageData(&self) -> ::windows::core::Result<IShellImageData> { let mut result__: <IShellImageData as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellImageData>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CreateImageFromFile<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszpath: Param0) -> ::windows::core::Result<IShellImageData> { let mut result__: <IShellImageData as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pszpath.into_param().abi(), &mut result__).from_abi::<IShellImageData>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CreateImageFromStream<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>>(&self, pstream: Param0) -> ::windows::core::Result<IShellImageData> { let mut result__: <IShellImageData as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), pstream.into_param().abi(), &mut result__).from_abi::<IShellImageData>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDataFormatFromPath<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszpath: Param0) -> ::windows::core::Result<::windows::core::GUID> { let mut result__: <::windows::core::GUID as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pszpath.into_param().abi(), &mut result__).from_abi::<::windows::core::GUID>(result__) } } unsafe impl ::windows::core::Interface for IShellImageDataFactory { type Vtable = IShellImageDataFactory_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9be8ed5c_edab_4d75_90f3_bd5bdbb21c82); } impl ::core::convert::From<IShellImageDataFactory> for ::windows::core::IUnknown { fn from(value: IShellImageDataFactory) -> Self { value.0 } } impl ::core::convert::From<&IShellImageDataFactory> for ::windows::core::IUnknown { fn from(value: &IShellImageDataFactory) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellImageDataFactory { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellImageDataFactory { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellImageDataFactory_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, ppshimg: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszpath: super::super::Foundation::PWSTR, ppshimg: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pstream: ::windows::core::RawPtr, ppshimg: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszpath: super::super::Foundation::PWSTR, pdataformat: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellItem(pub ::windows::core::IUnknown); impl IShellItem { #[cfg(feature = "Win32_System_Com")] pub unsafe fn BindToHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>, T: ::windows::core::Interface>(&self, pbc: Param0, bhid: *const ::windows::core::GUID) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pbc.into_param().abi(), ::core::mem::transmute(bhid), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } pub unsafe fn GetParent(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDisplayName(&self, sigdnname: SIGDN) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(sigdnname), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } pub unsafe fn GetAttributes(&self, sfgaomask: u32) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(sfgaomask), &mut result__).from_abi::<u32>(result__) } pub unsafe fn Compare<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, hint: u32) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(hint), &mut result__).from_abi::<i32>(result__) } } unsafe impl ::windows::core::Interface for IShellItem { type Vtable = IShellItem_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x43826d1e_e718_42ee_bc55_a1e261c37bfe); } impl ::core::convert::From<IShellItem> for ::windows::core::IUnknown { fn from(value: IShellItem) -> Self { value.0 } } impl ::core::convert::From<&IShellItem> for ::windows::core::IUnknown { fn from(value: &IShellItem) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellItem_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, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbc: ::windows::core::RawPtr, bhid: *const ::windows::core::GUID, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, sigdnname: SIGDN, ppszname: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, sfgaomask: u32, psfgaoattribs: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, hint: u32, piorder: *mut i32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellItem2(pub ::windows::core::IUnknown); impl IShellItem2 { #[cfg(feature = "Win32_System_Com")] pub unsafe fn BindToHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>, T: ::windows::core::Interface>(&self, pbc: Param0, bhid: *const ::windows::core::GUID) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pbc.into_param().abi(), ::core::mem::transmute(bhid), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } pub unsafe fn GetParent(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDisplayName(&self, sigdnname: SIGDN) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(sigdnname), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } pub unsafe fn GetAttributes(&self, sfgaomask: u32) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(sfgaomask), &mut result__).from_abi::<u32>(result__) } pub unsafe fn Compare<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, hint: u32) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(hint), &mut result__).from_abi::<i32>(result__) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetPropertyStore<T: ::windows::core::Interface>(&self, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(flags), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetPropertyStoreWithCreateObject<'a, Param1: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, T: ::windows::core::Interface>(&self, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS, punkcreateobject: Param1) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(flags), punkcreateobject.into_param().abi(), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetPropertyStoreForKeys<T: ::windows::core::Interface>(&self, rgkeys: *const PropertiesSystem::PROPERTYKEY, ckeys: u32, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(rgkeys), ::core::mem::transmute(ckeys), ::core::mem::transmute(flags), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetPropertyDescriptionList<T: ::windows::core::Interface>(&self, keytype: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(keytype), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Update<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>>(&self, pbc: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), pbc.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn GetProperty(&self, key: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<super::super::System::Com::StructuredStorage::PROPVARIANT> { let mut result__: <super::super::System::Com::StructuredStorage::PROPVARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(key), &mut result__).from_abi::<super::super::System::Com::StructuredStorage::PROPVARIANT>(result__) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetCLSID(&self, key: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<::windows::core::GUID> { let mut result__: <::windows::core::GUID as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(key), &mut result__).from_abi::<::windows::core::GUID>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn GetFileTime(&self, key: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<super::super::Foundation::FILETIME> { let mut result__: <super::super::Foundation::FILETIME as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(key), &mut result__).from_abi::<super::super::Foundation::FILETIME>(result__) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetInt32(&self, key: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(key), &mut result__).from_abi::<i32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn GetString(&self, key: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), ::core::mem::transmute(key), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetUInt32(&self, key: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(key), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetUInt64(&self, key: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<u64> { let mut result__: <u64 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), ::core::mem::transmute(key), &mut result__).from_abi::<u64>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn GetBool(&self, key: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), ::core::mem::transmute(key), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } } unsafe impl ::windows::core::Interface for IShellItem2 { type Vtable = IShellItem2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7e9fb0d3_919f_4307_ab2e_9b1860310c93); } impl ::core::convert::From<IShellItem2> for ::windows::core::IUnknown { fn from(value: IShellItem2) -> Self { value.0 } } impl ::core::convert::From<&IShellItem2> for ::windows::core::IUnknown { fn from(value: &IShellItem2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellItem2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellItem2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IShellItem2> for IShellItem { fn from(value: IShellItem2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellItem2> for IShellItem { fn from(value: &IShellItem2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellItem> for IShellItem2 { fn into_param(self) -> ::windows::core::Param<'a, IShellItem> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellItem> for &IShellItem2 { fn into_param(self) -> ::windows::core::Param<'a, IShellItem> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellItem2_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, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbc: ::windows::core::RawPtr, bhid: *const ::windows::core::GUID, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, sigdnname: SIGDN, ppszname: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, sfgaomask: u32, psfgaoattribs: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, hint: u32, piorder: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS, punkcreateobject: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rgkeys: *const PropertiesSystem::PROPERTYKEY, ckeys: u32, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, keytype: *const PropertiesSystem::PROPERTYKEY, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbc: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, key: *const PropertiesSystem::PROPERTYKEY, ppropvar: *mut ::core::mem::ManuallyDrop<super::super::System::Com::StructuredStorage::PROPVARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem")))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, key: *const PropertiesSystem::PROPERTYKEY, pclsid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, key: *const PropertiesSystem::PROPERTYKEY, pft: *mut super::super::Foundation::FILETIME) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem")))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, key: *const PropertiesSystem::PROPERTYKEY, pi: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, key: *const PropertiesSystem::PROPERTYKEY, ppsz: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem")))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, key: *const PropertiesSystem::PROPERTYKEY, pui: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, key: *const PropertiesSystem::PROPERTYKEY, pull: *mut u64) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, key: *const PropertiesSystem::PROPERTYKEY, pf: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellItemArray(pub ::windows::core::IUnknown); impl IShellItemArray { #[cfg(feature = "Win32_System_Com")] pub unsafe fn BindToHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>, T: ::windows::core::Interface>(&self, pbc: Param0, bhid: *const ::windows::core::GUID) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pbc.into_param().abi(), ::core::mem::transmute(bhid), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetPropertyStore<T: ::windows::core::Interface>(&self, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(flags), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetPropertyDescriptionList<T: ::windows::core::Interface>(&self, keytype: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(keytype), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } pub unsafe fn GetAttributes(&self, attribflags: SIATTRIBFLAGS, sfgaomask: u32) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(attribflags), ::core::mem::transmute(sfgaomask), &mut result__).from_abi::<u32>(result__) } pub unsafe fn GetCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn GetItemAt(&self, dwindex: u32) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwindex), &mut result__).from_abi::<IShellItem>(result__) } pub unsafe fn EnumItems(&self) -> ::windows::core::Result<IEnumShellItems> { let mut result__: <IEnumShellItems as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IEnumShellItems>(result__) } } unsafe impl ::windows::core::Interface for IShellItemArray { type Vtable = IShellItemArray_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb63ea76d_1f85_456f_a19c_48159efa858b); } impl ::core::convert::From<IShellItemArray> for ::windows::core::IUnknown { fn from(value: IShellItemArray) -> Self { value.0 } } impl ::core::convert::From<&IShellItemArray> for ::windows::core::IUnknown { fn from(value: &IShellItemArray) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellItemArray { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellItemArray { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellItemArray_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, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbc: ::windows::core::RawPtr, bhid: *const ::windows::core::GUID, riid: *const ::windows::core::GUID, ppvout: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, keytype: *const PropertiesSystem::PROPERTYKEY, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, attribflags: SIATTRIBFLAGS, sfgaomask: u32, psfgaoattribs: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwnumitems: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwindex: u32, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenumshellitems: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellItemFilter(pub ::windows::core::IUnknown); impl IShellItemFilter { pub unsafe fn IncludeItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psi.into_param().abi()).ok() } pub unsafe fn GetEnumFlagsForItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), psi.into_param().abi(), &mut result__).from_abi::<u32>(result__) } } unsafe impl ::windows::core::Interface for IShellItemFilter { type Vtable = IShellItemFilter_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2659b475_eeb8_48b7_8f07_b378810f48cf); } impl ::core::convert::From<IShellItemFilter> for ::windows::core::IUnknown { fn from(value: IShellItemFilter) -> Self { value.0 } } impl ::core::convert::From<&IShellItemFilter> for ::windows::core::IUnknown { fn from(value: &IShellItemFilter) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellItemFilter { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellItemFilter { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellItemFilter_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, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, pgrfflags: *mut u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellItemImageFactory(pub ::windows::core::IUnknown); impl IShellItemImageFactory { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe fn GetImage<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::SIZE>>(&self, size: Param0, flags: SIIGBF) -> ::windows::core::Result<super::super::Graphics::Gdi::HBITMAP> { let mut result__: <super::super::Graphics::Gdi::HBITMAP as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), size.into_param().abi(), ::core::mem::transmute(flags), &mut result__).from_abi::<super::super::Graphics::Gdi::HBITMAP>(result__) } } unsafe impl ::windows::core::Interface for IShellItemImageFactory { type Vtable = IShellItemImageFactory_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbcc18b79_ba16_442f_80c4_8a59c30c463b); } impl ::core::convert::From<IShellItemImageFactory> for ::windows::core::IUnknown { fn from(value: IShellItemImageFactory) -> Self { value.0 } } impl ::core::convert::From<&IShellItemImageFactory> for ::windows::core::IUnknown { fn from(value: &IShellItemImageFactory) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellItemImageFactory { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellItemImageFactory { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellItemImageFactory_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, size: super::super::Foundation::SIZE, flags: SIIGBF, phbm: *mut super::super::Graphics::Gdi::HBITMAP) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellItemResources(pub ::windows::core::IUnknown); impl IShellItemResources { pub unsafe fn GetAttributes(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn GetSize(&self) -> ::windows::core::Result<u64> { let mut result__: <u64 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u64>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetTimes(&self, pftcreation: *mut super::super::Foundation::FILETIME, pftwrite: *mut super::super::Foundation::FILETIME, pftaccess: *mut super::super::Foundation::FILETIME) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(pftcreation), ::core::mem::transmute(pftwrite), ::core::mem::transmute(pftaccess)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetTimes(&self, pftcreation: *const super::super::Foundation::FILETIME, pftwrite: *const super::super::Foundation::FILETIME, pftaccess: *const super::super::Foundation::FILETIME) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(pftcreation), ::core::mem::transmute(pftwrite), ::core::mem::transmute(pftaccess)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetResourceDescription(&self, pcsir: *const SHELL_ITEM_RESOURCE) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(pcsir), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } pub unsafe fn EnumResources(&self) -> ::windows::core::Result<IEnumResources> { let mut result__: <IEnumResources as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IEnumResources>(result__) } pub unsafe fn SupportsResource(&self, pcsir: *const SHELL_ITEM_RESOURCE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(pcsir)).ok() } pub unsafe fn OpenResource<T: ::windows::core::Interface>(&self, pcsir: *const SHELL_ITEM_RESOURCE) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(pcsir), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } pub unsafe fn CreateResource<T: ::windows::core::Interface>(&self, pcsir: *const SHELL_ITEM_RESOURCE) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(pcsir), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } pub unsafe fn MarkForDelete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IShellItemResources { type Vtable = IShellItemResources_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xff5693be_2ce0_4d48_b5c5_40817d1acdb9); } impl ::core::convert::From<IShellItemResources> for ::windows::core::IUnknown { fn from(value: IShellItemResources) -> Self { value.0 } } impl ::core::convert::From<&IShellItemResources> for ::windows::core::IUnknown { fn from(value: &IShellItemResources) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellItemResources { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellItemResources { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellItemResources_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, pdwattributes: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pullsize: *mut u64) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pftcreation: *mut super::super::Foundation::FILETIME, pftwrite: *mut super::super::Foundation::FILETIME, pftaccess: *mut super::super::Foundation::FILETIME) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pftcreation: *const super::super::Foundation::FILETIME, pftwrite: *const super::super::Foundation::FILETIME, pftaccess: *const super::super::Foundation::FILETIME) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcsir: *const SHELL_ITEM_RESOURCE, ppszdescription: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenumr: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcsir: *const SHELL_ITEM_RESOURCE) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcsir: *const SHELL_ITEM_RESOURCE, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcsir: *const SHELL_ITEM_RESOURCE, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellLibrary(pub ::windows::core::IUnknown); impl IShellLibrary { pub unsafe fn LoadLibraryFromItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psilibrary: Param0, grfmode: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psilibrary.into_param().abi(), ::core::mem::transmute(grfmode)).ok() } pub unsafe fn LoadLibraryFromKnownFolder(&self, kfidlibrary: *const ::windows::core::GUID, grfmode: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(kfidlibrary), ::core::mem::transmute(grfmode)).ok() } pub unsafe fn AddFolder<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psilocation: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), psilocation.into_param().abi()).ok() } pub unsafe fn RemoveFolder<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psilocation: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), psilocation.into_param().abi()).ok() } pub unsafe fn GetFolders<T: ::windows::core::Interface>(&self, lff: LIBRARYFOLDERFILTER) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(lff), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } pub unsafe fn ResolveFolder<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, T: ::windows::core::Interface>(&self, psifoldertoresolve: Param0, dwtimeout: u32) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), psifoldertoresolve.into_param().abi(), ::core::mem::transmute(dwtimeout), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } pub unsafe fn GetDefaultSaveFolder<T: ::windows::core::Interface>(&self, dsft: DEFAULTSAVEFOLDERTYPE) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(dsft), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } pub unsafe fn SetDefaultSaveFolder<'a, Param1: ::windows::core::IntoParam<'a, IShellItem>>(&self, dsft: DEFAULTSAVEFOLDERTYPE, psi: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(dsft), psi.into_param().abi()).ok() } pub unsafe fn GetOptions(&self) -> ::windows::core::Result<LIBRARYOPTIONFLAGS> { let mut result__: <LIBRARYOPTIONFLAGS as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<LIBRARYOPTIONFLAGS>(result__) } pub unsafe fn SetOptions(&self, lofmask: LIBRARYOPTIONFLAGS, lofoptions: LIBRARYOPTIONFLAGS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(lofmask), ::core::mem::transmute(lofoptions)).ok() } pub unsafe fn GetFolderType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__: <::windows::core::GUID as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<::windows::core::GUID>(result__) } pub unsafe fn SetFolderType(&self, ftid: *const ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(ftid)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIcon(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetIcon<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszicon: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), pszicon.into_param().abi()).ok() } pub unsafe fn Commit(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Save<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psifoldertosavein: Param0, pszlibraryname: Param1, lsf: LIBRARYSAVEFLAGS) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), psifoldertosavein.into_param().abi(), pszlibraryname.into_param().abi(), ::core::mem::transmute(lsf), &mut result__).from_abi::<IShellItem>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SaveInKnownFolder<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, kfidtosavein: *const ::windows::core::GUID, pszlibraryname: Param1, lsf: LIBRARYSAVEFLAGS) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), ::core::mem::transmute(kfidtosavein), pszlibraryname.into_param().abi(), ::core::mem::transmute(lsf), &mut result__).from_abi::<IShellItem>(result__) } } unsafe impl ::windows::core::Interface for IShellLibrary { type Vtable = IShellLibrary_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x11a66efa_382e_451a_9234_1e0e12ef3085); } impl ::core::convert::From<IShellLibrary> for ::windows::core::IUnknown { fn from(value: IShellLibrary) -> Self { value.0 } } impl ::core::convert::From<&IShellLibrary> for ::windows::core::IUnknown { fn from(value: &IShellLibrary) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellLibrary { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellLibrary { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellLibrary_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, psilibrary: ::windows::core::RawPtr, grfmode: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, kfidlibrary: *const ::windows::core::GUID, grfmode: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psilocation: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psilocation: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lff: LIBRARYFOLDERFILTER, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psifoldertoresolve: ::windows::core::RawPtr, dwtimeout: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dsft: DEFAULTSAVEFOLDERTYPE, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dsft: DEFAULTSAVEFOLDERTYPE, psi: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, plofoptions: *mut LIBRARYOPTIONFLAGS) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lofmask: LIBRARYOPTIONFLAGS, lofoptions: LIBRARYOPTIONFLAGS) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pftid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ftid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppszicon: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszicon: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psifoldertosavein: ::windows::core::RawPtr, pszlibraryname: super::super::Foundation::PWSTR, lsf: LIBRARYSAVEFLAGS, ppsisavedto: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, kfidtosavein: *const ::windows::core::GUID, pszlibraryname: super::super::Foundation::PWSTR, lsf: LIBRARYSAVEFLAGS, ppsisavedto: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellLinkA(pub ::windows::core::IUnknown); impl IShellLinkA { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_FileSystem"))] pub unsafe fn GetPath(&self, pszfile: super::super::Foundation::PSTR, cch: i32, pfd: *mut super::super::Storage::FileSystem::WIN32_FIND_DATAA, fflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszfile), ::core::mem::transmute(cch), ::core::mem::transmute(pfd), ::core::mem::transmute(fflags)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetIDList(&self) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetIDList(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDescription(&self, pszname: super::super::Foundation::PSTR, cch: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszname), ::core::mem::transmute(cch)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetDescription<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(&self, pszname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pszname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetWorkingDirectory(&self, pszdir: super::super::Foundation::PSTR, cch: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszdir), ::core::mem::transmute(cch)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetWorkingDirectory<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(&self, pszdir: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), pszdir.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetArguments(&self, pszargs: super::super::Foundation::PSTR, cch: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszargs), ::core::mem::transmute(cch)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetArguments<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(&self, pszargs: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), pszargs.into_param().abi()).ok() } pub unsafe fn GetHotkey(&self) -> ::windows::core::Result<u16> { let mut result__: <u16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u16>(result__) } pub unsafe fn SetHotkey(&self, whotkey: u16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(whotkey)).ok() } pub unsafe fn GetShowCmd(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetShowCmd(&self, ishowcmd: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(ishowcmd)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIconLocation(&self, psziconpath: super::super::Foundation::PSTR, cch: i32, piicon: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(psziconpath), ::core::mem::transmute(cch), ::core::mem::transmute(piicon)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetIconLocation<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(&self, psziconpath: Param0, iicon: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), psziconpath.into_param().abi(), ::core::mem::transmute(iicon)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetRelativePath<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(&self, pszpathrel: Param0, dwreserved: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), pszpathrel.into_param().abi(), ::core::mem::transmute(dwreserved)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Resolve<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0, fflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(fflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetPath<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(&self, pszfile: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), pszfile.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IShellLinkA { type Vtable = IShellLinkA_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214ee_0000_0000_c000_000000000046); } impl ::core::convert::From<IShellLinkA> for ::windows::core::IUnknown { fn from(value: IShellLinkA) -> Self { value.0 } } impl ::core::convert::From<&IShellLinkA> for ::windows::core::IUnknown { fn from(value: &IShellLinkA) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellLinkA { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellLinkA { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellLinkA_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_FileSystem"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszfile: super::super::Foundation::PSTR, cch: i32, pfd: *mut super::super::Storage::FileSystem::WIN32_FIND_DATAA, fflags: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Storage_FileSystem")))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: super::super::Foundation::PSTR, cch: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: super::super::Foundation::PSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszdir: super::super::Foundation::PSTR, cch: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszdir: super::super::Foundation::PSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszargs: super::super::Foundation::PSTR, cch: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszargs: super::super::Foundation::PSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pwhotkey: *mut u16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, whotkey: u16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pishowcmd: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ishowcmd: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psziconpath: super::super::Foundation::PSTR, cch: i32, piicon: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psziconpath: super::super::Foundation::PSTR, iicon: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszpathrel: super::super::Foundation::PSTR, dwreserved: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, fflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszfile: super::super::Foundation::PSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellLinkDataList(pub ::windows::core::IUnknown); impl IShellLinkDataList { pub unsafe fn AddDataBlock(&self, pdatablock: *const ::core::ffi::c_void) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pdatablock)).ok() } pub unsafe fn CopyDataBlock(&self, dwsig: u32, ppdatablock: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwsig), ::core::mem::transmute(ppdatablock)).ok() } pub unsafe fn RemoveDataBlock(&self, dwsig: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwsig)).ok() } pub unsafe fn GetFlags(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn SetFlags(&self, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags)).ok() } } unsafe impl ::windows::core::Interface for IShellLinkDataList { type Vtable = IShellLinkDataList_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x45e2b4ae_b1c3_11d0_b92f_00a0c90312e1); } impl ::core::convert::From<IShellLinkDataList> for ::windows::core::IUnknown { fn from(value: IShellLinkDataList) -> Self { value.0 } } impl ::core::convert::From<&IShellLinkDataList> for ::windows::core::IUnknown { fn from(value: &IShellLinkDataList) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellLinkDataList { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellLinkDataList { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellLinkDataList_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, pdatablock: *const ::core::ffi::c_void) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwsig: u32, ppdatablock: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwsig: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwflags: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellLinkDual(pub ::windows::core::IUnknown); impl IShellLinkDual { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Path(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetPath<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bs: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), bs.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Description(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetDescription<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bs: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), bs.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn WorkingDirectory(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetWorkingDirectory<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bs: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), bs.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Arguments(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetArguments<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bs: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), bs.into_param().abi()).ok() } pub unsafe fn Hotkey(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetHotkey(&self, ihk: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(ihk)).ok() } pub unsafe fn ShowCommand(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetShowCommand(&self, ishowcommand: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(ishowcommand)).ok() } pub unsafe fn Resolve(&self, fflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), ::core::mem::transmute(fflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIconLocation(&self, pbs: *mut super::super::Foundation::BSTR, piicon: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), ::core::mem::transmute(pbs), ::core::mem::transmute(piicon)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetIconLocation<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bs: Param0, iicon: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), bs.into_param().abi(), ::core::mem::transmute(iicon)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Save<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vwhere: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), vwhere.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IShellLinkDual { type Vtable = IShellLinkDual_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x88a05c00_f000_11ce_8350_444553540000); } impl ::core::convert::From<IShellLinkDual> for ::windows::core::IUnknown { fn from(value: IShellLinkDual) -> Self { value.0 } } impl ::core::convert::From<&IShellLinkDual> for ::windows::core::IUnknown { fn from(value: &IShellLinkDual) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellLinkDual { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellLinkDual { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellLinkDual> for super::super::System::Com::IDispatch { fn from(value: IShellLinkDual) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellLinkDual> for super::super::System::Com::IDispatch { fn from(value: &IShellLinkDual) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellLinkDual { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellLinkDual { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellLinkDual_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bs: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bs: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bs: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bs: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pihk: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ihk: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pishowcommand: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ishowcommand: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fflags: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, piicon: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bs: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, iicon: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vwhere: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellLinkDual2(pub ::windows::core::IUnknown); impl IShellLinkDual2 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Path(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetPath<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bs: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), bs.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Description(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetDescription<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bs: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), bs.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn WorkingDirectory(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetWorkingDirectory<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bs: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), bs.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Arguments(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetArguments<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bs: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), bs.into_param().abi()).ok() } pub unsafe fn Hotkey(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetHotkey(&self, ihk: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(ihk)).ok() } pub unsafe fn ShowCommand(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetShowCommand(&self, ishowcommand: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(ishowcommand)).ok() } pub unsafe fn Resolve(&self, fflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), ::core::mem::transmute(fflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIconLocation(&self, pbs: *mut super::super::Foundation::BSTR, piicon: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), ::core::mem::transmute(pbs), ::core::mem::transmute(piicon)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetIconLocation<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bs: Param0, iicon: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), bs.into_param().abi(), ::core::mem::transmute(iicon)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Save<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, vwhere: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), vwhere.into_param().abi()).ok() } pub unsafe fn Target(&self) -> ::windows::core::Result<FolderItem> { let mut result__: <FolderItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), &mut result__).from_abi::<FolderItem>(result__) } } unsafe impl ::windows::core::Interface for IShellLinkDual2 { type Vtable = IShellLinkDual2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x317ee249_f12e_11d2_b1e4_00c04f8eeb3e); } impl ::core::convert::From<IShellLinkDual2> for ::windows::core::IUnknown { fn from(value: IShellLinkDual2) -> Self { value.0 } } impl ::core::convert::From<&IShellLinkDual2> for ::windows::core::IUnknown { fn from(value: &IShellLinkDual2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellLinkDual2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellLinkDual2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IShellLinkDual2> for IShellLinkDual { fn from(value: IShellLinkDual2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellLinkDual2> for IShellLinkDual { fn from(value: &IShellLinkDual2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellLinkDual> for IShellLinkDual2 { fn into_param(self) -> ::windows::core::Param<'a, IShellLinkDual> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellLinkDual> for &IShellLinkDual2 { fn into_param(self) -> ::windows::core::Param<'a, IShellLinkDual> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellLinkDual2> for super::super::System::Com::IDispatch { fn from(value: IShellLinkDual2) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellLinkDual2> for super::super::System::Com::IDispatch { fn from(value: &IShellLinkDual2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellLinkDual2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellLinkDual2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellLinkDual2_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bs: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bs: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bs: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bs: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pihk: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ihk: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pishowcommand: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ishowcommand: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fflags: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbs: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, piicon: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bs: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, iicon: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vwhere: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppfi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellLinkW(pub ::windows::core::IUnknown); impl IShellLinkW { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_FileSystem"))] pub unsafe fn GetPath(&self, pszfile: super::super::Foundation::PWSTR, cch: i32, pfd: *mut super::super::Storage::FileSystem::WIN32_FIND_DATAW, fflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszfile), ::core::mem::transmute(cch), ::core::mem::transmute(pfd), ::core::mem::transmute(fflags)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetIDList(&self) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SetIDList(&self, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidl)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDescription(&self, pszname: super::super::Foundation::PWSTR, cch: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszname), ::core::mem::transmute(cch)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetDescription<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pszname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetWorkingDirectory(&self, pszdir: super::super::Foundation::PWSTR, cch: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszdir), ::core::mem::transmute(cch)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetWorkingDirectory<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszdir: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), pszdir.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetArguments(&self, pszargs: super::super::Foundation::PWSTR, cch: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszargs), ::core::mem::transmute(cch)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetArguments<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszargs: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), pszargs.into_param().abi()).ok() } pub unsafe fn GetHotkey(&self) -> ::windows::core::Result<u16> { let mut result__: <u16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u16>(result__) } pub unsafe fn SetHotkey(&self, whotkey: u16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(whotkey)).ok() } pub unsafe fn GetShowCmd(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetShowCmd(&self, ishowcmd: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(ishowcmd)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIconLocation(&self, psziconpath: super::super::Foundation::PWSTR, cch: i32, piicon: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(psziconpath), ::core::mem::transmute(cch), ::core::mem::transmute(piicon)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetIconLocation<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psziconpath: Param0, iicon: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), psziconpath.into_param().abi(), ::core::mem::transmute(iicon)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetRelativePath<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszpathrel: Param0, dwreserved: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), pszpathrel.into_param().abi(), ::core::mem::transmute(dwreserved)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Resolve<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0, fflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(fflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetPath<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszfile: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), pszfile.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IShellLinkW { type Vtable = IShellLinkW_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214f9_0000_0000_c000_000000000046); } impl ::core::convert::From<IShellLinkW> for ::windows::core::IUnknown { fn from(value: IShellLinkW) -> Self { value.0 } } impl ::core::convert::From<&IShellLinkW> for ::windows::core::IUnknown { fn from(value: &IShellLinkW) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellLinkW { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellLinkW { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellLinkW_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_FileSystem"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszfile: super::super::Foundation::PWSTR, cch: i32, pfd: *mut super::super::Storage::FileSystem::WIN32_FIND_DATAW, fflags: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Storage_FileSystem")))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR, cch: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszdir: super::super::Foundation::PWSTR, cch: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszdir: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszargs: super::super::Foundation::PWSTR, cch: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszargs: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pwhotkey: *mut u16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, whotkey: u16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pishowcmd: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ishowcmd: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psziconpath: super::super::Foundation::PWSTR, cch: i32, piicon: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psziconpath: super::super::Foundation::PWSTR, iicon: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszpathrel: super::super::Foundation::PWSTR, dwreserved: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, fflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszfile: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellMenu(pub ::windows::core::IUnknown); impl IShellMenu { pub unsafe fn Initialize<'a, Param0: ::windows::core::IntoParam<'a, IShellMenuCallback>>(&self, psmc: Param0, uid: u32, uidancestor: u32, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psmc.into_param().abi(), ::core::mem::transmute(uid), ::core::mem::transmute(uidancestor), ::core::mem::transmute(dwflags)).ok() } pub unsafe fn GetMenuInfo(&self, ppsmc: *mut ::core::option::Option<IShellMenuCallback>, puid: *mut u32, puidancestor: *mut u32, pdwflags: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppsmc), ::core::mem::transmute(puid), ::core::mem::transmute(puidancestor), ::core::mem::transmute(pdwflags)).ok() } #[cfg(all(feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] pub unsafe fn SetShellFolder<'a, Param0: ::windows::core::IntoParam<'a, IShellFolder>, Param2: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>>(&self, psf: Param0, pidlfolder: *const Common::ITEMIDLIST, hkey: Param2, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), psf.into_param().abi(), ::core::mem::transmute(pidlfolder), hkey.into_param().abi(), ::core::mem::transmute(dwflags)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetShellFolder(&self, pdwflags: *mut u32, ppidl: *mut *mut Common::ITEMIDLIST, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(pdwflags), ::core::mem::transmute(ppidl), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn SetMenu<'a, Param0: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HMENU>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hmenu: Param0, hwnd: Param1, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), hmenu.into_param().abi(), hwnd.into_param().abi(), ::core::mem::transmute(dwflags)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn GetMenu(&self, phmenu: *mut super::WindowsAndMessaging::HMENU, phwnd: *mut super::super::Foundation::HWND, pdwflags: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(phmenu), ::core::mem::transmute(phwnd), ::core::mem::transmute(pdwflags)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn InvalidateItem(&self, psmd: *const SMDATA, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(psmd), ::core::mem::transmute(dwflags)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn GetState(&self) -> ::windows::core::Result<SMDATA> { let mut result__: <SMDATA as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<SMDATA>(result__) } pub unsafe fn SetMenuToolbar<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punk: Param0, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), punk.into_param().abi(), ::core::mem::transmute(dwflags)).ok() } } unsafe impl ::windows::core::Interface for IShellMenu { type Vtable = IShellMenu_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xee1f7637_e138_11d1_8379_00c04fd918d0); } impl ::core::convert::From<IShellMenu> for ::windows::core::IUnknown { fn from(value: IShellMenu) -> Self { value.0 } } impl ::core::convert::From<&IShellMenu> for ::windows::core::IUnknown { fn from(value: &IShellMenu) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellMenu { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellMenu { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellMenu_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, psmc: ::windows::core::RawPtr, uid: u32, uidancestor: u32, dwflags: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsmc: *mut ::windows::core::RawPtr, puid: *mut u32, puidancestor: *mut u32, pdwflags: *mut u32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psf: ::windows::core::RawPtr, pidlfolder: *const Common::ITEMIDLIST, hkey: super::super::System::Registry::HKEY, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwflags: *mut u32, ppidl: *mut *mut Common::ITEMIDLIST, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hmenu: super::WindowsAndMessaging::HMENU, hwnd: super::super::Foundation::HWND, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phmenu: *mut super::WindowsAndMessaging::HMENU, phwnd: *mut super::super::Foundation::HWND, pdwflags: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psmd: *const ::core::mem::ManuallyDrop<SMDATA>, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psmd: *mut ::core::mem::ManuallyDrop<SMDATA>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punk: ::windows::core::RawPtr, dwflags: u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellMenuCallback(pub ::windows::core::IUnknown); impl IShellMenuCallback { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn CallbackSM<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, psmd: *mut SMDATA, umsg: u32, wparam: Param2, lparam: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(psmd), ::core::mem::transmute(umsg), wparam.into_param().abi(), lparam.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IShellMenuCallback { type Vtable = IShellMenuCallback_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4ca300a1_9b8d_11d1_8b22_00c04fd918d0); } impl ::core::convert::From<IShellMenuCallback> for ::windows::core::IUnknown { fn from(value: IShellMenuCallback) -> Self { value.0 } } impl ::core::convert::From<&IShellMenuCallback> for ::windows::core::IUnknown { fn from(value: &IShellMenuCallback) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellMenuCallback { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellMenuCallback { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellMenuCallback_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psmd: *mut ::core::mem::ManuallyDrop<SMDATA>, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellNameSpace(pub ::windows::core::IUnknown); impl IShellNameSpace { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } pub unsafe fn MoveSelectionUp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn MoveSelectionDown(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ResetSort(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn NewFolder(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Synchronize(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Import(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Export(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn InvokeContextMenuCommand<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, strcommand: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), strcommand.into_param().abi()).ok() } pub unsafe fn MoveSelectionTo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SubscriptionsEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn CreateSubscriptionForSelection(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn DeleteSubscriptionForSelection(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrfullpath: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), bstrfullpath.into_param().abi()).ok() } pub unsafe fn EnumOptions(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetEnumOptions(&self, lval: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), ::core::mem::transmute(lval)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SelectedItem(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSelectedItem<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch>>(&self, pitem: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), pitem.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Root(&self) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SetRoot2<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, var: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), var.into_param().abi()).ok() } pub unsafe fn Depth(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetDepth(&self, idepth: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self), ::core::mem::transmute(idepth)).ok() } pub unsafe fn Mode(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn SetMode(&self, umode: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), ::core::mem::transmute(umode)).ok() } pub unsafe fn Flags(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn SetFlags(&self, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags)).ok() } pub unsafe fn SetTVFlags(&self, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags)).ok() } pub unsafe fn TVFlags(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Columns(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetColumns<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrcolumns: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), bstrcolumns.into_param().abi()).ok() } pub unsafe fn CountViewTypes(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetViewType(&self, itype: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), ::core::mem::transmute(itype)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SelectedItems(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Expand<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, var: Param0, idepth: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).39)(::core::mem::transmute_copy(self), var.into_param().abi(), ::core::mem::transmute(idepth)).ok() } pub unsafe fn UnselectAll(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).40)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IShellNameSpace { type Vtable = IShellNameSpace_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe572d3c9_37be_4ae2_825d_d521763e3108); } impl ::core::convert::From<IShellNameSpace> for ::windows::core::IUnknown { fn from(value: IShellNameSpace) -> Self { value.0 } } impl ::core::convert::From<&IShellNameSpace> for ::windows::core::IUnknown { fn from(value: &IShellNameSpace) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellNameSpace { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellNameSpace { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IShellNameSpace> for IShellFavoritesNameSpace { fn from(value: IShellNameSpace) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellNameSpace> for IShellFavoritesNameSpace { fn from(value: &IShellNameSpace) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellFavoritesNameSpace> for IShellNameSpace { fn into_param(self) -> ::windows::core::Param<'a, IShellFavoritesNameSpace> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellFavoritesNameSpace> for &IShellNameSpace { fn into_param(self) -> ::windows::core::Param<'a, IShellFavoritesNameSpace> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellNameSpace> for super::super::System::Com::IDispatch { fn from(value: IShellNameSpace) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellNameSpace> for super::super::System::Com::IDispatch { fn from(value: &IShellNameSpace) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellNameSpace { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellNameSpace { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellNameSpace_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, strcommand: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbool: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbool: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbool: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrfullpath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pgrfenumflags: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lval: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pitem: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pitem: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvar: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, var: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidepth: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, idepth: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pumode: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, umode: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwflags: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrcolumns: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrcolumns: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pitypes: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itype: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppid: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, var: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, idepth: i32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellPropSheetExt(pub ::windows::core::IUnknown); impl IShellPropSheetExt { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub unsafe fn AddPages<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, pfnaddpage: ::core::option::Option<super::Controls::LPFNSVADDPROPSHEETPAGE>, lparam: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pfnaddpage), lparam.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub unsafe fn ReplacePage<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, upageid: u32, pfnreplacewith: ::core::option::Option<super::Controls::LPFNSVADDPROPSHEETPAGE>, lparam: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(upageid), ::core::mem::transmute(pfnreplacewith), lparam.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IShellPropSheetExt { type Vtable = IShellPropSheetExt_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214e9_0000_0000_c000_000000000046); } impl ::core::convert::From<IShellPropSheetExt> for ::windows::core::IUnknown { fn from(value: IShellPropSheetExt) -> Self { value.0 } } impl ::core::convert::From<&IShellPropSheetExt> for ::windows::core::IUnknown { fn from(value: &IShellPropSheetExt) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellPropSheetExt { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellPropSheetExt { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellPropSheetExt_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfnaddpage: ::windows::core::RawPtr, lparam: super::super::Foundation::LPARAM) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, upageid: u32, pfnreplacewith: ::windows::core::RawPtr, lparam: super::super::Foundation::LPARAM) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellRunDll(pub ::windows::core::IUnknown); impl IShellRunDll { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Run<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszargs: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszargs.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IShellRunDll { type Vtable = IShellRunDll_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfce4bde0_4b68_4b80_8e9c_7426315a7388); } impl ::core::convert::From<IShellRunDll> for ::windows::core::IUnknown { fn from(value: IShellRunDll) -> Self { value.0 } } impl ::core::convert::From<&IShellRunDll> for ::windows::core::IUnknown { fn from(value: &IShellRunDll) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellRunDll { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellRunDll { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellRunDll_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszargs: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellService(pub ::windows::core::IUnknown); impl IShellService { pub unsafe fn SetOwner<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punkowner: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), punkowner.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IShellService { type Vtable = IShellService_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5836fb00_8187_11cf_a12b_00aa004ae837); } impl ::core::convert::From<IShellService> for ::windows::core::IUnknown { fn from(value: IShellService) -> Self { value.0 } } impl ::core::convert::From<&IShellService> for ::windows::core::IUnknown { fn from(value: &IShellService) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellService { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellService { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellService_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, punkowner: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellTaskScheduler(pub ::windows::core::IUnknown); impl IShellTaskScheduler { pub unsafe fn AddTask<'a, Param0: ::windows::core::IntoParam<'a, IRunnableTask>>(&self, prt: Param0, rtoid: *const ::windows::core::GUID, lparam: usize, dwpriority: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), prt.into_param().abi(), ::core::mem::transmute(rtoid), ::core::mem::transmute(lparam), ::core::mem::transmute(dwpriority)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn RemoveTasks<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, rtoid: *const ::windows::core::GUID, lparam: usize, bwaitifrunning: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(rtoid), ::core::mem::transmute(lparam), bwaitifrunning.into_param().abi()).ok() } pub unsafe fn CountTasks(&self, rtoid: *const ::windows::core::GUID) -> u32 { ::core::mem::transmute((::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(rtoid))) } pub unsafe fn Status(&self, dwreleasestatus: u32, dwthreadtimeout: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwreleasestatus), ::core::mem::transmute(dwthreadtimeout)).ok() } } unsafe impl ::windows::core::Interface for IShellTaskScheduler { type Vtable = IShellTaskScheduler_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6ccb7be0_6807_11d0_b810_00c04fd706ec); } impl ::core::convert::From<IShellTaskScheduler> for ::windows::core::IUnknown { fn from(value: IShellTaskScheduler) -> Self { value.0 } } impl ::core::convert::From<&IShellTaskScheduler> for ::windows::core::IUnknown { fn from(value: &IShellTaskScheduler) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellTaskScheduler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellTaskScheduler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IShellTaskScheduler_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, prt: ::windows::core::RawPtr, rtoid: *const ::windows::core::GUID, lparam: usize, dwpriority: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rtoid: *const ::windows::core::GUID, lparam: usize, bwaitifrunning: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rtoid: *const ::windows::core::GUID) -> u32, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwreleasestatus: u32, dwthreadtimeout: u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellUIHelper(pub ::windows::core::IUnknown); impl IShellUIHelper { pub unsafe fn ResetFirstBootMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ResetSafeMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn RefreshOfflineDesktop(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddFavorite<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, title: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), url.into_param().abi(), ::core::mem::transmute(title)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddChannel<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddDesktopComponent<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, r#type: Param1, left: *const super::super::System::Com::VARIANT, top: *const super::super::System::Com::VARIANT, width: *const super::super::System::Com::VARIANT, height: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), url.into_param().abi(), r#type.into_param().abi(), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsSubscribed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), url.into_param().abi(), &mut result__).from_abi::<i16>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn NavigateAndFind<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, strquery: Param1, vartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), url.into_param().abi(), strquery.into_param().abi(), ::core::mem::transmute(vartargetframe)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ImportExportFavorites<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, fimport: i16, strimpexppath: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(fimport), strimpexppath.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoCompleteSaveForm(&self, form: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(form)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoScan<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, strsearch: Param0, strfailureurl: Param1, pvartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), strsearch.into_param().abi(), strfailureurl.into_param().abi(), ::core::mem::transmute(pvartargetframe)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoCompleteAttach(&self, reserved: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(reserved)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ShowBrowserUI<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrname: Param0, pvarin: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), bstrname.into_param().abi(), ::core::mem::transmute(pvarin), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } } unsafe impl ::windows::core::Interface for IShellUIHelper { type Vtable = IShellUIHelper_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x729fe2f8_1ea8_11d1_8f85_00c04fc2fbe1); } impl ::core::convert::From<IShellUIHelper> for ::windows::core::IUnknown { fn from(value: IShellUIHelper) -> Self { value.0 } } impl ::core::convert::From<&IShellUIHelper> for ::windows::core::IUnknown { fn from(value: &IShellUIHelper) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellUIHelper { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellUIHelper { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellUIHelper> for super::super::System::Com::IDispatch { fn from(value: IShellUIHelper) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellUIHelper> for super::super::System::Com::IDispatch { fn from(value: &IShellUIHelper) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellUIHelper { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellUIHelper { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellUIHelper_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, title: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn( this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, r#type: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, left: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, top: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, width: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, height: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pbool: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, strquery: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, vartargetframe: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fimport: i16, strimpexppath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, form: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, strsearch: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, strfailureurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvartargetframe: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, reserved: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarin: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarout: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellUIHelper2(pub ::windows::core::IUnknown); impl IShellUIHelper2 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } pub unsafe fn ResetFirstBootMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ResetSafeMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn RefreshOfflineDesktop(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddFavorite<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, title: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), url.into_param().abi(), ::core::mem::transmute(title)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddChannel<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddDesktopComponent<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, r#type: Param1, left: *const super::super::System::Com::VARIANT, top: *const super::super::System::Com::VARIANT, width: *const super::super::System::Com::VARIANT, height: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), url.into_param().abi(), r#type.into_param().abi(), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsSubscribed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), url.into_param().abi(), &mut result__).from_abi::<i16>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn NavigateAndFind<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, strquery: Param1, vartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), url.into_param().abi(), strquery.into_param().abi(), ::core::mem::transmute(vartargetframe)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ImportExportFavorites<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, fimport: i16, strimpexppath: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(fimport), strimpexppath.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoCompleteSaveForm(&self, form: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(form)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoScan<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, strsearch: Param0, strfailureurl: Param1, pvartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), strsearch.into_param().abi(), strfailureurl.into_param().abi(), ::core::mem::transmute(pvartargetframe)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoCompleteAttach(&self, reserved: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(reserved)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ShowBrowserUI<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrname: Param0, pvarin: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), bstrname.into_param().abi(), ::core::mem::transmute(pvarin), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddSearchProvider<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } pub unsafe fn RunOnceShown(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SkipRunOnce(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CustomizeSettings<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, fsqm: i16, fphishing: i16, bstrlocale: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(fsqm), ::core::mem::transmute(fphishing), bstrlocale.into_param().abi()).ok() } pub unsafe fn SqmEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn PhishingEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn SkipTabsWelcome(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn DiagnoseConnection(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn CustomizeClearType(&self, fset: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), ::core::mem::transmute(fset)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsSearchProviderInstalled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), url.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn IsSearchMigrated(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), ::core::mem::transmute(fcomplete)).ok() } pub unsafe fn RunOnceHasShown(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } } unsafe impl ::windows::core::Interface for IShellUIHelper2 { type Vtable = IShellUIHelper2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa7fe6eda_1932_4281_b881_87b31b8bc52c); } impl ::core::convert::From<IShellUIHelper2> for ::windows::core::IUnknown { fn from(value: IShellUIHelper2) -> Self { value.0 } } impl ::core::convert::From<&IShellUIHelper2> for ::windows::core::IUnknown { fn from(value: &IShellUIHelper2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellUIHelper2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellUIHelper2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IShellUIHelper2> for IShellUIHelper { fn from(value: IShellUIHelper2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper2> for IShellUIHelper { fn from(value: &IShellUIHelper2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper> for IShellUIHelper2 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper> for &IShellUIHelper2 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellUIHelper2> for super::super::System::Com::IDispatch { fn from(value: IShellUIHelper2) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellUIHelper2> for super::super::System::Com::IDispatch { fn from(value: &IShellUIHelper2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellUIHelper2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellUIHelper2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellUIHelper2_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, title: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn( this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, r#type: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, left: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, top: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, width: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, height: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pbool: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, strquery: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, vartargetframe: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fimport: i16, strimpexppath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, form: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, strsearch: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, strfailureurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvartargetframe: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, reserved: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarin: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarout: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fsqm: i16, fphishing: i16, bstrlocale: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstruri: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fset: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pdwresult: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfmigrated: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrname: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fcomplete: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfshown: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrurl: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellUIHelper3(pub ::windows::core::IUnknown); impl IShellUIHelper3 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } pub unsafe fn ResetFirstBootMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ResetSafeMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn RefreshOfflineDesktop(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddFavorite<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, title: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), url.into_param().abi(), ::core::mem::transmute(title)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddChannel<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddDesktopComponent<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, r#type: Param1, left: *const super::super::System::Com::VARIANT, top: *const super::super::System::Com::VARIANT, width: *const super::super::System::Com::VARIANT, height: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), url.into_param().abi(), r#type.into_param().abi(), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsSubscribed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), url.into_param().abi(), &mut result__).from_abi::<i16>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn NavigateAndFind<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, strquery: Param1, vartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), url.into_param().abi(), strquery.into_param().abi(), ::core::mem::transmute(vartargetframe)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ImportExportFavorites<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, fimport: i16, strimpexppath: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(fimport), strimpexppath.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoCompleteSaveForm(&self, form: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(form)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoScan<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, strsearch: Param0, strfailureurl: Param1, pvartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), strsearch.into_param().abi(), strfailureurl.into_param().abi(), ::core::mem::transmute(pvartargetframe)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoCompleteAttach(&self, reserved: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(reserved)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ShowBrowserUI<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrname: Param0, pvarin: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), bstrname.into_param().abi(), ::core::mem::transmute(pvarin), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddSearchProvider<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } pub unsafe fn RunOnceShown(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SkipRunOnce(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CustomizeSettings<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, fsqm: i16, fphishing: i16, bstrlocale: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(fsqm), ::core::mem::transmute(fphishing), bstrlocale.into_param().abi()).ok() } pub unsafe fn SqmEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn PhishingEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn SkipTabsWelcome(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn DiagnoseConnection(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn CustomizeClearType(&self, fset: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), ::core::mem::transmute(fset)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsSearchProviderInstalled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), url.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn IsSearchMigrated(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), ::core::mem::transmute(fcomplete)).ok() } pub unsafe fn RunOnceHasShown(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddService<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsServiceInstalled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, verb: Param1) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), url.into_param().abi(), verb.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn InPrivateFilteringEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddToFavoritesBar<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, title: Param1, r#type: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).39)(::core::mem::transmute_copy(self), url.into_param().abi(), title.into_param().abi(), ::core::mem::transmute(r#type)).ok() } pub unsafe fn BuildNewTabPage(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).40)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetRecentlyClosedVisible(&self, fvisible: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).41)(::core::mem::transmute_copy(self), ::core::mem::transmute(fvisible)).ok() } pub unsafe fn SetActivitiesVisible(&self, fvisible: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).42)(::core::mem::transmute_copy(self), ::core::mem::transmute(fvisible)).ok() } pub unsafe fn ContentDiscoveryReset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).43)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn IsSuggestedSitesEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).44)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn EnableSuggestedSites(&self, fenable: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).45)(::core::mem::transmute_copy(self), ::core::mem::transmute(fenable)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn NavigateToSuggestedSites<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrrelativeurl: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).46)(::core::mem::transmute_copy(self), bstrrelativeurl.into_param().abi()).ok() } pub unsafe fn ShowTabsHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).47)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ShowInPrivateHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).48)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IShellUIHelper3 { type Vtable = IShellUIHelper3_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x528df2ec_d419_40bc_9b6d_dcdbf9c1b25d); } impl ::core::convert::From<IShellUIHelper3> for ::windows::core::IUnknown { fn from(value: IShellUIHelper3) -> Self { value.0 } } impl ::core::convert::From<&IShellUIHelper3> for ::windows::core::IUnknown { fn from(value: &IShellUIHelper3) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellUIHelper3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellUIHelper3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IShellUIHelper3> for IShellUIHelper2 { fn from(value: IShellUIHelper3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper3> for IShellUIHelper2 { fn from(value: &IShellUIHelper3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper2> for IShellUIHelper3 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper2> for &IShellUIHelper3 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper3> for IShellUIHelper { fn from(value: IShellUIHelper3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper3> for IShellUIHelper { fn from(value: &IShellUIHelper3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper> for IShellUIHelper3 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper> for &IShellUIHelper3 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellUIHelper3> for super::super::System::Com::IDispatch { fn from(value: IShellUIHelper3) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellUIHelper3> for super::super::System::Com::IDispatch { fn from(value: &IShellUIHelper3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellUIHelper3 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellUIHelper3 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellUIHelper3_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, title: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn( this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, r#type: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, left: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, top: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, width: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, height: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pbool: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, strquery: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, vartargetframe: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fimport: i16, strimpexppath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, form: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, strsearch: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, strfailureurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvartargetframe: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, reserved: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarin: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarout: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fsqm: i16, fphishing: i16, bstrlocale: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstruri: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fset: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pdwresult: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfmigrated: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrname: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fcomplete: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfshown: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrurl: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, verb: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pdwresult: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, title: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, r#type: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fvisible: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fvisible: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fenable: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrrelativeurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellUIHelper4(pub ::windows::core::IUnknown); impl IShellUIHelper4 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } pub unsafe fn ResetFirstBootMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ResetSafeMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn RefreshOfflineDesktop(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddFavorite<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, title: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), url.into_param().abi(), ::core::mem::transmute(title)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddChannel<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddDesktopComponent<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, r#type: Param1, left: *const super::super::System::Com::VARIANT, top: *const super::super::System::Com::VARIANT, width: *const super::super::System::Com::VARIANT, height: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), url.into_param().abi(), r#type.into_param().abi(), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsSubscribed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), url.into_param().abi(), &mut result__).from_abi::<i16>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn NavigateAndFind<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, strquery: Param1, vartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), url.into_param().abi(), strquery.into_param().abi(), ::core::mem::transmute(vartargetframe)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ImportExportFavorites<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, fimport: i16, strimpexppath: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(fimport), strimpexppath.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoCompleteSaveForm(&self, form: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(form)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoScan<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, strsearch: Param0, strfailureurl: Param1, pvartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), strsearch.into_param().abi(), strfailureurl.into_param().abi(), ::core::mem::transmute(pvartargetframe)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoCompleteAttach(&self, reserved: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(reserved)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ShowBrowserUI<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrname: Param0, pvarin: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), bstrname.into_param().abi(), ::core::mem::transmute(pvarin), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddSearchProvider<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } pub unsafe fn RunOnceShown(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SkipRunOnce(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CustomizeSettings<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, fsqm: i16, fphishing: i16, bstrlocale: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(fsqm), ::core::mem::transmute(fphishing), bstrlocale.into_param().abi()).ok() } pub unsafe fn SqmEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn PhishingEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn SkipTabsWelcome(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn DiagnoseConnection(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn CustomizeClearType(&self, fset: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), ::core::mem::transmute(fset)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsSearchProviderInstalled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), url.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn IsSearchMigrated(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), ::core::mem::transmute(fcomplete)).ok() } pub unsafe fn RunOnceHasShown(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddService<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsServiceInstalled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, verb: Param1) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), url.into_param().abi(), verb.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn InPrivateFilteringEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddToFavoritesBar<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, title: Param1, r#type: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).39)(::core::mem::transmute_copy(self), url.into_param().abi(), title.into_param().abi(), ::core::mem::transmute(r#type)).ok() } pub unsafe fn BuildNewTabPage(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).40)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetRecentlyClosedVisible(&self, fvisible: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).41)(::core::mem::transmute_copy(self), ::core::mem::transmute(fvisible)).ok() } pub unsafe fn SetActivitiesVisible(&self, fvisible: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).42)(::core::mem::transmute_copy(self), ::core::mem::transmute(fvisible)).ok() } pub unsafe fn ContentDiscoveryReset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).43)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn IsSuggestedSitesEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).44)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn EnableSuggestedSites(&self, fenable: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).45)(::core::mem::transmute_copy(self), ::core::mem::transmute(fenable)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn NavigateToSuggestedSites<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrrelativeurl: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).46)(::core::mem::transmute_copy(self), bstrrelativeurl.into_param().abi()).ok() } pub unsafe fn ShowTabsHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).47)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ShowInPrivateHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).48)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msIsSiteMode(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).49)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn msSiteModeShowThumbBar(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).50)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeAddThumbBarButton<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstriconurl: Param0, bstrtooltip: Param1) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).51)(::core::mem::transmute_copy(self), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeUpdateThumbBarButton<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, buttonid: Param0, fenabled: i16, fvisible: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).52)(::core::mem::transmute_copy(self), buttonid.into_param().abi(), ::core::mem::transmute(fenabled), ::core::mem::transmute(fvisible)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeSetIconOverlay<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, iconurl: Param0, pvardescription: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).53)(::core::mem::transmute_copy(self), iconurl.into_param().abi(), ::core::mem::transmute(pvardescription)).ok() } pub unsafe fn msSiteModeClearIconOverlay(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).54)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msAddSiteMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).55)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn msSiteModeCreateJumpList<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrheader: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).56)(::core::mem::transmute_copy(self), bstrheader.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeAddJumpListItem<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrname: Param0, bstractionuri: Param1, bstriconuri: Param2, pvarwindowtype: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).57)(::core::mem::transmute_copy(self), bstrname.into_param().abi(), bstractionuri.into_param().abi(), bstriconuri.into_param().abi(), ::core::mem::transmute(pvarwindowtype)).ok() } pub unsafe fn msSiteModeClearJumpList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).58)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msSiteModeShowJumpList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).59)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeAddButtonStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, uibuttonid: Param0, bstriconurl: Param1, bstrtooltip: Param2) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).60)(::core::mem::transmute_copy(self), uibuttonid.into_param().abi(), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeShowButtonStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, uibuttonid: Param0, uistyleid: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).61)(::core::mem::transmute_copy(self), uibuttonid.into_param().abi(), uistyleid.into_param().abi()).ok() } pub unsafe fn msSiteModeActivate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).62)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msIsSiteModeFirstRun(&self, fpreservestate: i16) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).63)(::core::mem::transmute_copy(self), ::core::mem::transmute(fpreservestate), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn msAddTrackingProtectionList<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, bstrfiltername: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).64)(::core::mem::transmute_copy(self), url.into_param().abi(), bstrfiltername.into_param().abi()).ok() } pub unsafe fn msTrackingProtectionEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).65)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn msActiveXFilteringEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).66)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } } unsafe impl ::windows::core::Interface for IShellUIHelper4 { type Vtable = IShellUIHelper4_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb36e6a53_8073_499e_824c_d776330a333e); } impl ::core::convert::From<IShellUIHelper4> for ::windows::core::IUnknown { fn from(value: IShellUIHelper4) -> Self { value.0 } } impl ::core::convert::From<&IShellUIHelper4> for ::windows::core::IUnknown { fn from(value: &IShellUIHelper4) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellUIHelper4 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellUIHelper4 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IShellUIHelper4> for IShellUIHelper3 { fn from(value: IShellUIHelper4) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper4> for IShellUIHelper3 { fn from(value: &IShellUIHelper4) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper3> for IShellUIHelper4 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper3> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper3> for &IShellUIHelper4 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper3> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper4> for IShellUIHelper2 { fn from(value: IShellUIHelper4) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper4> for IShellUIHelper2 { fn from(value: &IShellUIHelper4) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper2> for IShellUIHelper4 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper2> for &IShellUIHelper4 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper4> for IShellUIHelper { fn from(value: IShellUIHelper4) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper4> for IShellUIHelper { fn from(value: &IShellUIHelper4) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper> for IShellUIHelper4 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper> for &IShellUIHelper4 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellUIHelper4> for super::super::System::Com::IDispatch { fn from(value: IShellUIHelper4) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellUIHelper4> for super::super::System::Com::IDispatch { fn from(value: &IShellUIHelper4) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellUIHelper4 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellUIHelper4 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellUIHelper4_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, title: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn( this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, r#type: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, left: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, top: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, width: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, height: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pbool: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, strquery: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, vartargetframe: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fimport: i16, strimpexppath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, form: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, strsearch: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, strfailureurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvartargetframe: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, reserved: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarin: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarout: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fsqm: i16, fphishing: i16, bstrlocale: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstruri: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fset: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pdwresult: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfmigrated: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrname: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fcomplete: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfshown: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrurl: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, verb: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pdwresult: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, title: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, r#type: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fvisible: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fvisible: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fenable: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrrelativeurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfsitemode: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstriconurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrtooltip: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarbuttonid: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, buttonid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, fenabled: i16, fvisible: i16) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iconurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvardescription: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrheader: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstractionuri: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstriconuri: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarwindowtype: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uibuttonid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, bstriconurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrtooltip: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarstyleid: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uibuttonid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, uistyleid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fpreservestate: i16, puifirstrun: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrfiltername: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellUIHelper5(pub ::windows::core::IUnknown); impl IShellUIHelper5 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } pub unsafe fn ResetFirstBootMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ResetSafeMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn RefreshOfflineDesktop(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddFavorite<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, title: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), url.into_param().abi(), ::core::mem::transmute(title)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddChannel<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddDesktopComponent<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, r#type: Param1, left: *const super::super::System::Com::VARIANT, top: *const super::super::System::Com::VARIANT, width: *const super::super::System::Com::VARIANT, height: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), url.into_param().abi(), r#type.into_param().abi(), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsSubscribed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), url.into_param().abi(), &mut result__).from_abi::<i16>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn NavigateAndFind<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, strquery: Param1, vartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), url.into_param().abi(), strquery.into_param().abi(), ::core::mem::transmute(vartargetframe)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ImportExportFavorites<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, fimport: i16, strimpexppath: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(fimport), strimpexppath.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoCompleteSaveForm(&self, form: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(form)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoScan<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, strsearch: Param0, strfailureurl: Param1, pvartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), strsearch.into_param().abi(), strfailureurl.into_param().abi(), ::core::mem::transmute(pvartargetframe)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoCompleteAttach(&self, reserved: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(reserved)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ShowBrowserUI<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrname: Param0, pvarin: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), bstrname.into_param().abi(), ::core::mem::transmute(pvarin), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddSearchProvider<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } pub unsafe fn RunOnceShown(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SkipRunOnce(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CustomizeSettings<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, fsqm: i16, fphishing: i16, bstrlocale: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(fsqm), ::core::mem::transmute(fphishing), bstrlocale.into_param().abi()).ok() } pub unsafe fn SqmEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn PhishingEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn SkipTabsWelcome(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn DiagnoseConnection(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn CustomizeClearType(&self, fset: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), ::core::mem::transmute(fset)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsSearchProviderInstalled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), url.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn IsSearchMigrated(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), ::core::mem::transmute(fcomplete)).ok() } pub unsafe fn RunOnceHasShown(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddService<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsServiceInstalled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, verb: Param1) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), url.into_param().abi(), verb.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn InPrivateFilteringEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddToFavoritesBar<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, title: Param1, r#type: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).39)(::core::mem::transmute_copy(self), url.into_param().abi(), title.into_param().abi(), ::core::mem::transmute(r#type)).ok() } pub unsafe fn BuildNewTabPage(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).40)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetRecentlyClosedVisible(&self, fvisible: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).41)(::core::mem::transmute_copy(self), ::core::mem::transmute(fvisible)).ok() } pub unsafe fn SetActivitiesVisible(&self, fvisible: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).42)(::core::mem::transmute_copy(self), ::core::mem::transmute(fvisible)).ok() } pub unsafe fn ContentDiscoveryReset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).43)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn IsSuggestedSitesEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).44)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn EnableSuggestedSites(&self, fenable: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).45)(::core::mem::transmute_copy(self), ::core::mem::transmute(fenable)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn NavigateToSuggestedSites<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrrelativeurl: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).46)(::core::mem::transmute_copy(self), bstrrelativeurl.into_param().abi()).ok() } pub unsafe fn ShowTabsHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).47)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ShowInPrivateHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).48)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msIsSiteMode(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).49)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn msSiteModeShowThumbBar(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).50)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeAddThumbBarButton<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstriconurl: Param0, bstrtooltip: Param1) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).51)(::core::mem::transmute_copy(self), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeUpdateThumbBarButton<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, buttonid: Param0, fenabled: i16, fvisible: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).52)(::core::mem::transmute_copy(self), buttonid.into_param().abi(), ::core::mem::transmute(fenabled), ::core::mem::transmute(fvisible)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeSetIconOverlay<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, iconurl: Param0, pvardescription: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).53)(::core::mem::transmute_copy(self), iconurl.into_param().abi(), ::core::mem::transmute(pvardescription)).ok() } pub unsafe fn msSiteModeClearIconOverlay(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).54)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msAddSiteMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).55)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn msSiteModeCreateJumpList<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrheader: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).56)(::core::mem::transmute_copy(self), bstrheader.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeAddJumpListItem<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrname: Param0, bstractionuri: Param1, bstriconuri: Param2, pvarwindowtype: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).57)(::core::mem::transmute_copy(self), bstrname.into_param().abi(), bstractionuri.into_param().abi(), bstriconuri.into_param().abi(), ::core::mem::transmute(pvarwindowtype)).ok() } pub unsafe fn msSiteModeClearJumpList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).58)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msSiteModeShowJumpList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).59)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeAddButtonStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, uibuttonid: Param0, bstriconurl: Param1, bstrtooltip: Param2) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).60)(::core::mem::transmute_copy(self), uibuttonid.into_param().abi(), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeShowButtonStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, uibuttonid: Param0, uistyleid: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).61)(::core::mem::transmute_copy(self), uibuttonid.into_param().abi(), uistyleid.into_param().abi()).ok() } pub unsafe fn msSiteModeActivate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).62)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msIsSiteModeFirstRun(&self, fpreservestate: i16) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).63)(::core::mem::transmute_copy(self), ::core::mem::transmute(fpreservestate), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn msAddTrackingProtectionList<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, bstrfiltername: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).64)(::core::mem::transmute_copy(self), url.into_param().abi(), bstrfiltername.into_param().abi()).ok() } pub unsafe fn msTrackingProtectionEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).65)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn msActiveXFilteringEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).66)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msProvisionNetworks<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrprovisioningxml: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).67)(::core::mem::transmute_copy(self), bstrprovisioningxml.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } pub unsafe fn msReportSafeUrl(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).68)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msSiteModeRefreshBadge(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).69)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msSiteModeClearBadge(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).70)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msDiagnoseConnectionUILess(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).71)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msLaunchNetworkClientHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).72)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msChangeDefaultBrowser(&self, fchange: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).73)(::core::mem::transmute_copy(self), ::core::mem::transmute(fchange)).ok() } } unsafe impl ::windows::core::Interface for IShellUIHelper5 { type Vtable = IShellUIHelper5_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa2a08b09_103d_4d3f_b91c_ea455ca82efa); } impl ::core::convert::From<IShellUIHelper5> for ::windows::core::IUnknown { fn from(value: IShellUIHelper5) -> Self { value.0 } } impl ::core::convert::From<&IShellUIHelper5> for ::windows::core::IUnknown { fn from(value: &IShellUIHelper5) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellUIHelper5 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellUIHelper5 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IShellUIHelper5> for IShellUIHelper4 { fn from(value: IShellUIHelper5) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper5> for IShellUIHelper4 { fn from(value: &IShellUIHelper5) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper4> for IShellUIHelper5 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper4> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper4> for &IShellUIHelper5 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper4> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper5> for IShellUIHelper3 { fn from(value: IShellUIHelper5) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper5> for IShellUIHelper3 { fn from(value: &IShellUIHelper5) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper3> for IShellUIHelper5 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper3> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper3> for &IShellUIHelper5 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper3> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper5> for IShellUIHelper2 { fn from(value: IShellUIHelper5) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper5> for IShellUIHelper2 { fn from(value: &IShellUIHelper5) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper2> for IShellUIHelper5 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper2> for &IShellUIHelper5 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper5> for IShellUIHelper { fn from(value: IShellUIHelper5) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper5> for IShellUIHelper { fn from(value: &IShellUIHelper5) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper> for IShellUIHelper5 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper> for &IShellUIHelper5 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellUIHelper5> for super::super::System::Com::IDispatch { fn from(value: IShellUIHelper5) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellUIHelper5> for super::super::System::Com::IDispatch { fn from(value: &IShellUIHelper5) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellUIHelper5 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellUIHelper5 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellUIHelper5_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, title: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn( this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, r#type: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, left: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, top: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, width: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, height: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pbool: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, strquery: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, vartargetframe: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fimport: i16, strimpexppath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, form: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, strsearch: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, strfailureurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvartargetframe: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, reserved: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarin: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarout: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fsqm: i16, fphishing: i16, bstrlocale: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstruri: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fset: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pdwresult: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfmigrated: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrname: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fcomplete: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfshown: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrurl: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, verb: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pdwresult: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, title: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, r#type: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fvisible: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fvisible: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fenable: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrrelativeurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfsitemode: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstriconurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrtooltip: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarbuttonid: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, buttonid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, fenabled: i16, fvisible: i16) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iconurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvardescription: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrheader: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstractionuri: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstriconuri: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarwindowtype: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uibuttonid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, bstriconurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrtooltip: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarstyleid: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uibuttonid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, uistyleid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fpreservestate: i16, puifirstrun: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrfiltername: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrprovisioningxml: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, puiresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchange: i16) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellUIHelper6(pub ::windows::core::IUnknown); impl IShellUIHelper6 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } pub unsafe fn ResetFirstBootMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ResetSafeMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn RefreshOfflineDesktop(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddFavorite<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, title: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), url.into_param().abi(), ::core::mem::transmute(title)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddChannel<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddDesktopComponent<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, r#type: Param1, left: *const super::super::System::Com::VARIANT, top: *const super::super::System::Com::VARIANT, width: *const super::super::System::Com::VARIANT, height: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), url.into_param().abi(), r#type.into_param().abi(), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsSubscribed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), url.into_param().abi(), &mut result__).from_abi::<i16>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn NavigateAndFind<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, strquery: Param1, vartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), url.into_param().abi(), strquery.into_param().abi(), ::core::mem::transmute(vartargetframe)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ImportExportFavorites<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, fimport: i16, strimpexppath: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(fimport), strimpexppath.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoCompleteSaveForm(&self, form: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(form)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoScan<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, strsearch: Param0, strfailureurl: Param1, pvartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), strsearch.into_param().abi(), strfailureurl.into_param().abi(), ::core::mem::transmute(pvartargetframe)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoCompleteAttach(&self, reserved: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(reserved)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ShowBrowserUI<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrname: Param0, pvarin: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), bstrname.into_param().abi(), ::core::mem::transmute(pvarin), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddSearchProvider<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } pub unsafe fn RunOnceShown(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SkipRunOnce(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CustomizeSettings<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, fsqm: i16, fphishing: i16, bstrlocale: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(fsqm), ::core::mem::transmute(fphishing), bstrlocale.into_param().abi()).ok() } pub unsafe fn SqmEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn PhishingEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn SkipTabsWelcome(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn DiagnoseConnection(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn CustomizeClearType(&self, fset: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), ::core::mem::transmute(fset)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsSearchProviderInstalled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), url.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn IsSearchMigrated(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), ::core::mem::transmute(fcomplete)).ok() } pub unsafe fn RunOnceHasShown(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddService<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsServiceInstalled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, verb: Param1) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), url.into_param().abi(), verb.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn InPrivateFilteringEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddToFavoritesBar<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, title: Param1, r#type: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).39)(::core::mem::transmute_copy(self), url.into_param().abi(), title.into_param().abi(), ::core::mem::transmute(r#type)).ok() } pub unsafe fn BuildNewTabPage(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).40)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetRecentlyClosedVisible(&self, fvisible: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).41)(::core::mem::transmute_copy(self), ::core::mem::transmute(fvisible)).ok() } pub unsafe fn SetActivitiesVisible(&self, fvisible: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).42)(::core::mem::transmute_copy(self), ::core::mem::transmute(fvisible)).ok() } pub unsafe fn ContentDiscoveryReset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).43)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn IsSuggestedSitesEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).44)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn EnableSuggestedSites(&self, fenable: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).45)(::core::mem::transmute_copy(self), ::core::mem::transmute(fenable)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn NavigateToSuggestedSites<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrrelativeurl: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).46)(::core::mem::transmute_copy(self), bstrrelativeurl.into_param().abi()).ok() } pub unsafe fn ShowTabsHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).47)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ShowInPrivateHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).48)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msIsSiteMode(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).49)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn msSiteModeShowThumbBar(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).50)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeAddThumbBarButton<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstriconurl: Param0, bstrtooltip: Param1) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).51)(::core::mem::transmute_copy(self), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeUpdateThumbBarButton<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, buttonid: Param0, fenabled: i16, fvisible: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).52)(::core::mem::transmute_copy(self), buttonid.into_param().abi(), ::core::mem::transmute(fenabled), ::core::mem::transmute(fvisible)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeSetIconOverlay<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, iconurl: Param0, pvardescription: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).53)(::core::mem::transmute_copy(self), iconurl.into_param().abi(), ::core::mem::transmute(pvardescription)).ok() } pub unsafe fn msSiteModeClearIconOverlay(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).54)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msAddSiteMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).55)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn msSiteModeCreateJumpList<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrheader: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).56)(::core::mem::transmute_copy(self), bstrheader.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeAddJumpListItem<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrname: Param0, bstractionuri: Param1, bstriconuri: Param2, pvarwindowtype: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).57)(::core::mem::transmute_copy(self), bstrname.into_param().abi(), bstractionuri.into_param().abi(), bstriconuri.into_param().abi(), ::core::mem::transmute(pvarwindowtype)).ok() } pub unsafe fn msSiteModeClearJumpList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).58)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msSiteModeShowJumpList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).59)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeAddButtonStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, uibuttonid: Param0, bstriconurl: Param1, bstrtooltip: Param2) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).60)(::core::mem::transmute_copy(self), uibuttonid.into_param().abi(), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeShowButtonStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, uibuttonid: Param0, uistyleid: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).61)(::core::mem::transmute_copy(self), uibuttonid.into_param().abi(), uistyleid.into_param().abi()).ok() } pub unsafe fn msSiteModeActivate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).62)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msIsSiteModeFirstRun(&self, fpreservestate: i16) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).63)(::core::mem::transmute_copy(self), ::core::mem::transmute(fpreservestate), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn msAddTrackingProtectionList<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, bstrfiltername: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).64)(::core::mem::transmute_copy(self), url.into_param().abi(), bstrfiltername.into_param().abi()).ok() } pub unsafe fn msTrackingProtectionEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).65)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn msActiveXFilteringEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).66)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msProvisionNetworks<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrprovisioningxml: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).67)(::core::mem::transmute_copy(self), bstrprovisioningxml.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } pub unsafe fn msReportSafeUrl(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).68)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msSiteModeRefreshBadge(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).69)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msSiteModeClearBadge(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).70)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msDiagnoseConnectionUILess(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).71)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msLaunchNetworkClientHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).72)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msChangeDefaultBrowser(&self, fchange: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).73)(::core::mem::transmute_copy(self), ::core::mem::transmute(fchange)).ok() } pub unsafe fn msStopPeriodicTileUpdate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).74)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msStartPeriodicTileUpdate<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, pollinguris: Param0, starttime: Param1, uiupdaterecurrence: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).75)(::core::mem::transmute_copy(self), pollinguris.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msStartPeriodicTileUpdateBatch<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, pollinguris: Param0, starttime: Param1, uiupdaterecurrence: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).76)(::core::mem::transmute_copy(self), pollinguris.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() } pub unsafe fn msClearTile(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).77)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msEnableTileNotificationQueue(&self, fchange: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).78)(::core::mem::transmute_copy(self), ::core::mem::transmute(fchange)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msPinnedSiteState(&self) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).79)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } pub unsafe fn msEnableTileNotificationQueueForSquare150x150(&self, fchange: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).80)(::core::mem::transmute_copy(self), ::core::mem::transmute(fchange)).ok() } pub unsafe fn msEnableTileNotificationQueueForWide310x150(&self, fchange: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).81)(::core::mem::transmute_copy(self), ::core::mem::transmute(fchange)).ok() } pub unsafe fn msEnableTileNotificationQueueForSquare310x310(&self, fchange: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).82)(::core::mem::transmute_copy(self), ::core::mem::transmute(fchange)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msScheduledTileNotification<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param3: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param4: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>( &self, bstrnotificationxml: Param0, bstrnotificationid: Param1, bstrnotificationtag: Param2, starttime: Param3, expirationtime: Param4, ) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).83)(::core::mem::transmute_copy(self), bstrnotificationxml.into_param().abi(), bstrnotificationid.into_param().abi(), bstrnotificationtag.into_param().abi(), starttime.into_param().abi(), expirationtime.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn msRemoveScheduledTileNotification<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrnotificationid: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).84)(::core::mem::transmute_copy(self), bstrnotificationid.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msStartPeriodicBadgeUpdate<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, pollinguri: Param0, starttime: Param1, uiupdaterecurrence: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).85)(::core::mem::transmute_copy(self), pollinguri.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() } pub unsafe fn msStopPeriodicBadgeUpdate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).86)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msLaunchInternetOptions(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).87)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IShellUIHelper6 { type Vtable = IShellUIHelper6_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x987a573e_46ee_4e89_96ab_ddf7f8fdc98c); } impl ::core::convert::From<IShellUIHelper6> for ::windows::core::IUnknown { fn from(value: IShellUIHelper6) -> Self { value.0 } } impl ::core::convert::From<&IShellUIHelper6> for ::windows::core::IUnknown { fn from(value: &IShellUIHelper6) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellUIHelper6 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellUIHelper6 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IShellUIHelper6> for IShellUIHelper5 { fn from(value: IShellUIHelper6) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper6> for IShellUIHelper5 { fn from(value: &IShellUIHelper6) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper5> for IShellUIHelper6 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper5> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper5> for &IShellUIHelper6 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper5> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper6> for IShellUIHelper4 { fn from(value: IShellUIHelper6) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper6> for IShellUIHelper4 { fn from(value: &IShellUIHelper6) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper4> for IShellUIHelper6 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper4> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper4> for &IShellUIHelper6 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper4> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper6> for IShellUIHelper3 { fn from(value: IShellUIHelper6) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper6> for IShellUIHelper3 { fn from(value: &IShellUIHelper6) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper3> for IShellUIHelper6 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper3> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper3> for &IShellUIHelper6 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper3> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper6> for IShellUIHelper2 { fn from(value: IShellUIHelper6) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper6> for IShellUIHelper2 { fn from(value: &IShellUIHelper6) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper2> for IShellUIHelper6 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper2> for &IShellUIHelper6 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper6> for IShellUIHelper { fn from(value: IShellUIHelper6) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper6> for IShellUIHelper { fn from(value: &IShellUIHelper6) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper> for IShellUIHelper6 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper> for &IShellUIHelper6 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellUIHelper6> for super::super::System::Com::IDispatch { fn from(value: IShellUIHelper6) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellUIHelper6> for super::super::System::Com::IDispatch { fn from(value: &IShellUIHelper6) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellUIHelper6 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellUIHelper6 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellUIHelper6_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, title: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn( this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, r#type: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, left: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, top: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, width: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, height: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pbool: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, strquery: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, vartargetframe: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fimport: i16, strimpexppath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, form: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, strsearch: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, strfailureurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvartargetframe: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, reserved: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarin: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarout: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fsqm: i16, fphishing: i16, bstrlocale: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstruri: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fset: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pdwresult: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfmigrated: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrname: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fcomplete: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfshown: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrurl: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, verb: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pdwresult: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, title: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, r#type: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fvisible: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fvisible: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fenable: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrrelativeurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfsitemode: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstriconurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrtooltip: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarbuttonid: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, buttonid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, fenabled: i16, fvisible: i16) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iconurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvardescription: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrheader: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstractionuri: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstriconuri: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarwindowtype: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uibuttonid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, bstriconurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrtooltip: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarstyleid: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uibuttonid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, uistyleid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fpreservestate: i16, puifirstrun: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrfiltername: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrprovisioningxml: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, puiresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchange: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pollinguris: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, starttime: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, uiupdaterecurrence: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pollinguris: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, starttime: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, uiupdaterecurrence: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchange: i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvarsitestate: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchange: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchange: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchange: i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrnotificationxml: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrnotificationid: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrnotificationtag: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, starttime: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, expirationtime: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrnotificationid: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pollinguri: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, starttime: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, uiupdaterecurrence: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellUIHelper7(pub ::windows::core::IUnknown); impl IShellUIHelper7 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } pub unsafe fn ResetFirstBootMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ResetSafeMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn RefreshOfflineDesktop(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddFavorite<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, title: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), url.into_param().abi(), ::core::mem::transmute(title)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddChannel<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddDesktopComponent<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, r#type: Param1, left: *const super::super::System::Com::VARIANT, top: *const super::super::System::Com::VARIANT, width: *const super::super::System::Com::VARIANT, height: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), url.into_param().abi(), r#type.into_param().abi(), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsSubscribed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), url.into_param().abi(), &mut result__).from_abi::<i16>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn NavigateAndFind<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, strquery: Param1, vartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), url.into_param().abi(), strquery.into_param().abi(), ::core::mem::transmute(vartargetframe)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ImportExportFavorites<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, fimport: i16, strimpexppath: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(fimport), strimpexppath.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoCompleteSaveForm(&self, form: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(form)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoScan<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, strsearch: Param0, strfailureurl: Param1, pvartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), strsearch.into_param().abi(), strfailureurl.into_param().abi(), ::core::mem::transmute(pvartargetframe)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoCompleteAttach(&self, reserved: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(reserved)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ShowBrowserUI<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrname: Param0, pvarin: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), bstrname.into_param().abi(), ::core::mem::transmute(pvarin), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddSearchProvider<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } pub unsafe fn RunOnceShown(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SkipRunOnce(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CustomizeSettings<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, fsqm: i16, fphishing: i16, bstrlocale: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(fsqm), ::core::mem::transmute(fphishing), bstrlocale.into_param().abi()).ok() } pub unsafe fn SqmEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn PhishingEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn SkipTabsWelcome(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn DiagnoseConnection(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn CustomizeClearType(&self, fset: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), ::core::mem::transmute(fset)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsSearchProviderInstalled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), url.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn IsSearchMigrated(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), ::core::mem::transmute(fcomplete)).ok() } pub unsafe fn RunOnceHasShown(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddService<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsServiceInstalled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, verb: Param1) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), url.into_param().abi(), verb.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn InPrivateFilteringEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddToFavoritesBar<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, title: Param1, r#type: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).39)(::core::mem::transmute_copy(self), url.into_param().abi(), title.into_param().abi(), ::core::mem::transmute(r#type)).ok() } pub unsafe fn BuildNewTabPage(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).40)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetRecentlyClosedVisible(&self, fvisible: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).41)(::core::mem::transmute_copy(self), ::core::mem::transmute(fvisible)).ok() } pub unsafe fn SetActivitiesVisible(&self, fvisible: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).42)(::core::mem::transmute_copy(self), ::core::mem::transmute(fvisible)).ok() } pub unsafe fn ContentDiscoveryReset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).43)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn IsSuggestedSitesEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).44)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn EnableSuggestedSites(&self, fenable: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).45)(::core::mem::transmute_copy(self), ::core::mem::transmute(fenable)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn NavigateToSuggestedSites<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrrelativeurl: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).46)(::core::mem::transmute_copy(self), bstrrelativeurl.into_param().abi()).ok() } pub unsafe fn ShowTabsHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).47)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ShowInPrivateHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).48)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msIsSiteMode(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).49)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn msSiteModeShowThumbBar(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).50)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeAddThumbBarButton<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstriconurl: Param0, bstrtooltip: Param1) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).51)(::core::mem::transmute_copy(self), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeUpdateThumbBarButton<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, buttonid: Param0, fenabled: i16, fvisible: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).52)(::core::mem::transmute_copy(self), buttonid.into_param().abi(), ::core::mem::transmute(fenabled), ::core::mem::transmute(fvisible)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeSetIconOverlay<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, iconurl: Param0, pvardescription: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).53)(::core::mem::transmute_copy(self), iconurl.into_param().abi(), ::core::mem::transmute(pvardescription)).ok() } pub unsafe fn msSiteModeClearIconOverlay(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).54)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msAddSiteMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).55)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn msSiteModeCreateJumpList<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrheader: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).56)(::core::mem::transmute_copy(self), bstrheader.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeAddJumpListItem<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrname: Param0, bstractionuri: Param1, bstriconuri: Param2, pvarwindowtype: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).57)(::core::mem::transmute_copy(self), bstrname.into_param().abi(), bstractionuri.into_param().abi(), bstriconuri.into_param().abi(), ::core::mem::transmute(pvarwindowtype)).ok() } pub unsafe fn msSiteModeClearJumpList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).58)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msSiteModeShowJumpList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).59)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeAddButtonStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, uibuttonid: Param0, bstriconurl: Param1, bstrtooltip: Param2) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).60)(::core::mem::transmute_copy(self), uibuttonid.into_param().abi(), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeShowButtonStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, uibuttonid: Param0, uistyleid: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).61)(::core::mem::transmute_copy(self), uibuttonid.into_param().abi(), uistyleid.into_param().abi()).ok() } pub unsafe fn msSiteModeActivate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).62)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msIsSiteModeFirstRun(&self, fpreservestate: i16) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).63)(::core::mem::transmute_copy(self), ::core::mem::transmute(fpreservestate), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn msAddTrackingProtectionList<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, bstrfiltername: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).64)(::core::mem::transmute_copy(self), url.into_param().abi(), bstrfiltername.into_param().abi()).ok() } pub unsafe fn msTrackingProtectionEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).65)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn msActiveXFilteringEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).66)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msProvisionNetworks<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrprovisioningxml: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).67)(::core::mem::transmute_copy(self), bstrprovisioningxml.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } pub unsafe fn msReportSafeUrl(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).68)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msSiteModeRefreshBadge(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).69)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msSiteModeClearBadge(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).70)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msDiagnoseConnectionUILess(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).71)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msLaunchNetworkClientHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).72)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msChangeDefaultBrowser(&self, fchange: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).73)(::core::mem::transmute_copy(self), ::core::mem::transmute(fchange)).ok() } pub unsafe fn msStopPeriodicTileUpdate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).74)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msStartPeriodicTileUpdate<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, pollinguris: Param0, starttime: Param1, uiupdaterecurrence: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).75)(::core::mem::transmute_copy(self), pollinguris.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msStartPeriodicTileUpdateBatch<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, pollinguris: Param0, starttime: Param1, uiupdaterecurrence: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).76)(::core::mem::transmute_copy(self), pollinguris.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() } pub unsafe fn msClearTile(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).77)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msEnableTileNotificationQueue(&self, fchange: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).78)(::core::mem::transmute_copy(self), ::core::mem::transmute(fchange)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msPinnedSiteState(&self) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).79)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } pub unsafe fn msEnableTileNotificationQueueForSquare150x150(&self, fchange: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).80)(::core::mem::transmute_copy(self), ::core::mem::transmute(fchange)).ok() } pub unsafe fn msEnableTileNotificationQueueForWide310x150(&self, fchange: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).81)(::core::mem::transmute_copy(self), ::core::mem::transmute(fchange)).ok() } pub unsafe fn msEnableTileNotificationQueueForSquare310x310(&self, fchange: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).82)(::core::mem::transmute_copy(self), ::core::mem::transmute(fchange)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msScheduledTileNotification<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param3: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param4: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>( &self, bstrnotificationxml: Param0, bstrnotificationid: Param1, bstrnotificationtag: Param2, starttime: Param3, expirationtime: Param4, ) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).83)(::core::mem::transmute_copy(self), bstrnotificationxml.into_param().abi(), bstrnotificationid.into_param().abi(), bstrnotificationtag.into_param().abi(), starttime.into_param().abi(), expirationtime.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn msRemoveScheduledTileNotification<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrnotificationid: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).84)(::core::mem::transmute_copy(self), bstrnotificationid.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msStartPeriodicBadgeUpdate<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, pollinguri: Param0, starttime: Param1, uiupdaterecurrence: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).85)(::core::mem::transmute_copy(self), pollinguri.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() } pub unsafe fn msStopPeriodicBadgeUpdate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).86)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msLaunchInternetOptions(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).87)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetExperimentalFlag<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrflagstring: Param0, vfflag: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).88)(::core::mem::transmute_copy(self), bstrflagstring.into_param().abi(), ::core::mem::transmute(vfflag)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetExperimentalFlag<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrflagstring: Param0) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).89)(::core::mem::transmute_copy(self), bstrflagstring.into_param().abi(), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetExperimentalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrvaluestring: Param0, dwvalue: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).90)(::core::mem::transmute_copy(self), bstrvaluestring.into_param().abi(), ::core::mem::transmute(dwvalue)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetExperimentalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrvaluestring: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).91)(::core::mem::transmute_copy(self), bstrvaluestring.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn ResetAllExperimentalFlagsAndValues(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).92)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetNeedIEAutoLaunchFlag<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrurl: Param0) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).93)(::core::mem::transmute_copy(self), bstrurl.into_param().abi(), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetNeedIEAutoLaunchFlag<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrurl: Param0, flag: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).94)(::core::mem::transmute_copy(self), bstrurl.into_param().abi(), ::core::mem::transmute(flag)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn HasNeedIEAutoLaunchFlag<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrurl: Param0) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).95)(::core::mem::transmute_copy(self), bstrurl.into_param().abi(), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn LaunchIE<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrurl: Param0, automated: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).96)(::core::mem::transmute_copy(self), bstrurl.into_param().abi(), ::core::mem::transmute(automated)).ok() } } unsafe impl ::windows::core::Interface for IShellUIHelper7 { type Vtable = IShellUIHelper7_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x60e567c8_9573_4ab2_a264_637c6c161cb1); } impl ::core::convert::From<IShellUIHelper7> for ::windows::core::IUnknown { fn from(value: IShellUIHelper7) -> Self { value.0 } } impl ::core::convert::From<&IShellUIHelper7> for ::windows::core::IUnknown { fn from(value: &IShellUIHelper7) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellUIHelper7 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellUIHelper7 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IShellUIHelper7> for IShellUIHelper6 { fn from(value: IShellUIHelper7) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper7> for IShellUIHelper6 { fn from(value: &IShellUIHelper7) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper6> for IShellUIHelper7 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper6> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper6> for &IShellUIHelper7 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper6> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper7> for IShellUIHelper5 { fn from(value: IShellUIHelper7) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper7> for IShellUIHelper5 { fn from(value: &IShellUIHelper7) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper5> for IShellUIHelper7 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper5> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper5> for &IShellUIHelper7 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper5> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper7> for IShellUIHelper4 { fn from(value: IShellUIHelper7) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper7> for IShellUIHelper4 { fn from(value: &IShellUIHelper7) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper4> for IShellUIHelper7 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper4> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper4> for &IShellUIHelper7 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper4> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper7> for IShellUIHelper3 { fn from(value: IShellUIHelper7) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper7> for IShellUIHelper3 { fn from(value: &IShellUIHelper7) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper3> for IShellUIHelper7 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper3> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper3> for &IShellUIHelper7 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper3> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper7> for IShellUIHelper2 { fn from(value: IShellUIHelper7) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper7> for IShellUIHelper2 { fn from(value: &IShellUIHelper7) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper2> for IShellUIHelper7 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper2> for &IShellUIHelper7 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper7> for IShellUIHelper { fn from(value: IShellUIHelper7) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper7> for IShellUIHelper { fn from(value: &IShellUIHelper7) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper> for IShellUIHelper7 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper> for &IShellUIHelper7 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellUIHelper7> for super::super::System::Com::IDispatch { fn from(value: IShellUIHelper7) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellUIHelper7> for super::super::System::Com::IDispatch { fn from(value: &IShellUIHelper7) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellUIHelper7 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellUIHelper7 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellUIHelper7_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, title: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn( this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, r#type: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, left: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, top: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, width: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, height: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pbool: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, strquery: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, vartargetframe: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fimport: i16, strimpexppath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, form: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, strsearch: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, strfailureurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvartargetframe: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, reserved: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarin: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarout: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fsqm: i16, fphishing: i16, bstrlocale: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstruri: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fset: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pdwresult: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfmigrated: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrname: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fcomplete: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfshown: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrurl: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, verb: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pdwresult: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, title: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, r#type: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fvisible: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fvisible: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fenable: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrrelativeurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfsitemode: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstriconurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrtooltip: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarbuttonid: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, buttonid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, fenabled: i16, fvisible: i16) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iconurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvardescription: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrheader: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstractionuri: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstriconuri: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarwindowtype: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uibuttonid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, bstriconurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrtooltip: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarstyleid: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uibuttonid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, uistyleid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fpreservestate: i16, puifirstrun: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrfiltername: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrprovisioningxml: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, puiresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchange: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pollinguris: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, starttime: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, uiupdaterecurrence: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pollinguris: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, starttime: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, uiupdaterecurrence: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchange: i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvarsitestate: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchange: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchange: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchange: i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrnotificationxml: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrnotificationid: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrnotificationtag: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, starttime: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, expirationtime: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrnotificationid: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pollinguri: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, starttime: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, uiupdaterecurrence: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrflagstring: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, vfflag: i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrflagstring: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, vfflag: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrvaluestring: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, dwvalue: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrvaluestring: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pdwvalue: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, flag: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, flag: i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, exists: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, automated: i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellUIHelper8(pub ::windows::core::IUnknown); impl IShellUIHelper8 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } pub unsafe fn ResetFirstBootMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ResetSafeMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn RefreshOfflineDesktop(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddFavorite<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, title: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), url.into_param().abi(), ::core::mem::transmute(title)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddChannel<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddDesktopComponent<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, r#type: Param1, left: *const super::super::System::Com::VARIANT, top: *const super::super::System::Com::VARIANT, width: *const super::super::System::Com::VARIANT, height: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), url.into_param().abi(), r#type.into_param().abi(), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsSubscribed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), url.into_param().abi(), &mut result__).from_abi::<i16>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn NavigateAndFind<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, strquery: Param1, vartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), url.into_param().abi(), strquery.into_param().abi(), ::core::mem::transmute(vartargetframe)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ImportExportFavorites<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, fimport: i16, strimpexppath: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(fimport), strimpexppath.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoCompleteSaveForm(&self, form: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(form)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoScan<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, strsearch: Param0, strfailureurl: Param1, pvartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), strsearch.into_param().abi(), strfailureurl.into_param().abi(), ::core::mem::transmute(pvartargetframe)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoCompleteAttach(&self, reserved: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(reserved)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ShowBrowserUI<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrname: Param0, pvarin: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), bstrname.into_param().abi(), ::core::mem::transmute(pvarin), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddSearchProvider<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } pub unsafe fn RunOnceShown(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SkipRunOnce(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CustomizeSettings<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, fsqm: i16, fphishing: i16, bstrlocale: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(fsqm), ::core::mem::transmute(fphishing), bstrlocale.into_param().abi()).ok() } pub unsafe fn SqmEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn PhishingEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn SkipTabsWelcome(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn DiagnoseConnection(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn CustomizeClearType(&self, fset: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), ::core::mem::transmute(fset)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsSearchProviderInstalled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), url.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn IsSearchMigrated(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), ::core::mem::transmute(fcomplete)).ok() } pub unsafe fn RunOnceHasShown(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddService<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsServiceInstalled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, verb: Param1) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), url.into_param().abi(), verb.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn InPrivateFilteringEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddToFavoritesBar<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, title: Param1, r#type: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).39)(::core::mem::transmute_copy(self), url.into_param().abi(), title.into_param().abi(), ::core::mem::transmute(r#type)).ok() } pub unsafe fn BuildNewTabPage(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).40)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetRecentlyClosedVisible(&self, fvisible: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).41)(::core::mem::transmute_copy(self), ::core::mem::transmute(fvisible)).ok() } pub unsafe fn SetActivitiesVisible(&self, fvisible: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).42)(::core::mem::transmute_copy(self), ::core::mem::transmute(fvisible)).ok() } pub unsafe fn ContentDiscoveryReset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).43)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn IsSuggestedSitesEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).44)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn EnableSuggestedSites(&self, fenable: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).45)(::core::mem::transmute_copy(self), ::core::mem::transmute(fenable)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn NavigateToSuggestedSites<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrrelativeurl: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).46)(::core::mem::transmute_copy(self), bstrrelativeurl.into_param().abi()).ok() } pub unsafe fn ShowTabsHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).47)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ShowInPrivateHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).48)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msIsSiteMode(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).49)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn msSiteModeShowThumbBar(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).50)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeAddThumbBarButton<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstriconurl: Param0, bstrtooltip: Param1) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).51)(::core::mem::transmute_copy(self), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeUpdateThumbBarButton<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, buttonid: Param0, fenabled: i16, fvisible: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).52)(::core::mem::transmute_copy(self), buttonid.into_param().abi(), ::core::mem::transmute(fenabled), ::core::mem::transmute(fvisible)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeSetIconOverlay<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, iconurl: Param0, pvardescription: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).53)(::core::mem::transmute_copy(self), iconurl.into_param().abi(), ::core::mem::transmute(pvardescription)).ok() } pub unsafe fn msSiteModeClearIconOverlay(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).54)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msAddSiteMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).55)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn msSiteModeCreateJumpList<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrheader: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).56)(::core::mem::transmute_copy(self), bstrheader.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeAddJumpListItem<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrname: Param0, bstractionuri: Param1, bstriconuri: Param2, pvarwindowtype: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).57)(::core::mem::transmute_copy(self), bstrname.into_param().abi(), bstractionuri.into_param().abi(), bstriconuri.into_param().abi(), ::core::mem::transmute(pvarwindowtype)).ok() } pub unsafe fn msSiteModeClearJumpList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).58)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msSiteModeShowJumpList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).59)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeAddButtonStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, uibuttonid: Param0, bstriconurl: Param1, bstrtooltip: Param2) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).60)(::core::mem::transmute_copy(self), uibuttonid.into_param().abi(), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeShowButtonStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, uibuttonid: Param0, uistyleid: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).61)(::core::mem::transmute_copy(self), uibuttonid.into_param().abi(), uistyleid.into_param().abi()).ok() } pub unsafe fn msSiteModeActivate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).62)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msIsSiteModeFirstRun(&self, fpreservestate: i16) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).63)(::core::mem::transmute_copy(self), ::core::mem::transmute(fpreservestate), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn msAddTrackingProtectionList<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, bstrfiltername: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).64)(::core::mem::transmute_copy(self), url.into_param().abi(), bstrfiltername.into_param().abi()).ok() } pub unsafe fn msTrackingProtectionEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).65)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn msActiveXFilteringEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).66)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msProvisionNetworks<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrprovisioningxml: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).67)(::core::mem::transmute_copy(self), bstrprovisioningxml.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } pub unsafe fn msReportSafeUrl(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).68)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msSiteModeRefreshBadge(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).69)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msSiteModeClearBadge(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).70)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msDiagnoseConnectionUILess(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).71)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msLaunchNetworkClientHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).72)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msChangeDefaultBrowser(&self, fchange: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).73)(::core::mem::transmute_copy(self), ::core::mem::transmute(fchange)).ok() } pub unsafe fn msStopPeriodicTileUpdate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).74)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msStartPeriodicTileUpdate<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, pollinguris: Param0, starttime: Param1, uiupdaterecurrence: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).75)(::core::mem::transmute_copy(self), pollinguris.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msStartPeriodicTileUpdateBatch<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, pollinguris: Param0, starttime: Param1, uiupdaterecurrence: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).76)(::core::mem::transmute_copy(self), pollinguris.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() } pub unsafe fn msClearTile(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).77)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msEnableTileNotificationQueue(&self, fchange: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).78)(::core::mem::transmute_copy(self), ::core::mem::transmute(fchange)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msPinnedSiteState(&self) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).79)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } pub unsafe fn msEnableTileNotificationQueueForSquare150x150(&self, fchange: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).80)(::core::mem::transmute_copy(self), ::core::mem::transmute(fchange)).ok() } pub unsafe fn msEnableTileNotificationQueueForWide310x150(&self, fchange: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).81)(::core::mem::transmute_copy(self), ::core::mem::transmute(fchange)).ok() } pub unsafe fn msEnableTileNotificationQueueForSquare310x310(&self, fchange: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).82)(::core::mem::transmute_copy(self), ::core::mem::transmute(fchange)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msScheduledTileNotification<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param3: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param4: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>( &self, bstrnotificationxml: Param0, bstrnotificationid: Param1, bstrnotificationtag: Param2, starttime: Param3, expirationtime: Param4, ) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).83)(::core::mem::transmute_copy(self), bstrnotificationxml.into_param().abi(), bstrnotificationid.into_param().abi(), bstrnotificationtag.into_param().abi(), starttime.into_param().abi(), expirationtime.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn msRemoveScheduledTileNotification<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrnotificationid: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).84)(::core::mem::transmute_copy(self), bstrnotificationid.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msStartPeriodicBadgeUpdate<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, pollinguri: Param0, starttime: Param1, uiupdaterecurrence: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).85)(::core::mem::transmute_copy(self), pollinguri.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() } pub unsafe fn msStopPeriodicBadgeUpdate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).86)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msLaunchInternetOptions(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).87)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetExperimentalFlag<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrflagstring: Param0, vfflag: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).88)(::core::mem::transmute_copy(self), bstrflagstring.into_param().abi(), ::core::mem::transmute(vfflag)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetExperimentalFlag<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrflagstring: Param0) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).89)(::core::mem::transmute_copy(self), bstrflagstring.into_param().abi(), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetExperimentalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrvaluestring: Param0, dwvalue: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).90)(::core::mem::transmute_copy(self), bstrvaluestring.into_param().abi(), ::core::mem::transmute(dwvalue)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetExperimentalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrvaluestring: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).91)(::core::mem::transmute_copy(self), bstrvaluestring.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn ResetAllExperimentalFlagsAndValues(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).92)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetNeedIEAutoLaunchFlag<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrurl: Param0) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).93)(::core::mem::transmute_copy(self), bstrurl.into_param().abi(), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetNeedIEAutoLaunchFlag<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrurl: Param0, flag: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).94)(::core::mem::transmute_copy(self), bstrurl.into_param().abi(), ::core::mem::transmute(flag)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn HasNeedIEAutoLaunchFlag<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrurl: Param0) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).95)(::core::mem::transmute_copy(self), bstrurl.into_param().abi(), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn LaunchIE<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrurl: Param0, automated: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).96)(::core::mem::transmute_copy(self), bstrurl.into_param().abi(), ::core::mem::transmute(automated)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCVListData(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).97)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCVListLocalData(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).98)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetEMIEListData(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).99)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetEMIEListLocalData(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).100)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn OpenFavoritesPane(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).101)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn OpenFavoritesSettings(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).102)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn LaunchInHVSI<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrurl: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).103)(::core::mem::transmute_copy(self), bstrurl.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IShellUIHelper8 { type Vtable = IShellUIHelper8_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x66debcf2_05b0_4f07_b49b_b96241a65db2); } impl ::core::convert::From<IShellUIHelper8> for ::windows::core::IUnknown { fn from(value: IShellUIHelper8) -> Self { value.0 } } impl ::core::convert::From<&IShellUIHelper8> for ::windows::core::IUnknown { fn from(value: &IShellUIHelper8) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellUIHelper8 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellUIHelper8 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IShellUIHelper8> for IShellUIHelper7 { fn from(value: IShellUIHelper8) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper8> for IShellUIHelper7 { fn from(value: &IShellUIHelper8) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper7> for IShellUIHelper8 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper7> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper7> for &IShellUIHelper8 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper7> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper8> for IShellUIHelper6 { fn from(value: IShellUIHelper8) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper8> for IShellUIHelper6 { fn from(value: &IShellUIHelper8) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper6> for IShellUIHelper8 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper6> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper6> for &IShellUIHelper8 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper6> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper8> for IShellUIHelper5 { fn from(value: IShellUIHelper8) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper8> for IShellUIHelper5 { fn from(value: &IShellUIHelper8) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper5> for IShellUIHelper8 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper5> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper5> for &IShellUIHelper8 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper5> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper8> for IShellUIHelper4 { fn from(value: IShellUIHelper8) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper8> for IShellUIHelper4 { fn from(value: &IShellUIHelper8) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper4> for IShellUIHelper8 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper4> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper4> for &IShellUIHelper8 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper4> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper8> for IShellUIHelper3 { fn from(value: IShellUIHelper8) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper8> for IShellUIHelper3 { fn from(value: &IShellUIHelper8) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper3> for IShellUIHelper8 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper3> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper3> for &IShellUIHelper8 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper3> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper8> for IShellUIHelper2 { fn from(value: IShellUIHelper8) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper8> for IShellUIHelper2 { fn from(value: &IShellUIHelper8) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper2> for IShellUIHelper8 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper2> for &IShellUIHelper8 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper8> for IShellUIHelper { fn from(value: IShellUIHelper8) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper8> for IShellUIHelper { fn from(value: &IShellUIHelper8) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper> for IShellUIHelper8 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper> for &IShellUIHelper8 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellUIHelper8> for super::super::System::Com::IDispatch { fn from(value: IShellUIHelper8) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellUIHelper8> for super::super::System::Com::IDispatch { fn from(value: &IShellUIHelper8) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellUIHelper8 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellUIHelper8 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellUIHelper8_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, title: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn( this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, r#type: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, left: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, top: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, width: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, height: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pbool: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, strquery: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, vartargetframe: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fimport: i16, strimpexppath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, form: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, strsearch: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, strfailureurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvartargetframe: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, reserved: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarin: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarout: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fsqm: i16, fphishing: i16, bstrlocale: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstruri: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fset: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pdwresult: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfmigrated: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrname: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fcomplete: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfshown: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrurl: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, verb: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pdwresult: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, title: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, r#type: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fvisible: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fvisible: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fenable: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrrelativeurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfsitemode: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstriconurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrtooltip: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarbuttonid: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, buttonid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, fenabled: i16, fvisible: i16) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iconurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvardescription: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrheader: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstractionuri: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstriconuri: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarwindowtype: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uibuttonid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, bstriconurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrtooltip: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarstyleid: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uibuttonid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, uistyleid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fpreservestate: i16, puifirstrun: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrfiltername: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrprovisioningxml: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, puiresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchange: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pollinguris: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, starttime: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, uiupdaterecurrence: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pollinguris: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, starttime: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, uiupdaterecurrence: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchange: i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvarsitestate: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchange: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchange: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchange: i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrnotificationxml: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrnotificationid: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrnotificationtag: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, starttime: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, expirationtime: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrnotificationid: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pollinguri: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, starttime: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, uiupdaterecurrence: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrflagstring: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, vfflag: i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrflagstring: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, vfflag: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrvaluestring: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, dwvalue: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrvaluestring: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pdwvalue: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, flag: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, flag: i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, exists: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, automated: i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrresult: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrresult: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrresult: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrresult: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellUIHelper9(pub ::windows::core::IUnknown); impl IShellUIHelper9 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } pub unsafe fn ResetFirstBootMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ResetSafeMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn RefreshOfflineDesktop(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddFavorite<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, title: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), url.into_param().abi(), ::core::mem::transmute(title)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddChannel<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddDesktopComponent<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, r#type: Param1, left: *const super::super::System::Com::VARIANT, top: *const super::super::System::Com::VARIANT, width: *const super::super::System::Com::VARIANT, height: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), url.into_param().abi(), r#type.into_param().abi(), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsSubscribed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), url.into_param().abi(), &mut result__).from_abi::<i16>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn NavigateAndFind<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, strquery: Param1, vartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), url.into_param().abi(), strquery.into_param().abi(), ::core::mem::transmute(vartargetframe)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ImportExportFavorites<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, fimport: i16, strimpexppath: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(fimport), strimpexppath.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoCompleteSaveForm(&self, form: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(form)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoScan<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, strsearch: Param0, strfailureurl: Param1, pvartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), strsearch.into_param().abi(), strfailureurl.into_param().abi(), ::core::mem::transmute(pvartargetframe)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AutoCompleteAttach(&self, reserved: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(reserved)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ShowBrowserUI<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrname: Param0, pvarin: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), bstrname.into_param().abi(), ::core::mem::transmute(pvarin), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddSearchProvider<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } pub unsafe fn RunOnceShown(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SkipRunOnce(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CustomizeSettings<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, fsqm: i16, fphishing: i16, bstrlocale: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(fsqm), ::core::mem::transmute(fphishing), bstrlocale.into_param().abi()).ok() } pub unsafe fn SqmEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn PhishingEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn SkipTabsWelcome(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn DiagnoseConnection(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn CustomizeClearType(&self, fset: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), ::core::mem::transmute(fset)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsSearchProviderInstalled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), url.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn IsSearchMigrated(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), ::core::mem::transmute(fcomplete)).ok() } pub unsafe fn RunOnceHasShown(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddService<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), url.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsServiceInstalled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, verb: Param1) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), url.into_param().abi(), verb.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn InPrivateFilteringEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddToFavoritesBar<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, title: Param1, r#type: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).39)(::core::mem::transmute_copy(self), url.into_param().abi(), title.into_param().abi(), ::core::mem::transmute(r#type)).ok() } pub unsafe fn BuildNewTabPage(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).40)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn SetRecentlyClosedVisible(&self, fvisible: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).41)(::core::mem::transmute_copy(self), ::core::mem::transmute(fvisible)).ok() } pub unsafe fn SetActivitiesVisible(&self, fvisible: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).42)(::core::mem::transmute_copy(self), ::core::mem::transmute(fvisible)).ok() } pub unsafe fn ContentDiscoveryReset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).43)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn IsSuggestedSitesEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).44)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn EnableSuggestedSites(&self, fenable: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).45)(::core::mem::transmute_copy(self), ::core::mem::transmute(fenable)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn NavigateToSuggestedSites<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrrelativeurl: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).46)(::core::mem::transmute_copy(self), bstrrelativeurl.into_param().abi()).ok() } pub unsafe fn ShowTabsHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).47)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ShowInPrivateHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).48)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msIsSiteMode(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).49)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn msSiteModeShowThumbBar(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).50)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeAddThumbBarButton<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstriconurl: Param0, bstrtooltip: Param1) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).51)(::core::mem::transmute_copy(self), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeUpdateThumbBarButton<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, buttonid: Param0, fenabled: i16, fvisible: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).52)(::core::mem::transmute_copy(self), buttonid.into_param().abi(), ::core::mem::transmute(fenabled), ::core::mem::transmute(fvisible)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeSetIconOverlay<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, iconurl: Param0, pvardescription: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).53)(::core::mem::transmute_copy(self), iconurl.into_param().abi(), ::core::mem::transmute(pvardescription)).ok() } pub unsafe fn msSiteModeClearIconOverlay(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).54)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msAddSiteMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).55)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn msSiteModeCreateJumpList<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrheader: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).56)(::core::mem::transmute_copy(self), bstrheader.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeAddJumpListItem<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrname: Param0, bstractionuri: Param1, bstriconuri: Param2, pvarwindowtype: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).57)(::core::mem::transmute_copy(self), bstrname.into_param().abi(), bstractionuri.into_param().abi(), bstriconuri.into_param().abi(), ::core::mem::transmute(pvarwindowtype)).ok() } pub unsafe fn msSiteModeClearJumpList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).58)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msSiteModeShowJumpList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).59)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeAddButtonStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, uibuttonid: Param0, bstriconurl: Param1, bstrtooltip: Param2) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).60)(::core::mem::transmute_copy(self), uibuttonid.into_param().abi(), bstriconurl.into_param().abi(), bstrtooltip.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msSiteModeShowButtonStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, uibuttonid: Param0, uistyleid: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).61)(::core::mem::transmute_copy(self), uibuttonid.into_param().abi(), uistyleid.into_param().abi()).ok() } pub unsafe fn msSiteModeActivate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).62)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msIsSiteModeFirstRun(&self, fpreservestate: i16) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).63)(::core::mem::transmute_copy(self), ::core::mem::transmute(fpreservestate), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn msAddTrackingProtectionList<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, bstrfiltername: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).64)(::core::mem::transmute_copy(self), url.into_param().abi(), bstrfiltername.into_param().abi()).ok() } pub unsafe fn msTrackingProtectionEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).65)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn msActiveXFilteringEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).66)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msProvisionNetworks<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrprovisioningxml: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).67)(::core::mem::transmute_copy(self), bstrprovisioningxml.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } pub unsafe fn msReportSafeUrl(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).68)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msSiteModeRefreshBadge(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).69)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msSiteModeClearBadge(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).70)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msDiagnoseConnectionUILess(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).71)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msLaunchNetworkClientHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).72)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msChangeDefaultBrowser(&self, fchange: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).73)(::core::mem::transmute_copy(self), ::core::mem::transmute(fchange)).ok() } pub unsafe fn msStopPeriodicTileUpdate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).74)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msStartPeriodicTileUpdate<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, pollinguris: Param0, starttime: Param1, uiupdaterecurrence: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).75)(::core::mem::transmute_copy(self), pollinguris.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msStartPeriodicTileUpdateBatch<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, pollinguris: Param0, starttime: Param1, uiupdaterecurrence: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).76)(::core::mem::transmute_copy(self), pollinguris.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() } pub unsafe fn msClearTile(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).77)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msEnableTileNotificationQueue(&self, fchange: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).78)(::core::mem::transmute_copy(self), ::core::mem::transmute(fchange)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msPinnedSiteState(&self) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).79)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } pub unsafe fn msEnableTileNotificationQueueForSquare150x150(&self, fchange: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).80)(::core::mem::transmute_copy(self), ::core::mem::transmute(fchange)).ok() } pub unsafe fn msEnableTileNotificationQueueForWide310x150(&self, fchange: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).81)(::core::mem::transmute_copy(self), ::core::mem::transmute(fchange)).ok() } pub unsafe fn msEnableTileNotificationQueueForSquare310x310(&self, fchange: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).82)(::core::mem::transmute_copy(self), ::core::mem::transmute(fchange)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msScheduledTileNotification<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param3: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param4: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>( &self, bstrnotificationxml: Param0, bstrnotificationid: Param1, bstrnotificationtag: Param2, starttime: Param3, expirationtime: Param4, ) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).83)(::core::mem::transmute_copy(self), bstrnotificationxml.into_param().abi(), bstrnotificationid.into_param().abi(), bstrnotificationtag.into_param().abi(), starttime.into_param().abi(), expirationtime.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn msRemoveScheduledTileNotification<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrnotificationid: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).84)(::core::mem::transmute_copy(self), bstrnotificationid.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn msStartPeriodicBadgeUpdate<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, pollinguri: Param0, starttime: Param1, uiupdaterecurrence: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).85)(::core::mem::transmute_copy(self), pollinguri.into_param().abi(), starttime.into_param().abi(), uiupdaterecurrence.into_param().abi()).ok() } pub unsafe fn msStopPeriodicBadgeUpdate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).86)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn msLaunchInternetOptions(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).87)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetExperimentalFlag<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrflagstring: Param0, vfflag: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).88)(::core::mem::transmute_copy(self), bstrflagstring.into_param().abi(), ::core::mem::transmute(vfflag)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetExperimentalFlag<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrflagstring: Param0) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).89)(::core::mem::transmute_copy(self), bstrflagstring.into_param().abi(), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetExperimentalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrvaluestring: Param0, dwvalue: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).90)(::core::mem::transmute_copy(self), bstrvaluestring.into_param().abi(), ::core::mem::transmute(dwvalue)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetExperimentalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrvaluestring: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).91)(::core::mem::transmute_copy(self), bstrvaluestring.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn ResetAllExperimentalFlagsAndValues(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).92)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetNeedIEAutoLaunchFlag<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrurl: Param0) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).93)(::core::mem::transmute_copy(self), bstrurl.into_param().abi(), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetNeedIEAutoLaunchFlag<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrurl: Param0, flag: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).94)(::core::mem::transmute_copy(self), bstrurl.into_param().abi(), ::core::mem::transmute(flag)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn HasNeedIEAutoLaunchFlag<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrurl: Param0) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).95)(::core::mem::transmute_copy(self), bstrurl.into_param().abi(), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn LaunchIE<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrurl: Param0, automated: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).96)(::core::mem::transmute_copy(self), bstrurl.into_param().abi(), ::core::mem::transmute(automated)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCVListData(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).97)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCVListLocalData(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).98)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetEMIEListData(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).99)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetEMIEListLocalData(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).100)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn OpenFavoritesPane(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).101)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn OpenFavoritesSettings(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).102)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn LaunchInHVSI<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrurl: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).103)(::core::mem::transmute_copy(self), bstrurl.into_param().abi()).ok() } pub unsafe fn GetOSSku(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).104)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } } unsafe impl ::windows::core::Interface for IShellUIHelper9 { type Vtable = IShellUIHelper9_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6cdf73b0_7f2f_451f_bc0f_63e0f3284e54); } impl ::core::convert::From<IShellUIHelper9> for ::windows::core::IUnknown { fn from(value: IShellUIHelper9) -> Self { value.0 } } impl ::core::convert::From<&IShellUIHelper9> for ::windows::core::IUnknown { fn from(value: &IShellUIHelper9) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellUIHelper9 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellUIHelper9 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IShellUIHelper9> for IShellUIHelper8 { fn from(value: IShellUIHelper9) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper9> for IShellUIHelper8 { fn from(value: &IShellUIHelper9) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper8> for IShellUIHelper9 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper8> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper8> for &IShellUIHelper9 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper8> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper9> for IShellUIHelper7 { fn from(value: IShellUIHelper9) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper9> for IShellUIHelper7 { fn from(value: &IShellUIHelper9) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper7> for IShellUIHelper9 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper7> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper7> for &IShellUIHelper9 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper7> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper9> for IShellUIHelper6 { fn from(value: IShellUIHelper9) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper9> for IShellUIHelper6 { fn from(value: &IShellUIHelper9) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper6> for IShellUIHelper9 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper6> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper6> for &IShellUIHelper9 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper6> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper9> for IShellUIHelper5 { fn from(value: IShellUIHelper9) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper9> for IShellUIHelper5 { fn from(value: &IShellUIHelper9) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper5> for IShellUIHelper9 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper5> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper5> for &IShellUIHelper9 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper5> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper9> for IShellUIHelper4 { fn from(value: IShellUIHelper9) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper9> for IShellUIHelper4 { fn from(value: &IShellUIHelper9) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper4> for IShellUIHelper9 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper4> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper4> for &IShellUIHelper9 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper4> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper9> for IShellUIHelper3 { fn from(value: IShellUIHelper9) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper9> for IShellUIHelper3 { fn from(value: &IShellUIHelper9) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper3> for IShellUIHelper9 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper3> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper3> for &IShellUIHelper9 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper3> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper9> for IShellUIHelper2 { fn from(value: IShellUIHelper9) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper9> for IShellUIHelper2 { fn from(value: &IShellUIHelper9) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper2> for IShellUIHelper9 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper2> for &IShellUIHelper9 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellUIHelper9> for IShellUIHelper { fn from(value: IShellUIHelper9) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellUIHelper9> for IShellUIHelper { fn from(value: &IShellUIHelper9) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper> for IShellUIHelper9 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellUIHelper> for &IShellUIHelper9 { fn into_param(self) -> ::windows::core::Param<'a, IShellUIHelper> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellUIHelper9> for super::super::System::Com::IDispatch { fn from(value: IShellUIHelper9) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellUIHelper9> for super::super::System::Com::IDispatch { fn from(value: &IShellUIHelper9) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellUIHelper9 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellUIHelper9 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellUIHelper9_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, title: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn( this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, r#type: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, left: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, top: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, width: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, height: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, ) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pbool: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, strquery: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, vartargetframe: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fimport: i16, strimpexppath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, form: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, strsearch: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, strfailureurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvartargetframe: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, reserved: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarin: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarout: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fsqm: i16, fphishing: i16, bstrlocale: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstruri: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fset: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pdwresult: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfmigrated: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrname: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fcomplete: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfshown: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrurl: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, verb: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pdwresult: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, title: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, r#type: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fvisible: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fvisible: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fenable: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrrelativeurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfsitemode: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstriconurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrtooltip: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarbuttonid: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, buttonid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, fenabled: i16, fvisible: i16) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iconurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvardescription: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrheader: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstractionuri: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstriconuri: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarwindowtype: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uibuttonid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, bstriconurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrtooltip: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarstyleid: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uibuttonid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, uistyleid: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fpreservestate: i16, puifirstrun: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrfiltername: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfenabled: *mut i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrprovisioningxml: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, puiresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchange: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pollinguris: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, starttime: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, uiupdaterecurrence: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pollinguris: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, starttime: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, uiupdaterecurrence: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchange: i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvarsitestate: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchange: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchange: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fchange: i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrnotificationxml: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrnotificationid: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrnotificationtag: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, starttime: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, expirationtime: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrnotificationid: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pollinguri: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, starttime: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, uiupdaterecurrence: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrflagstring: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, vfflag: i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrflagstring: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, vfflag: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrvaluestring: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, dwvalue: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrvaluestring: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pdwvalue: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, flag: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, flag: i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, exists: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, automated: i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrresult: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrresult: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrresult: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrresult: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrurl: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwresult: *mut u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellView(pub ::windows::core::IUnknown); impl IShellView { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetWindow(&self) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ContextSensitiveHelp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fentermode: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), fentermode.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn TranslateAccelerator(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(pmsg)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn EnableModeless<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fenable: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), fenable.into_param().abi()).ok() } pub unsafe fn UIActivate(&self, ustate: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(ustate)).ok() } pub unsafe fn Refresh(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CreateViewWindow<'a, Param0: ::windows::core::IntoParam<'a, IShellView>, Param2: ::windows::core::IntoParam<'a, IShellBrowser>>(&self, psvprevious: Param0, pfs: *const FOLDERSETTINGS, psb: Param2, prcview: *const super::super::Foundation::RECT) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), psvprevious.into_param().abi(), ::core::mem::transmute(pfs), psb.into_param().abi(), ::core::mem::transmute(prcview), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } pub unsafe fn DestroyViewWindow(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GetCurrentInfo(&self) -> ::windows::core::Result<FOLDERSETTINGS> { let mut result__: <FOLDERSETTINGS as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<FOLDERSETTINGS>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub unsafe fn AddPropertySheetPages<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, dwreserved: u32, pfn: ::core::option::Option<super::Controls::LPFNSVADDPROPSHEETPAGE>, lparam: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwreserved), ::core::mem::transmute(pfn), lparam.into_param().abi()).ok() } pub unsafe fn SaveViewState(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SelectItem(&self, pidlitem: *const Common::ITEMIDLIST, uflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidlitem), ::core::mem::transmute(uflags)).ok() } pub unsafe fn GetItemObject<T: ::windows::core::Interface>(&self, uitem: u32) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(uitem), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } } unsafe impl ::windows::core::Interface for IShellView { type Vtable = IShellView_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x000214e3_0000_0000_c000_000000000046); } impl ::core::convert::From<IShellView> for ::windows::core::IUnknown { fn from(value: IShellView) -> Self { value.0 } } impl ::core::convert::From<&IShellView> for ::windows::core::IUnknown { fn from(value: &IShellView) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellView { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellView { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<IShellView> for super::super::System::Ole::IOleWindow { fn from(value: IShellView) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<&IShellView> for super::super::System::Ole::IOleWindow { fn from(value: &IShellView) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for IShellView { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for &IShellView { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellView_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fentermode: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fenable: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ustate: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psvprevious: ::windows::core::RawPtr, pfs: *const FOLDERSETTINGS, psb: ::windows::core::RawPtr, prcview: *const super::super::Foundation::RECT, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfs: *mut FOLDERSETTINGS) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwreserved: u32, pfn: ::windows::core::RawPtr, lparam: super::super::Foundation::LPARAM) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidlitem: *const Common::ITEMIDLIST, uflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uitem: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellView2(pub ::windows::core::IUnknown); impl IShellView2 { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetWindow(&self) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ContextSensitiveHelp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fentermode: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), fentermode.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn TranslateAccelerator(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(pmsg)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn EnableModeless<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fenable: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), fenable.into_param().abi()).ok() } pub unsafe fn UIActivate(&self, ustate: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(ustate)).ok() } pub unsafe fn Refresh(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CreateViewWindow<'a, Param0: ::windows::core::IntoParam<'a, IShellView>, Param2: ::windows::core::IntoParam<'a, IShellBrowser>>(&self, psvprevious: Param0, pfs: *const FOLDERSETTINGS, psb: Param2, prcview: *const super::super::Foundation::RECT) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), psvprevious.into_param().abi(), ::core::mem::transmute(pfs), psb.into_param().abi(), ::core::mem::transmute(prcview), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } pub unsafe fn DestroyViewWindow(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GetCurrentInfo(&self) -> ::windows::core::Result<FOLDERSETTINGS> { let mut result__: <FOLDERSETTINGS as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<FOLDERSETTINGS>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub unsafe fn AddPropertySheetPages<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, dwreserved: u32, pfn: ::core::option::Option<super::Controls::LPFNSVADDPROPSHEETPAGE>, lparam: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwreserved), ::core::mem::transmute(pfn), lparam.into_param().abi()).ok() } pub unsafe fn SaveViewState(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SelectItem(&self, pidlitem: *const Common::ITEMIDLIST, uflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidlitem), ::core::mem::transmute(uflags)).ok() } pub unsafe fn GetItemObject<T: ::windows::core::Interface>(&self, uitem: u32) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(uitem), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } pub unsafe fn GetView(&self, pvid: *mut ::windows::core::GUID, uview: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(pvid), ::core::mem::transmute(uview)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CreateViewWindow2(&self, lpparams: *const SV2CVW2_PARAMS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), ::core::mem::transmute(lpparams)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn HandleRename(&self, pidlnew: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidlnew)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn SelectAndPositionItem(&self, pidlitem: *const Common::ITEMIDLIST, uflags: u32, ppt: *const super::super::Foundation::POINT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidlitem), ::core::mem::transmute(uflags), ::core::mem::transmute(ppt)).ok() } } unsafe impl ::windows::core::Interface for IShellView2 { type Vtable = IShellView2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x88e39e80_3578_11cf_ae69_08002b2e1262); } impl ::core::convert::From<IShellView2> for ::windows::core::IUnknown { fn from(value: IShellView2) -> Self { value.0 } } impl ::core::convert::From<&IShellView2> for ::windows::core::IUnknown { fn from(value: &IShellView2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellView2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellView2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IShellView2> for IShellView { fn from(value: IShellView2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellView2> for IShellView { fn from(value: &IShellView2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellView> for IShellView2 { fn into_param(self) -> ::windows::core::Param<'a, IShellView> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellView> for &IShellView2 { fn into_param(self) -> ::windows::core::Param<'a, IShellView> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<IShellView2> for super::super::System::Ole::IOleWindow { fn from(value: IShellView2) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<&IShellView2> for super::super::System::Ole::IOleWindow { fn from(value: &IShellView2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for IShellView2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for &IShellView2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellView2_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fentermode: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fenable: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ustate: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psvprevious: ::windows::core::RawPtr, pfs: *const FOLDERSETTINGS, psb: ::windows::core::RawPtr, prcview: *const super::super::Foundation::RECT, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfs: *mut FOLDERSETTINGS) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwreserved: u32, pfn: ::windows::core::RawPtr, lparam: super::super::Foundation::LPARAM) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidlitem: *const Common::ITEMIDLIST, uflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uitem: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvid: *mut ::windows::core::GUID, uview: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lpparams: *const ::core::mem::ManuallyDrop<SV2CVW2_PARAMS>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidlnew: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidlitem: *const Common::ITEMIDLIST, uflags: u32, ppt: *const super::super::Foundation::POINT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellView3(pub ::windows::core::IUnknown); impl IShellView3 { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetWindow(&self) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ContextSensitiveHelp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fentermode: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), fentermode.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn TranslateAccelerator(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(pmsg)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn EnableModeless<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fenable: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), fenable.into_param().abi()).ok() } pub unsafe fn UIActivate(&self, ustate: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(ustate)).ok() } pub unsafe fn Refresh(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CreateViewWindow<'a, Param0: ::windows::core::IntoParam<'a, IShellView>, Param2: ::windows::core::IntoParam<'a, IShellBrowser>>(&self, psvprevious: Param0, pfs: *const FOLDERSETTINGS, psb: Param2, prcview: *const super::super::Foundation::RECT) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), psvprevious.into_param().abi(), ::core::mem::transmute(pfs), psb.into_param().abi(), ::core::mem::transmute(prcview), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } pub unsafe fn DestroyViewWindow(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GetCurrentInfo(&self) -> ::windows::core::Result<FOLDERSETTINGS> { let mut result__: <FOLDERSETTINGS as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<FOLDERSETTINGS>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub unsafe fn AddPropertySheetPages<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(&self, dwreserved: u32, pfn: ::core::option::Option<super::Controls::LPFNSVADDPROPSHEETPAGE>, lparam: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwreserved), ::core::mem::transmute(pfn), lparam.into_param().abi()).ok() } pub unsafe fn SaveViewState(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn SelectItem(&self, pidlitem: *const Common::ITEMIDLIST, uflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidlitem), ::core::mem::transmute(uflags)).ok() } pub unsafe fn GetItemObject<T: ::windows::core::Interface>(&self, uitem: u32) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(uitem), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } pub unsafe fn GetView(&self, pvid: *mut ::windows::core::GUID, uview: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(pvid), ::core::mem::transmute(uview)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CreateViewWindow2(&self, lpparams: *const SV2CVW2_PARAMS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), ::core::mem::transmute(lpparams)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn HandleRename(&self, pidlnew: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidlnew)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe fn SelectAndPositionItem(&self, pidlitem: *const Common::ITEMIDLIST, uflags: u32, ppt: *const super::super::Foundation::POINT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidlitem), ::core::mem::transmute(uflags), ::core::mem::transmute(ppt)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CreateViewWindow3<'a, Param0: ::windows::core::IntoParam<'a, IShellBrowser>, Param1: ::windows::core::IntoParam<'a, IShellView>>(&self, psbowner: Param0, psvprev: Param1, dwviewflags: u32, dwmask: FOLDERFLAGS, dwflags: FOLDERFLAGS, fvmode: FOLDERVIEWMODE, pvid: *const ::windows::core::GUID, prcview: *const super::super::Foundation::RECT) -> ::windows::core::Result<super::super::Foundation::HWND> { let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)( ::core::mem::transmute_copy(self), psbowner.into_param().abi(), psvprev.into_param().abi(), ::core::mem::transmute(dwviewflags), ::core::mem::transmute(dwmask), ::core::mem::transmute(dwflags), ::core::mem::transmute(fvmode), ::core::mem::transmute(pvid), ::core::mem::transmute(prcview), &mut result__, ) .from_abi::<super::super::Foundation::HWND>(result__) } } unsafe impl ::windows::core::Interface for IShellView3 { type Vtable = IShellView3_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xec39fa88_f8af_41c5_8421_38bed28f4673); } impl ::core::convert::From<IShellView3> for ::windows::core::IUnknown { fn from(value: IShellView3) -> Self { value.0 } } impl ::core::convert::From<&IShellView3> for ::windows::core::IUnknown { fn from(value: &IShellView3) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellView3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellView3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IShellView3> for IShellView2 { fn from(value: IShellView3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellView3> for IShellView2 { fn from(value: &IShellView3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellView2> for IShellView3 { fn into_param(self) -> ::windows::core::Param<'a, IShellView2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellView2> for &IShellView3 { fn into_param(self) -> ::windows::core::Param<'a, IShellView2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IShellView3> for IShellView { fn from(value: IShellView3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IShellView3> for IShellView { fn from(value: &IShellView3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellView> for IShellView3 { fn into_param(self) -> ::windows::core::Param<'a, IShellView> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellView> for &IShellView3 { fn into_param(self) -> ::windows::core::Param<'a, IShellView> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<IShellView3> for super::super::System::Ole::IOleWindow { fn from(value: IShellView3) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Ole")] impl ::core::convert::From<&IShellView3> for super::super::System::Ole::IOleWindow { fn from(value: &IShellView3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for IShellView3 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Ole")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Ole::IOleWindow> for &IShellView3 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Ole::IOleWindow> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellView3_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fentermode: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmsg: *const super::WindowsAndMessaging::MSG) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fenable: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ustate: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psvprevious: ::windows::core::RawPtr, pfs: *const FOLDERSETTINGS, psb: ::windows::core::RawPtr, prcview: *const super::super::Foundation::RECT, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfs: *mut FOLDERSETTINGS) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwreserved: u32, pfn: ::windows::core::RawPtr, lparam: super::super::Foundation::LPARAM) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidlitem: *const Common::ITEMIDLIST, uflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uitem: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvid: *mut ::windows::core::GUID, uview: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lpparams: *const ::core::mem::ManuallyDrop<SV2CVW2_PARAMS>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidlnew: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidlitem: *const Common::ITEMIDLIST, uflags: u32, ppt: *const super::super::Foundation::POINT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psbowner: ::windows::core::RawPtr, psvprev: ::windows::core::RawPtr, dwviewflags: u32, dwmask: FOLDERFLAGS, dwflags: FOLDERFLAGS, fvmode: FOLDERVIEWMODE, pvid: *const ::windows::core::GUID, prcview: *const super::super::Foundation::RECT, phwndview: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IShellWindows(pub ::windows::core::IUnknown); impl IShellWindows { pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Item<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, index: Param0) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), index.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__: <::windows::core::IUnknown as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<::windows::core::IUnknown>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Register<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch>>(&self, pid: Param0, hwnd: i32, swclass: i32) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), pid.into_param().abi(), ::core::mem::transmute(hwnd), ::core::mem::transmute(swclass), &mut result__).from_abi::<i32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn RegisterPending(&self, lthreadid: i32, pvarloc: *const super::super::System::Com::VARIANT, pvarlocroot: *const super::super::System::Com::VARIANT, swclass: i32) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(lthreadid), ::core::mem::transmute(pvarloc), ::core::mem::transmute(pvarlocroot), ::core::mem::transmute(swclass), &mut result__).from_abi::<i32>(result__) } pub unsafe fn Revoke(&self, lcookie: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(lcookie)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn OnNavigate(&self, lcookie: i32, pvarloc: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(lcookie), ::core::mem::transmute(pvarloc)).ok() } pub unsafe fn OnActivated(&self, lcookie: i32, factive: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(lcookie), ::core::mem::transmute(factive)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn FindWindowSW(&self, pvarloc: *const super::super::System::Com::VARIANT, pvarlocroot: *const super::super::System::Com::VARIANT, swclass: i32, phwnd: *mut i32, swfwoptions: i32, ppdispout: *mut ::core::option::Option<super::super::System::Com::IDispatch>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(pvarloc), ::core::mem::transmute(pvarlocroot), ::core::mem::transmute(swclass), ::core::mem::transmute(phwnd), ::core::mem::transmute(swfwoptions), ::core::mem::transmute(ppdispout)).ok() } pub unsafe fn OnCreated<'a, Param1: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, lcookie: i32, punk: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(lcookie), punk.into_param().abi()).ok() } pub unsafe fn ProcessAttachDetach(&self, fattach: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), ::core::mem::transmute(fattach)).ok() } } unsafe impl ::windows::core::Interface for IShellWindows { type Vtable = IShellWindows_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x85cb6900_4d95_11cf_960c_0080c7f4ee85); } impl ::core::convert::From<IShellWindows> for ::windows::core::IUnknown { fn from(value: IShellWindows) -> Self { value.0 } } impl ::core::convert::From<&IShellWindows> for ::windows::core::IUnknown { fn from(value: &IShellWindows) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IShellWindows { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IShellWindows { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IShellWindows> for super::super::System::Com::IDispatch { fn from(value: IShellWindows) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IShellWindows> for super::super::System::Com::IDispatch { fn from(value: &IShellWindows) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IShellWindows { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IShellWindows { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IShellWindows_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, index: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, folder: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppunk: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pid: ::windows::core::RawPtr, hwnd: i32, swclass: i32, plcookie: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lthreadid: i32, pvarloc: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarlocroot: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, swclass: i32, plcookie: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lcookie: i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lcookie: i32, pvarloc: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lcookie: i32, factive: i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvarloc: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarlocroot: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, swclass: i32, phwnd: *mut i32, swfwoptions: i32, ppdispout: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lcookie: i32, punk: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fattach: i16) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISortColumnArray(pub ::windows::core::IUnknown); impl ISortColumnArray { pub unsafe fn GetCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetAt(&self, index: u32) -> ::windows::core::Result<SORTCOLUMN> { let mut result__: <SORTCOLUMN as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(index), &mut result__).from_abi::<SORTCOLUMN>(result__) } pub unsafe fn GetSortType(&self) -> ::windows::core::Result<SORT_ORDER_TYPE> { let mut result__: <SORT_ORDER_TYPE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<SORT_ORDER_TYPE>(result__) } } unsafe impl ::windows::core::Interface for ISortColumnArray { type Vtable = ISortColumnArray_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6dfc60fb_f2e9_459b_beb5_288f1a7c7d54); } impl ::core::convert::From<ISortColumnArray> for ::windows::core::IUnknown { fn from(value: ISortColumnArray) -> Self { value.0 } } impl ::core::convert::From<&ISortColumnArray> for ::windows::core::IUnknown { fn from(value: &ISortColumnArray) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISortColumnArray { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISortColumnArray { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISortColumnArray_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, columncount: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, index: u32, sortcolumn: *mut SORTCOLUMN) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, r#type: *mut SORT_ORDER_TYPE) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IStartMenuPinnedList(pub ::windows::core::IUnknown); impl IStartMenuPinnedList { pub unsafe fn RemoveFromList<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, pitem: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pitem.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IStartMenuPinnedList { type Vtable = IStartMenuPinnedList_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4cd19ada_25a5_4a32_b3b7_347bee5be36b); } impl ::core::convert::From<IStartMenuPinnedList> for ::windows::core::IUnknown { fn from(value: IStartMenuPinnedList) -> Self { value.0 } } impl ::core::convert::From<&IStartMenuPinnedList> for ::windows::core::IUnknown { fn from(value: &IStartMenuPinnedList) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IStartMenuPinnedList { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IStartMenuPinnedList { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IStartMenuPinnedList_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, pitem: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IStorageProviderBanners(pub ::windows::core::IUnknown); impl IStorageProviderBanners { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetBanner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, provideridentity: Param0, subscriptionid: Param1, contentid: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), provideridentity.into_param().abi(), subscriptionid.into_param().abi(), contentid.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ClearBanner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, provideridentity: Param0, subscriptionid: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), provideridentity.into_param().abi(), subscriptionid.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ClearAllBanners<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, provideridentity: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), provideridentity.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetBanner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, provideridentity: Param0, subscriptionid: Param1) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), provideridentity.into_param().abi(), subscriptionid.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } } unsafe impl ::windows::core::Interface for IStorageProviderBanners { type Vtable = IStorageProviderBanners_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5efb46d7_47c0_4b68_acda_ded47c90ec91); } impl ::core::convert::From<IStorageProviderBanners> for ::windows::core::IUnknown { fn from(value: IStorageProviderBanners) -> Self { value.0 } } impl ::core::convert::From<&IStorageProviderBanners> for ::windows::core::IUnknown { fn from(value: &IStorageProviderBanners) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IStorageProviderBanners { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IStorageProviderBanners { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IStorageProviderBanners_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, provideridentity: super::super::Foundation::PWSTR, subscriptionid: super::super::Foundation::PWSTR, contentid: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, provideridentity: super::super::Foundation::PWSTR, subscriptionid: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, provideridentity: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, provideridentity: super::super::Foundation::PWSTR, subscriptionid: super::super::Foundation::PWSTR, contentid: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IStorageProviderCopyHook(pub ::windows::core::IUnknown); impl IStorageProviderCopyHook { #[cfg(feature = "Win32_Foundation")] pub unsafe fn CopyCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param5: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, hwnd: Param0, operation: u32, flags: u32, srcfile: Param3, srcattribs: u32, destfile: Param5, destattribs: u32) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(operation), ::core::mem::transmute(flags), srcfile.into_param().abi(), ::core::mem::transmute(srcattribs), destfile.into_param().abi(), ::core::mem::transmute(destattribs), &mut result__).from_abi::<u32>(result__) } } unsafe impl ::windows::core::Interface for IStorageProviderCopyHook { type Vtable = IStorageProviderCopyHook_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7bf992a9_af7a_4dba_b2e5_4d080b1ecbc6); } impl ::core::convert::From<IStorageProviderCopyHook> for ::windows::core::IUnknown { fn from(value: IStorageProviderCopyHook) -> Self { value.0 } } impl ::core::convert::From<&IStorageProviderCopyHook> for ::windows::core::IUnknown { fn from(value: &IStorageProviderCopyHook) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IStorageProviderCopyHook { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IStorageProviderCopyHook { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IStorageProviderCopyHook_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, operation: u32, flags: u32, srcfile: super::super::Foundation::PWSTR, srcattribs: u32, destfile: super::super::Foundation::PWSTR, destattribs: u32, result: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IStorageProviderHandler(pub ::windows::core::IUnknown); impl IStorageProviderHandler { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetPropertyHandlerFromPath<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, path: Param0) -> ::windows::core::Result<IStorageProviderPropertyHandler> { let mut result__: <IStorageProviderPropertyHandler as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), path.into_param().abi(), &mut result__).from_abi::<IStorageProviderPropertyHandler>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetPropertyHandlerFromUri<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, uri: Param0) -> ::windows::core::Result<IStorageProviderPropertyHandler> { let mut result__: <IStorageProviderPropertyHandler as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), uri.into_param().abi(), &mut result__).from_abi::<IStorageProviderPropertyHandler>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetPropertyHandlerFromFileId<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, fileid: Param0) -> ::windows::core::Result<IStorageProviderPropertyHandler> { let mut result__: <IStorageProviderPropertyHandler as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), fileid.into_param().abi(), &mut result__).from_abi::<IStorageProviderPropertyHandler>(result__) } } unsafe impl ::windows::core::Interface for IStorageProviderHandler { type Vtable = IStorageProviderHandler_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x162c6fb5_44d3_435b_903d_e613fa093fb5); } impl ::core::convert::From<IStorageProviderHandler> for ::windows::core::IUnknown { fn from(value: IStorageProviderHandler) -> Self { value.0 } } impl ::core::convert::From<&IStorageProviderHandler> for ::windows::core::IUnknown { fn from(value: &IStorageProviderHandler) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IStorageProviderHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IStorageProviderHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IStorageProviderHandler_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, path: super::super::Foundation::PWSTR, propertyhandler: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, uri: super::super::Foundation::PWSTR, propertyhandler: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fileid: super::super::Foundation::PWSTR, propertyhandler: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IStorageProviderPropertyHandler(pub ::windows::core::IUnknown); impl IStorageProviderPropertyHandler { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn RetrieveProperties(&self, propertiestoretrieve: *const PropertiesSystem::PROPERTYKEY, propertiestoretrievecount: u32) -> ::windows::core::Result<PropertiesSystem::IPropertyStore> { let mut result__: <PropertiesSystem::IPropertyStore as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(propertiestoretrieve), ::core::mem::transmute(propertiestoretrievecount), &mut result__).from_abi::<PropertiesSystem::IPropertyStore>(result__) } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SaveProperties<'a, Param0: ::windows::core::IntoParam<'a, PropertiesSystem::IPropertyStore>>(&self, propertiestosave: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), propertiestosave.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IStorageProviderPropertyHandler { type Vtable = IStorageProviderPropertyHandler_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x301dfbe5_524c_4b0f_8b2d_21c40b3a2988); } impl ::core::convert::From<IStorageProviderPropertyHandler> for ::windows::core::IUnknown { fn from(value: IStorageProviderPropertyHandler) -> Self { value.0 } } impl ::core::convert::From<&IStorageProviderPropertyHandler> for ::windows::core::IUnknown { fn from(value: &IStorageProviderPropertyHandler) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IStorageProviderPropertyHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IStorageProviderPropertyHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IStorageProviderPropertyHandler_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, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, propertiestoretrieve: *const PropertiesSystem::PROPERTYKEY, propertiestoretrievecount: u32, retrievedproperties: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, propertiestosave: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IStreamAsync(pub ::windows::core::IUnknown); impl IStreamAsync { pub unsafe fn Read(&self, pv: *mut ::core::ffi::c_void, cb: u32, pcbread: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pv), ::core::mem::transmute(cb), ::core::mem::transmute(pcbread)).ok() } pub unsafe fn Write(&self, pv: *const ::core::ffi::c_void, cb: u32) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pv), ::core::mem::transmute(cb), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Seek(&self, dlibmove: i64, dworigin: super::super::System::Com::STREAM_SEEK) -> ::windows::core::Result<u64> { let mut result__: <u64 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dlibmove), ::core::mem::transmute(dworigin), &mut result__).from_abi::<u64>(result__) } pub unsafe fn SetSize(&self, libnewsize: u64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(libnewsize)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn CopyTo<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>>(&self, pstm: Param0, cb: u64, pcbread: *mut u64, pcbwritten: *mut u64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pstm.into_param().abi(), ::core::mem::transmute(cb), ::core::mem::transmute(pcbread), ::core::mem::transmute(pcbwritten)).ok() } pub unsafe fn Commit(&self, grfcommitflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(grfcommitflags)).ok() } pub unsafe fn Revert(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(liboffset), ::core::mem::transmute(cb), ::core::mem::transmute(dwlocktype)).ok() } pub unsafe fn UnlockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(liboffset), ::core::mem::transmute(cb), ::core::mem::transmute(dwlocktype)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe fn Stat(&self, pstatstg: *mut super::super::System::Com::STATSTG, grfstatflag: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(pstatstg), ::core::mem::transmute(grfstatflag)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Clone(&self) -> ::windows::core::Result<super::super::System::Com::IStream> { let mut result__: <super::super::System::Com::IStream as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IStream>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] pub unsafe fn ReadAsync(&self, pv: *mut ::core::ffi::c_void, cb: u32, pcbread: *mut u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(pv), ::core::mem::transmute(cb), ::core::mem::transmute(pcbread), ::core::mem::transmute(lpoverlapped)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] pub unsafe fn WriteAsync(&self, lpbuffer: *const ::core::ffi::c_void, cb: u32, pcbwritten: *mut u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(lpbuffer), ::core::mem::transmute(cb), ::core::mem::transmute(pcbwritten), ::core::mem::transmute(lpoverlapped)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] pub unsafe fn OverlappedResult<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpnumberofbytestransferred: *mut u32, bwait: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(lpoverlapped), ::core::mem::transmute(lpnumberofbytestransferred), bwait.into_param().abi()).ok() } pub unsafe fn CancelIo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IStreamAsync { type Vtable = IStreamAsync_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfe0b6665_e0ca_49b9_a178_2b5cb48d92a5); } impl ::core::convert::From<IStreamAsync> for ::windows::core::IUnknown { fn from(value: IStreamAsync) -> Self { value.0 } } impl ::core::convert::From<&IStreamAsync> for ::windows::core::IUnknown { fn from(value: &IStreamAsync) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IStreamAsync { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IStreamAsync { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IStreamAsync> for super::super::System::Com::IStream { fn from(value: IStreamAsync) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IStreamAsync> for super::super::System::Com::IStream { fn from(value: &IStreamAsync) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IStream> for IStreamAsync { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IStream> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IStream> for &IStreamAsync { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IStream> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IStreamAsync> for super::super::System::Com::ISequentialStream { fn from(value: IStreamAsync) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IStreamAsync> for super::super::System::Com::ISequentialStream { fn from(value: &IStreamAsync) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::ISequentialStream> for IStreamAsync { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::ISequentialStream> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::ISequentialStream> for &IStreamAsync { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::ISequentialStream> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IStreamAsync_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, pv: *mut ::core::ffi::c_void, cb: u32, pcbread: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pv: *const ::core::ffi::c_void, cb: u32, pcbwritten: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dlibmove: i64, dworigin: super::super::System::Com::STREAM_SEEK, plibnewposition: *mut u64) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, libnewsize: u64) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pstm: ::windows::core::RawPtr, cb: u64, pcbread: *mut u64, pcbwritten: *mut u64) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, grfcommitflags: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pstatstg: *mut super::super::System::Com::STATSTG, grfstatflag: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppstm: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pv: *mut ::core::ffi::c_void, cb: u32, pcbread: *mut u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_IO")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lpbuffer: *const ::core::ffi::c_void, cb: u32, pcbwritten: *mut u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_IO")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpnumberofbytestransferred: *mut u32, bwait: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_IO")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IStreamUnbufferedInfo(pub ::windows::core::IUnknown); impl IStreamUnbufferedInfo { pub unsafe fn GetSectorSize(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } } unsafe impl ::windows::core::Interface for IStreamUnbufferedInfo { type Vtable = IStreamUnbufferedInfo_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8a68fdda_1fdc_4c20_8ceb_416643b5a625); } impl ::core::convert::From<IStreamUnbufferedInfo> for ::windows::core::IUnknown { fn from(value: IStreamUnbufferedInfo) -> Self { value.0 } } impl ::core::convert::From<&IStreamUnbufferedInfo> for ::windows::core::IUnknown { fn from(value: &IStreamUnbufferedInfo) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IStreamUnbufferedInfo { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IStreamUnbufferedInfo { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IStreamUnbufferedInfo_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, pcbsectorsize: *mut u32) -> ::windows::core::HRESULT, ); #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn IStream_Copy<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>>(pstmfrom: Param0, pstmto: Param1, cb: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IStream_Copy(pstmfrom: ::windows::core::RawPtr, pstmto: ::windows::core::RawPtr, cb: u32) -> ::windows::core::HRESULT; } IStream_Copy(pstmfrom.into_param().abi(), pstmto.into_param().abi(), ::core::mem::transmute(cb)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn IStream_Read<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>>(pstm: Param0, pv: *mut ::core::ffi::c_void, cb: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IStream_Read(pstm: ::windows::core::RawPtr, pv: *mut ::core::ffi::c_void, cb: u32) -> ::windows::core::HRESULT; } IStream_Read(pstm.into_param().abi(), ::core::mem::transmute(pv), ::core::mem::transmute(cb)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn IStream_ReadPidl<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>>(pstm: Param0) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IStream_ReadPidl(pstm: ::windows::core::RawPtr, ppidlout: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT; } let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); IStream_ReadPidl(pstm.into_param().abi(), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] pub unsafe fn IStream_ReadStr<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>>(pstm: Param0) -> ::windows::core::Result<super::super::Foundation::PWSTR> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IStream_ReadStr(pstm: ::windows::core::RawPtr, ppsz: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); IStream_ReadStr(pstm.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn IStream_Reset<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>>(pstm: Param0) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IStream_Reset(pstm: ::windows::core::RawPtr) -> ::windows::core::HRESULT; } IStream_Reset(pstm.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn IStream_Size<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>>(pstm: Param0) -> ::windows::core::Result<u64> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IStream_Size(pstm: ::windows::core::RawPtr, pui: *mut u64) -> ::windows::core::HRESULT; } let mut result__: <u64 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); IStream_Size(pstm.into_param().abi(), &mut result__).from_abi::<u64>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn IStream_Write<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>>(pstm: Param0, pv: *const ::core::ffi::c_void, cb: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IStream_Write(pstm: ::windows::core::RawPtr, pv: *const ::core::ffi::c_void, cb: u32) -> ::windows::core::HRESULT; } IStream_Write(pstm.into_param().abi(), ::core::mem::transmute(pv), ::core::mem::transmute(cb)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn IStream_WritePidl<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>>(pstm: Param0, pidlwrite: *const Common::ITEMIDLIST) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IStream_WritePidl(pstm: ::windows::core::RawPtr, pidlwrite: *const Common::ITEMIDLIST) -> ::windows::core::HRESULT; } IStream_WritePidl(pstm.into_param().abi(), ::core::mem::transmute(pidlwrite)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] pub unsafe fn IStream_WriteStr<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pstm: Param0, psz: Param1) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IStream_WriteStr(pstm: ::windows::core::RawPtr, psz: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } IStream_WriteStr(pstm.into_param().abi(), psz.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISuspensionDependencyManager(pub ::windows::core::IUnknown); impl ISuspensionDependencyManager { #[cfg(feature = "Win32_Foundation")] pub unsafe fn RegisterAsChild<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(&self, processhandle: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), processhandle.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GroupChildWithParent<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(&self, childprocesshandle: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), childprocesshandle.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn UngroupChildFromParent<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(&self, childprocesshandle: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), childprocesshandle.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for ISuspensionDependencyManager { type Vtable = ISuspensionDependencyManager_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x52b83a42_2543_416a_81d9_c0de7969c8b3); } impl ::core::convert::From<ISuspensionDependencyManager> for ::windows::core::IUnknown { fn from(value: ISuspensionDependencyManager) -> Self { value.0 } } impl ::core::convert::From<&ISuspensionDependencyManager> for ::windows::core::IUnknown { fn from(value: &ISuspensionDependencyManager) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISuspensionDependencyManager { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISuspensionDependencyManager { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISuspensionDependencyManager_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, processhandle: super::super::Foundation::HANDLE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, childprocesshandle: super::super::Foundation::HANDLE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, childprocesshandle: super::super::Foundation::HANDLE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrConflict(pub ::windows::core::IUnknown); impl ISyncMgrConflict { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe fn GetProperty(&self, propkey: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<super::super::System::Com::StructuredStorage::PROPVARIANT> { let mut result__: <super::super::System::Com::StructuredStorage::PROPVARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(propkey), &mut result__).from_abi::<super::super::System::Com::StructuredStorage::PROPVARIANT>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetConflictIdInfo(&self) -> ::windows::core::Result<SYNCMGR_CONFLICT_ID_INFO> { let mut result__: <SYNCMGR_CONFLICT_ID_INFO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<SYNCMGR_CONFLICT_ID_INFO>(result__) } pub unsafe fn GetItemsArray(&self) -> ::windows::core::Result<ISyncMgrConflictItems> { let mut result__: <ISyncMgrConflictItems as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<ISyncMgrConflictItems>(result__) } pub unsafe fn Resolve<'a, Param0: ::windows::core::IntoParam<'a, ISyncMgrConflictResolveInfo>>(&self, presolveinfo: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), presolveinfo.into_param().abi()).ok() } pub unsafe fn GetResolutionHandler<T: ::windows::core::Interface>(&self) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } } unsafe impl ::windows::core::Interface for ISyncMgrConflict { type Vtable = ISyncMgrConflict_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9c204249_c443_4ba4_85ed_c972681db137); } impl ::core::convert::From<ISyncMgrConflict> for ::windows::core::IUnknown { fn from(value: ISyncMgrConflict) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrConflict> for ::windows::core::IUnknown { fn from(value: &ISyncMgrConflict) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrConflict { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrConflict { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrConflict_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, propkey: *const PropertiesSystem::PROPERTYKEY, ppropvar: *mut ::core::mem::ManuallyDrop<super::super::System::Com::StructuredStorage::PROPVARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pconflictidinfo: *mut SYNCMGR_CONFLICT_ID_INFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pparray: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, presolveinfo: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppvresolutionhandler: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrConflictFolder(pub ::windows::core::IUnknown); impl ISyncMgrConflictFolder { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetConflictIDList<'a, Param0: ::windows::core::IntoParam<'a, ISyncMgrConflict>>(&self, pconflict: Param0) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pconflict.into_param().abi(), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } } unsafe impl ::windows::core::Interface for ISyncMgrConflictFolder { type Vtable = ISyncMgrConflictFolder_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x59287f5e_bc81_4fca_a7f1_e5a8ecdb1d69); } impl ::core::convert::From<ISyncMgrConflictFolder> for ::windows::core::IUnknown { fn from(value: ISyncMgrConflictFolder) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrConflictFolder> for ::windows::core::IUnknown { fn from(value: &ISyncMgrConflictFolder) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrConflictFolder { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrConflictFolder { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrConflictFolder_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, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pconflict: ::windows::core::RawPtr, ppidlconflict: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrConflictItems(pub ::windows::core::IUnknown); impl ISyncMgrConflictItems { pub unsafe fn GetCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetItem(&self, iindex: u32) -> ::windows::core::Result<CONFIRM_CONFLICT_ITEM> { let mut result__: <CONFIRM_CONFLICT_ITEM as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(iindex), &mut result__).from_abi::<CONFIRM_CONFLICT_ITEM>(result__) } } unsafe impl ::windows::core::Interface for ISyncMgrConflictItems { type Vtable = ISyncMgrConflictItems_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9c7ead52_8023_4936_a4db_d2a9a99e436a); } impl ::core::convert::From<ISyncMgrConflictItems> for ::windows::core::IUnknown { fn from(value: ISyncMgrConflictItems) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrConflictItems> for ::windows::core::IUnknown { fn from(value: &ISyncMgrConflictItems) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrConflictItems { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrConflictItems { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrConflictItems_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, pcount: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iindex: u32, piteminfo: *mut ::core::mem::ManuallyDrop<CONFIRM_CONFLICT_ITEM>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrConflictPresenter(pub ::windows::core::IUnknown); impl ISyncMgrConflictPresenter { pub unsafe fn PresentConflict<'a, Param0: ::windows::core::IntoParam<'a, ISyncMgrConflict>, Param1: ::windows::core::IntoParam<'a, ISyncMgrConflictResolveInfo>>(&self, pconflict: Param0, presolveinfo: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pconflict.into_param().abi(), presolveinfo.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for ISyncMgrConflictPresenter { type Vtable = ISyncMgrConflictPresenter_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0b4f5353_fd2b_42cd_8763_4779f2d508a3); } impl ::core::convert::From<ISyncMgrConflictPresenter> for ::windows::core::IUnknown { fn from(value: ISyncMgrConflictPresenter) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrConflictPresenter> for ::windows::core::IUnknown { fn from(value: &ISyncMgrConflictPresenter) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrConflictPresenter { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrConflictPresenter { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrConflictPresenter_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, pconflict: ::windows::core::RawPtr, presolveinfo: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrConflictResolutionItems(pub ::windows::core::IUnknown); impl ISyncMgrConflictResolutionItems { pub unsafe fn GetCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetItem(&self, iindex: u32) -> ::windows::core::Result<CONFIRM_CONFLICT_RESULT_INFO> { let mut result__: <CONFIRM_CONFLICT_RESULT_INFO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(iindex), &mut result__).from_abi::<CONFIRM_CONFLICT_RESULT_INFO>(result__) } } unsafe impl ::windows::core::Interface for ISyncMgrConflictResolutionItems { type Vtable = ISyncMgrConflictResolutionItems_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x458725b9_129d_4135_a998_9ceafec27007); } impl ::core::convert::From<ISyncMgrConflictResolutionItems> for ::windows::core::IUnknown { fn from(value: ISyncMgrConflictResolutionItems) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrConflictResolutionItems> for ::windows::core::IUnknown { fn from(value: &ISyncMgrConflictResolutionItems) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrConflictResolutionItems { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrConflictResolutionItems { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrConflictResolutionItems_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, pcount: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iindex: u32, piteminfo: *mut CONFIRM_CONFLICT_RESULT_INFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrConflictResolveInfo(pub ::windows::core::IUnknown); impl ISyncMgrConflictResolveInfo { pub unsafe fn GetIterationInfo(&self, pncurrentconflict: *mut u32, pcconflicts: *mut u32, pcremainingforapplytoall: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pncurrentconflict), ::core::mem::transmute(pcconflicts), ::core::mem::transmute(pcremainingforapplytoall)).ok() } pub unsafe fn GetPresenterNextStep(&self) -> ::windows::core::Result<SYNCMGR_PRESENTER_NEXT_STEP> { let mut result__: <SYNCMGR_PRESENTER_NEXT_STEP as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<SYNCMGR_PRESENTER_NEXT_STEP>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetPresenterChoice(&self, pnpresenterchoice: *mut SYNCMGR_PRESENTER_CHOICE, pfapplytoall: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(pnpresenterchoice), ::core::mem::transmute(pfapplytoall)).ok() } pub unsafe fn GetItemChoiceCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn GetItemChoice(&self, ichoice: u32) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(ichoice), &mut result__).from_abi::<u32>(result__) } pub unsafe fn SetPresenterNextStep(&self, npresenternextstep: SYNCMGR_PRESENTER_NEXT_STEP) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(npresenternextstep)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetPresenterChoice<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, npresenterchoice: SYNCMGR_PRESENTER_CHOICE, fapplytoall: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(npresenterchoice), fapplytoall.into_param().abi()).ok() } pub unsafe fn SetItemChoices(&self, prgiconflictitemindexes: *mut u32, cchoices: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(prgiconflictitemindexes), ::core::mem::transmute(cchoices)).ok() } } unsafe impl ::windows::core::Interface for ISyncMgrConflictResolveInfo { type Vtable = ISyncMgrConflictResolveInfo_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc405a219_25a2_442e_8743_b845a2cee93f); } impl ::core::convert::From<ISyncMgrConflictResolveInfo> for ::windows::core::IUnknown { fn from(value: ISyncMgrConflictResolveInfo) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrConflictResolveInfo> for ::windows::core::IUnknown { fn from(value: &ISyncMgrConflictResolveInfo) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrConflictResolveInfo { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrConflictResolveInfo { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrConflictResolveInfo_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, pncurrentconflict: *mut u32, pcconflicts: *mut u32, pcremainingforapplytoall: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pnpresenternextstep: *mut SYNCMGR_PRESENTER_NEXT_STEP) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pnpresenterchoice: *mut SYNCMGR_PRESENTER_CHOICE, pfapplytoall: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcchoices: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ichoice: u32, pichoiceindex: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, npresenternextstep: SYNCMGR_PRESENTER_NEXT_STEP) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, npresenterchoice: SYNCMGR_PRESENTER_CHOICE, fapplytoall: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, prgiconflictitemindexes: *mut u32, cchoices: u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrConflictStore(pub ::windows::core::IUnknown); impl ISyncMgrConflictStore { #[cfg(feature = "Win32_Foundation")] pub unsafe fn EnumConflicts<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszhandlerid: Param0, pszitemid: Param1) -> ::windows::core::Result<IEnumSyncMgrConflict> { let mut result__: <IEnumSyncMgrConflict as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszhandlerid.into_param().abi(), pszitemid.into_param().abi(), &mut result__).from_abi::<IEnumSyncMgrConflict>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn BindToConflict<T: ::windows::core::Interface>(&self, pconflictidinfo: *const SYNCMGR_CONFLICT_ID_INFO) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pconflictidinfo), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn RemoveConflicts(&self, rgconflictidinfo: *const SYNCMGR_CONFLICT_ID_INFO, cconflicts: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(rgconflictidinfo), ::core::mem::transmute(cconflicts)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCount<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszhandlerid: Param0, pszitemid: Param1) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pszhandlerid.into_param().abi(), pszitemid.into_param().abi(), &mut result__).from_abi::<u32>(result__) } } unsafe impl ::windows::core::Interface for ISyncMgrConflictStore { type Vtable = ISyncMgrConflictStore_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcf8fc579_c396_4774_85f1_d908a831156e); } impl ::core::convert::From<ISyncMgrConflictStore> for ::windows::core::IUnknown { fn from(value: ISyncMgrConflictStore) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrConflictStore> for ::windows::core::IUnknown { fn from(value: &ISyncMgrConflictStore) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrConflictStore { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrConflictStore { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrConflictStore_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszhandlerid: super::super::Foundation::PWSTR, pszitemid: super::super::Foundation::PWSTR, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pconflictidinfo: *const SYNCMGR_CONFLICT_ID_INFO, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rgconflictidinfo: *const SYNCMGR_CONFLICT_ID_INFO, cconflicts: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszhandlerid: super::super::Foundation::PWSTR, pszitemid: super::super::Foundation::PWSTR, pnconflicts: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrControl(pub ::windows::core::IUnknown); impl ISyncMgrControl { #[cfg(feature = "Win32_Foundation")] pub unsafe fn StartHandlerSync<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param4: ::windows::core::IntoParam<'a, ISyncMgrSyncResult>>(&self, pszhandlerid: Param0, hwndowner: Param1, punk: Param2, nsynccontrolflags: SYNCMGR_SYNC_CONTROL_FLAGS, presult: Param4) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszhandlerid.into_param().abi(), hwndowner.into_param().abi(), punk.into_param().abi(), ::core::mem::transmute(nsynccontrolflags), presult.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn StartItemSync<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param4: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param6: ::windows::core::IntoParam<'a, ISyncMgrSyncResult>>( &self, pszhandlerid: Param0, ppszitemids: *const super::super::Foundation::PWSTR, citems: u32, hwndowner: Param3, punk: Param4, nsynccontrolflags: SYNCMGR_SYNC_CONTROL_FLAGS, presult: Param6, ) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pszhandlerid.into_param().abi(), ::core::mem::transmute(ppszitemids), ::core::mem::transmute(citems), hwndowner.into_param().abi(), punk.into_param().abi(), ::core::mem::transmute(nsynccontrolflags), presult.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn StartSyncAll<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndowner: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), hwndowner.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn StopHandlerSync<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszhandlerid: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pszhandlerid.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn StopItemSync<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszhandlerid: Param0, ppszitemids: *const super::super::Foundation::PWSTR, citems: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pszhandlerid.into_param().abi(), ::core::mem::transmute(ppszitemids), ::core::mem::transmute(citems)).ok() } pub unsafe fn StopSyncAll(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn UpdateHandlerCollection(&self, rclsidcollectionid: *const ::windows::core::GUID, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(rclsidcollectionid), ::core::mem::transmute(ncontrolflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn UpdateHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszhandlerid: Param0, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), pszhandlerid.into_param().abi(), ::core::mem::transmute(ncontrolflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn UpdateItem<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszhandlerid: Param0, pszitemid: Param1, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), pszhandlerid.into_param().abi(), pszitemid.into_param().abi(), ::core::mem::transmute(ncontrolflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn UpdateEvents<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszhandlerid: Param0, pszitemid: Param1, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), pszhandlerid.into_param().abi(), pszitemid.into_param().abi(), ::core::mem::transmute(ncontrolflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn UpdateConflict<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, ISyncMgrConflict>>(&self, pszhandlerid: Param0, pszitemid: Param1, pconflict: Param2, nreason: SYNCMGR_UPDATE_REASON) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), pszhandlerid.into_param().abi(), pszitemid.into_param().abi(), pconflict.into_param().abi(), ::core::mem::transmute(nreason)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn UpdateConflicts<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszhandlerid: Param0, pszitemid: Param1, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), pszhandlerid.into_param().abi(), pszitemid.into_param().abi(), ::core::mem::transmute(ncontrolflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ActivateHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, factivate: Param0, pszhandlerid: Param1, hwndowner: Param2, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), factivate.into_param().abi(), pszhandlerid.into_param().abi(), hwndowner.into_param().abi(), ::core::mem::transmute(ncontrolflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn EnableHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, fenable: Param0, pszhandlerid: Param1, hwndowner: Param2, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), fenable.into_param().abi(), pszhandlerid.into_param().abi(), hwndowner.into_param().abi(), ::core::mem::transmute(ncontrolflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn EnableItem<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, fenable: Param0, pszhandlerid: Param1, pszitemid: Param2, hwndowner: Param3, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), fenable.into_param().abi(), pszhandlerid.into_param().abi(), pszitemid.into_param().abi(), hwndowner.into_param().abi(), ::core::mem::transmute(ncontrolflags)).ok() } } unsafe impl ::windows::core::Interface for ISyncMgrControl { type Vtable = ISyncMgrControl_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9b63616c_36b2_46bc_959f_c1593952d19b); } impl ::core::convert::From<ISyncMgrControl> for ::windows::core::IUnknown { fn from(value: ISyncMgrControl) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrControl> for ::windows::core::IUnknown { fn from(value: &ISyncMgrControl) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrControl { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrControl { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrControl_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszhandlerid: super::super::Foundation::PWSTR, hwndowner: super::super::Foundation::HWND, punk: ::windows::core::RawPtr, nsynccontrolflags: SYNCMGR_SYNC_CONTROL_FLAGS, presult: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszhandlerid: super::super::Foundation::PWSTR, ppszitemids: *const super::super::Foundation::PWSTR, citems: u32, hwndowner: super::super::Foundation::HWND, punk: ::windows::core::RawPtr, nsynccontrolflags: SYNCMGR_SYNC_CONTROL_FLAGS, presult: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndowner: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszhandlerid: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszhandlerid: super::super::Foundation::PWSTR, ppszitemids: *const super::super::Foundation::PWSTR, citems: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rclsidcollectionid: *const ::windows::core::GUID, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszhandlerid: super::super::Foundation::PWSTR, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszhandlerid: super::super::Foundation::PWSTR, pszitemid: super::super::Foundation::PWSTR, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszhandlerid: super::super::Foundation::PWSTR, pszitemid: super::super::Foundation::PWSTR, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszhandlerid: super::super::Foundation::PWSTR, pszitemid: super::super::Foundation::PWSTR, pconflict: ::windows::core::RawPtr, nreason: SYNCMGR_UPDATE_REASON) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszhandlerid: super::super::Foundation::PWSTR, pszitemid: super::super::Foundation::PWSTR, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, factivate: super::super::Foundation::BOOL, pszhandlerid: super::super::Foundation::PWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fenable: super::super::Foundation::BOOL, pszhandlerid: super::super::Foundation::PWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fenable: super::super::Foundation::BOOL, pszhandlerid: super::super::Foundation::PWSTR, pszitemid: super::super::Foundation::PWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrEnumItems(pub ::windows::core::IUnknown); impl ISyncMgrEnumItems { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn Next(&self, celt: u32, rgelt: *mut SYNCMGRITEM, pceltfetched: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt), ::core::mem::transmute(rgelt), ::core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(celt)).ok() } pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Clone(&self) -> ::windows::core::Result<ISyncMgrEnumItems> { let mut result__: <ISyncMgrEnumItems as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<ISyncMgrEnumItems>(result__) } } unsafe impl ::windows::core::Interface for ISyncMgrEnumItems { type Vtable = ISyncMgrEnumItems_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6295df2a_35ee_11d1_8707_00c04fd93327); } impl ::core::convert::From<ISyncMgrEnumItems> for ::windows::core::IUnknown { fn from(value: ISyncMgrEnumItems) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrEnumItems> for ::windows::core::IUnknown { fn from(value: &ISyncMgrEnumItems) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrEnumItems { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrEnumItems { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrEnumItems_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, celt: u32, rgelt: *mut SYNCMGRITEM, pceltfetched: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, celt: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrEvent(pub ::windows::core::IUnknown); impl ISyncMgrEvent { pub unsafe fn GetEventID(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__: <::windows::core::GUID as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<::windows::core::GUID>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetHandlerID(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetItemID(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } pub unsafe fn GetLevel(&self) -> ::windows::core::Result<SYNCMGR_EVENT_LEVEL> { let mut result__: <SYNCMGR_EVENT_LEVEL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<SYNCMGR_EVENT_LEVEL>(result__) } pub unsafe fn GetFlags(&self) -> ::windows::core::Result<SYNCMGR_EVENT_FLAGS> { let mut result__: <SYNCMGR_EVENT_FLAGS as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<SYNCMGR_EVENT_FLAGS>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetTime(&self) -> ::windows::core::Result<super::super::Foundation::FILETIME> { let mut result__: <super::super::Foundation::FILETIME as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::FILETIME>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetName(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDescription(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetLinkText(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetLinkReference(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetContext(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } } unsafe impl ::windows::core::Interface for ISyncMgrEvent { type Vtable = ISyncMgrEvent_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfee0ef8b_46bd_4db4_b7e6_ff2c687313bc); } impl ::core::convert::From<ISyncMgrEvent> for ::windows::core::IUnknown { fn from(value: ISyncMgrEvent) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrEvent> for ::windows::core::IUnknown { fn from(value: &ISyncMgrEvent) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrEvent { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrEvent { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrEvent_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, pguideventid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppszhandlerid: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppszitemid: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pnlevel: *mut SYNCMGR_EVENT_LEVEL) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pnflags: *mut SYNCMGR_EVENT_FLAGS) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfcreationtime: *mut super::super::Foundation::FILETIME) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppszname: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppszdescription: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppszlinktext: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppszlinkreference: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppszcontext: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrEventLinkUIOperation(pub ::windows::core::IUnknown); impl ISyncMgrEventLinkUIOperation { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Run<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndowner: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwndowner.into_param().abi()).ok() } pub unsafe fn Init<'a, Param1: ::windows::core::IntoParam<'a, ISyncMgrEvent>>(&self, rguideventid: *const ::windows::core::GUID, pevent: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(rguideventid), pevent.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for ISyncMgrEventLinkUIOperation { type Vtable = ISyncMgrEventLinkUIOperation_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x64522e52_848b_4015_89ce_5a36f00b94ff); } impl ::core::convert::From<ISyncMgrEventLinkUIOperation> for ::windows::core::IUnknown { fn from(value: ISyncMgrEventLinkUIOperation) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrEventLinkUIOperation> for ::windows::core::IUnknown { fn from(value: &ISyncMgrEventLinkUIOperation) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrEventLinkUIOperation { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrEventLinkUIOperation { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<ISyncMgrEventLinkUIOperation> for ISyncMgrUIOperation { fn from(value: ISyncMgrEventLinkUIOperation) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&ISyncMgrEventLinkUIOperation> for ISyncMgrUIOperation { fn from(value: &ISyncMgrEventLinkUIOperation) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, ISyncMgrUIOperation> for ISyncMgrEventLinkUIOperation { fn into_param(self) -> ::windows::core::Param<'a, ISyncMgrUIOperation> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, ISyncMgrUIOperation> for &ISyncMgrEventLinkUIOperation { fn into_param(self) -> ::windows::core::Param<'a, ISyncMgrUIOperation> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrEventLinkUIOperation_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndowner: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rguideventid: *const ::windows::core::GUID, pevent: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrEventStore(pub ::windows::core::IUnknown); impl ISyncMgrEventStore { pub unsafe fn GetEventEnumerator(&self) -> ::windows::core::Result<IEnumSyncMgrEvents> { let mut result__: <IEnumSyncMgrEvents as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IEnumSyncMgrEvents>(result__) } pub unsafe fn GetEventCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn GetEvent(&self, rguideventid: *const ::windows::core::GUID) -> ::windows::core::Result<ISyncMgrEvent> { let mut result__: <ISyncMgrEvent as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(rguideventid), &mut result__).from_abi::<ISyncMgrEvent>(result__) } pub unsafe fn RemoveEvent(&self, pguideventids: *const ::windows::core::GUID, cevents: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(pguideventids), ::core::mem::transmute(cevents)).ok() } } unsafe impl ::windows::core::Interface for ISyncMgrEventStore { type Vtable = ISyncMgrEventStore_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x37e412f9_016e_44c2_81ff_db3add774266); } impl ::core::convert::From<ISyncMgrEventStore> for ::windows::core::IUnknown { fn from(value: ISyncMgrEventStore) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrEventStore> for ::windows::core::IUnknown { fn from(value: &ISyncMgrEventStore) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrEventStore { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrEventStore { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrEventStore_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, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcevents: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rguideventid: *const ::windows::core::GUID, ppevent: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pguideventids: *const ::windows::core::GUID, cevents: u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrHandler(pub ::windows::core::IUnknown); impl ISyncMgrHandler { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetName(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } pub unsafe fn GetHandlerInfo(&self) -> ::windows::core::Result<ISyncMgrHandlerInfo> { let mut result__: <ISyncMgrHandlerInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<ISyncMgrHandlerInfo>(result__) } pub unsafe fn GetObject<T: ::windows::core::Interface>(&self, rguidobjectid: *const ::windows::core::GUID) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(rguidobjectid), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } pub unsafe fn GetCapabilities(&self) -> ::windows::core::Result<SYNCMGR_HANDLER_CAPABILITIES> { let mut result__: <SYNCMGR_HANDLER_CAPABILITIES as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<SYNCMGR_HANDLER_CAPABILITIES>(result__) } pub unsafe fn GetPolicies(&self) -> ::windows::core::Result<SYNCMGR_HANDLER_POLICIES> { let mut result__: <SYNCMGR_HANDLER_POLICIES as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<SYNCMGR_HANDLER_POLICIES>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Activate<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, factivate: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), factivate.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Enable<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fenable: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), fenable.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Synchronize<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param3: ::windows::core::IntoParam<'a, ISyncMgrSessionCreator>, Param4: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, ppszitemids: *const super::super::Foundation::PWSTR, citems: u32, hwndowner: Param2, psessioncreator: Param3, punk: Param4) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppszitemids), ::core::mem::transmute(citems), hwndowner.into_param().abi(), psessioncreator.into_param().abi(), punk.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for ISyncMgrHandler { type Vtable = ISyncMgrHandler_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x04ec2e43_ac77_49f9_9b98_0307ef7a72a2); } impl ::core::convert::From<ISyncMgrHandler> for ::windows::core::IUnknown { fn from(value: ISyncMgrHandler) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrHandler> for ::windows::core::IUnknown { fn from(value: &ISyncMgrHandler) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrHandler_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppszname: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pphandlerinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rguidobjectid: *const ::windows::core::GUID, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmcapabilities: *mut SYNCMGR_HANDLER_CAPABILITIES) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmpolicies: *mut SYNCMGR_HANDLER_POLICIES) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, factivate: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fenable: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppszitemids: *const super::super::Foundation::PWSTR, citems: u32, hwndowner: super::super::Foundation::HWND, psessioncreator: ::windows::core::RawPtr, punk: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrHandlerCollection(pub ::windows::core::IUnknown); impl ISyncMgrHandlerCollection { #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetHandlerEnumerator(&self) -> ::windows::core::Result<super::super::System::Com::IEnumString> { let mut result__: <super::super::System::Com::IEnumString as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IEnumString>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn BindToHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, T: ::windows::core::Interface>(&self, pszhandlerid: Param0) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pszhandlerid.into_param().abi(), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } } unsafe impl ::windows::core::Interface for ISyncMgrHandlerCollection { type Vtable = ISyncMgrHandlerCollection_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa7f337a3_d20b_45cb_9ed7_87d094ca5045); } impl ::core::convert::From<ISyncMgrHandlerCollection> for ::windows::core::IUnknown { fn from(value: ISyncMgrHandlerCollection) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrHandlerCollection> for ::windows::core::IUnknown { fn from(value: &ISyncMgrHandlerCollection) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrHandlerCollection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrHandlerCollection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrHandlerCollection_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, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszhandlerid: super::super::Foundation::PWSTR, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrHandlerInfo(pub ::windows::core::IUnknown); impl ISyncMgrHandlerInfo { pub unsafe fn GetType(&self) -> ::windows::core::Result<SYNCMGR_HANDLER_TYPE> { let mut result__: <SYNCMGR_HANDLER_TYPE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<SYNCMGR_HANDLER_TYPE>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetTypeLabel(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetComment(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetLastSyncTime(&self) -> ::windows::core::Result<super::super::Foundation::FILETIME> { let mut result__: <super::super::Foundation::FILETIME as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::FILETIME>(result__) } pub unsafe fn IsActive(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn IsEnabled(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn IsConnected(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for ISyncMgrHandlerInfo { type Vtable = ISyncMgrHandlerInfo_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4ff1d798_ecf7_4524_aa81_1e362a0aef3a); } impl ::core::convert::From<ISyncMgrHandlerInfo> for ::windows::core::IUnknown { fn from(value: ISyncMgrHandlerInfo) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrHandlerInfo> for ::windows::core::IUnknown { fn from(value: &ISyncMgrHandlerInfo) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrHandlerInfo { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrHandlerInfo { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrHandlerInfo_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, pntype: *mut SYNCMGR_HANDLER_TYPE) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsztypelabel: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppszcomment: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pftlastsync: *mut super::super::Foundation::FILETIME) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrRegister(pub ::windows::core::IUnknown); impl ISyncMgrRegister { #[cfg(feature = "Win32_Foundation")] pub unsafe fn RegisterSyncMgrHandler<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, clsidhandler: *const ::windows::core::GUID, pwszdescription: Param1, dwsyncmgrregisterflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(clsidhandler), pwszdescription.into_param().abi(), ::core::mem::transmute(dwsyncmgrregisterflags)).ok() } pub unsafe fn UnregisterSyncMgrHandler(&self, clsidhandler: *const ::windows::core::GUID, dwreserved: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(clsidhandler), ::core::mem::transmute(dwreserved)).ok() } pub unsafe fn GetHandlerRegistrationInfo(&self, clsidhandler: *const ::windows::core::GUID, pdwsyncmgrregisterflags: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(clsidhandler), ::core::mem::transmute(pdwsyncmgrregisterflags)).ok() } } unsafe impl ::windows::core::Interface for ISyncMgrRegister { type Vtable = ISyncMgrRegister_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6295df42_35ee_11d1_8707_00c04fd93327); } impl ::core::convert::From<ISyncMgrRegister> for ::windows::core::IUnknown { fn from(value: ISyncMgrRegister) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrRegister> for ::windows::core::IUnknown { fn from(value: &ISyncMgrRegister) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrRegister { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrRegister { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrRegister_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, clsidhandler: *const ::windows::core::GUID, pwszdescription: super::super::Foundation::PWSTR, dwsyncmgrregisterflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, clsidhandler: *const ::windows::core::GUID, dwreserved: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, clsidhandler: *const ::windows::core::GUID, pdwsyncmgrregisterflags: *mut u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrResolutionHandler(pub ::windows::core::IUnknown); impl ISyncMgrResolutionHandler { pub unsafe fn QueryAbilities(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } pub unsafe fn KeepOther<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psiother: Param0) -> ::windows::core::Result<SYNCMGR_RESOLUTION_FEEDBACK> { let mut result__: <SYNCMGR_RESOLUTION_FEEDBACK as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), psiother.into_param().abi(), &mut result__).from_abi::<SYNCMGR_RESOLUTION_FEEDBACK>(result__) } pub unsafe fn KeepRecent(&self) -> ::windows::core::Result<SYNCMGR_RESOLUTION_FEEDBACK> { let mut result__: <SYNCMGR_RESOLUTION_FEEDBACK as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<SYNCMGR_RESOLUTION_FEEDBACK>(result__) } pub unsafe fn RemoveFromSyncSet(&self) -> ::windows::core::Result<SYNCMGR_RESOLUTION_FEEDBACK> { let mut result__: <SYNCMGR_RESOLUTION_FEEDBACK as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), &mut result__).from_abi::<SYNCMGR_RESOLUTION_FEEDBACK>(result__) } pub unsafe fn KeepItems<'a, Param0: ::windows::core::IntoParam<'a, ISyncMgrConflictResolutionItems>>(&self, parray: Param0) -> ::windows::core::Result<SYNCMGR_RESOLUTION_FEEDBACK> { let mut result__: <SYNCMGR_RESOLUTION_FEEDBACK as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), parray.into_param().abi(), &mut result__).from_abi::<SYNCMGR_RESOLUTION_FEEDBACK>(result__) } } unsafe impl ::windows::core::Interface for ISyncMgrResolutionHandler { type Vtable = ISyncMgrResolutionHandler_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x40a3d052_8bff_4c4b_a338_d4a395700de9); } impl ::core::convert::From<ISyncMgrResolutionHandler> for ::windows::core::IUnknown { fn from(value: ISyncMgrResolutionHandler) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrResolutionHandler> for ::windows::core::IUnknown { fn from(value: &ISyncMgrResolutionHandler) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrResolutionHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrResolutionHandler { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrResolutionHandler_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, pdwabilities: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psiother: ::windows::core::RawPtr, pfeedback: *mut SYNCMGR_RESOLUTION_FEEDBACK) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfeedback: *mut SYNCMGR_RESOLUTION_FEEDBACK) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pfeedback: *mut SYNCMGR_RESOLUTION_FEEDBACK) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, parray: ::windows::core::RawPtr, pfeedback: *mut SYNCMGR_RESOLUTION_FEEDBACK) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrScheduleWizardUIOperation(pub ::windows::core::IUnknown); impl ISyncMgrScheduleWizardUIOperation { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Run<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndowner: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwndowner.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn InitWizard<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszhandlerid: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pszhandlerid.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for ISyncMgrScheduleWizardUIOperation { type Vtable = ISyncMgrScheduleWizardUIOperation_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x459a6c84_21d2_4ddc_8a53_f023a46066f2); } impl ::core::convert::From<ISyncMgrScheduleWizardUIOperation> for ::windows::core::IUnknown { fn from(value: ISyncMgrScheduleWizardUIOperation) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrScheduleWizardUIOperation> for ::windows::core::IUnknown { fn from(value: &ISyncMgrScheduleWizardUIOperation) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrScheduleWizardUIOperation { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrScheduleWizardUIOperation { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<ISyncMgrScheduleWizardUIOperation> for ISyncMgrUIOperation { fn from(value: ISyncMgrScheduleWizardUIOperation) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&ISyncMgrScheduleWizardUIOperation> for ISyncMgrUIOperation { fn from(value: &ISyncMgrScheduleWizardUIOperation) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, ISyncMgrUIOperation> for ISyncMgrScheduleWizardUIOperation { fn into_param(self) -> ::windows::core::Param<'a, ISyncMgrUIOperation> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, ISyncMgrUIOperation> for &ISyncMgrScheduleWizardUIOperation { fn into_param(self) -> ::windows::core::Param<'a, ISyncMgrUIOperation> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrScheduleWizardUIOperation_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndowner: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszhandlerid: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrSessionCreator(pub ::windows::core::IUnknown); impl ISyncMgrSessionCreator { #[cfg(feature = "Win32_Foundation")] pub unsafe fn CreateSession<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszhandlerid: Param0, ppszitemids: *const super::super::Foundation::PWSTR, citems: u32) -> ::windows::core::Result<ISyncMgrSyncCallback> { let mut result__: <ISyncMgrSyncCallback as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszhandlerid.into_param().abi(), ::core::mem::transmute(ppszitemids), ::core::mem::transmute(citems), &mut result__).from_abi::<ISyncMgrSyncCallback>(result__) } } unsafe impl ::windows::core::Interface for ISyncMgrSessionCreator { type Vtable = ISyncMgrSessionCreator_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x17f48517_f305_4321_a08d_b25a834918fd); } impl ::core::convert::From<ISyncMgrSessionCreator> for ::windows::core::IUnknown { fn from(value: ISyncMgrSessionCreator) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrSessionCreator> for ::windows::core::IUnknown { fn from(value: &ISyncMgrSessionCreator) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrSessionCreator { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrSessionCreator { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrSessionCreator_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszhandlerid: super::super::Foundation::PWSTR, ppszitemids: *const super::super::Foundation::PWSTR, citems: u32, ppcallback: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrSyncCallback(pub ::windows::core::IUnknown); impl ISyncMgrSyncCallback { #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportProgress<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszitemid: Param0, pszprogresstext: Param1, nstatus: SYNCMGR_PROGRESS_STATUS, ucurrentstep: u32, umaxstep: u32, pncancelrequest: *mut SYNCMGR_CANCEL_REQUEST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszitemid.into_param().abi(), pszprogresstext.into_param().abi(), ::core::mem::transmute(nstatus), ::core::mem::transmute(ucurrentstep), ::core::mem::transmute(umaxstep), ::core::mem::transmute(pncancelrequest)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetHandlerProgressText<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszprogresstext: Param0, pncancelrequest: *mut SYNCMGR_CANCEL_REQUEST) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pszprogresstext.into_param().abi(), ::core::mem::transmute(pncancelrequest)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportEvent<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param5: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param6: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param7: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>( &self, pszitemid: Param0, nlevel: SYNCMGR_EVENT_LEVEL, nflags: SYNCMGR_EVENT_FLAGS, pszname: Param3, pszdescription: Param4, pszlinktext: Param5, pszlinkreference: Param6, pszcontext: Param7, ) -> ::windows::core::Result<::windows::core::GUID> { let mut result__: <::windows::core::GUID as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)( ::core::mem::transmute_copy(self), pszitemid.into_param().abi(), ::core::mem::transmute(nlevel), ::core::mem::transmute(nflags), pszname.into_param().abi(), pszdescription.into_param().abi(), pszlinktext.into_param().abi(), pszlinkreference.into_param().abi(), pszcontext.into_param().abi(), &mut result__, ) .from_abi::<::windows::core::GUID>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CanContinue<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszitemid: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pszitemid.into_param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryForAdditionalItems(&self, ppenumitemids: *mut ::core::option::Option<super::super::System::Com::IEnumString>, ppenumpunks: *mut ::core::option::Option<super::super::System::Com::IEnumUnknown>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppenumitemids), ::core::mem::transmute(ppenumpunks)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddItemToSession<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszitemid: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), pszitemid.into_param().abi()).ok() } pub unsafe fn AddIUnknownToSession<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punk: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), punk.into_param().abi()).ok() } pub unsafe fn ProposeItem<'a, Param0: ::windows::core::IntoParam<'a, ISyncMgrSyncItem>>(&self, pnewitem: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), pnewitem.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CommitItem<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszitemid: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), pszitemid.into_param().abi()).ok() } pub unsafe fn ReportManualSync(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for ISyncMgrSyncCallback { type Vtable = ISyncMgrSyncCallback_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x884ccd87_b139_4937_a4ba_4f8e19513fbe); } impl ::core::convert::From<ISyncMgrSyncCallback> for ::windows::core::IUnknown { fn from(value: ISyncMgrSyncCallback) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrSyncCallback> for ::windows::core::IUnknown { fn from(value: &ISyncMgrSyncCallback) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrSyncCallback { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrSyncCallback { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrSyncCallback_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszitemid: super::super::Foundation::PWSTR, pszprogresstext: super::super::Foundation::PWSTR, nstatus: SYNCMGR_PROGRESS_STATUS, ucurrentstep: u32, umaxstep: u32, pncancelrequest: *mut SYNCMGR_CANCEL_REQUEST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszprogresstext: super::super::Foundation::PWSTR, pncancelrequest: *mut SYNCMGR_CANCEL_REQUEST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszitemid: super::super::Foundation::PWSTR, nlevel: SYNCMGR_EVENT_LEVEL, nflags: SYNCMGR_EVENT_FLAGS, pszname: super::super::Foundation::PWSTR, pszdescription: super::super::Foundation::PWSTR, pszlinktext: super::super::Foundation::PWSTR, pszlinkreference: super::super::Foundation::PWSTR, pszcontext: super::super::Foundation::PWSTR, pguideventid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszitemid: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenumitemids: *mut ::windows::core::RawPtr, ppenumpunks: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszitemid: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punk: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pnewitem: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszitemid: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrSyncItem(pub ::windows::core::IUnknown); impl ISyncMgrSyncItem { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetItemID(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetName(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } pub unsafe fn GetItemInfo(&self) -> ::windows::core::Result<ISyncMgrSyncItemInfo> { let mut result__: <ISyncMgrSyncItemInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<ISyncMgrSyncItemInfo>(result__) } pub unsafe fn GetObject<T: ::windows::core::Interface>(&self, rguidobjectid: *const ::windows::core::GUID) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(rguidobjectid), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } pub unsafe fn GetCapabilities(&self) -> ::windows::core::Result<SYNCMGR_ITEM_CAPABILITIES> { let mut result__: <SYNCMGR_ITEM_CAPABILITIES as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<SYNCMGR_ITEM_CAPABILITIES>(result__) } pub unsafe fn GetPolicies(&self) -> ::windows::core::Result<SYNCMGR_ITEM_POLICIES> { let mut result__: <SYNCMGR_ITEM_POLICIES as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<SYNCMGR_ITEM_POLICIES>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Enable<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fenable: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), fenable.into_param().abi()).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for ISyncMgrSyncItem { type Vtable = ISyncMgrSyncItem_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb20b24ce_2593_4f04_bd8b_7ad6c45051cd); } impl ::core::convert::From<ISyncMgrSyncItem> for ::windows::core::IUnknown { fn from(value: ISyncMgrSyncItem) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrSyncItem> for ::windows::core::IUnknown { fn from(value: &ISyncMgrSyncItem) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrSyncItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrSyncItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrSyncItem_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppszitemid: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppszname: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppiteminfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, rguidobjectid: *const ::windows::core::GUID, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmcapabilities: *mut SYNCMGR_ITEM_CAPABILITIES) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmpolicies: *mut SYNCMGR_ITEM_POLICIES) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fenable: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrSyncItemContainer(pub ::windows::core::IUnknown); impl ISyncMgrSyncItemContainer { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSyncItem<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszitemid: Param0) -> ::windows::core::Result<ISyncMgrSyncItem> { let mut result__: <ISyncMgrSyncItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszitemid.into_param().abi(), &mut result__).from_abi::<ISyncMgrSyncItem>(result__) } pub unsafe fn GetSyncItemEnumerator(&self) -> ::windows::core::Result<IEnumSyncMgrSyncItems> { let mut result__: <IEnumSyncMgrSyncItems as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IEnumSyncMgrSyncItems>(result__) } pub unsafe fn GetSyncItemCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } } unsafe impl ::windows::core::Interface for ISyncMgrSyncItemContainer { type Vtable = ISyncMgrSyncItemContainer_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x90701133_be32_4129_a65c_99e616cafff4); } impl ::core::convert::From<ISyncMgrSyncItemContainer> for ::windows::core::IUnknown { fn from(value: ISyncMgrSyncItemContainer) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrSyncItemContainer> for ::windows::core::IUnknown { fn from(value: &ISyncMgrSyncItemContainer) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrSyncItemContainer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrSyncItemContainer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrSyncItemContainer_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszitemid: super::super::Foundation::PWSTR, ppitem: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcitems: *mut u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrSyncItemInfo(pub ::windows::core::IUnknown); impl ISyncMgrSyncItemInfo { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetTypeLabel(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetComment(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetLastSyncTime(&self) -> ::windows::core::Result<super::super::Foundation::FILETIME> { let mut result__: <super::super::Foundation::FILETIME as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::FILETIME>(result__) } pub unsafe fn IsEnabled(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn IsConnected(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for ISyncMgrSyncItemInfo { type Vtable = ISyncMgrSyncItemInfo_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe7fd9502_be0c_4464_90a1_2b5277031232); } impl ::core::convert::From<ISyncMgrSyncItemInfo> for ::windows::core::IUnknown { fn from(value: ISyncMgrSyncItemInfo) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrSyncItemInfo> for ::windows::core::IUnknown { fn from(value: &ISyncMgrSyncItemInfo) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrSyncItemInfo { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrSyncItemInfo { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrSyncItemInfo_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsztypelabel: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppszcomment: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pftlastsync: *mut super::super::Foundation::FILETIME) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrSyncResult(pub ::windows::core::IUnknown); impl ISyncMgrSyncResult { pub unsafe fn Result(&self, nstatus: SYNCMGR_PROGRESS_STATUS, cerror: u32, cconflicts: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(nstatus), ::core::mem::transmute(cerror), ::core::mem::transmute(cconflicts)).ok() } } unsafe impl ::windows::core::Interface for ISyncMgrSyncResult { type Vtable = ISyncMgrSyncResult_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2b90f17e_5a3e_4b33_bb7f_1bc48056b94d); } impl ::core::convert::From<ISyncMgrSyncResult> for ::windows::core::IUnknown { fn from(value: ISyncMgrSyncResult) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrSyncResult> for ::windows::core::IUnknown { fn from(value: &ISyncMgrSyncResult) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrSyncResult { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrSyncResult { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrSyncResult_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, nstatus: SYNCMGR_PROGRESS_STATUS, cerror: u32, cconflicts: u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrSynchronize(pub ::windows::core::IUnknown); impl ISyncMgrSynchronize { pub unsafe fn Initialize(&self, dwreserved: u32, dwsyncmgrflags: u32, cbcookie: u32, lpcookie: *const u8) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwreserved), ::core::mem::transmute(dwsyncmgrflags), ::core::mem::transmute(cbcookie), ::core::mem::transmute(lpcookie)).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn GetHandlerInfo(&self) -> ::windows::core::Result<*mut SYNCMGRHANDLERINFO> { let mut result__: <*mut SYNCMGRHANDLERINFO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut SYNCMGRHANDLERINFO>(result__) } pub unsafe fn EnumSyncMgrItems(&self) -> ::windows::core::Result<ISyncMgrEnumItems> { let mut result__: <ISyncMgrEnumItems as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<ISyncMgrEnumItems>(result__) } pub unsafe fn GetItemObject<T: ::windows::core::Interface>(&self, itemid: *const ::windows::core::GUID) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(itemid), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ShowProperties<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndparent: Param0, itemid: *const ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), hwndparent.into_param().abi(), ::core::mem::transmute(itemid)).ok() } pub unsafe fn SetProgressCallback<'a, Param0: ::windows::core::IntoParam<'a, ISyncMgrSynchronizeCallback>>(&self, lpcallback: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), lpcallback.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn PrepareForSync<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, cbnumitems: u32, pitemids: *const ::windows::core::GUID, hwndparent: Param2, dwreserved: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(cbnumitems), ::core::mem::transmute(pitemids), hwndparent.into_param().abi(), ::core::mem::transmute(dwreserved)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Synchronize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndparent: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), hwndparent.into_param().abi()).ok() } pub unsafe fn SetItemStatus(&self, pitemid: *const ::windows::core::GUID, dwsyncmgrstatus: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(pitemid), ::core::mem::transmute(dwsyncmgrstatus)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ShowError<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndparent: Param0, errorid: *const ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), hwndparent.into_param().abi(), ::core::mem::transmute(errorid)).ok() } } unsafe impl ::windows::core::Interface for ISyncMgrSynchronize { type Vtable = ISyncMgrSynchronize_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6295df40_35ee_11d1_8707_00c04fd93327); } impl ::core::convert::From<ISyncMgrSynchronize> for ::windows::core::IUnknown { fn from(value: ISyncMgrSynchronize) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrSynchronize> for ::windows::core::IUnknown { fn from(value: &ISyncMgrSynchronize) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrSynchronize { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrSynchronize { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrSynchronize_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, dwreserved: u32, dwsyncmgrflags: u32, cbcookie: u32, lpcookie: *const u8) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsyncmgrhandlerinfo: *mut *mut SYNCMGRHANDLERINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsyncmgrenumitems: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itemid: *const ::windows::core::GUID, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndparent: super::super::Foundation::HWND, itemid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lpcallback: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, cbnumitems: u32, pitemids: *const ::windows::core::GUID, hwndparent: super::super::Foundation::HWND, dwreserved: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndparent: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pitemid: *const ::windows::core::GUID, dwsyncmgrstatus: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndparent: super::super::Foundation::HWND, errorid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrSynchronizeCallback(pub ::windows::core::IUnknown); impl ISyncMgrSynchronizeCallback { pub unsafe fn ShowPropertiesCompleted(&self, hr: ::windows::core::HRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(hr)).ok() } pub unsafe fn PrepareForSyncCompleted(&self, hr: ::windows::core::HRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(hr)).ok() } pub unsafe fn SynchronizeCompleted(&self, hr: ::windows::core::HRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(hr)).ok() } pub unsafe fn ShowErrorCompleted(&self, hr: ::windows::core::HRESULT, citems: u32, pitemids: *const ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(hr), ::core::mem::transmute(citems), ::core::mem::transmute(pitemids)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn EnableModeless<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, fenable: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), fenable.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Progress(&self, itemid: *const ::windows::core::GUID, psyncprogressitem: *const SYNCMGRPROGRESSITEM) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(itemid), ::core::mem::transmute(psyncprogressitem)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn LogError<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, dwerrorlevel: u32, pszerrortext: Param1, psynclogerror: *const SYNCMGRLOGERRORINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwerrorlevel), pszerrortext.into_param().abi(), ::core::mem::transmute(psynclogerror)).ok() } pub unsafe fn DeleteLogError(&self, errorid: *const ::windows::core::GUID, dwreserved: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(errorid), ::core::mem::transmute(dwreserved)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn EstablishConnection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszconnection: Param0, dwreserved: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), pwszconnection.into_param().abi(), ::core::mem::transmute(dwreserved)).ok() } } unsafe impl ::windows::core::Interface for ISyncMgrSynchronizeCallback { type Vtable = ISyncMgrSynchronizeCallback_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6295df41_35ee_11d1_8707_00c04fd93327); } impl ::core::convert::From<ISyncMgrSynchronizeCallback> for ::windows::core::IUnknown { fn from(value: ISyncMgrSynchronizeCallback) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrSynchronizeCallback> for ::windows::core::IUnknown { fn from(value: &ISyncMgrSynchronizeCallback) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrSynchronizeCallback { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrSynchronizeCallback { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrSynchronizeCallback_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, hr: ::windows::core::HRESULT) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hr: ::windows::core::HRESULT) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hr: ::windows::core::HRESULT) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hr: ::windows::core::HRESULT, citems: u32, pitemids: *const ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fenable: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itemid: *const ::windows::core::GUID, psyncprogressitem: *const SYNCMGRPROGRESSITEM) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwerrorlevel: u32, pszerrortext: super::super::Foundation::PWSTR, psynclogerror: *const SYNCMGRLOGERRORINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, errorid: *const ::windows::core::GUID, dwreserved: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pwszconnection: super::super::Foundation::PWSTR, dwreserved: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrSynchronizeInvoke(pub ::windows::core::IUnknown); impl ISyncMgrSynchronizeInvoke { pub unsafe fn UpdateItems(&self, dwinvokeflags: u32, clsid: *const ::windows::core::GUID, cbcookie: u32, pcookie: *const u8) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwinvokeflags), ::core::mem::transmute(clsid), ::core::mem::transmute(cbcookie), ::core::mem::transmute(pcookie)).ok() } pub unsafe fn UpdateAll(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for ISyncMgrSynchronizeInvoke { type Vtable = ISyncMgrSynchronizeInvoke_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6295df2c_35ee_11d1_8707_00c04fd93327); } impl ::core::convert::From<ISyncMgrSynchronizeInvoke> for ::windows::core::IUnknown { fn from(value: ISyncMgrSynchronizeInvoke) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrSynchronizeInvoke> for ::windows::core::IUnknown { fn from(value: &ISyncMgrSynchronizeInvoke) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrSynchronizeInvoke { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrSynchronizeInvoke { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrSynchronizeInvoke_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, dwinvokeflags: u32, clsid: *const ::windows::core::GUID, cbcookie: u32, pcookie: *const u8) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ISyncMgrUIOperation(pub ::windows::core::IUnknown); impl ISyncMgrUIOperation { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Run<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndowner: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hwndowner.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for ISyncMgrUIOperation { type Vtable = ISyncMgrUIOperation_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfc7cfa47_dfe1_45b5_a049_8cfd82bec271); } impl ::core::convert::From<ISyncMgrUIOperation> for ::windows::core::IUnknown { fn from(value: ISyncMgrUIOperation) -> Self { value.0 } } impl ::core::convert::From<&ISyncMgrUIOperation> for ::windows::core::IUnknown { fn from(value: &ISyncMgrUIOperation) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISyncMgrUIOperation { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISyncMgrUIOperation { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ISyncMgrUIOperation_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndowner: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct ITEMSPACING { pub cxSmall: i32, pub cySmall: i32, pub cxLarge: i32, pub cyLarge: i32, } impl ITEMSPACING {} impl ::core::default::Default for ITEMSPACING { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for ITEMSPACING { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("ITEMSPACING").field("cxSmall", &self.cxSmall).field("cySmall", &self.cySmall).field("cxLarge", &self.cxLarge).field("cyLarge", &self.cyLarge).finish() } } impl ::core::cmp::PartialEq for ITEMSPACING { fn eq(&self, other: &Self) -> bool { self.cxSmall == other.cxSmall && self.cySmall == other.cySmall && self.cxLarge == other.cxLarge && self.cyLarge == other.cyLarge } } impl ::core::cmp::Eq for ITEMSPACING {} unsafe impl ::windows::core::Abi for ITEMSPACING { type Abi = Self; } pub const ITSAT_DEFAULT_PRIORITY: u32 = 268435456u32; pub const ITSAT_MAX_PRIORITY: u32 = 2147483647u32; pub const ITSAT_MIN_PRIORITY: u32 = 0u32; pub const ITSSFLAG_COMPLETE_ON_DESTROY: u32 = 0u32; pub const ITSSFLAG_FLAGS_MASK: u32 = 3u32; pub const ITSSFLAG_KILL_ON_DESTROY: u32 = 1u32; #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ITaskbarList(pub ::windows::core::IUnknown); impl ITaskbarList { pub unsafe fn HrInit(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddTab<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), hwnd.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DeleteTab<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), hwnd.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ActivateTab<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), hwnd.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetActiveAlt<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), hwnd.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for ITaskbarList { type Vtable = ITaskbarList_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x56fdf342_fd6d_11d0_958a_006097c9a090); } impl ::core::convert::From<ITaskbarList> for ::windows::core::IUnknown { fn from(value: ITaskbarList) -> Self { value.0 } } impl ::core::convert::From<&ITaskbarList> for ::windows::core::IUnknown { fn from(value: &ITaskbarList) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITaskbarList { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITaskbarList { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ITaskbarList_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) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ITaskbarList2(pub ::windows::core::IUnknown); impl ITaskbarList2 { pub unsafe fn HrInit(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddTab<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), hwnd.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DeleteTab<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), hwnd.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ActivateTab<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), hwnd.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetActiveAlt<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), hwnd.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn MarkFullscreenWindow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, hwnd: Param0, ffullscreen: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ffullscreen.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for ITaskbarList2 { type Vtable = ITaskbarList2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x602d4995_b13a_429b_a66e_1935e44f4317); } impl ::core::convert::From<ITaskbarList2> for ::windows::core::IUnknown { fn from(value: ITaskbarList2) -> Self { value.0 } } impl ::core::convert::From<&ITaskbarList2> for ::windows::core::IUnknown { fn from(value: &ITaskbarList2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITaskbarList2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITaskbarList2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<ITaskbarList2> for ITaskbarList { fn from(value: ITaskbarList2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&ITaskbarList2> for ITaskbarList { fn from(value: &ITaskbarList2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, ITaskbarList> for ITaskbarList2 { fn into_param(self) -> ::windows::core::Param<'a, ITaskbarList> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, ITaskbarList> for &ITaskbarList2 { fn into_param(self) -> ::windows::core::Param<'a, ITaskbarList> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct ITaskbarList2_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) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, ffullscreen: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ITaskbarList3(pub ::windows::core::IUnknown); impl ITaskbarList3 { pub unsafe fn HrInit(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddTab<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), hwnd.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DeleteTab<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), hwnd.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ActivateTab<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), hwnd.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetActiveAlt<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), hwnd.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn MarkFullscreenWindow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, hwnd: Param0, ffullscreen: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ffullscreen.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetProgressValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0, ullcompleted: u64, ulltotal: u64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(ullcompleted), ::core::mem::transmute(ulltotal)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetProgressState<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0, tbpflags: TBPFLAG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(tbpflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn RegisterTab<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndtab: Param0, hwndmdi: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), hwndtab.into_param().abi(), hwndmdi.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn UnregisterTab<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndtab: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), hwndtab.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetTabOrder<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndtab: Param0, hwndinsertbefore: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), hwndtab.into_param().abi(), hwndinsertbefore.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetTabActive<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndtab: Param0, hwndmdi: Param1, dwreserved: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), hwndtab.into_param().abi(), hwndmdi.into_param().abi(), ::core::mem::transmute(dwreserved)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn ThumbBarAddButtons<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0, cbuttons: u32, pbutton: *const THUMBBUTTON) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(cbuttons), ::core::mem::transmute(pbutton)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn ThumbBarUpdateButtons<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0, cbuttons: u32, pbutton: *const THUMBBUTTON) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(cbuttons), ::core::mem::transmute(pbutton)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub unsafe fn ThumbBarSetImageList<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::Controls::HIMAGELIST>>(&self, hwnd: Param0, himl: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), himl.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn SetOverlayIcon<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HICON>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, hwnd: Param0, hicon: Param1, pszdescription: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), hicon.into_param().abi(), pszdescription.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetThumbnailTooltip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, hwnd: Param0, psztip: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), psztip.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetThumbnailClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0, prcclip: *const super::super::Foundation::RECT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(prcclip)).ok() } } unsafe impl ::windows::core::Interface for ITaskbarList3 { type Vtable = ITaskbarList3_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xea1afb91_9e28_4b86_90e9_9e9f8a5eefaf); } impl ::core::convert::From<ITaskbarList3> for ::windows::core::IUnknown { fn from(value: ITaskbarList3) -> Self { value.0 } } impl ::core::convert::From<&ITaskbarList3> for ::windows::core::IUnknown { fn from(value: &ITaskbarList3) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITaskbarList3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITaskbarList3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<ITaskbarList3> for ITaskbarList2 { fn from(value: ITaskbarList3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&ITaskbarList3> for ITaskbarList2 { fn from(value: &ITaskbarList3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, ITaskbarList2> for ITaskbarList3 { fn into_param(self) -> ::windows::core::Param<'a, ITaskbarList2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, ITaskbarList2> for &ITaskbarList3 { fn into_param(self) -> ::windows::core::Param<'a, ITaskbarList2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<ITaskbarList3> for ITaskbarList { fn from(value: ITaskbarList3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&ITaskbarList3> for ITaskbarList { fn from(value: &ITaskbarList3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, ITaskbarList> for ITaskbarList3 { fn into_param(self) -> ::windows::core::Param<'a, ITaskbarList> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, ITaskbarList> for &ITaskbarList3 { fn into_param(self) -> ::windows::core::Param<'a, ITaskbarList> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct ITaskbarList3_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) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, ffullscreen: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, ullcompleted: u64, ulltotal: u64) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, tbpflags: TBPFLAG) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndtab: super::super::Foundation::HWND, hwndmdi: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndtab: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndtab: super::super::Foundation::HWND, hwndinsertbefore: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndtab: super::super::Foundation::HWND, hwndmdi: super::super::Foundation::HWND, dwreserved: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, cbuttons: u32, pbutton: *const THUMBBUTTON) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, cbuttons: u32, pbutton: *const THUMBBUTTON) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, himl: super::Controls::HIMAGELIST) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, hicon: super::WindowsAndMessaging::HICON, pszdescription: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, psztip: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, prcclip: *const super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ITaskbarList4(pub ::windows::core::IUnknown); impl ITaskbarList4 { pub unsafe fn HrInit(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddTab<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), hwnd.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DeleteTab<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), hwnd.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ActivateTab<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), hwnd.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetActiveAlt<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), hwnd.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn MarkFullscreenWindow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, hwnd: Param0, ffullscreen: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ffullscreen.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetProgressValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0, ullcompleted: u64, ulltotal: u64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(ullcompleted), ::core::mem::transmute(ulltotal)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetProgressState<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0, tbpflags: TBPFLAG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(tbpflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn RegisterTab<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndtab: Param0, hwndmdi: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), hwndtab.into_param().abi(), hwndmdi.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn UnregisterTab<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndtab: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), hwndtab.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetTabOrder<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndtab: Param0, hwndinsertbefore: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), hwndtab.into_param().abi(), hwndinsertbefore.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetTabActive<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndtab: Param0, hwndmdi: Param1, dwreserved: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), hwndtab.into_param().abi(), hwndmdi.into_param().abi(), ::core::mem::transmute(dwreserved)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn ThumbBarAddButtons<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0, cbuttons: u32, pbutton: *const THUMBBUTTON) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(cbuttons), ::core::mem::transmute(pbutton)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn ThumbBarUpdateButtons<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0, cbuttons: u32, pbutton: *const THUMBBUTTON) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(cbuttons), ::core::mem::transmute(pbutton)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub unsafe fn ThumbBarSetImageList<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::Controls::HIMAGELIST>>(&self, hwnd: Param0, himl: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), himl.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn SetOverlayIcon<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HICON>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, hwnd: Param0, hicon: Param1, pszdescription: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), hicon.into_param().abi(), pszdescription.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetThumbnailTooltip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, hwnd: Param0, psztip: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), psztip.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetThumbnailClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0, prcclip: *const super::super::Foundation::RECT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(prcclip)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetTabProperties<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwndtab: Param0, stpflags: STPFLAG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), hwndtab.into_param().abi(), ::core::mem::transmute(stpflags)).ok() } } unsafe impl ::windows::core::Interface for ITaskbarList4 { type Vtable = ITaskbarList4_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc43dc798_95d1_4bea_9030_bb99e2983a1a); } impl ::core::convert::From<ITaskbarList4> for ::windows::core::IUnknown { fn from(value: ITaskbarList4) -> Self { value.0 } } impl ::core::convert::From<&ITaskbarList4> for ::windows::core::IUnknown { fn from(value: &ITaskbarList4) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITaskbarList4 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITaskbarList4 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<ITaskbarList4> for ITaskbarList3 { fn from(value: ITaskbarList4) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&ITaskbarList4> for ITaskbarList3 { fn from(value: &ITaskbarList4) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, ITaskbarList3> for ITaskbarList4 { fn into_param(self) -> ::windows::core::Param<'a, ITaskbarList3> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, ITaskbarList3> for &ITaskbarList4 { fn into_param(self) -> ::windows::core::Param<'a, ITaskbarList3> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<ITaskbarList4> for ITaskbarList2 { fn from(value: ITaskbarList4) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&ITaskbarList4> for ITaskbarList2 { fn from(value: &ITaskbarList4) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, ITaskbarList2> for ITaskbarList4 { fn into_param(self) -> ::windows::core::Param<'a, ITaskbarList2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, ITaskbarList2> for &ITaskbarList4 { fn into_param(self) -> ::windows::core::Param<'a, ITaskbarList2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<ITaskbarList4> for ITaskbarList { fn from(value: ITaskbarList4) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&ITaskbarList4> for ITaskbarList { fn from(value: &ITaskbarList4) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, ITaskbarList> for ITaskbarList4 { fn into_param(self) -> ::windows::core::Param<'a, ITaskbarList> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, ITaskbarList> for &ITaskbarList4 { fn into_param(self) -> ::windows::core::Param<'a, ITaskbarList> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct ITaskbarList4_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) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, ffullscreen: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, ullcompleted: u64, ulltotal: u64) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, tbpflags: TBPFLAG) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndtab: super::super::Foundation::HWND, hwndmdi: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndtab: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndtab: super::super::Foundation::HWND, hwndinsertbefore: super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndtab: super::super::Foundation::HWND, hwndmdi: super::super::Foundation::HWND, dwreserved: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, cbuttons: u32, pbutton: *const THUMBBUTTON) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, cbuttons: u32, pbutton: *const THUMBBUTTON) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, himl: super::Controls::HIMAGELIST) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, hicon: super::WindowsAndMessaging::HICON, pszdescription: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, psztip: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, prcclip: *const super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndtab: super::super::Foundation::HWND, stpflags: STPFLAG) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IThumbnailCache(pub ::windows::core::IUnknown); impl IThumbnailCache { pub unsafe fn GetThumbnail<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, pshellitem: Param0, cxyrequestedthumbsize: u32, flags: WTS_FLAGS, ppvthumb: *mut ::core::option::Option<ISharedBitmap>, poutflags: *mut WTS_CACHEFLAGS, pthumbnailid: *mut WTS_THUMBNAILID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pshellitem.into_param().abi(), ::core::mem::transmute(cxyrequestedthumbsize), ::core::mem::transmute(flags), ::core::mem::transmute(ppvthumb), ::core::mem::transmute(poutflags), ::core::mem::transmute(pthumbnailid)).ok() } pub unsafe fn GetThumbnailByID<'a, Param0: ::windows::core::IntoParam<'a, WTS_THUMBNAILID>>(&self, thumbnailid: Param0, cxyrequestedthumbsize: u32, ppvthumb: *mut ::core::option::Option<ISharedBitmap>, poutflags: *mut WTS_CACHEFLAGS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), thumbnailid.into_param().abi(), ::core::mem::transmute(cxyrequestedthumbsize), ::core::mem::transmute(ppvthumb), ::core::mem::transmute(poutflags)).ok() } } unsafe impl ::windows::core::Interface for IThumbnailCache { type Vtable = IThumbnailCache_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf676c15d_596a_4ce2_8234_33996f445db1); } impl ::core::convert::From<IThumbnailCache> for ::windows::core::IUnknown { fn from(value: IThumbnailCache) -> Self { value.0 } } impl ::core::convert::From<&IThumbnailCache> for ::windows::core::IUnknown { fn from(value: &IThumbnailCache) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IThumbnailCache { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IThumbnailCache { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IThumbnailCache_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, pshellitem: ::windows::core::RawPtr, cxyrequestedthumbsize: u32, flags: WTS_FLAGS, ppvthumb: *mut ::windows::core::RawPtr, poutflags: *mut WTS_CACHEFLAGS, pthumbnailid: *mut WTS_THUMBNAILID) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, thumbnailid: WTS_THUMBNAILID, cxyrequestedthumbsize: u32, ppvthumb: *mut ::windows::core::RawPtr, poutflags: *mut WTS_CACHEFLAGS) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IThumbnailCachePrimer(pub ::windows::core::IUnknown); impl IThumbnailCachePrimer { pub unsafe fn PageInThumbnail<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, wtsflags: WTS_FLAGS, cxyrequestedthumbsize: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(wtsflags), ::core::mem::transmute(cxyrequestedthumbsize)).ok() } } unsafe impl ::windows::core::Interface for IThumbnailCachePrimer { type Vtable = IThumbnailCachePrimer_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0f03f8fe_2b26_46f0_965a_212aa8d66b76); } impl ::core::convert::From<IThumbnailCachePrimer> for ::windows::core::IUnknown { fn from(value: IThumbnailCachePrimer) -> Self { value.0 } } impl ::core::convert::From<&IThumbnailCachePrimer> for ::windows::core::IUnknown { fn from(value: &IThumbnailCachePrimer) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IThumbnailCachePrimer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IThumbnailCachePrimer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IThumbnailCachePrimer_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, psi: ::windows::core::RawPtr, wtsflags: WTS_FLAGS, cxyrequestedthumbsize: u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IThumbnailCapture(pub ::windows::core::IUnknown); impl IThumbnailCapture { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe fn CaptureThumbnail<'a, Param1: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, pmaxsize: *const super::super::Foundation::SIZE, phtmldoc2: Param1) -> ::windows::core::Result<super::super::Graphics::Gdi::HBITMAP> { let mut result__: <super::super::Graphics::Gdi::HBITMAP as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pmaxsize), phtmldoc2.into_param().abi(), &mut result__).from_abi::<super::super::Graphics::Gdi::HBITMAP>(result__) } } unsafe impl ::windows::core::Interface for IThumbnailCapture { type Vtable = IThumbnailCapture_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4ea39266_7211_409f_b622_f63dbd16c533); } impl ::core::convert::From<IThumbnailCapture> for ::windows::core::IUnknown { fn from(value: IThumbnailCapture) -> Self { value.0 } } impl ::core::convert::From<&IThumbnailCapture> for ::windows::core::IUnknown { fn from(value: &IThumbnailCapture) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IThumbnailCapture { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IThumbnailCapture { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IThumbnailCapture_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pmaxsize: *const super::super::Foundation::SIZE, phtmldoc2: ::windows::core::RawPtr, phbmthumbnail: *mut super::super::Graphics::Gdi::HBITMAP) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IThumbnailHandlerFactory(pub ::windows::core::IUnknown); impl IThumbnailHandlerFactory { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn GetThumbnailHandler<'a, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>, T: ::windows::core::Interface>(&self, pidlchild: *const Common::ITEMIDLIST, pbc: Param1) -> ::windows::core::Result<T> { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pidlchild), pbc.into_param().abi(), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } } unsafe impl ::windows::core::Interface for IThumbnailHandlerFactory { type Vtable = IThumbnailHandlerFactory_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe35b4b2e_00da_4bc1_9f13_38bc11f5d417); } impl ::core::convert::From<IThumbnailHandlerFactory> for ::windows::core::IUnknown { fn from(value: IThumbnailHandlerFactory) -> Self { value.0 } } impl ::core::convert::From<&IThumbnailHandlerFactory> for ::windows::core::IUnknown { fn from(value: &IThumbnailHandlerFactory) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IThumbnailHandlerFactory { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IThumbnailHandlerFactory { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IThumbnailHandlerFactory_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, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pidlchild: *const Common::ITEMIDLIST, pbc: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IThumbnailProvider(pub ::windows::core::IUnknown); impl IThumbnailProvider { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetThumbnail(&self, cx: u32, phbmp: *mut super::super::Graphics::Gdi::HBITMAP, pdwalpha: *mut WTS_ALPHATYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(cx), ::core::mem::transmute(phbmp), ::core::mem::transmute(pdwalpha)).ok() } } unsafe impl ::windows::core::Interface for IThumbnailProvider { type Vtable = IThumbnailProvider_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe357fccd_a995_4576_b01f_234630154e96); } impl ::core::convert::From<IThumbnailProvider> for ::windows::core::IUnknown { fn from(value: IThumbnailProvider) -> Self { value.0 } } impl ::core::convert::From<&IThumbnailProvider> for ::windows::core::IUnknown { fn from(value: &IThumbnailProvider) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IThumbnailProvider { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IThumbnailProvider { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IThumbnailProvider_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, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, cx: u32, phbmp: *mut super::super::Graphics::Gdi::HBITMAP, pdwalpha: *mut WTS_ALPHATYPE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IThumbnailSettings(pub ::windows::core::IUnknown); impl IThumbnailSettings { pub unsafe fn SetContext(&self, dwcontext: WTS_CONTEXTFLAGS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwcontext)).ok() } } unsafe impl ::windows::core::Interface for IThumbnailSettings { type Vtable = IThumbnailSettings_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf4376f00_bef5_4d45_80f3_1e023bbf1209); } impl ::core::convert::From<IThumbnailSettings> for ::windows::core::IUnknown { fn from(value: IThumbnailSettings) -> Self { value.0 } } impl ::core::convert::From<&IThumbnailSettings> for ::windows::core::IUnknown { fn from(value: &IThumbnailSettings) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IThumbnailSettings { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IThumbnailSettings { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IThumbnailSettings_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, dwcontext: WTS_CONTEXTFLAGS) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IThumbnailStreamCache(pub ::windows::core::IUnknown); impl IThumbnailStreamCache { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe fn GetThumbnailStream<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, path: Param0, cacheid: u64, options: ThumbnailStreamCacheOptions, requestedthumbnailsize: u32, thumbnailsize: *mut super::super::Foundation::SIZE, thumbnailstream: *mut ::core::option::Option<super::super::System::Com::IStream>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), path.into_param().abi(), ::core::mem::transmute(cacheid), ::core::mem::transmute(options), ::core::mem::transmute(requestedthumbnailsize), ::core::mem::transmute(thumbnailsize), ::core::mem::transmute(thumbnailstream)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe fn SetThumbnailStream<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::SIZE>, Param3: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>>(&self, path: Param0, cacheid: u64, thumbnailsize: Param2, thumbnailstream: Param3) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), path.into_param().abi(), ::core::mem::transmute(cacheid), thumbnailsize.into_param().abi(), thumbnailstream.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IThumbnailStreamCache { type Vtable = IThumbnailStreamCache_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x90e11430_9569_41d8_ae75_6d4d2ae7cca0); } impl ::core::convert::From<IThumbnailStreamCache> for ::windows::core::IUnknown { fn from(value: IThumbnailStreamCache) -> Self { value.0 } } impl ::core::convert::From<&IThumbnailStreamCache> for ::windows::core::IUnknown { fn from(value: &IThumbnailStreamCache) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IThumbnailStreamCache { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IThumbnailStreamCache { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IThumbnailStreamCache_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, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, path: super::super::Foundation::PWSTR, cacheid: u64, options: ThumbnailStreamCacheOptions, requestedthumbnailsize: u32, thumbnailsize: *mut super::super::Foundation::SIZE, thumbnailstream: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, path: super::super::Foundation::PWSTR, cacheid: u64, thumbnailsize: super::super::Foundation::SIZE, thumbnailstream: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ITrackShellMenu(pub ::windows::core::IUnknown); impl ITrackShellMenu { pub unsafe fn Initialize<'a, Param0: ::windows::core::IntoParam<'a, IShellMenuCallback>>(&self, psmc: Param0, uid: u32, uidancestor: u32, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psmc.into_param().abi(), ::core::mem::transmute(uid), ::core::mem::transmute(uidancestor), ::core::mem::transmute(dwflags)).ok() } pub unsafe fn GetMenuInfo(&self, ppsmc: *mut ::core::option::Option<IShellMenuCallback>, puid: *mut u32, puidancestor: *mut u32, pdwflags: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(ppsmc), ::core::mem::transmute(puid), ::core::mem::transmute(puidancestor), ::core::mem::transmute(pdwflags)).ok() } #[cfg(all(feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] pub unsafe fn SetShellFolder<'a, Param0: ::windows::core::IntoParam<'a, IShellFolder>, Param2: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>>(&self, psf: Param0, pidlfolder: *const Common::ITEMIDLIST, hkey: Param2, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), psf.into_param().abi(), ::core::mem::transmute(pidlfolder), hkey.into_param().abi(), ::core::mem::transmute(dwflags)).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetShellFolder(&self, pdwflags: *mut u32, ppidl: *mut *mut Common::ITEMIDLIST, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(pdwflags), ::core::mem::transmute(ppidl), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn SetMenu<'a, Param0: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HMENU>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hmenu: Param0, hwnd: Param1, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), hmenu.into_param().abi(), hwnd.into_param().abi(), ::core::mem::transmute(dwflags)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn GetMenu(&self, phmenu: *mut super::WindowsAndMessaging::HMENU, phwnd: *mut super::super::Foundation::HWND, pdwflags: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(phmenu), ::core::mem::transmute(phwnd), ::core::mem::transmute(pdwflags)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn InvalidateItem(&self, psmd: *const SMDATA, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(psmd), ::core::mem::transmute(dwflags)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn GetState(&self) -> ::windows::core::Result<SMDATA> { let mut result__: <SMDATA as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<SMDATA>(result__) } pub unsafe fn SetMenuToolbar<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punk: Param0, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), punk.into_param().abi(), ::core::mem::transmute(dwflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetObscured<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, hwndtb: Param0, punkband: Param1, dwsmsetflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), hwndtb.into_param().abi(), punkband.into_param().abi(), ::core::mem::transmute(dwsmsetflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Popup<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, hwnd: Param0, ppt: *mut super::super::Foundation::POINTL, prcexclude: *mut super::super::Foundation::RECTL, dwflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), hwnd.into_param().abi(), ::core::mem::transmute(ppt), ::core::mem::transmute(prcexclude), ::core::mem::transmute(dwflags)).ok() } } unsafe impl ::windows::core::Interface for ITrackShellMenu { type Vtable = ITrackShellMenu_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8278f932_2a3e_11d2_838f_00c04fd918d0); } impl ::core::convert::From<ITrackShellMenu> for ::windows::core::IUnknown { fn from(value: ITrackShellMenu) -> Self { value.0 } } impl ::core::convert::From<&ITrackShellMenu> for ::windows::core::IUnknown { fn from(value: &ITrackShellMenu) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITrackShellMenu { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITrackShellMenu { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<ITrackShellMenu> for IShellMenu { fn from(value: ITrackShellMenu) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&ITrackShellMenu> for IShellMenu { fn from(value: &ITrackShellMenu) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IShellMenu> for ITrackShellMenu { fn into_param(self) -> ::windows::core::Param<'a, IShellMenu> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IShellMenu> for &ITrackShellMenu { fn into_param(self) -> ::windows::core::Param<'a, IShellMenu> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct ITrackShellMenu_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, psmc: ::windows::core::RawPtr, uid: u32, uidancestor: u32, dwflags: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsmc: *mut ::windows::core::RawPtr, puid: *mut u32, puidancestor: *mut u32, pdwflags: *mut u32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psf: ::windows::core::RawPtr, pidlfolder: *const Common::ITEMIDLIST, hkey: super::super::System::Registry::HKEY, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwflags: *mut u32, ppidl: *mut *mut Common::ITEMIDLIST, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hmenu: super::WindowsAndMessaging::HMENU, hwnd: super::super::Foundation::HWND, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phmenu: *mut super::WindowsAndMessaging::HMENU, phwnd: *mut super::super::Foundation::HWND, pdwflags: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psmd: *const ::core::mem::ManuallyDrop<SMDATA>, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psmd: *mut ::core::mem::ManuallyDrop<SMDATA>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punk: ::windows::core::RawPtr, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwndtb: super::super::Foundation::HWND, punkband: ::windows::core::RawPtr, dwsmsetflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, ppt: *mut super::super::Foundation::POINTL, prcexclude: *mut super::super::Foundation::RECTL, dwflags: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ITranscodeImage(pub ::windows::core::IUnknown); impl ITranscodeImage { #[cfg(feature = "Win32_System_Com")] pub unsafe fn TranscodeImage<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param4: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>>(&self, pshellitem: Param0, uimaxwidth: u32, uimaxheight: u32, flags: u32, pvimage: Param4, puiwidth: *mut u32, puiheight: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pshellitem.into_param().abi(), ::core::mem::transmute(uimaxwidth), ::core::mem::transmute(uimaxheight), ::core::mem::transmute(flags), pvimage.into_param().abi(), ::core::mem::transmute(puiwidth), ::core::mem::transmute(puiheight)).ok() } } unsafe impl ::windows::core::Interface for ITranscodeImage { type Vtable = ITranscodeImage_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbae86ddd_dc11_421c_b7ab_cc55d1d65c44); } impl ::core::convert::From<ITranscodeImage> for ::windows::core::IUnknown { fn from(value: ITranscodeImage) -> Self { value.0 } } impl ::core::convert::From<&ITranscodeImage> for ::windows::core::IUnknown { fn from(value: &ITranscodeImage) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITranscodeImage { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITranscodeImage { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ITranscodeImage_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, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pshellitem: ::windows::core::RawPtr, uimaxwidth: u32, uimaxheight: u32, flags: u32, pvimage: ::windows::core::RawPtr, puiwidth: *mut u32, puiheight: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ITransferAdviseSink(pub ::windows::core::IUnknown); impl ITransferAdviseSink { pub unsafe fn UpdateProgress(&self, ullsizecurrent: u64, ullsizetotal: u64, nfilescurrent: i32, nfilestotal: i32, nfolderscurrent: i32, nfolderstotal: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(ullsizecurrent), ::core::mem::transmute(ullsizetotal), ::core::mem::transmute(nfilescurrent), ::core::mem::transmute(nfilestotal), ::core::mem::transmute(nfolderscurrent), ::core::mem::transmute(nfolderstotal)).ok() } pub unsafe fn UpdateTransferState(&self, ts: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(ts)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ConfirmOverwrite<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, IShellItem>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psisource: Param0, psidestparent: Param1, pszname: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), psisource.into_param().abi(), psidestparent.into_param().abi(), pszname.into_param().abi()).ok() } pub unsafe fn ConfirmEncryptionLoss<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psisource: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), psisource.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn FileFailure<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psi: Param0, pszitem: Param1, hrerror: ::windows::core::HRESULT, pszrename: Param3, cchrename: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), psi.into_param().abi(), pszitem.into_param().abi(), ::core::mem::transmute(hrerror), pszrename.into_param().abi(), ::core::mem::transmute(cchrename)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SubStreamFailure<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psi: Param0, pszstreamname: Param1, hrerror: ::windows::core::HRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), psi.into_param().abi(), pszstreamname.into_param().abi(), ::core::mem::transmute(hrerror)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn PropertyFailure<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, pkey: *const PropertiesSystem::PROPERTYKEY, hrerror: ::windows::core::HRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(pkey), ::core::mem::transmute(hrerror)).ok() } } unsafe impl ::windows::core::Interface for ITransferAdviseSink { type Vtable = ITransferAdviseSink_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd594d0d8_8da7_457b_b3b4_ce5dbaac0b88); } impl ::core::convert::From<ITransferAdviseSink> for ::windows::core::IUnknown { fn from(value: ITransferAdviseSink) -> Self { value.0 } } impl ::core::convert::From<&ITransferAdviseSink> for ::windows::core::IUnknown { fn from(value: &ITransferAdviseSink) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITransferAdviseSink { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITransferAdviseSink { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ITransferAdviseSink_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, ullsizecurrent: u64, ullsizetotal: u64, nfilescurrent: i32, nfilestotal: i32, nfolderscurrent: i32, nfolderstotal: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ts: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psisource: ::windows::core::RawPtr, psidestparent: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psisource: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, pszitem: super::super::Foundation::PWSTR, hrerror: ::windows::core::HRESULT, pszrename: super::super::Foundation::PWSTR, cchrename: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, pszstreamname: super::super::Foundation::PWSTR, hrerror: ::windows::core::HRESULT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, pkey: *const PropertiesSystem::PROPERTYKEY, hrerror: ::windows::core::HRESULT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ITransferDestination(pub ::windows::core::IUnknown); impl ITransferDestination { pub unsafe fn Advise<'a, Param0: ::windows::core::IntoParam<'a, ITransferAdviseSink>>(&self, psink: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psink.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwcookie)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CreateItem<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszname: Param0, dwattributes: u32, ullsize: u64, flags: u32, riiditem: *const ::windows::core::GUID, ppvitem: *mut *mut ::core::ffi::c_void, riidresources: *const ::windows::core::GUID, ppvresources: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)( ::core::mem::transmute_copy(self), pszname.into_param().abi(), ::core::mem::transmute(dwattributes), ::core::mem::transmute(ullsize), ::core::mem::transmute(flags), ::core::mem::transmute(riiditem), ::core::mem::transmute(ppvitem), ::core::mem::transmute(riidresources), ::core::mem::transmute(ppvresources), ) .ok() } } unsafe impl ::windows::core::Interface for ITransferDestination { type Vtable = ITransferDestination_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x48addd32_3ca5_4124_abe3_b5a72531b207); } impl ::core::convert::From<ITransferDestination> for ::windows::core::IUnknown { fn from(value: ITransferDestination) -> Self { value.0 } } impl ::core::convert::From<&ITransferDestination> for ::windows::core::IUnknown { fn from(value: &ITransferDestination) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITransferDestination { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITransferDestination { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ITransferDestination_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, psink: ::windows::core::RawPtr, pdwcookie: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwcookie: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR, dwattributes: u32, ullsize: u64, flags: u32, riiditem: *const ::windows::core::GUID, ppvitem: *mut *mut ::core::ffi::c_void, riidresources: *const ::windows::core::GUID, ppvresources: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ITransferMediumItem(pub ::windows::core::IUnknown); impl ITransferMediumItem { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetItemIDList(&self) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } pub unsafe fn GetItem(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } } unsafe impl ::windows::core::Interface for ITransferMediumItem { type Vtable = ITransferMediumItem_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x77f295d5_2d6f_4e19_b8ae_322f3e721ab5); } impl ::core::convert::From<ITransferMediumItem> for ::windows::core::IUnknown { fn from(value: ITransferMediumItem) -> Self { value.0 } } impl ::core::convert::From<&ITransferMediumItem> for ::windows::core::IUnknown { fn from(value: &ITransferMediumItem) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITransferMediumItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITransferMediumItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<ITransferMediumItem> for IRelatedItem { fn from(value: ITransferMediumItem) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&ITransferMediumItem> for IRelatedItem { fn from(value: &ITransferMediumItem) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IRelatedItem> for ITransferMediumItem { fn into_param(self) -> ::windows::core::Param<'a, IRelatedItem> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IRelatedItem> for &ITransferMediumItem { fn into_param(self) -> ::windows::core::Param<'a, IRelatedItem> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct ITransferMediumItem_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, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ITransferSource(pub ::windows::core::IUnknown); impl ITransferSource { pub unsafe fn Advise<'a, Param0: ::windows::core::IntoParam<'a, ITransferAdviseSink>>(&self, psink: Param0) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psink.into_param().abi(), &mut result__).from_abi::<u32>(result__) } pub unsafe fn Unadvise(&self, dwcookie: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwcookie)).ok() } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn SetProperties<'a, Param0: ::windows::core::IntoParam<'a, PropertiesSystem::IPropertyChangeArray>>(&self, pproparray: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), pproparray.into_param().abi()).ok() } pub unsafe fn OpenItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psi: Param0, flags: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), psi.into_param().abi(), ::core::mem::transmute(flags), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn MoveItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, IShellItem>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psi: Param0, psiparentdst: Param1, psznamedst: Param2, flags: u32) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), psi.into_param().abi(), psiparentdst.into_param().abi(), psznamedst.into_param().abi(), ::core::mem::transmute(flags), &mut result__).from_abi::<IShellItem>(result__) } pub unsafe fn RecycleItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, IShellItem>>(&self, psisource: Param0, psiparentdest: Param1, flags: u32) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), psisource.into_param().abi(), psiparentdest.into_param().abi(), ::core::mem::transmute(flags), &mut result__).from_abi::<IShellItem>(result__) } pub unsafe fn RemoveItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psisource: Param0, flags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), psisource.into_param().abi(), ::core::mem::transmute(flags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn RenameItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psisource: Param0, psznewname: Param1, flags: u32) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), psisource.into_param().abi(), psznewname.into_param().abi(), ::core::mem::transmute(flags), &mut result__).from_abi::<IShellItem>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn LinkItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, IShellItem>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psisource: Param0, psiparentdest: Param1, psznewname: Param2, flags: u32) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), psisource.into_param().abi(), psiparentdest.into_param().abi(), psznewname.into_param().abi(), ::core::mem::transmute(flags), &mut result__).from_abi::<IShellItem>(result__) } pub unsafe fn ApplyPropertiesToItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psisource: Param0) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), psisource.into_param().abi(), &mut result__).from_abi::<IShellItem>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDefaultDestinationName<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, IShellItem>>(&self, psisource: Param0, psiparentdest: Param1) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), psisource.into_param().abi(), psiparentdest.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } pub unsafe fn EnterFolder<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psichildfolderdest: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), psichildfolderdest.into_param().abi()).ok() } pub unsafe fn LeaveFolder<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(&self, psichildfolderdest: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), psichildfolderdest.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for ITransferSource { type Vtable = ITransferSource_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00adb003_bde9_45c6_8e29_d09f9353e108); } impl ::core::convert::From<ITransferSource> for ::windows::core::IUnknown { fn from(value: ITransferSource) -> Self { value.0 } } impl ::core::convert::From<&ITransferSource> for ::windows::core::IUnknown { fn from(value: &ITransferSource) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITransferSource { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITransferSource { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ITransferSource_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, psink: ::windows::core::RawPtr, pdwcookie: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwcookie: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pproparray: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, flags: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psi: ::windows::core::RawPtr, psiparentdst: ::windows::core::RawPtr, psznamedst: super::super::Foundation::PWSTR, flags: u32, ppsinew: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psisource: ::windows::core::RawPtr, psiparentdest: ::windows::core::RawPtr, flags: u32, ppsinewdest: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psisource: ::windows::core::RawPtr, flags: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psisource: ::windows::core::RawPtr, psznewname: super::super::Foundation::PWSTR, flags: u32, ppsinewdest: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psisource: ::windows::core::RawPtr, psiparentdest: ::windows::core::RawPtr, psznewname: super::super::Foundation::PWSTR, flags: u32, ppsinewdest: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psisource: ::windows::core::RawPtr, ppsinew: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psisource: ::windows::core::RawPtr, psiparentdest: ::windows::core::RawPtr, ppszdestinationname: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psichildfolderdest: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psichildfolderdest: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ITravelEntry(pub ::windows::core::IUnknown); impl ITravelEntry { pub unsafe fn Invoke<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punk: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), punk.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Update<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, punk: Param0, fislocalanchor: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), punk.into_param().abi(), fislocalanchor.into_param().abi()).ok() } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetPidl(&self) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } } unsafe impl ::windows::core::Interface for ITravelEntry { type Vtable = ITravelEntry_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf46edb3b_bc2f_11d0_9412_00aa00a3ebd3); } impl ::core::convert::From<ITravelEntry> for ::windows::core::IUnknown { fn from(value: ITravelEntry) -> Self { value.0 } } impl ::core::convert::From<&ITravelEntry> for ::windows::core::IUnknown { fn from(value: &ITravelEntry) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITravelEntry { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITravelEntry { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ITravelEntry_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, punk: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punk: ::windows::core::RawPtr, fislocalanchor: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ITravelLog(pub ::windows::core::IUnknown); impl ITravelLog { #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddEntry<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, punk: Param0, fislocalanchor: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), punk.into_param().abi(), fislocalanchor.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn UpdateEntry<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, punk: Param0, fislocalanchor: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), punk.into_param().abi(), fislocalanchor.into_param().abi()).ok() } pub unsafe fn UpdateExternal<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punk: Param0, punkhlbrowsecontext: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), punk.into_param().abi(), punkhlbrowsecontext.into_param().abi()).ok() } pub unsafe fn Travel<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punk: Param0, ioffset: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), punk.into_param().abi(), ::core::mem::transmute(ioffset)).ok() } pub unsafe fn GetTravelEntry<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punk: Param0, ioffset: i32) -> ::windows::core::Result<ITravelEntry> { let mut result__: <ITravelEntry as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), punk.into_param().abi(), ::core::mem::transmute(ioffset), &mut result__).from_abi::<ITravelEntry>(result__) } #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn FindTravelEntry<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punk: Param0, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<ITravelEntry> { let mut result__: <ITravelEntry as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), punk.into_param().abi(), ::core::mem::transmute(pidl), &mut result__).from_abi::<ITravelEntry>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetToolTipText<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punk: Param0, ioffset: i32, idstemplate: i32, pwztext: super::super::Foundation::PWSTR, cchtext: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), punk.into_param().abi(), ::core::mem::transmute(ioffset), ::core::mem::transmute(idstemplate), ::core::mem::transmute(pwztext), ::core::mem::transmute(cchtext)).ok() } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn InsertMenuEntries<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param1: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HMENU>>(&self, punk: Param0, hmenu: Param1, npos: i32, idfirst: i32, idlast: i32, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), punk.into_param().abi(), hmenu.into_param().abi(), ::core::mem::transmute(npos), ::core::mem::transmute(idfirst), ::core::mem::transmute(idlast), ::core::mem::transmute(dwflags)).ok() } pub unsafe fn Clone(&self) -> ::windows::core::Result<ITravelLog> { let mut result__: <ITravelLog as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<ITravelLog>(result__) } pub unsafe fn CountEntries<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(&self, punk: Param0) -> u32 { ::core::mem::transmute((::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), punk.into_param().abi())) } pub unsafe fn Revert(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for ITravelLog { type Vtable = ITravelLog_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x66a9cb08_4802_11d2_a561_00a0c92dbfe8); } impl ::core::convert::From<ITravelLog> for ::windows::core::IUnknown { fn from(value: ITravelLog) -> Self { value.0 } } impl ::core::convert::From<&ITravelLog> for ::windows::core::IUnknown { fn from(value: &ITravelLog) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITravelLog { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITravelLog { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ITravelLog_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punk: ::windows::core::RawPtr, fislocalanchor: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punk: ::windows::core::RawPtr, fislocalanchor: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punk: ::windows::core::RawPtr, punkhlbrowsecontext: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punk: ::windows::core::RawPtr, ioffset: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punk: ::windows::core::RawPtr, ioffset: i32, ppte: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punk: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, ppte: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punk: ::windows::core::RawPtr, ioffset: i32, idstemplate: i32, pwztext: super::super::Foundation::PWSTR, cchtext: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punk: ::windows::core::RawPtr, hmenu: super::WindowsAndMessaging::HMENU, npos: i32, idfirst: i32, idlast: i32, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pptl: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, punk: ::windows::core::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ITravelLogClient(pub ::windows::core::IUnknown); impl ITravelLogClient { pub unsafe fn FindWindowByIndex(&self, dwid: u32) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__: <::windows::core::IUnknown as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwid), &mut result__).from_abi::<::windows::core::IUnknown>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn GetWindowData<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>>(&self, pstream: Param0) -> ::windows::core::Result<WINDOWDATA> { let mut result__: <WINDOWDATA as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pstream.into_param().abi(), &mut result__).from_abi::<WINDOWDATA>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn LoadHistoryPosition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszurllocation: Param0, dwposition: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), pszurllocation.into_param().abi(), ::core::mem::transmute(dwposition)).ok() } } unsafe impl ::windows::core::Interface for ITravelLogClient { type Vtable = ITravelLogClient_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x241c033e_e659_43da_aa4d_4086dbc4758d); } impl ::core::convert::From<ITravelLogClient> for ::windows::core::IUnknown { fn from(value: ITravelLogClient) -> Self { value.0 } } impl ::core::convert::From<&ITravelLogClient> for ::windows::core::IUnknown { fn from(value: &ITravelLogClient) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITravelLogClient { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITravelLogClient { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ITravelLogClient_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, dwid: u32, ppunk: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pstream: ::windows::core::RawPtr, pwindata: *mut WINDOWDATA) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszurllocation: super::super::Foundation::PWSTR, dwposition: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ITravelLogEntry(pub ::windows::core::IUnknown); impl ITravelLogEntry { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetTitle(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetURL(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } } unsafe impl ::windows::core::Interface for ITravelLogEntry { type Vtable = ITravelLogEntry_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7ebfdd87_ad18_11d3_a4c5_00c04f72d6b8); } impl ::core::convert::From<ITravelLogEntry> for ::windows::core::IUnknown { fn from(value: ITravelLogEntry) -> Self { value.0 } } impl ::core::convert::From<&ITravelLogEntry> for ::windows::core::IUnknown { fn from(value: &ITravelLogEntry) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITravelLogEntry { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITravelLogEntry { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ITravelLogEntry_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsztitle: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppszurl: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ITravelLogStg(pub ::windows::core::IUnknown); impl ITravelLogStg { #[cfg(feature = "Win32_Foundation")] pub unsafe fn CreateEntry<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, ITravelLogEntry>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, pszurl: Param0, psztitle: Param1, ptlerelativeto: Param2, fprepend: Param3) -> ::windows::core::Result<ITravelLogEntry> { let mut result__: <ITravelLogEntry as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszurl.into_param().abi(), psztitle.into_param().abi(), ptlerelativeto.into_param().abi(), fprepend.into_param().abi(), &mut result__).from_abi::<ITravelLogEntry>(result__) } pub unsafe fn TravelTo<'a, Param0: ::windows::core::IntoParam<'a, ITravelLogEntry>>(&self, ptle: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ptle.into_param().abi()).ok() } pub unsafe fn EnumEntries(&self, flags: TLENUMF) -> ::windows::core::Result<IEnumTravelLogEntry> { let mut result__: <IEnumTravelLogEntry as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(flags), &mut result__).from_abi::<IEnumTravelLogEntry>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn FindEntries<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, flags: TLENUMF, pszurl: Param1) -> ::windows::core::Result<IEnumTravelLogEntry> { let mut result__: <IEnumTravelLogEntry as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(flags), pszurl.into_param().abi(), &mut result__).from_abi::<IEnumTravelLogEntry>(result__) } pub unsafe fn GetCount(&self, flags: TLENUMF) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(flags), &mut result__).from_abi::<u32>(result__) } pub unsafe fn RemoveEntry<'a, Param0: ::windows::core::IntoParam<'a, ITravelLogEntry>>(&self, ptle: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ptle.into_param().abi()).ok() } pub unsafe fn GetRelativeEntry(&self, ioffset: i32) -> ::windows::core::Result<ITravelLogEntry> { let mut result__: <ITravelLogEntry as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(ioffset), &mut result__).from_abi::<ITravelLogEntry>(result__) } } unsafe impl ::windows::core::Interface for ITravelLogStg { type Vtable = ITravelLogStg_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7ebfdd80_ad18_11d3_a4c5_00c04f72d6b8); } impl ::core::convert::From<ITravelLogStg> for ::windows::core::IUnknown { fn from(value: ITravelLogStg) -> Self { value.0 } } impl ::core::convert::From<&ITravelLogStg> for ::windows::core::IUnknown { fn from(value: &ITravelLogStg) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITravelLogStg { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITravelLogStg { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ITravelLogStg_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszurl: super::super::Foundation::PWSTR, psztitle: super::super::Foundation::PWSTR, ptlerelativeto: ::windows::core::RawPtr, fprepend: super::super::Foundation::BOOL, pptle: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ptle: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, flags: TLENUMF, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, flags: TLENUMF, pszurl: super::super::Foundation::PWSTR, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, flags: TLENUMF, pcentries: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ptle: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ioffset: i32, ptle: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ITrayDeskBand(pub ::windows::core::IUnknown); impl ITrayDeskBand { pub unsafe fn ShowDeskBand(&self, clsid: *const ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(clsid)).ok() } pub unsafe fn HideDeskBand(&self, clsid: *const ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(clsid)).ok() } pub unsafe fn IsDeskBandShown(&self, clsid: *const ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(clsid)).ok() } pub unsafe fn DeskBandRegistrationChanged(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for ITrayDeskBand { type Vtable = ITrayDeskBand_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6d67e846_5b9c_4db8_9cbc_dde12f4254f1); } impl ::core::convert::From<ITrayDeskBand> for ::windows::core::IUnknown { fn from(value: ITrayDeskBand) -> Self { value.0 } } impl ::core::convert::From<&ITrayDeskBand> for ::windows::core::IUnknown { fn from(value: &ITrayDeskBand) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITrayDeskBand { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITrayDeskBand { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct ITrayDeskBand_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, clsid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, clsid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, clsid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IURLSearchHook(pub ::windows::core::IUnknown); impl IURLSearchHook { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Translate(&self, pwszsearchurl: super::super::Foundation::PWSTR, cchbuffersize: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pwszsearchurl), ::core::mem::transmute(cchbuffersize)).ok() } } unsafe impl ::windows::core::Interface for IURLSearchHook { type Vtable = IURLSearchHook_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xac60f6a0_0fd9_11d0_99cb_00c04fd64497); } impl ::core::convert::From<IURLSearchHook> for ::windows::core::IUnknown { fn from(value: IURLSearchHook) -> Self { value.0 } } impl ::core::convert::From<&IURLSearchHook> for ::windows::core::IUnknown { fn from(value: &IURLSearchHook) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IURLSearchHook { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IURLSearchHook { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IURLSearchHook_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pwszsearchurl: super::super::Foundation::PWSTR, cchbuffersize: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IURLSearchHook2(pub ::windows::core::IUnknown); impl IURLSearchHook2 { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Translate(&self, pwszsearchurl: super::super::Foundation::PWSTR, cchbuffersize: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pwszsearchurl), ::core::mem::transmute(cchbuffersize)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn TranslateWithSearchContext<'a, Param2: ::windows::core::IntoParam<'a, ISearchContext>>(&self, pwszsearchurl: super::super::Foundation::PWSTR, cchbuffersize: u32, psearchcontext: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pwszsearchurl), ::core::mem::transmute(cchbuffersize), psearchcontext.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IURLSearchHook2 { type Vtable = IURLSearchHook2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5ee44da4_6d32_46e3_86bc_07540dedd0e0); } impl ::core::convert::From<IURLSearchHook2> for ::windows::core::IUnknown { fn from(value: IURLSearchHook2) -> Self { value.0 } } impl ::core::convert::From<&IURLSearchHook2> for ::windows::core::IUnknown { fn from(value: &IURLSearchHook2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IURLSearchHook2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IURLSearchHook2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IURLSearchHook2> for IURLSearchHook { fn from(value: IURLSearchHook2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IURLSearchHook2> for IURLSearchHook { fn from(value: &IURLSearchHook2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IURLSearchHook> for IURLSearchHook2 { fn into_param(self) -> ::windows::core::Param<'a, IURLSearchHook> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IURLSearchHook> for &IURLSearchHook2 { fn into_param(self) -> ::windows::core::Param<'a, IURLSearchHook> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IURLSearchHook2_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pwszsearchurl: super::super::Foundation::PWSTR, cchbuffersize: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pwszsearchurl: super::super::Foundation::PWSTR, cchbuffersize: u32, psearchcontext: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IUniformResourceLocatorA(pub ::windows::core::IUnknown); impl IUniformResourceLocatorA { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetURL<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(&self, pcszurl: Param0, dwinflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pcszurl.into_param().abi(), ::core::mem::transmute(dwinflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetURL(&self) -> ::windows::core::Result<super::super::Foundation::PSTR> { let mut result__: <super::super::Foundation::PSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn InvokeCommand(&self, purlici: *mut urlinvokecommandinfoA) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(purlici)).ok() } } unsafe impl ::windows::core::Interface for IUniformResourceLocatorA { type Vtable = IUniformResourceLocatorA_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfbf23b80_e3f0_101b_8488_00aa003e56f8); } impl ::core::convert::From<IUniformResourceLocatorA> for ::windows::core::IUnknown { fn from(value: IUniformResourceLocatorA) -> Self { value.0 } } impl ::core::convert::From<&IUniformResourceLocatorA> for ::windows::core::IUnknown { fn from(value: &IUniformResourceLocatorA) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IUniformResourceLocatorA { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IUniformResourceLocatorA { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IUniformResourceLocatorA_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcszurl: super::super::Foundation::PSTR, dwinflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppszurl: *mut super::super::Foundation::PSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, purlici: *mut urlinvokecommandinfoA) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IUniformResourceLocatorW(pub ::windows::core::IUnknown); impl IUniformResourceLocatorW { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetURL<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pcszurl: Param0, dwinflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pcszurl.into_param().abi(), ::core::mem::transmute(dwinflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetURL(&self) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn InvokeCommand(&self, purlici: *mut urlinvokecommandinfoW) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(purlici)).ok() } } unsafe impl ::windows::core::Interface for IUniformResourceLocatorW { type Vtable = IUniformResourceLocatorW_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcabb0da0_da57_11cf_9974_0020afd79762); } impl ::core::convert::From<IUniformResourceLocatorW> for ::windows::core::IUnknown { fn from(value: IUniformResourceLocatorW) -> Self { value.0 } } impl ::core::convert::From<&IUniformResourceLocatorW> for ::windows::core::IUnknown { fn from(value: &IUniformResourceLocatorW) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IUniformResourceLocatorW { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IUniformResourceLocatorW { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IUniformResourceLocatorW_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcszurl: super::super::Foundation::PWSTR, dwinflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppszurl: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, purlici: *mut urlinvokecommandinfoW) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[inline] pub unsafe fn IUnknown_AtomicRelease(ppunk: *mut *mut ::core::ffi::c_void) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IUnknown_AtomicRelease(ppunk: *mut *mut ::core::ffi::c_void); } ::core::mem::transmute(IUnknown_AtomicRelease(::core::mem::transmute(ppunk))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn IUnknown_GetSite<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(punk: Param0, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IUnknown_GetSite(punk: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } IUnknown_GetSite(punk.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn IUnknown_GetWindow<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(punk: Param0) -> ::windows::core::Result<super::super::Foundation::HWND> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IUnknown_GetWindow(punk: ::windows::core::RawPtr, phwnd: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT; } let mut result__: <super::super::Foundation::HWND as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); IUnknown_GetWindow(punk.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::HWND>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn IUnknown_QueryService<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, T: ::windows::core::Interface>(punk: Param0, guidservice: *const ::windows::core::GUID) -> ::windows::core::Result<T> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IUnknown_QueryService(punk: ::windows::core::RawPtr, guidservice: *const ::windows::core::GUID, riid: *const ::windows::core::GUID, ppvout: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } let mut result__ = ::core::option::Option::None; IUnknown_QueryService(punk.into_param().abi(), ::core::mem::transmute(guidservice), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn IUnknown_Set<'a, Param1: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(ppunk: *mut ::core::option::Option<::windows::core::IUnknown>, punk: Param1) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IUnknown_Set(ppunk: *mut ::windows::core::RawPtr, punk: ::windows::core::RawPtr); } ::core::mem::transmute(IUnknown_Set(::core::mem::transmute(ppunk), punk.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn IUnknown_SetSite<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(punk: Param0, punksite: Param1) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IUnknown_SetSite(punk: ::windows::core::RawPtr, punksite: ::windows::core::RawPtr) -> ::windows::core::HRESULT; } IUnknown_SetSite(punk.into_param().abi(), punksite.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IUpdateIDList(pub ::windows::core::IUnknown); impl IUpdateIDList { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe fn Update<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>>(&self, pbc: Param0, pidlin: *const Common::ITEMIDLIST) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pbc.into_param().abi(), ::core::mem::transmute(pidlin), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } } unsafe impl ::windows::core::Interface for IUpdateIDList { type Vtable = IUpdateIDList_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6589b6d2_5f8d_4b9e_b7e0_23cdd9717d8c); } impl ::core::convert::From<IUpdateIDList> for ::windows::core::IUnknown { fn from(value: IUpdateIDList) -> Self { value.0 } } impl ::core::convert::From<&IUpdateIDList> for ::windows::core::IUnknown { fn from(value: &IUpdateIDList) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IUpdateIDList { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IUpdateIDList { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IUpdateIDList_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, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbc: ::windows::core::RawPtr, pidlin: *const Common::ITEMIDLIST, ppidlout: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IUseToBrowseItem(pub ::windows::core::IUnknown); impl IUseToBrowseItem { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetItemIDList(&self) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } pub unsafe fn GetItem(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } } unsafe impl ::windows::core::Interface for IUseToBrowseItem { type Vtable = IUseToBrowseItem_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x05edda5c_98a3_4717_8adb_c5e7da991eb1); } impl ::core::convert::From<IUseToBrowseItem> for ::windows::core::IUnknown { fn from(value: IUseToBrowseItem) -> Self { value.0 } } impl ::core::convert::From<&IUseToBrowseItem> for ::windows::core::IUnknown { fn from(value: &IUseToBrowseItem) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IUseToBrowseItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IUseToBrowseItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IUseToBrowseItem> for IRelatedItem { fn from(value: IUseToBrowseItem) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IUseToBrowseItem> for IRelatedItem { fn from(value: &IUseToBrowseItem) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IRelatedItem> for IUseToBrowseItem { fn into_param(self) -> ::windows::core::Param<'a, IRelatedItem> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IRelatedItem> for &IUseToBrowseItem { fn into_param(self) -> ::windows::core::Param<'a, IRelatedItem> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IUseToBrowseItem_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, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IUserAccountChangeCallback(pub ::windows::core::IUnknown); impl IUserAccountChangeCallback { #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnPictureChange<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszusername: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszusername.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IUserAccountChangeCallback { type Vtable = IUserAccountChangeCallback_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa561e69a_b4b8_4113_91a5_64c6bcca3430); } impl ::core::convert::From<IUserAccountChangeCallback> for ::windows::core::IUnknown { fn from(value: IUserAccountChangeCallback) -> Self { value.0 } } impl ::core::convert::From<&IUserAccountChangeCallback> for ::windows::core::IUnknown { fn from(value: &IUserAccountChangeCallback) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IUserAccountChangeCallback { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IUserAccountChangeCallback { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IUserAccountChangeCallback_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszusername: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IUserNotification(pub ::windows::core::IUnknown); impl IUserNotification { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetBalloonInfo<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psztitle: Param0, psztext: Param1, dwinfoflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psztitle.into_param().abi(), psztext.into_param().abi(), ::core::mem::transmute(dwinfoflags)).ok() } pub unsafe fn SetBalloonRetry(&self, dwshowtime: u32, dwinterval: u32, cretrycount: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwshowtime), ::core::mem::transmute(dwinterval), ::core::mem::transmute(cretrycount)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn SetIconInfo<'a, Param0: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HICON>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, hicon: Param0, psztooltip: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), hicon.into_param().abi(), psztooltip.into_param().abi()).ok() } pub unsafe fn Show<'a, Param0: ::windows::core::IntoParam<'a, IQueryContinue>>(&self, pqc: Param0, dwcontinuepollinterval: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pqc.into_param().abi(), ::core::mem::transmute(dwcontinuepollinterval)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn PlaySound<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszsoundname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pszsoundname.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IUserNotification { type Vtable = IUserNotification_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xba9711ba_5893_4787_a7e1_41277151550b); } impl ::core::convert::From<IUserNotification> for ::windows::core::IUnknown { fn from(value: IUserNotification) -> Self { value.0 } } impl ::core::convert::From<&IUserNotification> for ::windows::core::IUnknown { fn from(value: &IUserNotification) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IUserNotification { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IUserNotification { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IUserNotification_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psztitle: super::super::Foundation::PWSTR, psztext: super::super::Foundation::PWSTR, dwinfoflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwshowtime: u32, dwinterval: u32, cretrycount: u32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hicon: super::WindowsAndMessaging::HICON, psztooltip: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pqc: ::windows::core::RawPtr, dwcontinuepollinterval: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszsoundname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IUserNotification2(pub ::windows::core::IUnknown); impl IUserNotification2 { #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetBalloonInfo<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, psztitle: Param0, psztext: Param1, dwinfoflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), psztitle.into_param().abi(), psztext.into_param().abi(), ::core::mem::transmute(dwinfoflags)).ok() } pub unsafe fn SetBalloonRetry(&self, dwshowtime: u32, dwinterval: u32, cretrycount: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwshowtime), ::core::mem::transmute(dwinterval), ::core::mem::transmute(cretrycount)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe fn SetIconInfo<'a, Param0: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HICON>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, hicon: Param0, psztooltip: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), hicon.into_param().abi(), psztooltip.into_param().abi()).ok() } pub unsafe fn Show<'a, Param0: ::windows::core::IntoParam<'a, IQueryContinue>, Param2: ::windows::core::IntoParam<'a, IUserNotificationCallback>>(&self, pqc: Param0, dwcontinuepollinterval: u32, psink: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pqc.into_param().abi(), ::core::mem::transmute(dwcontinuepollinterval), psink.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn PlaySound<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszsoundname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pszsoundname.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IUserNotification2 { type Vtable = IUserNotification2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x215913cc_57eb_4fab_ab5a_e5fa7bea2a6c); } impl ::core::convert::From<IUserNotification2> for ::windows::core::IUnknown { fn from(value: IUserNotification2) -> Self { value.0 } } impl ::core::convert::From<&IUserNotification2> for ::windows::core::IUnknown { fn from(value: &IUserNotification2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IUserNotification2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IUserNotification2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IUserNotification2_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psztitle: super::super::Foundation::PWSTR, psztext: super::super::Foundation::PWSTR, dwinfoflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwshowtime: u32, dwinterval: u32, cretrycount: u32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hicon: super::WindowsAndMessaging::HICON, psztooltip: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pqc: ::windows::core::RawPtr, dwcontinuepollinterval: u32, psink: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszsoundname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IUserNotificationCallback(pub ::windows::core::IUnknown); impl IUserNotificationCallback { #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnBalloonUserClick(&self, pt: *const super::super::Foundation::POINT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pt)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnLeftClick(&self, pt: *const super::super::Foundation::POINT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pt)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnContextMenu(&self, pt: *const super::super::Foundation::POINT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(pt)).ok() } } unsafe impl ::windows::core::Interface for IUserNotificationCallback { type Vtable = IUserNotificationCallback_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x19108294_0441_4aff_8013_fa0a730b0bea); } impl ::core::convert::From<IUserNotificationCallback> for ::windows::core::IUnknown { fn from(value: IUserNotificationCallback) -> Self { value.0 } } impl ::core::convert::From<&IUserNotificationCallback> for ::windows::core::IUnknown { fn from(value: &IUserNotificationCallback) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IUserNotificationCallback { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IUserNotificationCallback { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IUserNotificationCallback_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pt: *const super::super::Foundation::POINT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pt: *const super::super::Foundation::POINT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pt: *const super::super::Foundation::POINT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IViewStateIdentityItem(pub ::windows::core::IUnknown); impl IViewStateIdentityItem { #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe fn GetItemIDList(&self) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } pub unsafe fn GetItem(&self) -> ::windows::core::Result<IShellItem> { let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IShellItem>(result__) } } unsafe impl ::windows::core::Interface for IViewStateIdentityItem { type Vtable = IViewStateIdentityItem_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9d264146_a94f_4195_9f9f_3bb12ce0c955); } impl ::core::convert::From<IViewStateIdentityItem> for ::windows::core::IUnknown { fn from(value: IViewStateIdentityItem) -> Self { value.0 } } impl ::core::convert::From<&IViewStateIdentityItem> for ::windows::core::IUnknown { fn from(value: &IViewStateIdentityItem) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IViewStateIdentityItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IViewStateIdentityItem { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IViewStateIdentityItem> for IRelatedItem { fn from(value: IViewStateIdentityItem) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IViewStateIdentityItem> for IRelatedItem { fn from(value: &IViewStateIdentityItem) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IRelatedItem> for IViewStateIdentityItem { fn into_param(self) -> ::windows::core::Param<'a, IRelatedItem> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IRelatedItem> for &IViewStateIdentityItem { fn into_param(self) -> ::windows::core::Param<'a, IRelatedItem> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IViewStateIdentityItem_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, #[cfg(feature = "Win32_UI_Shell_Common")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IVirtualDesktopManager(pub ::windows::core::IUnknown); impl IVirtualDesktopManager { #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsWindowOnCurrentVirtualDesktop<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, toplevelwindow: Param0) -> ::windows::core::Result<super::super::Foundation::BOOL> { let mut result__: <super::super::Foundation::BOOL as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), toplevelwindow.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::BOOL>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetWindowDesktopId<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, toplevelwindow: Param0) -> ::windows::core::Result<::windows::core::GUID> { let mut result__: <::windows::core::GUID as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), toplevelwindow.into_param().abi(), &mut result__).from_abi::<::windows::core::GUID>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn MoveWindowToDesktop<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(&self, toplevelwindow: Param0, desktopid: *const ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), toplevelwindow.into_param().abi(), ::core::mem::transmute(desktopid)).ok() } } unsafe impl ::windows::core::Interface for IVirtualDesktopManager { type Vtable = IVirtualDesktopManager_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa5cd92ff_29be_454c_8d04_d82879fb3f1b); } impl ::core::convert::From<IVirtualDesktopManager> for ::windows::core::IUnknown { fn from(value: IVirtualDesktopManager) -> Self { value.0 } } impl ::core::convert::From<&IVirtualDesktopManager> for ::windows::core::IUnknown { fn from(value: &IVirtualDesktopManager) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IVirtualDesktopManager { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IVirtualDesktopManager { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IVirtualDesktopManager_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, toplevelwindow: super::super::Foundation::HWND, oncurrentdesktop: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, toplevelwindow: super::super::Foundation::HWND, desktopid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, toplevelwindow: super::super::Foundation::HWND, desktopid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IVisualProperties(pub ::windows::core::IUnknown); impl IVisualProperties { #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn SetWatermark<'a, Param0: ::windows::core::IntoParam<'a, super::super::Graphics::Gdi::HBITMAP>>(&self, hbmp: Param0, vpwf: VPWATERMARKFLAGS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), hbmp.into_param().abi(), ::core::mem::transmute(vpwf)).ok() } pub unsafe fn SetColor(&self, vpcf: VPCOLORFLAGS, cr: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(vpcf), ::core::mem::transmute(cr)).ok() } pub unsafe fn GetColor(&self, vpcf: VPCOLORFLAGS) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(vpcf), &mut result__).from_abi::<u32>(result__) } pub unsafe fn SetItemHeight(&self, cyiteminpixels: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(cyiteminpixels)).ok() } pub unsafe fn GetItemHeight(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe fn SetFont<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, plf: *const super::super::Graphics::Gdi::LOGFONTW, bredraw: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(plf), bredraw.into_param().abi()).ok() } #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe fn GetFont(&self) -> ::windows::core::Result<super::super::Graphics::Gdi::LOGFONTW> { let mut result__: <super::super::Graphics::Gdi::LOGFONTW as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Graphics::Gdi::LOGFONTW>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetTheme<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszsubappname: Param0, pszsubidlist: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), pszsubappname.into_param().abi(), pszsubidlist.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IVisualProperties { type Vtable = IVisualProperties_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe693cf68_d967_4112_8763_99172aee5e5a); } impl ::core::convert::From<IVisualProperties> for ::windows::core::IUnknown { fn from(value: IVisualProperties) -> Self { value.0 } } impl ::core::convert::From<&IVisualProperties> for ::windows::core::IUnknown { fn from(value: &IVisualProperties) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IVisualProperties { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IVisualProperties { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IVisualProperties_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, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hbmp: super::super::Graphics::Gdi::HBITMAP, vpwf: VPWATERMARKFLAGS) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vpcf: VPCOLORFLAGS, cr: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vpcf: VPCOLORFLAGS, pcr: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, cyiteminpixels: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, cyiteminpixels: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, plf: *const super::super::Graphics::Gdi::LOGFONTW, bredraw: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi")))] usize, #[cfg(feature = "Win32_Graphics_Gdi")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, plf: *mut super::super::Graphics::Gdi::LOGFONTW) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszsubappname: super::super::Foundation::PWSTR, pszsubidlist: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IWebBrowser(pub ::windows::core::IUnknown); impl IWebBrowser { pub unsafe fn GoBack(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GoForward(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GoHome(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GoSearch(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Navigate<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, flags: *const super::super::System::Com::VARIANT, targetframename: *const super::super::System::Com::VARIANT, postdata: *const super::super::System::Com::VARIANT, headers: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), url.into_param().abi(), ::core::mem::transmute(flags), ::core::mem::transmute(targetframename), ::core::mem::transmute(postdata), ::core::mem::transmute(headers)).ok() } pub unsafe fn Refresh(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Refresh2(&self, level: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(level)).ok() } pub unsafe fn Stop(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Application(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Container(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Document(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } pub unsafe fn TopLevelContainer(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Type(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn Left(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetLeft(&self, left: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), ::core::mem::transmute(left)).ok() } pub unsafe fn Top(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetTop(&self, top: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), ::core::mem::transmute(top)).ok() } pub unsafe fn Width(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetWidth(&self, width: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), ::core::mem::transmute(width)).ok() } pub unsafe fn Height(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetHeight(&self, height: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self), ::core::mem::transmute(height)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn LocationName(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn LocationURL(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn Busy(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } } unsafe impl ::windows::core::Interface for IWebBrowser { type Vtable = IWebBrowser_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xeab22ac1_30c1_11cf_a7eb_0000c05bae0b); } impl ::core::convert::From<IWebBrowser> for ::windows::core::IUnknown { fn from(value: IWebBrowser) -> Self { value.0 } } impl ::core::convert::From<&IWebBrowser> for ::windows::core::IUnknown { fn from(value: &IWebBrowser) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IWebBrowser { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IWebBrowser { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IWebBrowser> for super::super::System::Com::IDispatch { fn from(value: IWebBrowser) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IWebBrowser> for super::super::System::Com::IDispatch { fn from(value: &IWebBrowser) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IWebBrowser { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IWebBrowser { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IWebBrowser_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, flags: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, targetframename: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, postdata: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, headers: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, level: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppdisp: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppdisp: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppdisp: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppdisp: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbool: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, r#type: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pl: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, left: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pl: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, top: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pl: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, width: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pl: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, height: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, locationname: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, locationurl: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbool: *mut i16) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IWebBrowser2(pub ::windows::core::IUnknown); impl IWebBrowser2 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } pub unsafe fn GoBack(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GoForward(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GoHome(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GoSearch(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Navigate<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, flags: *const super::super::System::Com::VARIANT, targetframename: *const super::super::System::Com::VARIANT, postdata: *const super::super::System::Com::VARIANT, headers: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), url.into_param().abi(), ::core::mem::transmute(flags), ::core::mem::transmute(targetframename), ::core::mem::transmute(postdata), ::core::mem::transmute(headers)).ok() } pub unsafe fn Refresh(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Refresh2(&self, level: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(level)).ok() } pub unsafe fn Stop(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Application(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Container(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Document(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } pub unsafe fn TopLevelContainer(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Type(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn Left(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetLeft(&self, left: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), ::core::mem::transmute(left)).ok() } pub unsafe fn Top(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetTop(&self, top: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), ::core::mem::transmute(top)).ok() } pub unsafe fn Width(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetWidth(&self, width: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), ::core::mem::transmute(width)).ok() } pub unsafe fn Height(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetHeight(&self, height: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self), ::core::mem::transmute(height)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn LocationName(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn LocationURL(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn Busy(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn Quit(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ClientToWindow(&self, pcx: *mut i32, pcy: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), ::core::mem::transmute(pcx), ::core::mem::transmute(pcy)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn PutProperty<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, property: Param0, vtvalue: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), property.into_param().abi(), vtvalue.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GetProperty<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, property: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), property.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Name(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn HWND(&self) -> ::windows::core::Result<super::super::Foundation::SHANDLE_PTR> { let mut result__: <super::super::Foundation::SHANDLE_PTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::SHANDLE_PTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn FullName(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Path(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).39)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn Visible(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).40)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn SetVisible(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).41)(::core::mem::transmute_copy(self), ::core::mem::transmute(value)).ok() } pub unsafe fn StatusBar(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).42)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn SetStatusBar(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).43)(::core::mem::transmute_copy(self), ::core::mem::transmute(value)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn StatusText(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).44)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetStatusText<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, statustext: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).45)(::core::mem::transmute_copy(self), statustext.into_param().abi()).ok() } pub unsafe fn ToolBar(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).46)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetToolBar(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).47)(::core::mem::transmute_copy(self), ::core::mem::transmute(value)).ok() } pub unsafe fn MenuBar(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).48)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn SetMenuBar(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).49)(::core::mem::transmute_copy(self), ::core::mem::transmute(value)).ok() } pub unsafe fn FullScreen(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).50)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn SetFullScreen(&self, bfullscreen: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).51)(::core::mem::transmute_copy(self), ::core::mem::transmute(bfullscreen)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Navigate2(&self, url: *const super::super::System::Com::VARIANT, flags: *const super::super::System::Com::VARIANT, targetframename: *const super::super::System::Com::VARIANT, postdata: *const super::super::System::Com::VARIANT, headers: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).52)(::core::mem::transmute_copy(self), ::core::mem::transmute(url), ::core::mem::transmute(flags), ::core::mem::transmute(targetframename), ::core::mem::transmute(postdata), ::core::mem::transmute(headers)).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn QueryStatusWB(&self, cmdid: super::super::System::Ole::OLECMDID) -> ::windows::core::Result<super::super::System::Ole::OLECMDF> { let mut result__: <super::super::System::Ole::OLECMDF as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).53)(::core::mem::transmute_copy(self), ::core::mem::transmute(cmdid), &mut result__).from_abi::<super::super::System::Ole::OLECMDF>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ExecWB(&self, cmdid: super::super::System::Ole::OLECMDID, cmdexecopt: super::super::System::Ole::OLECMDEXECOPT, pvain: *const super::super::System::Com::VARIANT, pvaout: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).54)(::core::mem::transmute_copy(self), ::core::mem::transmute(cmdid), ::core::mem::transmute(cmdexecopt), ::core::mem::transmute(pvain), ::core::mem::transmute(pvaout)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn ShowBrowserBar(&self, pvaclsid: *const super::super::System::Com::VARIANT, pvarshow: *const super::super::System::Com::VARIANT, pvarsize: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).55)(::core::mem::transmute_copy(self), ::core::mem::transmute(pvaclsid), ::core::mem::transmute(pvarshow), ::core::mem::transmute(pvarsize)).ok() } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn ReadyState(&self) -> ::windows::core::Result<super::super::System::Ole::READYSTATE> { let mut result__: <super::super::System::Ole::READYSTATE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).56)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Ole::READYSTATE>(result__) } pub unsafe fn Offline(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).57)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn SetOffline(&self, boffline: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).58)(::core::mem::transmute_copy(self), ::core::mem::transmute(boffline)).ok() } pub unsafe fn Silent(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).59)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn SetSilent(&self, bsilent: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).60)(::core::mem::transmute_copy(self), ::core::mem::transmute(bsilent)).ok() } pub unsafe fn RegisterAsBrowser(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).61)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn SetRegisterAsBrowser(&self, bregister: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).62)(::core::mem::transmute_copy(self), ::core::mem::transmute(bregister)).ok() } pub unsafe fn RegisterAsDropTarget(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).63)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn SetRegisterAsDropTarget(&self, bregister: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).64)(::core::mem::transmute_copy(self), ::core::mem::transmute(bregister)).ok() } pub unsafe fn TheaterMode(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).65)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn SetTheaterMode(&self, bregister: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).66)(::core::mem::transmute_copy(self), ::core::mem::transmute(bregister)).ok() } pub unsafe fn AddressBar(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).67)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn SetAddressBar(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).68)(::core::mem::transmute_copy(self), ::core::mem::transmute(value)).ok() } pub unsafe fn Resizable(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).69)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn SetResizable(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).70)(::core::mem::transmute_copy(self), ::core::mem::transmute(value)).ok() } } unsafe impl ::windows::core::Interface for IWebBrowser2 { type Vtable = IWebBrowser2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd30c1661_cdaf_11d0_8a3e_00c04fc9e26e); } impl ::core::convert::From<IWebBrowser2> for ::windows::core::IUnknown { fn from(value: IWebBrowser2) -> Self { value.0 } } impl ::core::convert::From<&IWebBrowser2> for ::windows::core::IUnknown { fn from(value: &IWebBrowser2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IWebBrowser2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IWebBrowser2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IWebBrowser2> for IWebBrowserApp { fn from(value: IWebBrowser2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IWebBrowser2> for IWebBrowserApp { fn from(value: &IWebBrowser2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IWebBrowserApp> for IWebBrowser2 { fn into_param(self) -> ::windows::core::Param<'a, IWebBrowserApp> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IWebBrowserApp> for &IWebBrowser2 { fn into_param(self) -> ::windows::core::Param<'a, IWebBrowserApp> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IWebBrowser2> for IWebBrowser { fn from(value: IWebBrowser2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IWebBrowser2> for IWebBrowser { fn from(value: &IWebBrowser2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IWebBrowser> for IWebBrowser2 { fn into_param(self) -> ::windows::core::Param<'a, IWebBrowser> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IWebBrowser> for &IWebBrowser2 { fn into_param(self) -> ::windows::core::Param<'a, IWebBrowser> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IWebBrowser2> for super::super::System::Com::IDispatch { fn from(value: IWebBrowser2) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IWebBrowser2> for super::super::System::Com::IDispatch { fn from(value: &IWebBrowser2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IWebBrowser2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IWebBrowser2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IWebBrowser2_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, flags: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, targetframename: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, postdata: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, headers: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, level: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppdisp: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppdisp: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppdisp: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppdisp: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbool: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, r#type: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pl: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, left: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pl: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, top: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pl: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, width: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pl: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, height: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, locationname: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, locationurl: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbool: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcx: *mut i32, pcy: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, property: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, vtvalue: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, property: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvtvalue: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, name: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phwnd: *mut super::super::Foundation::SHANDLE_PTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fullname: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, path: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbool: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbool: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, statustext: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, statustext: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbfullscreen: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bfullscreen: i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, flags: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, targetframename: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, postdata: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, headers: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, cmdid: super::super::System::Ole::OLECMDID, pcmdf: *mut super::super::System::Ole::OLECMDF) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, cmdid: super::super::System::Ole::OLECMDID, cmdexecopt: super::super::System::Ole::OLECMDEXECOPT, pvain: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvaout: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvaclsid: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarshow: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pvarsize: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, plreadystate: *mut super::super::System::Ole::READYSTATE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pboffline: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, boffline: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbsilent: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bsilent: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbregister: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bregister: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbregister: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bregister: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbregister: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bregister: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i16) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IWebBrowserApp(pub ::windows::core::IUnknown); impl IWebBrowserApp { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } pub unsafe fn GoBack(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GoForward(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GoHome(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn GoSearch(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Navigate<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, url: Param0, flags: *const super::super::System::Com::VARIANT, targetframename: *const super::super::System::Com::VARIANT, postdata: *const super::super::System::Com::VARIANT, headers: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), url.into_param().abi(), ::core::mem::transmute(flags), ::core::mem::transmute(targetframename), ::core::mem::transmute(postdata), ::core::mem::transmute(headers)).ok() } pub unsafe fn Refresh(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Refresh2(&self, level: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(level)).ok() } pub unsafe fn Stop(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Application(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Parent(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Container(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn Document(&self) -> ::windows::core::Result<super::super::System::Com::IDispatch> { let mut result__: <super::super::System::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::System::Com::IDispatch>(result__) } pub unsafe fn TopLevelContainer(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Type(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn Left(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetLeft(&self, left: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), ::core::mem::transmute(left)).ok() } pub unsafe fn Top(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetTop(&self, top: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), ::core::mem::transmute(top)).ok() } pub unsafe fn Width(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetWidth(&self, width: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), ::core::mem::transmute(width)).ok() } pub unsafe fn Height(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetHeight(&self, height: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self), ::core::mem::transmute(height)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn LocationName(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn LocationURL(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn Busy(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn Quit(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ClientToWindow(&self, pcx: *mut i32, pcy: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), ::core::mem::transmute(pcx), ::core::mem::transmute(pcy)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn PutProperty<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::VARIANT>>(&self, property: Param0, vtvalue: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), property.into_param().abi(), vtvalue.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GetProperty<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, property: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), property.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Name(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn HWND(&self) -> ::windows::core::Result<super::super::Foundation::SHANDLE_PTR> { let mut result__: <super::super::Foundation::SHANDLE_PTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::SHANDLE_PTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn FullName(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Path(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).39)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn Visible(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).40)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn SetVisible(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).41)(::core::mem::transmute_copy(self), ::core::mem::transmute(value)).ok() } pub unsafe fn StatusBar(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).42)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn SetStatusBar(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).43)(::core::mem::transmute_copy(self), ::core::mem::transmute(value)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn StatusText(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).44)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetStatusText<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, statustext: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).45)(::core::mem::transmute_copy(self), statustext.into_param().abi()).ok() } pub unsafe fn ToolBar(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).46)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetToolBar(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).47)(::core::mem::transmute_copy(self), ::core::mem::transmute(value)).ok() } pub unsafe fn MenuBar(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).48)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn SetMenuBar(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).49)(::core::mem::transmute_copy(self), ::core::mem::transmute(value)).ok() } pub unsafe fn FullScreen(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).50)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn SetFullScreen(&self, bfullscreen: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).51)(::core::mem::transmute_copy(self), ::core::mem::transmute(bfullscreen)).ok() } } unsafe impl ::windows::core::Interface for IWebBrowserApp { type Vtable = IWebBrowserApp_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0002df05_0000_0000_c000_000000000046); } impl ::core::convert::From<IWebBrowserApp> for ::windows::core::IUnknown { fn from(value: IWebBrowserApp) -> Self { value.0 } } impl ::core::convert::From<&IWebBrowserApp> for ::windows::core::IUnknown { fn from(value: &IWebBrowserApp) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IWebBrowserApp { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IWebBrowserApp { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IWebBrowserApp> for IWebBrowser { fn from(value: IWebBrowserApp) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IWebBrowserApp> for IWebBrowser { fn from(value: &IWebBrowserApp) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IWebBrowser> for IWebBrowserApp { fn into_param(self) -> ::windows::core::Param<'a, IWebBrowser> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IWebBrowser> for &IWebBrowserApp { fn into_param(self) -> ::windows::core::Param<'a, IWebBrowser> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IWebBrowserApp> for super::super::System::Com::IDispatch { fn from(value: IWebBrowserApp) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IWebBrowserApp> for super::super::System::Com::IDispatch { fn from(value: &IWebBrowserApp) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IWebBrowserApp { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IWebBrowserApp { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IWebBrowserApp_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, url: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, flags: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, targetframename: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, postdata: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, headers: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, level: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppdisp: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppdisp: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppdisp: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppdisp: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbool: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, r#type: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pl: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, left: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pl: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, top: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pl: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, width: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pl: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, height: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, locationname: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, locationurl: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbool: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pcx: *mut i32, pcy: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, property: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, vtvalue: ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, property: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvtvalue: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, name: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phwnd: *mut super::super::Foundation::SHANDLE_PTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, fullname: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, path: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbool: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbool: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, statustext: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, statustext: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbfullscreen: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bfullscreen: i16) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IWebWizardExtension(pub ::windows::core::IUnknown); impl IWebWizardExtension { #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn AddPages(&self, apages: *mut super::Controls::HPROPSHEETPAGE, cpages: u32, pnpagesadded: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(apages), ::core::mem::transmute(cpages), ::core::mem::transmute(pnpagesadded)).ok() } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn GetFirstPage(&self) -> ::windows::core::Result<super::Controls::HPROPSHEETPAGE> { let mut result__: <super::Controls::HPROPSHEETPAGE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Controls::HPROPSHEETPAGE>(result__) } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn GetLastPage(&self) -> ::windows::core::Result<super::Controls::HPROPSHEETPAGE> { let mut result__: <super::Controls::HPROPSHEETPAGE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Controls::HPROPSHEETPAGE>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetInitialURL<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszurl: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pszurl.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetErrorURL<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszerrorurl: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), pszerrorurl.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IWebWizardExtension { type Vtable = IWebWizardExtension_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0e6b3f66_98d1_48c0_a222_fbde74e2fbc5); } impl ::core::convert::From<IWebWizardExtension> for ::windows::core::IUnknown { fn from(value: IWebWizardExtension) -> Self { value.0 } } impl ::core::convert::From<&IWebWizardExtension> for ::windows::core::IUnknown { fn from(value: &IWebWizardExtension) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IWebWizardExtension { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IWebWizardExtension { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IWebWizardExtension> for IWizardExtension { fn from(value: IWebWizardExtension) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IWebWizardExtension> for IWizardExtension { fn from(value: &IWebWizardExtension) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IWizardExtension> for IWebWizardExtension { fn into_param(self) -> ::windows::core::Param<'a, IWizardExtension> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IWizardExtension> for &IWebWizardExtension { fn into_param(self) -> ::windows::core::Param<'a, IWizardExtension> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IWebWizardExtension_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, #[cfg(feature = "Win32_UI_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, apages: *mut super::Controls::HPROPSHEETPAGE, cpages: u32, pnpagesadded: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Controls"))] usize, #[cfg(feature = "Win32_UI_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phpage: *mut super::Controls::HPROPSHEETPAGE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Controls"))] usize, #[cfg(feature = "Win32_UI_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phpage: *mut super::Controls::HPROPSHEETPAGE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Controls"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszurl: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszerrorurl: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IWebWizardHost(pub ::windows::core::IUnknown); impl IWebWizardHost { pub unsafe fn FinalBack(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn FinalNext(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Cancel(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetCaption<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrcaption: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), bstrcaption.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Caption(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SetProperty<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrpropertyname: Param0, pvproperty: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), bstrpropertyname.into_param().abi(), ::core::mem::transmute(pvproperty)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Property<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrpropertyname: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), bstrpropertyname.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } pub unsafe fn SetWizardButtons(&self, vfenableback: i16, vfenablenext: i16, vflastpage: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(vfenableback), ::core::mem::transmute(vfenablenext), ::core::mem::transmute(vflastpage)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetHeaderText<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrheadertitle: Param0, bstrheadersubtitle: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), bstrheadertitle.into_param().abi(), bstrheadersubtitle.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IWebWizardHost { type Vtable = IWebWizardHost_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x18bcc359_4990_4bfb_b951_3c83702be5f9); } impl ::core::convert::From<IWebWizardHost> for ::windows::core::IUnknown { fn from(value: IWebWizardHost) -> Self { value.0 } } impl ::core::convert::From<&IWebWizardHost> for ::windows::core::IUnknown { fn from(value: &IWebWizardHost) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IWebWizardHost { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IWebWizardHost { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IWebWizardHost> for super::super::System::Com::IDispatch { fn from(value: IWebWizardHost) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IWebWizardHost> for super::super::System::Com::IDispatch { fn from(value: &IWebWizardHost) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IWebWizardHost { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IWebWizardHost { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IWebWizardHost_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrcaption: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrcaption: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrpropertyname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvproperty: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrpropertyname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvproperty: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vfenableback: i16, vfenablenext: i16, vflastpage: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrheadertitle: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrheadersubtitle: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IWebWizardHost2(pub ::windows::core::IUnknown); impl IWebWizardHost2 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::super::System::Com::ITypeInfo> { let mut result__: <super::super::System::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::super::System::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut super::super::System::Com::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } pub unsafe fn FinalBack(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn FinalNext(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn Cancel(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetCaption<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrcaption: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), bstrcaption.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Caption(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SetProperty<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrpropertyname: Param0, pvproperty: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), bstrpropertyname.into_param().abi(), ::core::mem::transmute(pvproperty)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Property<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrpropertyname: Param0) -> ::windows::core::Result<super::super::System::Com::VARIANT> { let mut result__: <super::super::System::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), bstrpropertyname.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::VARIANT>(result__) } pub unsafe fn SetWizardButtons(&self, vfenableback: i16, vfenablenext: i16, vflastpage: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(vfenableback), ::core::mem::transmute(vfenablenext), ::core::mem::transmute(vflastpage)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetHeaderText<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrheadertitle: Param0, bstrheadersubtitle: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), bstrheadertitle.into_param().abi(), bstrheadersubtitle.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SignString<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, value: Param0) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), value.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } } unsafe impl ::windows::core::Interface for IWebWizardHost2 { type Vtable = IWebWizardHost2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf9c013dc_3c23_4041_8e39_cfb402f7ea59); } impl ::core::convert::From<IWebWizardHost2> for ::windows::core::IUnknown { fn from(value: IWebWizardHost2) -> Self { value.0 } } impl ::core::convert::From<&IWebWizardHost2> for ::windows::core::IUnknown { fn from(value: &IWebWizardHost2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IWebWizardHost2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IWebWizardHost2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IWebWizardHost2> for IWebWizardHost { fn from(value: IWebWizardHost2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IWebWizardHost2> for IWebWizardHost { fn from(value: &IWebWizardHost2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IWebWizardHost> for IWebWizardHost2 { fn into_param(self) -> ::windows::core::Param<'a, IWebWizardHost> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IWebWizardHost> for &IWebWizardHost2 { fn into_param(self) -> ::windows::core::Param<'a, IWebWizardHost> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IWebWizardHost2> for super::super::System::Com::IDispatch { fn from(value: IWebWizardHost2) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IWebWizardHost2> for super::super::System::Com::IDispatch { fn from(value: &IWebWizardHost2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for IWebWizardHost2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::super::System::Com::IDispatch> for &IWebWizardHost2 { fn into_param(self) -> ::windows::core::Param<'a, super::super::System::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IWebWizardHost2_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::super::System::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrcaption: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrcaption: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrpropertyname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvproperty: *const ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrpropertyname: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvproperty: *mut ::core::mem::ManuallyDrop<super::super::System::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vfenableback: i16, vfenablenext: i16, vflastpage: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrheadertitle: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrheadersubtitle: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, signedvalue: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IWizardExtension(pub ::windows::core::IUnknown); impl IWizardExtension { #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn AddPages(&self, apages: *mut super::Controls::HPROPSHEETPAGE, cpages: u32, pnpagesadded: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(apages), ::core::mem::transmute(cpages), ::core::mem::transmute(pnpagesadded)).ok() } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn GetFirstPage(&self) -> ::windows::core::Result<super::Controls::HPROPSHEETPAGE> { let mut result__: <super::Controls::HPROPSHEETPAGE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Controls::HPROPSHEETPAGE>(result__) } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn GetLastPage(&self) -> ::windows::core::Result<super::Controls::HPROPSHEETPAGE> { let mut result__: <super::Controls::HPROPSHEETPAGE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Controls::HPROPSHEETPAGE>(result__) } } unsafe impl ::windows::core::Interface for IWizardExtension { type Vtable = IWizardExtension_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc02ea696_86cc_491e_9b23_74394a0444a8); } impl ::core::convert::From<IWizardExtension> for ::windows::core::IUnknown { fn from(value: IWizardExtension) -> Self { value.0 } } impl ::core::convert::From<&IWizardExtension> for ::windows::core::IUnknown { fn from(value: &IWizardExtension) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IWizardExtension { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IWizardExtension { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IWizardExtension_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, #[cfg(feature = "Win32_UI_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, apages: *mut super::Controls::HPROPSHEETPAGE, cpages: u32, pnpagesadded: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Controls"))] usize, #[cfg(feature = "Win32_UI_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phpage: *mut super::Controls::HPROPSHEETPAGE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Controls"))] usize, #[cfg(feature = "Win32_UI_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phpage: *mut super::Controls::HPROPSHEETPAGE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Controls"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IWizardSite(pub ::windows::core::IUnknown); impl IWizardSite { #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn GetPreviousPage(&self) -> ::windows::core::Result<super::Controls::HPROPSHEETPAGE> { let mut result__: <super::Controls::HPROPSHEETPAGE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Controls::HPROPSHEETPAGE>(result__) } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn GetNextPage(&self) -> ::windows::core::Result<super::Controls::HPROPSHEETPAGE> { let mut result__: <super::Controls::HPROPSHEETPAGE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Controls::HPROPSHEETPAGE>(result__) } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn GetCancelledPage(&self) -> ::windows::core::Result<super::Controls::HPROPSHEETPAGE> { let mut result__: <super::Controls::HPROPSHEETPAGE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Controls::HPROPSHEETPAGE>(result__) } } unsafe impl ::windows::core::Interface for IWizardSite { type Vtable = IWizardSite_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x88960f5b_422f_4e7b_8013_73415381c3c3); } impl ::core::convert::From<IWizardSite> for ::windows::core::IUnknown { fn from(value: IWizardSite) -> Self { value.0 } } impl ::core::convert::From<&IWizardSite> for ::windows::core::IUnknown { fn from(value: &IWizardSite) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IWizardSite { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IWizardSite { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IWizardSite_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, #[cfg(feature = "Win32_UI_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phpage: *mut super::Controls::HPROPSHEETPAGE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Controls"))] usize, #[cfg(feature = "Win32_UI_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phpage: *mut super::Controls::HPROPSHEETPAGE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Controls"))] usize, #[cfg(feature = "Win32_UI_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, phpage: *mut super::Controls::HPROPSHEETPAGE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Controls"))] usize, ); pub const Identity_LocalUserProvider: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa198529b_730f_4089_b646_a12557f5665e); pub const ImageProperties: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7ab770c7_0e23_4d7a_8aa2_19bfad479829); pub const ImageRecompress: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6e33091c_d2f8_4740_b55e_2e11d1477a2c); pub const ImageTranscode: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x17b75166_928f_417d_9685_64aa135565c1); #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ImportPrivacySettings<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszfilename: Param0, pfparseprivacypreferences: *mut super::super::Foundation::BOOL, pfparsepersiterules: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ImportPrivacySettings(pszfilename: super::super::Foundation::PWSTR, pfparseprivacypreferences: *mut super::super::Foundation::BOOL, pfparsepersiterules: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; } ::core::mem::transmute(ImportPrivacySettings(pszfilename.into_param().abi(), ::core::mem::transmute(pfparseprivacypreferences), ::core::mem::transmute(pfparsepersiterules))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn InitNetworkAddressControl() -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn InitNetworkAddressControl() -> super::super::Foundation::BOOL; } ::core::mem::transmute(InitNetworkAddressControl()) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const InputPanelConfiguration: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2853add3_f096_4c63_a78f_7fa3ea837fb7); pub const InternetExplorer: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0002df01_0000_0000_c000_000000000046); pub const InternetExplorerMedium: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd5e8041d_920f_45e9_b8fb_b1deb82c6e5e); pub const InternetPrintOrdering: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xadd36aa8_751a_4579_a266_d66f5202ccbb); #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn IntlStrEqWorkerA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(fcasesens: Param0, lpstring1: Param1, lpstring2: Param2, nchar: i32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IntlStrEqWorkerA(fcasesens: super::super::Foundation::BOOL, lpstring1: super::super::Foundation::PSTR, lpstring2: super::super::Foundation::PSTR, nchar: i32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(IntlStrEqWorkerA(fcasesens.into_param().abi(), lpstring1.into_param().abi(), lpstring2.into_param().abi(), ::core::mem::transmute(nchar))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn IntlStrEqWorkerW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(fcasesens: Param0, lpstring1: Param1, lpstring2: Param2, nchar: i32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IntlStrEqWorkerW(fcasesens: super::super::Foundation::BOOL, lpstring1: super::super::Foundation::PWSTR, lpstring2: super::super::Foundation::PWSTR, nchar: i32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(IntlStrEqWorkerW(fcasesens.into_param().abi(), lpstring1.into_param().abi(), lpstring2.into_param().abi(), ::core::mem::transmute(nchar))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn IsCharSpaceA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::CHAR>>(wch: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IsCharSpaceA(wch: super::super::Foundation::CHAR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(IsCharSpaceA(wch.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn IsCharSpaceW(wch: u16) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IsCharSpaceW(wch: u16) -> super::super::Foundation::BOOL; } ::core::mem::transmute(IsCharSpaceW(::core::mem::transmute(wch))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn IsInternetESCEnabled() -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IsInternetESCEnabled() -> super::super::Foundation::BOOL; } ::core::mem::transmute(IsInternetESCEnabled()) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn IsLFNDriveA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IsLFNDriveA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(IsLFNDriveA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn IsLFNDriveW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IsLFNDriveW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(IsLFNDriveW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn IsNetDrive(idrive: i32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IsNetDrive(idrive: i32) -> i32; } ::core::mem::transmute(IsNetDrive(::core::mem::transmute(idrive))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn IsOS(dwos: OS) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IsOS(dwos: OS) -> super::super::Foundation::BOOL; } ::core::mem::transmute(IsOS(::core::mem::transmute(dwos))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn IsUserAnAdmin() -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IsUserAnAdmin() -> super::super::Foundation::BOOL; } ::core::mem::transmute(IsUserAnAdmin()) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const ItemCount_Property_GUID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xabbf5c45_5ccc_47b7_bb4e_87cb87bbd162); pub const ItemIndex_Property_GUID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x92a053da_2969_4021_bf27_514cfc2e4a69); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct KF_CATEGORY(pub i32); pub const KF_CATEGORY_VIRTUAL: KF_CATEGORY = KF_CATEGORY(1i32); pub const KF_CATEGORY_FIXED: KF_CATEGORY = KF_CATEGORY(2i32); pub const KF_CATEGORY_COMMON: KF_CATEGORY = KF_CATEGORY(3i32); pub const KF_CATEGORY_PERUSER: KF_CATEGORY = KF_CATEGORY(4i32); impl ::core::convert::From<i32> for KF_CATEGORY { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for KF_CATEGORY { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct KNOWNDESTCATEGORY(pub i32); pub const KDC_FREQUENT: KNOWNDESTCATEGORY = KNOWNDESTCATEGORY(1i32); pub const KDC_RECENT: KNOWNDESTCATEGORY = KNOWNDESTCATEGORY(2i32); impl ::core::convert::From<i32> for KNOWNDESTCATEGORY { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for KNOWNDESTCATEGORY { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct KNOWNFOLDER_DEFINITION { pub category: KF_CATEGORY, pub pszName: super::super::Foundation::PWSTR, pub pszDescription: super::super::Foundation::PWSTR, pub fidParent: ::windows::core::GUID, pub pszRelativePath: super::super::Foundation::PWSTR, pub pszParsingName: super::super::Foundation::PWSTR, pub pszTooltip: super::super::Foundation::PWSTR, pub pszLocalizedName: super::super::Foundation::PWSTR, pub pszIcon: super::super::Foundation::PWSTR, pub pszSecurity: super::super::Foundation::PWSTR, pub dwAttributes: u32, pub kfdFlags: u32, pub ftidType: ::windows::core::GUID, } #[cfg(feature = "Win32_Foundation")] impl KNOWNFOLDER_DEFINITION {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for KNOWNFOLDER_DEFINITION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for KNOWNFOLDER_DEFINITION { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("KNOWNFOLDER_DEFINITION") .field("category", &self.category) .field("pszName", &self.pszName) .field("pszDescription", &self.pszDescription) .field("fidParent", &self.fidParent) .field("pszRelativePath", &self.pszRelativePath) .field("pszParsingName", &self.pszParsingName) .field("pszTooltip", &self.pszTooltip) .field("pszLocalizedName", &self.pszLocalizedName) .field("pszIcon", &self.pszIcon) .field("pszSecurity", &self.pszSecurity) .field("dwAttributes", &self.dwAttributes) .field("kfdFlags", &self.kfdFlags) .field("ftidType", &self.ftidType) .finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for KNOWNFOLDER_DEFINITION { fn eq(&self, other: &Self) -> bool { self.category == other.category && self.pszName == other.pszName && self.pszDescription == other.pszDescription && self.fidParent == other.fidParent && self.pszRelativePath == other.pszRelativePath && self.pszParsingName == other.pszParsingName && self.pszTooltip == other.pszTooltip && self.pszLocalizedName == other.pszLocalizedName && self.pszIcon == other.pszIcon && self.pszSecurity == other.pszSecurity && self.dwAttributes == other.dwAttributes && self.kfdFlags == other.kfdFlags && self.ftidType == other.ftidType } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for KNOWNFOLDER_DEFINITION {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for KNOWNFOLDER_DEFINITION { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct KNOWN_FOLDER_FLAG(pub i32); pub const KF_FLAG_DEFAULT: KNOWN_FOLDER_FLAG = KNOWN_FOLDER_FLAG(0i32); pub const KF_FLAG_FORCE_APP_DATA_REDIRECTION: KNOWN_FOLDER_FLAG = KNOWN_FOLDER_FLAG(524288i32); pub const KF_FLAG_RETURN_FILTER_REDIRECTION_TARGET: KNOWN_FOLDER_FLAG = KNOWN_FOLDER_FLAG(262144i32); pub const KF_FLAG_FORCE_PACKAGE_REDIRECTION: KNOWN_FOLDER_FLAG = KNOWN_FOLDER_FLAG(131072i32); pub const KF_FLAG_NO_PACKAGE_REDIRECTION: KNOWN_FOLDER_FLAG = KNOWN_FOLDER_FLAG(65536i32); pub const KF_FLAG_FORCE_APPCONTAINER_REDIRECTION: KNOWN_FOLDER_FLAG = KNOWN_FOLDER_FLAG(131072i32); pub const KF_FLAG_NO_APPCONTAINER_REDIRECTION: KNOWN_FOLDER_FLAG = KNOWN_FOLDER_FLAG(65536i32); pub const KF_FLAG_CREATE: KNOWN_FOLDER_FLAG = KNOWN_FOLDER_FLAG(32768i32); pub const KF_FLAG_DONT_VERIFY: KNOWN_FOLDER_FLAG = KNOWN_FOLDER_FLAG(16384i32); pub const KF_FLAG_DONT_UNEXPAND: KNOWN_FOLDER_FLAG = KNOWN_FOLDER_FLAG(8192i32); pub const KF_FLAG_NO_ALIAS: KNOWN_FOLDER_FLAG = KNOWN_FOLDER_FLAG(4096i32); pub const KF_FLAG_INIT: KNOWN_FOLDER_FLAG = KNOWN_FOLDER_FLAG(2048i32); pub const KF_FLAG_DEFAULT_PATH: KNOWN_FOLDER_FLAG = KNOWN_FOLDER_FLAG(1024i32); pub const KF_FLAG_NOT_PARENT_RELATIVE: KNOWN_FOLDER_FLAG = KNOWN_FOLDER_FLAG(512i32); pub const KF_FLAG_SIMPLE_IDLIST: KNOWN_FOLDER_FLAG = KNOWN_FOLDER_FLAG(256i32); pub const KF_FLAG_ALIAS_ONLY: KNOWN_FOLDER_FLAG = KNOWN_FOLDER_FLAG(-2147483648i32); impl ::core::convert::From<i32> for KNOWN_FOLDER_FLAG { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for KNOWN_FOLDER_FLAG { type Abi = Self; } pub const KnownFolderManager: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4df0c730_df9d_4ae3_9153_aa6b82e9795a); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct LIBRARYFOLDERFILTER(pub i32); pub const LFF_FORCEFILESYSTEM: LIBRARYFOLDERFILTER = LIBRARYFOLDERFILTER(1i32); pub const LFF_STORAGEITEMS: LIBRARYFOLDERFILTER = LIBRARYFOLDERFILTER(2i32); pub const LFF_ALLITEMS: LIBRARYFOLDERFILTER = LIBRARYFOLDERFILTER(3i32); impl ::core::convert::From<i32> for LIBRARYFOLDERFILTER { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for LIBRARYFOLDERFILTER { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct LIBRARYMANAGEDIALOGOPTIONS(pub i32); pub const LMD_DEFAULT: LIBRARYMANAGEDIALOGOPTIONS = LIBRARYMANAGEDIALOGOPTIONS(0i32); pub const LMD_ALLOWUNINDEXABLENETWORKLOCATIONS: LIBRARYMANAGEDIALOGOPTIONS = LIBRARYMANAGEDIALOGOPTIONS(1i32); impl ::core::convert::From<i32> for LIBRARYMANAGEDIALOGOPTIONS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for LIBRARYMANAGEDIALOGOPTIONS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct LIBRARYOPTIONFLAGS(pub i32); pub const LOF_DEFAULT: LIBRARYOPTIONFLAGS = LIBRARYOPTIONFLAGS(0i32); pub const LOF_PINNEDTONAVPANE: LIBRARYOPTIONFLAGS = LIBRARYOPTIONFLAGS(1i32); pub const LOF_MASK_ALL: LIBRARYOPTIONFLAGS = LIBRARYOPTIONFLAGS(1i32); impl ::core::convert::From<i32> for LIBRARYOPTIONFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for LIBRARYOPTIONFLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct LIBRARYSAVEFLAGS(pub i32); pub const LSF_FAILIFTHERE: LIBRARYSAVEFLAGS = LIBRARYSAVEFLAGS(0i32); pub const LSF_OVERRIDEEXISTING: LIBRARYSAVEFLAGS = LIBRARYSAVEFLAGS(1i32); pub const LSF_MAKEUNIQUENAME: LIBRARYSAVEFLAGS = LIBRARYSAVEFLAGS(2i32); impl ::core::convert::From<i32> for LIBRARYSAVEFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for LIBRARYSAVEFLAGS { type Abi = Self; } pub const LIBRARY_E_NO_ACCESSIBLE_LOCATION: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927231i32 as _); pub const LIBRARY_E_NO_SAVE_LOCATION: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927232i32 as _); pub const LINK_E_DELETE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927485i32 as _); #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub type LPFNDFMCALLBACK = unsafe extern "system" fn(psf: ::windows::core::RawPtr, hwnd: super::super::Foundation::HWND, pdtobj: ::windows::core::RawPtr, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> ::windows::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub type LPFNVIEWCALLBACK = unsafe extern "system" fn(psvouter: ::windows::core::RawPtr, psf: ::windows::core::RawPtr, hwndmain: super::super::Foundation::HWND, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> ::windows::core::HRESULT; #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn LoadUserProfileA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(htoken: Param0, lpprofileinfo: *mut PROFILEINFOA) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn LoadUserProfileA(htoken: super::super::Foundation::HANDLE, lpprofileinfo: *mut PROFILEINFOA) -> super::super::Foundation::BOOL; } ::core::mem::transmute(LoadUserProfileA(htoken.into_param().abi(), ::core::mem::transmute(lpprofileinfo))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn LoadUserProfileW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(htoken: Param0, lpprofileinfo: *mut PROFILEINFOW) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn LoadUserProfileW(htoken: super::super::Foundation::HANDLE, lpprofileinfo: *mut PROFILEINFOW) -> super::super::Foundation::BOOL; } ::core::mem::transmute(LoadUserProfileW(htoken.into_param().abi(), ::core::mem::transmute(lpprofileinfo))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const LocalThumbnailCache: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x50ef4544_ac9f_4a8e_b21b_8a26180db13f); pub const MAXFILELEN: u32 = 13u32; pub const MAX_COLUMN_DESC_LEN: u32 = 128u32; pub const MAX_COLUMN_NAME_LEN: u32 = 80u32; pub const MAX_SYNCMGRHANDLERNAME: u32 = 32u32; pub const MAX_SYNCMGRITEMNAME: u32 = 128u32; pub const MAX_SYNCMGR_ID: u32 = 64u32; pub const MAX_SYNCMGR_NAME: u32 = 128u32; pub const MAX_SYNCMGR_PROGRESSTEXT: u32 = 260u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct MENUBANDHANDLERCID(pub i32); pub const MBHANDCID_PIDLSELECT: MENUBANDHANDLERCID = MENUBANDHANDLERCID(0i32); impl ::core::convert::From<i32> for MENUBANDHANDLERCID { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for MENUBANDHANDLERCID { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct MENUPOPUPPOPUPFLAGS(pub i32); pub const MPPF_SETFOCUS: MENUPOPUPPOPUPFLAGS = MENUPOPUPPOPUPFLAGS(1i32); pub const MPPF_INITIALSELECT: MENUPOPUPPOPUPFLAGS = MENUPOPUPPOPUPFLAGS(2i32); pub const MPPF_NOANIMATE: MENUPOPUPPOPUPFLAGS = MENUPOPUPPOPUPFLAGS(4i32); pub const MPPF_KEYBOARD: MENUPOPUPPOPUPFLAGS = MENUPOPUPPOPUPFLAGS(16i32); pub const MPPF_REPOSITION: MENUPOPUPPOPUPFLAGS = MENUPOPUPPOPUPFLAGS(32i32); pub const MPPF_FORCEZORDER: MENUPOPUPPOPUPFLAGS = MENUPOPUPPOPUPFLAGS(64i32); pub const MPPF_FINALSELECT: MENUPOPUPPOPUPFLAGS = MENUPOPUPPOPUPFLAGS(128i32); pub const MPPF_TOP: MENUPOPUPPOPUPFLAGS = MENUPOPUPPOPUPFLAGS(536870912i32); pub const MPPF_LEFT: MENUPOPUPPOPUPFLAGS = MENUPOPUPPOPUPFLAGS(1073741824i32); pub const MPPF_RIGHT: MENUPOPUPPOPUPFLAGS = MENUPOPUPPOPUPFLAGS(1610612736i32); pub const MPPF_BOTTOM: MENUPOPUPPOPUPFLAGS = MENUPOPUPPOPUPFLAGS(-2147483648i32); pub const MPPF_POS_MASK: MENUPOPUPPOPUPFLAGS = MENUPOPUPPOPUPFLAGS(-536870912i32); pub const MPPF_ALIGN_LEFT: MENUPOPUPPOPUPFLAGS = MENUPOPUPPOPUPFLAGS(33554432i32); pub const MPPF_ALIGN_RIGHT: MENUPOPUPPOPUPFLAGS = MENUPOPUPPOPUPFLAGS(67108864i32); impl ::core::convert::From<i32> for MENUPOPUPPOPUPFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for MENUPOPUPPOPUPFLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct MENUPOPUPSELECT(pub i32); pub const MPOS_EXECUTE: MENUPOPUPSELECT = MENUPOPUPSELECT(0i32); pub const MPOS_FULLCANCEL: MENUPOPUPSELECT = MENUPOPUPSELECT(1i32); pub const MPOS_CANCELLEVEL: MENUPOPUPSELECT = MENUPOPUPSELECT(2i32); pub const MPOS_SELECTLEFT: MENUPOPUPSELECT = MENUPOPUPSELECT(3i32); pub const MPOS_SELECTRIGHT: MENUPOPUPSELECT = MENUPOPUPSELECT(4i32); pub const MPOS_CHILDTRACKING: MENUPOPUPSELECT = MENUPOPUPSELECT(5i32); impl ::core::convert::From<i32> for MENUPOPUPSELECT { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for MENUPOPUPSELECT { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct MERGE_UPDATE_STATUS(pub i32); pub const MUS_COMPLETE: MERGE_UPDATE_STATUS = MERGE_UPDATE_STATUS(0i32); pub const MUS_USERINPUTNEEDED: MERGE_UPDATE_STATUS = MERGE_UPDATE_STATUS(1i32); pub const MUS_FAILED: MERGE_UPDATE_STATUS = MERGE_UPDATE_STATUS(2i32); impl ::core::convert::From<i32> for MERGE_UPDATE_STATUS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for MERGE_UPDATE_STATUS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct MM_FLAGS(pub u32); pub const MM_ADDSEPARATOR: MM_FLAGS = MM_FLAGS(1u32); pub const MM_SUBMENUSHAVEIDS: MM_FLAGS = MM_FLAGS(2u32); pub const MM_DONTREMOVESEPS: MM_FLAGS = MM_FLAGS(4u32); impl ::core::convert::From<u32> for MM_FLAGS { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for MM_FLAGS { type Abi = Self; } impl ::core::ops::BitOr for MM_FLAGS { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for MM_FLAGS { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for MM_FLAGS { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for MM_FLAGS { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for MM_FLAGS { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct MONITOR_APP_VISIBILITY(pub i32); pub const MAV_UNKNOWN: MONITOR_APP_VISIBILITY = MONITOR_APP_VISIBILITY(0i32); pub const MAV_NO_APP_VISIBLE: MONITOR_APP_VISIBILITY = MONITOR_APP_VISIBILITY(1i32); pub const MAV_APP_VISIBLE: MONITOR_APP_VISIBILITY = MONITOR_APP_VISIBILITY(2i32); impl ::core::convert::From<i32> for MONITOR_APP_VISIBILITY { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for MONITOR_APP_VISIBILITY { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct MULTIKEYHELPA { pub mkSize: u32, pub mkKeylist: super::super::Foundation::CHAR, pub szKeyphrase: [super::super::Foundation::CHAR; 1], } #[cfg(feature = "Win32_Foundation")] impl MULTIKEYHELPA {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for MULTIKEYHELPA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for MULTIKEYHELPA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("MULTIKEYHELPA").field("mkSize", &self.mkSize).field("mkKeylist", &self.mkKeylist).field("szKeyphrase", &self.szKeyphrase).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for MULTIKEYHELPA { fn eq(&self, other: &Self) -> bool { self.mkSize == other.mkSize && self.mkKeylist == other.mkKeylist && self.szKeyphrase == other.szKeyphrase } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for MULTIKEYHELPA {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for MULTIKEYHELPA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct MULTIKEYHELPW { pub mkSize: u32, pub mkKeylist: u16, pub szKeyphrase: [u16; 1], } impl MULTIKEYHELPW {} impl ::core::default::Default for MULTIKEYHELPW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for MULTIKEYHELPW { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("MULTIKEYHELPW").field("mkSize", &self.mkSize).field("mkKeylist", &self.mkKeylist).field("szKeyphrase", &self.szKeyphrase).finish() } } impl ::core::cmp::PartialEq for MULTIKEYHELPW { fn eq(&self, other: &Self) -> bool { self.mkSize == other.mkSize && self.mkKeylist == other.mkKeylist && self.szKeyphrase == other.szKeyphrase } } impl ::core::cmp::Eq for MULTIKEYHELPW {} unsafe impl ::windows::core::Abi for MULTIKEYHELPW { type Abi = Self; } pub const MailRecipient: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9e56be60_c50f_11cf_9a2c_00a0c90a90ce); pub const MergedCategorizer: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8e827c11_33e7_4bc1_b242_8cd9a1c2b304); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct NAMESPACEWALKFLAG(pub i32); pub const NSWF_DEFAULT: NAMESPACEWALKFLAG = NAMESPACEWALKFLAG(0i32); pub const NSWF_NONE_IMPLIES_ALL: NAMESPACEWALKFLAG = NAMESPACEWALKFLAG(1i32); pub const NSWF_ONE_IMPLIES_ALL: NAMESPACEWALKFLAG = NAMESPACEWALKFLAG(2i32); pub const NSWF_DONT_TRAVERSE_LINKS: NAMESPACEWALKFLAG = NAMESPACEWALKFLAG(4i32); pub const NSWF_DONT_ACCUMULATE_RESULT: NAMESPACEWALKFLAG = NAMESPACEWALKFLAG(8i32); pub const NSWF_TRAVERSE_STREAM_JUNCTIONS: NAMESPACEWALKFLAG = NAMESPACEWALKFLAG(16i32); pub const NSWF_FILESYSTEM_ONLY: NAMESPACEWALKFLAG = NAMESPACEWALKFLAG(32i32); pub const NSWF_SHOW_PROGRESS: NAMESPACEWALKFLAG = NAMESPACEWALKFLAG(64i32); pub const NSWF_FLAG_VIEWORDER: NAMESPACEWALKFLAG = NAMESPACEWALKFLAG(128i32); pub const NSWF_IGNORE_AUTOPLAY_HIDA: NAMESPACEWALKFLAG = NAMESPACEWALKFLAG(256i32); pub const NSWF_ASYNC: NAMESPACEWALKFLAG = NAMESPACEWALKFLAG(512i32); pub const NSWF_DONT_RESOLVE_LINKS: NAMESPACEWALKFLAG = NAMESPACEWALKFLAG(1024i32); pub const NSWF_ACCUMULATE_FOLDERS: NAMESPACEWALKFLAG = NAMESPACEWALKFLAG(2048i32); pub const NSWF_DONT_SORT: NAMESPACEWALKFLAG = NAMESPACEWALKFLAG(4096i32); pub const NSWF_USE_TRANSFER_MEDIUM: NAMESPACEWALKFLAG = NAMESPACEWALKFLAG(8192i32); pub const NSWF_DONT_TRAVERSE_STREAM_JUNCTIONS: NAMESPACEWALKFLAG = NAMESPACEWALKFLAG(16384i32); pub const NSWF_ANY_IMPLIES_ALL: NAMESPACEWALKFLAG = NAMESPACEWALKFLAG(32768i32); impl ::core::convert::From<i32> for NAMESPACEWALKFLAG { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for NAMESPACEWALKFLAG { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct NATIVE_DISPLAY_ORIENTATION(pub i32); pub const NDO_LANDSCAPE: NATIVE_DISPLAY_ORIENTATION = NATIVE_DISPLAY_ORIENTATION(0i32); pub const NDO_PORTRAIT: NATIVE_DISPLAY_ORIENTATION = NATIVE_DISPLAY_ORIENTATION(1i32); impl ::core::convert::From<i32> for NATIVE_DISPLAY_ORIENTATION { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for NATIVE_DISPLAY_ORIENTATION { type Abi = Self; } pub const NCM_DISPLAYERRORTIP: u32 = 1028u32; pub const NCM_GETADDRESS: u32 = 1025u32; pub const NCM_GETALLOWTYPE: u32 = 1027u32; pub const NCM_SETALLOWTYPE: u32 = 1026u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct NC_ADDRESS { pub pAddrInfo: *mut NC_ADDRESS_0, pub PortNumber: u16, pub PrefixLength: u8, } impl NC_ADDRESS {} impl ::core::default::Default for NC_ADDRESS { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for NC_ADDRESS { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("NC_ADDRESS").field("pAddrInfo", &self.pAddrInfo).field("PortNumber", &self.PortNumber).field("PrefixLength", &self.PrefixLength).finish() } } impl ::core::cmp::PartialEq for NC_ADDRESS { fn eq(&self, other: &Self) -> bool { self.pAddrInfo == other.pAddrInfo && self.PortNumber == other.PortNumber && self.PrefixLength == other.PrefixLength } } impl ::core::cmp::Eq for NC_ADDRESS {} unsafe impl ::windows::core::Abi for NC_ADDRESS { type Abi = Self; } #[repr(C)] #[derive(:: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug, :: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy)] pub struct NC_ADDRESS_0(pub u8); pub const NETCACHE_E_NEGATIVE_CACHE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927488i32 as _); #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(all(feature = "Win32_Foundation", 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: [super::super::Foundation::CHAR; 32], pub szInfo: [super::super::Foundation::CHAR; 64], pub szHelpFile: [super::super::Foundation::CHAR; 128], } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl NEWCPLINFOA {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::default::Default for NEWCPLINFOA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::PartialEq for NEWCPLINFOA { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::Eq for NEWCPLINFOA {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] unsafe impl ::windows::core::Abi for NEWCPLINFOA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[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 NEWCPLINFOW {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::default::Default for NEWCPLINFOW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::cmp::PartialEq for NEWCPLINFOW { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::cmp::Eq for NEWCPLINFOW {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] unsafe impl ::windows::core::Abi for NEWCPLINFOW { type Abi = Self; } pub const NIIF_ERROR: u32 = 3u32; pub const NIIF_ICON_MASK: u32 = 15u32; pub const NIIF_INFO: u32 = 1u32; pub const NIIF_LARGE_ICON: u32 = 32u32; pub const NIIF_NONE: u32 = 0u32; pub const NIIF_NOSOUND: u32 = 16u32; pub const NIIF_RESPECT_QUIET_TIME: u32 = 128u32; pub const NIIF_USER: u32 = 4u32; pub const NIIF_WARNING: u32 = 2u32; pub const NINF_KEY: u32 = 1u32; pub const NIN_BALLOONHIDE: u32 = 1027u32; pub const NIN_BALLOONSHOW: u32 = 1026u32; pub const NIN_BALLOONTIMEOUT: u32 = 1028u32; pub const NIN_BALLOONUSERCLICK: u32 = 1029u32; pub const NIN_POPUPCLOSE: u32 = 1031u32; pub const NIN_POPUPOPEN: u32 = 1030u32; pub const NIN_SELECT: u32 = 1024u32; pub const NIS_HIDDEN: u32 = 1u32; pub const NIS_SHAREDICON: u32 = 2u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[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: [super::super::Foundation::CHAR; 128], pub dwState: u32, pub dwStateMask: u32, pub szInfo: [super::super::Foundation::CHAR; 256], pub Anonymous: NOTIFYICONDATAA_0, pub szInfoTitle: [super::super::Foundation::CHAR; 64], pub dwInfoFlags: u32, pub guidItem: ::windows::core::GUID, pub hBalloonIcon: super::WindowsAndMessaging::HICON, } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl NOTIFYICONDATAA {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::default::Default for NOTIFYICONDATAA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::PartialEq for NOTIFYICONDATAA { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::Eq for NOTIFYICONDATAA {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] unsafe impl ::windows::core::Abi for NOTIFYICONDATAA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub union NOTIFYICONDATAA_0 { pub uTimeout: u32, pub uVersion: u32, } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl NOTIFYICONDATAA_0 {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::default::Default for NOTIFYICONDATAA_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::PartialEq for NOTIFYICONDATAA_0 { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::Eq for NOTIFYICONDATAA_0 {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] unsafe impl ::windows::core::Abi for NOTIFYICONDATAA_0 { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(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: [super::super::Foundation::CHAR; 128], pub dwState: u32, pub dwStateMask: u32, pub szInfo: [super::super::Foundation::CHAR; 256], pub Anonymous: NOTIFYICONDATAA_0, pub szInfoTitle: [super::super::Foundation::CHAR; 64], pub dwInfoFlags: u32, pub guidItem: ::windows::core::GUID, pub hBalloonIcon: super::WindowsAndMessaging::HICON, } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl NOTIFYICONDATAA {} #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::default::Default for NOTIFYICONDATAA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::PartialEq for NOTIFYICONDATAA { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::Eq for NOTIFYICONDATAA {} #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] unsafe impl ::windows::core::Abi for NOTIFYICONDATAA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub union NOTIFYICONDATAA_0 { pub uTimeout: u32, pub uVersion: u32, } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl NOTIFYICONDATAA_0 {} #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::default::Default for NOTIFYICONDATAA_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::PartialEq for NOTIFYICONDATAA_0 { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::Eq for NOTIFYICONDATAA_0 {} #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] unsafe impl ::windows::core::Abi for NOTIFYICONDATAA_0 { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[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: u32, pub dwStateMask: u32, pub szInfo: [u16; 256], pub Anonymous: NOTIFYICONDATAW_0, pub szInfoTitle: [u16; 64], pub dwInfoFlags: u32, pub guidItem: ::windows::core::GUID, pub hBalloonIcon: super::WindowsAndMessaging::HICON, } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl NOTIFYICONDATAW {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::default::Default for NOTIFYICONDATAW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::PartialEq for NOTIFYICONDATAW { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::Eq for NOTIFYICONDATAW {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] unsafe impl ::windows::core::Abi for NOTIFYICONDATAW { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub union NOTIFYICONDATAW_0 { pub uTimeout: u32, pub uVersion: u32, } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl NOTIFYICONDATAW_0 {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::default::Default for NOTIFYICONDATAW_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::PartialEq for NOTIFYICONDATAW_0 { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::Eq for NOTIFYICONDATAW_0 {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] unsafe impl ::windows::core::Abi for NOTIFYICONDATAW_0 { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(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: u32, pub dwStateMask: u32, pub szInfo: [u16; 256], pub Anonymous: NOTIFYICONDATAW_0, pub szInfoTitle: [u16; 64], pub dwInfoFlags: u32, pub guidItem: ::windows::core::GUID, pub hBalloonIcon: super::WindowsAndMessaging::HICON, } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl NOTIFYICONDATAW {} #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::default::Default for NOTIFYICONDATAW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::PartialEq for NOTIFYICONDATAW { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::Eq for NOTIFYICONDATAW {} #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] unsafe impl ::windows::core::Abi for NOTIFYICONDATAW { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub union NOTIFYICONDATAW_0 { pub uTimeout: u32, pub uVersion: u32, } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl NOTIFYICONDATAW_0 {} #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::default::Default for NOTIFYICONDATAW_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::PartialEq for NOTIFYICONDATAW_0 { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::Eq for NOTIFYICONDATAW_0 {} #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] unsafe impl ::windows::core::Abi for NOTIFYICONDATAW_0 { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] pub struct NOTIFYICONIDENTIFIER { pub cbSize: u32, pub hWnd: super::super::Foundation::HWND, pub uID: u32, pub guidItem: ::windows::core::GUID, } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl NOTIFYICONIDENTIFIER {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for NOTIFYICONIDENTIFIER { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for NOTIFYICONIDENTIFIER { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("NOTIFYICONIDENTIFIER").field("cbSize", &self.cbSize).field("hWnd", &self.hWnd).field("uID", &self.uID).field("guidItem", &self.guidItem).finish() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for NOTIFYICONIDENTIFIER { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.hWnd == other.hWnd && self.uID == other.uID && self.guidItem == other.guidItem } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for NOTIFYICONIDENTIFIER {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for NOTIFYICONIDENTIFIER { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(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::core::GUID, } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl NOTIFYICONIDENTIFIER {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for NOTIFYICONIDENTIFIER { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for NOTIFYICONIDENTIFIER { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for NOTIFYICONIDENTIFIER {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for NOTIFYICONIDENTIFIER { type Abi = Self; } pub const NOTIFYICON_VERSION: u32 = 3u32; pub const NOTIFYICON_VERSION_4: u32 = 4u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct NOTIFY_ICON_DATA_FLAGS(pub u32); pub const NIF_MESSAGE: NOTIFY_ICON_DATA_FLAGS = NOTIFY_ICON_DATA_FLAGS(1u32); pub const NIF_ICON: NOTIFY_ICON_DATA_FLAGS = NOTIFY_ICON_DATA_FLAGS(2u32); pub const NIF_TIP: NOTIFY_ICON_DATA_FLAGS = NOTIFY_ICON_DATA_FLAGS(4u32); pub const NIF_STATE: NOTIFY_ICON_DATA_FLAGS = NOTIFY_ICON_DATA_FLAGS(8u32); pub const NIF_INFO: NOTIFY_ICON_DATA_FLAGS = NOTIFY_ICON_DATA_FLAGS(16u32); pub const NIF_GUID: NOTIFY_ICON_DATA_FLAGS = NOTIFY_ICON_DATA_FLAGS(32u32); pub const NIF_REALTIME: NOTIFY_ICON_DATA_FLAGS = NOTIFY_ICON_DATA_FLAGS(64u32); pub const NIF_SHOWTIP: NOTIFY_ICON_DATA_FLAGS = NOTIFY_ICON_DATA_FLAGS(128u32); impl ::core::convert::From<u32> for NOTIFY_ICON_DATA_FLAGS { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for NOTIFY_ICON_DATA_FLAGS { type Abi = Self; } impl ::core::ops::BitOr for NOTIFY_ICON_DATA_FLAGS { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for NOTIFY_ICON_DATA_FLAGS { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for NOTIFY_ICON_DATA_FLAGS { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for NOTIFY_ICON_DATA_FLAGS { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for NOTIFY_ICON_DATA_FLAGS { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct NOTIFY_ICON_MESSAGE(pub u32); pub const NIM_ADD: NOTIFY_ICON_MESSAGE = NOTIFY_ICON_MESSAGE(0u32); pub const NIM_MODIFY: NOTIFY_ICON_MESSAGE = NOTIFY_ICON_MESSAGE(1u32); pub const NIM_DELETE: NOTIFY_ICON_MESSAGE = NOTIFY_ICON_MESSAGE(2u32); pub const NIM_SETFOCUS: NOTIFY_ICON_MESSAGE = NOTIFY_ICON_MESSAGE(3u32); pub const NIM_SETVERSION: NOTIFY_ICON_MESSAGE = NOTIFY_ICON_MESSAGE(4u32); impl ::core::convert::From<u32> for NOTIFY_ICON_MESSAGE { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for NOTIFY_ICON_MESSAGE { type Abi = Self; } impl ::core::ops::BitOr for NOTIFY_ICON_MESSAGE { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for NOTIFY_ICON_MESSAGE { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for NOTIFY_ICON_MESSAGE { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for NOTIFY_ICON_MESSAGE { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for NOTIFY_ICON_MESSAGE { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } pub const NPCredentialProvider: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3dd6bec0_8193_4ffe_ae25_e08e39ea4063); #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_NetworkManagement_WNet"))] pub struct NRESARRAY { pub cItems: u32, pub nr: [super::super::NetworkManagement::WNet::NETRESOURCEA; 1], } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_NetworkManagement_WNet"))] impl NRESARRAY {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_NetworkManagement_WNet"))] impl ::core::default::Default for NRESARRAY { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_NetworkManagement_WNet"))] impl ::core::fmt::Debug for NRESARRAY { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("NRESARRAY").field("cItems", &self.cItems).field("nr", &self.nr).finish() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_NetworkManagement_WNet"))] impl ::core::cmp::PartialEq for NRESARRAY { fn eq(&self, other: &Self) -> bool { self.cItems == other.cItems && self.nr == other.nr } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_NetworkManagement_WNet"))] impl ::core::cmp::Eq for NRESARRAY {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_NetworkManagement_WNet"))] unsafe impl ::windows::core::Abi for NRESARRAY { type Abi = Self; } #[derive(:: core :: clone :: Clone)] #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub struct NSTCCUSTOMDRAW { pub psi: ::core::option::Option<IShellItem>, pub uItemState: u32, pub nstcis: u32, pub pszText: super::super::Foundation::PWSTR, pub iImage: i32, pub himl: super::Controls::HIMAGELIST, pub iLevel: i32, pub iIndent: i32, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] impl NSTCCUSTOMDRAW {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] impl ::core::default::Default for NSTCCUSTOMDRAW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] impl ::core::fmt::Debug for NSTCCUSTOMDRAW { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("NSTCCUSTOMDRAW").field("psi", &self.psi).field("uItemState", &self.uItemState).field("nstcis", &self.nstcis).field("pszText", &self.pszText).field("iImage", &self.iImage).field("himl", &self.himl).field("iLevel", &self.iLevel).field("iIndent", &self.iIndent).finish() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] impl ::core::cmp::PartialEq for NSTCCUSTOMDRAW { fn eq(&self, other: &Self) -> bool { self.psi == other.psi && self.uItemState == other.uItemState && self.nstcis == other.nstcis && self.pszText == other.pszText && self.iImage == other.iImage && self.himl == other.himl && self.iLevel == other.iLevel && self.iIndent == other.iIndent } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] impl ::core::cmp::Eq for NSTCCUSTOMDRAW {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] unsafe impl ::windows::core::Abi for NSTCCUSTOMDRAW { type Abi = ::core::mem::ManuallyDrop<Self>; } pub const NSTCDHPOS_ONTOP: i32 = -1i32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct NSTCFOLDERCAPABILITIES(pub i32); pub const NSTCFC_NONE: NSTCFOLDERCAPABILITIES = NSTCFOLDERCAPABILITIES(0i32); pub const NSTCFC_PINNEDITEMFILTERING: NSTCFOLDERCAPABILITIES = NSTCFOLDERCAPABILITIES(1i32); pub const NSTCFC_DELAY_REGISTER_NOTIFY: NSTCFOLDERCAPABILITIES = NSTCFOLDERCAPABILITIES(2i32); impl ::core::convert::From<i32> for NSTCFOLDERCAPABILITIES { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for NSTCFOLDERCAPABILITIES { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct NSTCGNI(pub i32); pub const NSTCGNI_NEXT: NSTCGNI = NSTCGNI(0i32); pub const NSTCGNI_NEXTVISIBLE: NSTCGNI = NSTCGNI(1i32); pub const NSTCGNI_PREV: NSTCGNI = NSTCGNI(2i32); pub const NSTCGNI_PREVVISIBLE: NSTCGNI = NSTCGNI(3i32); pub const NSTCGNI_PARENT: NSTCGNI = NSTCGNI(4i32); pub const NSTCGNI_CHILD: NSTCGNI = NSTCGNI(5i32); pub const NSTCGNI_FIRSTVISIBLE: NSTCGNI = NSTCGNI(6i32); pub const NSTCGNI_LASTVISIBLE: NSTCGNI = NSTCGNI(7i32); impl ::core::convert::From<i32> for NSTCGNI { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for NSTCGNI { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct NSTCSTYLE2(pub i32); pub const NSTCS2_DEFAULT: NSTCSTYLE2 = NSTCSTYLE2(0i32); pub const NSTCS2_INTERRUPTNOTIFICATIONS: NSTCSTYLE2 = NSTCSTYLE2(1i32); pub const NSTCS2_SHOWNULLSPACEMENU: NSTCSTYLE2 = NSTCSTYLE2(2i32); pub const NSTCS2_DISPLAYPADDING: NSTCSTYLE2 = NSTCSTYLE2(4i32); pub const NSTCS2_DISPLAYPINNEDONLY: NSTCSTYLE2 = NSTCSTYLE2(8i32); pub const NTSCS2_NOSINGLETONAUTOEXPAND: NSTCSTYLE2 = NSTCSTYLE2(16i32); pub const NTSCS2_NEVERINSERTNONENUMERATED: NSTCSTYLE2 = NSTCSTYLE2(32i32); impl ::core::convert::From<i32> for NSTCSTYLE2 { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for NSTCSTYLE2 { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[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: [u32; 16], } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Console"))] impl NT_CONSOLE_PROPS {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Console"))] impl ::core::default::Default for NT_CONSOLE_PROPS { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Console"))] impl ::core::cmp::PartialEq for NT_CONSOLE_PROPS { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Console"))] impl ::core::cmp::Eq for NT_CONSOLE_PROPS {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Console"))] unsafe impl ::windows::core::Abi for NT_CONSOLE_PROPS { type Abi = Self; } pub const NT_CONSOLE_PROPS_SIG: u32 = 2684354562u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] pub struct NT_FE_CONSOLE_PROPS { pub dbh: DATABLOCK_HEADER, pub uCodePage: u32, } impl NT_FE_CONSOLE_PROPS {} impl ::core::default::Default for NT_FE_CONSOLE_PROPS { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::cmp::PartialEq for NT_FE_CONSOLE_PROPS { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } impl ::core::cmp::Eq for NT_FE_CONSOLE_PROPS {} unsafe impl ::windows::core::Abi for NT_FE_CONSOLE_PROPS { type Abi = Self; } pub const NT_FE_CONSOLE_PROPS_SIG: u32 = 2684354564u32; pub const NUM_POINTS: u32 = 3u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct NWMF(pub i32); pub const NWMF_UNLOADING: NWMF = NWMF(1i32); pub const NWMF_USERINITED: NWMF = NWMF(2i32); pub const NWMF_FIRST: NWMF = NWMF(4i32); pub const NWMF_OVERRIDEKEY: NWMF = NWMF(8i32); pub const NWMF_SHOWHELP: NWMF = NWMF(16i32); pub const NWMF_HTMLDIALOG: NWMF = NWMF(32i32); pub const NWMF_FROMDIALOGCHILD: NWMF = NWMF(64i32); pub const NWMF_USERREQUESTED: NWMF = NWMF(128i32); pub const NWMF_USERALLOWED: NWMF = NWMF(256i32); pub const NWMF_FORCEWINDOW: NWMF = NWMF(65536i32); pub const NWMF_FORCETAB: NWMF = NWMF(131072i32); pub const NWMF_SUGGESTWINDOW: NWMF = NWMF(262144i32); pub const NWMF_SUGGESTTAB: NWMF = NWMF(524288i32); pub const NWMF_INACTIVETAB: NWMF = NWMF(1048576i32); impl ::core::convert::From<i32> for NWMF { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for NWMF { type Abi = Self; } pub const NamespaceTreeControl: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xae054212_3535_4430_83ed_d501aa6680e6); pub const NamespaceWalker: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x72eb61e0_8672_4303_9175_f2e4c68b2e7c); pub const NetworkConnections: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7007acc7_3202_11d1_aad2_00805fc1270e); pub const NetworkExplorerFolder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf02c1a0d_be21_4350_88b0_7367fc96ef3c); pub const NetworkPlaces: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x208d2c60_3aea_1069_a2d7_08002b30309d); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct NewProcessCauseConstants(pub i32); pub const ProtectedModeRedirect: NewProcessCauseConstants = NewProcessCauseConstants(1i32); impl ::core::convert::From<i32> for NewProcessCauseConstants { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for NewProcessCauseConstants { type Abi = Self; } pub const OFASI_EDIT: u32 = 1u32; pub const OFASI_OPENDESKTOP: u32 = 2u32; pub const OFFLINE_STATUS_INCOMPLETE: u32 = 4u32; pub const OFFLINE_STATUS_LOCAL: u32 = 1u32; pub const OFFLINE_STATUS_REMOTE: u32 = 2u32; pub const OF_CAP_CANCLOSE: u32 = 2u32; pub const OF_CAP_CANSWITCHTO: u32 = 1u32; pub const OI_ASYNC: u32 = 4294962926u32; pub const OI_DEFAULT: u32 = 0u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct OPENASINFO { pub pcszFile: super::super::Foundation::PWSTR, pub pcszClass: super::super::Foundation::PWSTR, pub oaifInFlags: OPEN_AS_INFO_FLAGS, } #[cfg(feature = "Win32_Foundation")] impl OPENASINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for OPENASINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for OPENASINFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("OPENASINFO").field("pcszFile", &self.pcszFile).field("pcszClass", &self.pcszClass).field("oaifInFlags", &self.oaifInFlags).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for OPENASINFO { fn eq(&self, other: &Self) -> bool { self.pcszFile == other.pcszFile && self.pcszClass == other.pcszClass && self.oaifInFlags == other.oaifInFlags } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for OPENASINFO {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for OPENASINFO { type Abi = Self; } pub const OPENPROPS_INHIBITPIF: u32 = 32768u32; pub const OPENPROPS_NONE: u32 = 0u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct OPEN_AS_INFO_FLAGS(pub u32); pub const OAIF_ALLOW_REGISTRATION: OPEN_AS_INFO_FLAGS = OPEN_AS_INFO_FLAGS(1u32); pub const OAIF_REGISTER_EXT: OPEN_AS_INFO_FLAGS = OPEN_AS_INFO_FLAGS(2u32); pub const OAIF_EXEC: OPEN_AS_INFO_FLAGS = OPEN_AS_INFO_FLAGS(4u32); pub const OAIF_FORCE_REGISTRATION: OPEN_AS_INFO_FLAGS = OPEN_AS_INFO_FLAGS(8u32); pub const OAIF_HIDE_REGISTRATION: OPEN_AS_INFO_FLAGS = OPEN_AS_INFO_FLAGS(32u32); pub const OAIF_URL_PROTOCOL: OPEN_AS_INFO_FLAGS = OPEN_AS_INFO_FLAGS(64u32); pub const OAIF_FILE_IS_URI: OPEN_AS_INFO_FLAGS = OPEN_AS_INFO_FLAGS(128u32); impl ::core::convert::From<u32> for OPEN_AS_INFO_FLAGS { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for OPEN_AS_INFO_FLAGS { type Abi = Self; } impl ::core::ops::BitOr for OPEN_AS_INFO_FLAGS { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for OPEN_AS_INFO_FLAGS { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for OPEN_AS_INFO_FLAGS { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for OPEN_AS_INFO_FLAGS { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for OPEN_AS_INFO_FLAGS { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] pub struct OPEN_PRINTER_PROPS_INFOA { pub dwSize: u32, pub pszSheetName: super::super::Foundation::PSTR, pub uSheetIndex: u32, pub dwFlags: u32, pub bModal: super::super::Foundation::BOOL, } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl OPEN_PRINTER_PROPS_INFOA {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for OPEN_PRINTER_PROPS_INFOA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for OPEN_PRINTER_PROPS_INFOA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("OPEN_PRINTER_PROPS_INFOA").field("dwSize", &self.dwSize).field("pszSheetName", &self.pszSheetName).field("uSheetIndex", &self.uSheetIndex).field("dwFlags", &self.dwFlags).field("bModal", &self.bModal).finish() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for OPEN_PRINTER_PROPS_INFOA { fn eq(&self, other: &Self) -> bool { self.dwSize == other.dwSize && self.pszSheetName == other.pszSheetName && self.uSheetIndex == other.uSheetIndex && self.dwFlags == other.dwFlags && self.bModal == other.bModal } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for OPEN_PRINTER_PROPS_INFOA {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for OPEN_PRINTER_PROPS_INFOA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] pub struct OPEN_PRINTER_PROPS_INFOA { pub dwSize: u32, pub pszSheetName: super::super::Foundation::PSTR, pub uSheetIndex: u32, pub dwFlags: u32, pub bModal: super::super::Foundation::BOOL, } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl OPEN_PRINTER_PROPS_INFOA {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for OPEN_PRINTER_PROPS_INFOA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for OPEN_PRINTER_PROPS_INFOA { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for OPEN_PRINTER_PROPS_INFOA {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for OPEN_PRINTER_PROPS_INFOA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] pub struct OPEN_PRINTER_PROPS_INFOW { pub dwSize: u32, pub pszSheetName: super::super::Foundation::PWSTR, pub uSheetIndex: u32, pub dwFlags: u32, pub bModal: super::super::Foundation::BOOL, } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl OPEN_PRINTER_PROPS_INFOW {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for OPEN_PRINTER_PROPS_INFOW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for OPEN_PRINTER_PROPS_INFOW { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("OPEN_PRINTER_PROPS_INFOW").field("dwSize", &self.dwSize).field("pszSheetName", &self.pszSheetName).field("uSheetIndex", &self.uSheetIndex).field("dwFlags", &self.dwFlags).field("bModal", &self.bModal).finish() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for OPEN_PRINTER_PROPS_INFOW { fn eq(&self, other: &Self) -> bool { self.dwSize == other.dwSize && self.pszSheetName == other.pszSheetName && self.uSheetIndex == other.uSheetIndex && self.dwFlags == other.dwFlags && self.bModal == other.bModal } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for OPEN_PRINTER_PROPS_INFOW {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for OPEN_PRINTER_PROPS_INFOW { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] pub struct OPEN_PRINTER_PROPS_INFOW { pub dwSize: u32, pub pszSheetName: super::super::Foundation::PWSTR, pub uSheetIndex: u32, pub dwFlags: u32, pub bModal: super::super::Foundation::BOOL, } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl OPEN_PRINTER_PROPS_INFOW {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for OPEN_PRINTER_PROPS_INFOW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for OPEN_PRINTER_PROPS_INFOW { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for OPEN_PRINTER_PROPS_INFOW {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for OPEN_PRINTER_PROPS_INFOW { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct OS(pub u32); pub const OS_WINDOWS: OS = OS(0u32); pub const OS_NT: OS = OS(1u32); pub const OS_WIN95ORGREATER: OS = OS(2u32); pub const OS_NT4ORGREATER: OS = OS(3u32); pub const OS_WIN98ORGREATER: OS = OS(5u32); pub const OS_WIN98_GOLD: OS = OS(6u32); pub const OS_WIN2000ORGREATER: OS = OS(7u32); pub const OS_WIN2000PRO: OS = OS(8u32); pub const OS_WIN2000SERVER: OS = OS(9u32); pub const OS_WIN2000ADVSERVER: OS = OS(10u32); pub const OS_WIN2000DATACENTER: OS = OS(11u32); pub const OS_WIN2000TERMINAL: OS = OS(12u32); pub const OS_EMBEDDED: OS = OS(13u32); pub const OS_TERMINALCLIENT: OS = OS(14u32); pub const OS_TERMINALREMOTEADMIN: OS = OS(15u32); pub const OS_WIN95_GOLD: OS = OS(16u32); pub const OS_MEORGREATER: OS = OS(17u32); pub const OS_XPORGREATER: OS = OS(18u32); pub const OS_HOME: OS = OS(19u32); pub const OS_PROFESSIONAL: OS = OS(20u32); pub const OS_DATACENTER: OS = OS(21u32); pub const OS_ADVSERVER: OS = OS(22u32); pub const OS_SERVER: OS = OS(23u32); pub const OS_TERMINALSERVER: OS = OS(24u32); pub const OS_PERSONALTERMINALSERVER: OS = OS(25u32); pub const OS_FASTUSERSWITCHING: OS = OS(26u32); pub const OS_WELCOMELOGONUI: OS = OS(27u32); pub const OS_DOMAINMEMBER: OS = OS(28u32); pub const OS_ANYSERVER: OS = OS(29u32); pub const OS_WOW6432: OS = OS(30u32); pub const OS_WEBSERVER: OS = OS(31u32); pub const OS_SMALLBUSINESSSERVER: OS = OS(32u32); pub const OS_TABLETPC: OS = OS(33u32); pub const OS_SERVERADMINUI: OS = OS(34u32); pub const OS_MEDIACENTER: OS = OS(35u32); pub const OS_APPLIANCE: OS = OS(36u32); impl ::core::convert::From<u32> for OS { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for OS { type Abi = Self; } impl ::core::ops::BitOr for OS { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for OS { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for OS { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for OS { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for OS { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct OfflineFolderStatus(pub i32); pub const OFS_INACTIVE: OfflineFolderStatus = OfflineFolderStatus(-1i32); pub const OFS_ONLINE: OfflineFolderStatus = OfflineFolderStatus(0i32); pub const OFS_OFFLINE: OfflineFolderStatus = OfflineFolderStatus(1i32); pub const OFS_SERVERBACK: OfflineFolderStatus = OfflineFolderStatus(2i32); pub const OFS_DIRTYCACHE: OfflineFolderStatus = OfflineFolderStatus(3i32); impl ::core::convert::From<i32> for OfflineFolderStatus { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for OfflineFolderStatus { type Abi = Self; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] pub unsafe fn OleSaveToStreamEx<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(piunk: Param0, pistm: Param1, fcleardirty: Param2) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn OleSaveToStreamEx(piunk: ::windows::core::RawPtr, pistm: ::windows::core::RawPtr, fcleardirty: super::super::Foundation::BOOL) -> ::windows::core::HRESULT; } OleSaveToStreamEx(piunk.into_param().abi(), pistm.into_param().abi(), fcleardirty.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const OnexCredentialProvider: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x07aa0886_cc8d_4e19_a410_1c75af686e62); pub const OnexPlapSmartcardCredentialProvider: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x33c86cd6_705f_4ba1_9adb_67070b837775); pub const OpenControlPanel: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x06622d85_6856_4460_8de1_a81921b41c4b); #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn OpenRegStream<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hkey: Param0, pszsubkey: Param1, pszvalue: Param2, grfmode: u32) -> ::core::option::Option<super::super::System::Com::IStream> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn OpenRegStream(hkey: super::super::System::Registry::HKEY, pszsubkey: super::super::Foundation::PWSTR, pszvalue: super::super::Foundation::PWSTR, grfmode: u32) -> ::core::option::Option<super::super::System::Com::IStream>; } ::core::mem::transmute(OpenRegStream(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi(), ::core::mem::transmute(grfmode))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct PACKAGE_EXECUTION_STATE(pub i32); pub const PES_UNKNOWN: PACKAGE_EXECUTION_STATE = PACKAGE_EXECUTION_STATE(0i32); pub const PES_RUNNING: PACKAGE_EXECUTION_STATE = PACKAGE_EXECUTION_STATE(1i32); pub const PES_SUSPENDING: PACKAGE_EXECUTION_STATE = PACKAGE_EXECUTION_STATE(2i32); pub const PES_SUSPENDED: PACKAGE_EXECUTION_STATE = PACKAGE_EXECUTION_STATE(3i32); pub const PES_TERMINATED: PACKAGE_EXECUTION_STATE = PACKAGE_EXECUTION_STATE(4i32); impl ::core::convert::From<i32> for PACKAGE_EXECUTION_STATE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for PACKAGE_EXECUTION_STATE { type Abi = Self; } pub const PANE_NAVIGATION: u32 = 5u32; pub const PANE_NONE: u32 = 4294967295u32; pub const PANE_OFFLINE: u32 = 2u32; pub const PANE_PRINTER: u32 = 3u32; pub const PANE_PRIVACY: u32 = 7u32; pub const PANE_PROGRESS: u32 = 6u32; pub const PANE_SSL: u32 = 4u32; pub const PANE_ZONE: u32 = 1u32; #[cfg(feature = "Win32_Foundation")] pub type PAPPCONSTRAIN_CHANGE_ROUTINE = unsafe extern "system" fn(constrained: super::super::Foundation::BOOLEAN, context: *const ::core::ffi::c_void); #[cfg(feature = "Win32_Foundation")] pub type PAPPSTATE_CHANGE_ROUTINE = unsafe extern "system" fn(quiesced: super::super::Foundation::BOOLEAN, context: *const ::core::ffi::c_void); #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct PARSEDURLA { pub cbSize: u32, pub pszProtocol: super::super::Foundation::PSTR, pub cchProtocol: u32, pub pszSuffix: super::super::Foundation::PSTR, pub cchSuffix: u32, pub nScheme: u32, } #[cfg(feature = "Win32_Foundation")] impl PARSEDURLA {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for PARSEDURLA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for PARSEDURLA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("PARSEDURLA").field("cbSize", &self.cbSize).field("pszProtocol", &self.pszProtocol).field("cchProtocol", &self.cchProtocol).field("pszSuffix", &self.pszSuffix).field("cchSuffix", &self.cchSuffix).field("nScheme", &self.nScheme).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for PARSEDURLA { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.pszProtocol == other.pszProtocol && self.cchProtocol == other.cchProtocol && self.pszSuffix == other.pszSuffix && self.cchSuffix == other.cchSuffix && self.nScheme == other.nScheme } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for PARSEDURLA {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for PARSEDURLA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct PARSEDURLW { pub cbSize: u32, pub pszProtocol: super::super::Foundation::PWSTR, pub cchProtocol: u32, pub pszSuffix: super::super::Foundation::PWSTR, pub cchSuffix: u32, pub nScheme: u32, } #[cfg(feature = "Win32_Foundation")] impl PARSEDURLW {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for PARSEDURLW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for PARSEDURLW { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("PARSEDURLW").field("cbSize", &self.cbSize).field("pszProtocol", &self.pszProtocol).field("cchProtocol", &self.cchProtocol).field("pszSuffix", &self.pszSuffix).field("cchSuffix", &self.cchSuffix).field("nScheme", &self.nScheme).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for PARSEDURLW { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.pszProtocol == other.pszProtocol && self.cchProtocol == other.cchProtocol && self.pszSuffix == other.pszSuffix && self.cchSuffix == other.cchSuffix && self.nScheme == other.nScheme } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for PARSEDURLW {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for PARSEDURLW { type Abi = Self; } pub const PATHCCH_MAX_CCH: u32 = 32768u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct PATHCCH_OPTIONS(pub i32); pub const PATHCCH_NONE: PATHCCH_OPTIONS = PATHCCH_OPTIONS(0i32); pub const PATHCCH_ALLOW_LONG_PATHS: PATHCCH_OPTIONS = PATHCCH_OPTIONS(1i32); pub const PATHCCH_FORCE_ENABLE_LONG_NAME_PROCESS: PATHCCH_OPTIONS = PATHCCH_OPTIONS(2i32); pub const PATHCCH_FORCE_DISABLE_LONG_NAME_PROCESS: PATHCCH_OPTIONS = PATHCCH_OPTIONS(4i32); pub const PATHCCH_DO_NOT_NORMALIZE_SEGMENTS: PATHCCH_OPTIONS = PATHCCH_OPTIONS(8i32); pub const PATHCCH_ENSURE_IS_EXTENDED_LENGTH_PATH: PATHCCH_OPTIONS = PATHCCH_OPTIONS(16i32); pub const PATHCCH_ENSURE_TRAILING_SLASH: PATHCCH_OPTIONS = PATHCCH_OPTIONS(32i32); pub const PATHCCH_CANONICALIZE_SLASHES: PATHCCH_OPTIONS = PATHCCH_OPTIONS(64i32); impl ::core::convert::From<i32> for PATHCCH_OPTIONS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for PATHCCH_OPTIONS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct PCS_RET(pub u32); pub const PCS_FATAL: PCS_RET = PCS_RET(2147483648u32); pub const PCS_REPLACEDCHAR: PCS_RET = PCS_RET(1u32); pub const PCS_REMOVEDCHAR: PCS_RET = PCS_RET(2u32); pub const PCS_TRUNCATED: PCS_RET = PCS_RET(4u32); pub const PCS_PATHTOOLONG: PCS_RET = PCS_RET(8u32); impl ::core::convert::From<u32> for PCS_RET { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for PCS_RET { type Abi = Self; } impl ::core::ops::BitOr for PCS_RET { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for PCS_RET { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for PCS_RET { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for PCS_RET { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for PCS_RET { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } pub const PDTIMER_PAUSE: u32 = 2u32; pub const PDTIMER_RESET: u32 = 1u32; pub const PDTIMER_RESUME: u32 = 3u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[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 PERSIST_FOLDER_TARGET_INFO {} #[cfg(feature = "Win32_UI_Shell_Common")] impl ::core::default::Default for PERSIST_FOLDER_TARGET_INFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_UI_Shell_Common")] impl ::core::fmt::Debug for PERSIST_FOLDER_TARGET_INFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("PERSIST_FOLDER_TARGET_INFO").field("pidlTargetFolder", &self.pidlTargetFolder).field("szTargetParsingName", &self.szTargetParsingName).field("szNetworkProvider", &self.szNetworkProvider).field("dwAttributes", &self.dwAttributes).field("csidl", &self.csidl).finish() } } #[cfg(feature = "Win32_UI_Shell_Common")] impl ::core::cmp::PartialEq for PERSIST_FOLDER_TARGET_INFO { fn eq(&self, other: &Self) -> bool { self.pidlTargetFolder == other.pidlTargetFolder && self.szTargetParsingName == other.szTargetParsingName && self.szNetworkProvider == other.szNetworkProvider && self.dwAttributes == other.dwAttributes && self.csidl == other.csidl } } #[cfg(feature = "Win32_UI_Shell_Common")] impl ::core::cmp::Eq for PERSIST_FOLDER_TARGET_INFO {} #[cfg(feature = "Win32_UI_Shell_Common")] unsafe impl ::windows::core::Abi for PERSIST_FOLDER_TARGET_INFO { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] pub type PFNCANSHAREFOLDERW = unsafe extern "system" fn(pszpath: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub type PFNSHOWSHAREFOLDERUIW = unsafe extern "system" fn(hwndparent: super::super::Foundation::HWND, pszpath: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; pub const PIDASI_AVG_DATA_RATE: u32 = 4u32; pub const PIDASI_CHANNEL_COUNT: u32 = 7u32; pub const PIDASI_COMPRESSION: u32 = 10u32; pub const PIDASI_FORMAT: u32 = 2u32; pub const PIDASI_SAMPLE_RATE: u32 = 5u32; pub const PIDASI_SAMPLE_SIZE: u32 = 6u32; pub const PIDASI_STREAM_NAME: u32 = 9u32; pub const PIDASI_STREAM_NUMBER: u32 = 8u32; pub const PIDASI_TIMELENGTH: u32 = 3u32; pub const PIDDRSI_DESCRIPTION: u32 = 3u32; pub const PIDDRSI_PLAYCOUNT: u32 = 4u32; pub const PIDDRSI_PLAYEXPIRES: u32 = 6u32; pub const PIDDRSI_PLAYSTARTS: u32 = 5u32; pub const PIDDRSI_PROTECTED: u32 = 2u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct PIDISF_FLAGS(pub i32); pub const PIDISF_RECENTLYCHANGED: PIDISF_FLAGS = PIDISF_FLAGS(1i32); pub const PIDISF_CACHEDSTICKY: PIDISF_FLAGS = PIDISF_FLAGS(2i32); pub const PIDISF_CACHEIMAGES: PIDISF_FLAGS = PIDISF_FLAGS(16i32); pub const PIDISF_FOLLOWALLLINKS: PIDISF_FLAGS = PIDISF_FLAGS(32i32); impl ::core::convert::From<i32> for PIDISF_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for PIDISF_FLAGS { type Abi = Self; } impl ::core::ops::BitOr for PIDISF_FLAGS { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for PIDISF_FLAGS { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for PIDISF_FLAGS { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for PIDISF_FLAGS { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for PIDISF_FLAGS { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct PIDISM_OPTIONS(pub i32); pub const PIDISM_GLOBAL: PIDISM_OPTIONS = PIDISM_OPTIONS(0i32); pub const PIDISM_WATCH: PIDISM_OPTIONS = PIDISM_OPTIONS(1i32); pub const PIDISM_DONTWATCH: PIDISM_OPTIONS = PIDISM_OPTIONS(2i32); impl ::core::convert::From<i32> for PIDISM_OPTIONS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for PIDISM_OPTIONS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct PIDISR_INFO(pub i32); pub const PIDISR_UP_TO_DATE: PIDISR_INFO = PIDISR_INFO(0i32); pub const PIDISR_NEEDS_ADD: PIDISR_INFO = PIDISR_INFO(1i32); pub const PIDISR_NEEDS_UPDATE: PIDISR_INFO = PIDISR_INFO(2i32); pub const PIDISR_NEEDS_DELETE: PIDISR_INFO = PIDISR_INFO(3i32); impl ::core::convert::From<i32> for PIDISR_INFO { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for PIDISR_INFO { type Abi = Self; } pub const PIDSI_ALBUM: u32 = 4u32; pub const PIDSI_ARTIST: u32 = 2u32; pub const PIDSI_COMMENT: u32 = 6u32; pub const PIDSI_GENRE: u32 = 11u32; pub const PIDSI_LYRICS: u32 = 12u32; pub const PIDSI_SONGTITLE: u32 = 3u32; pub const PIDSI_TRACK: u32 = 7u32; pub const PIDSI_YEAR: u32 = 5u32; pub const PIDVSI_COMPRESSION: u32 = 10u32; pub const PIDVSI_DATA_RATE: u32 = 8u32; pub const PIDVSI_FRAME_COUNT: u32 = 5u32; pub const PIDVSI_FRAME_HEIGHT: u32 = 4u32; pub const PIDVSI_FRAME_RATE: u32 = 6u32; pub const PIDVSI_FRAME_WIDTH: u32 = 3u32; pub const PIDVSI_SAMPLE_SIZE: u32 = 9u32; pub const PIDVSI_STREAM_NAME: u32 = 2u32; pub const PIDVSI_STREAM_NUMBER: u32 = 11u32; pub const PIDVSI_TIMELENGTH: u32 = 7u32; pub const PID_COMPUTERNAME: u32 = 5u32; pub const PID_CONTROLPANEL_CATEGORY: u32 = 2u32; pub const PID_DESCRIPTIONID: u32 = 2u32; pub const PID_DISPLACED_DATE: u32 = 3u32; pub const PID_DISPLACED_FROM: u32 = 2u32; pub const PID_DISPLAY_PROPERTIES: u32 = 0u32; pub const PID_FINDDATA: u32 = 0u32; pub const PID_HTMLINFOTIPFILE: u32 = 5u32; pub const PID_INTROTEXT: u32 = 1u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct PID_INTSITE(pub i32); pub const PID_INTSITE_WHATSNEW: PID_INTSITE = PID_INTSITE(2i32); pub const PID_INTSITE_AUTHOR: PID_INTSITE = PID_INTSITE(3i32); pub const PID_INTSITE_LASTVISIT: PID_INTSITE = PID_INTSITE(4i32); pub const PID_INTSITE_LASTMOD: PID_INTSITE = PID_INTSITE(5i32); pub const PID_INTSITE_VISITCOUNT: PID_INTSITE = PID_INTSITE(6i32); pub const PID_INTSITE_DESCRIPTION: PID_INTSITE = PID_INTSITE(7i32); pub const PID_INTSITE_COMMENT: PID_INTSITE = PID_INTSITE(8i32); pub const PID_INTSITE_FLAGS: PID_INTSITE = PID_INTSITE(9i32); pub const PID_INTSITE_CONTENTLEN: PID_INTSITE = PID_INTSITE(10i32); pub const PID_INTSITE_CONTENTCODE: PID_INTSITE = PID_INTSITE(11i32); pub const PID_INTSITE_RECURSE: PID_INTSITE = PID_INTSITE(12i32); pub const PID_INTSITE_WATCH: PID_INTSITE = PID_INTSITE(13i32); pub const PID_INTSITE_SUBSCRIPTION: PID_INTSITE = PID_INTSITE(14i32); pub const PID_INTSITE_URL: PID_INTSITE = PID_INTSITE(15i32); pub const PID_INTSITE_TITLE: PID_INTSITE = PID_INTSITE(16i32); pub const PID_INTSITE_CODEPAGE: PID_INTSITE = PID_INTSITE(18i32); pub const PID_INTSITE_TRACKING: PID_INTSITE = PID_INTSITE(19i32); pub const PID_INTSITE_ICONINDEX: PID_INTSITE = PID_INTSITE(20i32); pub const PID_INTSITE_ICONFILE: PID_INTSITE = PID_INTSITE(21i32); pub const PID_INTSITE_ROAMED: PID_INTSITE = PID_INTSITE(34i32); impl ::core::convert::From<i32> for PID_INTSITE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for PID_INTSITE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct PID_IS(pub i32); pub const PID_IS_URL: PID_IS = PID_IS(2i32); pub const PID_IS_NAME: PID_IS = PID_IS(4i32); pub const PID_IS_WORKINGDIR: PID_IS = PID_IS(5i32); pub const PID_IS_HOTKEY: PID_IS = PID_IS(6i32); pub const PID_IS_SHOWCMD: PID_IS = PID_IS(7i32); pub const PID_IS_ICONINDEX: PID_IS = PID_IS(8i32); pub const PID_IS_ICONFILE: PID_IS = PID_IS(9i32); pub const PID_IS_WHATSNEW: PID_IS = PID_IS(10i32); pub const PID_IS_AUTHOR: PID_IS = PID_IS(11i32); pub const PID_IS_DESCRIPTION: PID_IS = PID_IS(12i32); pub const PID_IS_COMMENT: PID_IS = PID_IS(13i32); pub const PID_IS_ROAMED: PID_IS = PID_IS(15i32); impl ::core::convert::From<i32> for PID_IS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for PID_IS { type Abi = Self; } pub const PID_LINK_TARGET: u32 = 2u32; pub const PID_LINK_TARGET_TYPE: u32 = 3u32; pub const PID_MISC_ACCESSCOUNT: u32 = 3u32; pub const PID_MISC_OWNER: u32 = 4u32; pub const PID_MISC_PICS: u32 = 6u32; pub const PID_MISC_STATUS: u32 = 2u32; pub const PID_NETRESOURCE: u32 = 1u32; pub const PID_NETWORKLOCATION: u32 = 4u32; pub const PID_QUERY_RANK: u32 = 2u32; pub const PID_SHARE_CSC_STATUS: u32 = 2u32; pub const PID_SYNC_COPY_IN: u32 = 2u32; pub const PID_VOLUME_CAPACITY: u32 = 3u32; pub const PID_VOLUME_FILESYSTEM: u32 = 4u32; pub const PID_VOLUME_FREE: u32 = 2u32; pub const PID_WHICHFOLDER: u32 = 3u32; pub const PIFDEFFILESIZE: u32 = 80u32; pub const PIFDEFPATHSIZE: u32 = 64u32; pub const PIFMAXFILEPATH: u32 = 260u32; pub const PIFNAMESIZE: u32 = 30u32; pub const PIFPARAMSSIZE: u32 = 64u32; pub const PIFSHDATASIZE: u32 = 64u32; pub const PIFSHPROGSIZE: u32 = 64u32; pub const PIFSTARTLOCSIZE: u32 = 63u32; pub const PINLogonCredentialProvider: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcb82ea12_9f71_446d_89e1_8d0924e1256e); pub const PLATFORM_BROWSERONLY: u32 = 1u32; pub const PLATFORM_IE3: u32 = 1u32; pub const PLATFORM_INTEGRATED: u32 = 2u32; pub const PLATFORM_UNKNOWN: u32 = 0u32; pub const PMSF_DONT_STRIP_SPACES: u32 = 65536u32; pub const PMSF_MULTIPLE: u32 = 1u32; pub const PMSF_NORMAL: u32 = 0u32; pub const PO_DELETE: u32 = 19u32; pub const PO_PORTCHANGE: u32 = 32u32; pub const PO_RENAME: u32 = 20u32; pub const PO_REN_PORT: u32 = 52u32; pub const PPCF_ADDARGUMENTS: u32 = 3u32; pub const PPCF_ADDQUOTES: u32 = 1u32; pub const PPCF_FORCEQUALIFY: u32 = 64u32; pub const PPCF_LONGESTPOSSIBLE: u32 = 128u32; pub const PPCF_NODIRECTORIES: u32 = 16u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub struct PREVIEWHANDLERFRAMEINFO { pub haccel: super::WindowsAndMessaging::HACCEL, pub cAccelEntries: u32, } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl PREVIEWHANDLERFRAMEINFO {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::default::Default for PREVIEWHANDLERFRAMEINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::fmt::Debug for PREVIEWHANDLERFRAMEINFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("PREVIEWHANDLERFRAMEINFO").field("haccel", &self.haccel).field("cAccelEntries", &self.cAccelEntries).finish() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::cmp::PartialEq for PREVIEWHANDLERFRAMEINFO { fn eq(&self, other: &Self) -> bool { self.haccel == other.haccel && self.cAccelEntries == other.cAccelEntries } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::cmp::Eq for PREVIEWHANDLERFRAMEINFO {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] unsafe impl ::windows::core::Abi for PREVIEWHANDLERFRAMEINFO { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct PRF_FLAGS(pub i32); pub const PRF_VERIFYEXISTS: PRF_FLAGS = PRF_FLAGS(1i32); pub const PRF_TRYPROGRAMEXTENSIONS: PRF_FLAGS = PRF_FLAGS(3i32); pub const PRF_FIRSTDIRDEF: PRF_FLAGS = PRF_FLAGS(4i32); pub const PRF_DONTFINDLNK: PRF_FLAGS = PRF_FLAGS(8i32); pub const PRF_REQUIREABSOLUTE: PRF_FLAGS = PRF_FLAGS(16i32); impl ::core::convert::From<i32> for PRF_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for PRF_FLAGS { type Abi = Self; } impl ::core::ops::BitOr for PRF_FLAGS { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for PRF_FLAGS { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for PRF_FLAGS { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for PRF_FLAGS { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for PRF_FLAGS { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } pub const PRINTACTION_DOCUMENTDEFAULTS: u32 = 6u32; pub const PRINTACTION_NETINSTALL: u32 = 2u32; pub const PRINTACTION_NETINSTALLLINK: u32 = 3u32; pub const PRINTACTION_OPEN: u32 = 0u32; pub const PRINTACTION_OPENNETPRN: u32 = 5u32; pub const PRINTACTION_PROPERTIES: u32 = 1u32; pub const PRINTACTION_SERVERPROPERTIES: u32 = 7u32; pub const PRINTACTION_TESTPAGE: u32 = 4u32; pub const PRINT_PROP_FORCE_NAME: u32 = 1u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct PROFILEINFOA { pub dwSize: u32, pub dwFlags: u32, pub lpUserName: super::super::Foundation::PSTR, pub lpProfilePath: super::super::Foundation::PSTR, pub lpDefaultPath: super::super::Foundation::PSTR, pub lpServerName: super::super::Foundation::PSTR, pub lpPolicyPath: super::super::Foundation::PSTR, pub hProfile: super::super::Foundation::HANDLE, } #[cfg(feature = "Win32_Foundation")] impl PROFILEINFOA {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for PROFILEINFOA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for PROFILEINFOA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("PROFILEINFOA") .field("dwSize", &self.dwSize) .field("dwFlags", &self.dwFlags) .field("lpUserName", &self.lpUserName) .field("lpProfilePath", &self.lpProfilePath) .field("lpDefaultPath", &self.lpDefaultPath) .field("lpServerName", &self.lpServerName) .field("lpPolicyPath", &self.lpPolicyPath) .field("hProfile", &self.hProfile) .finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for PROFILEINFOA { fn eq(&self, other: &Self) -> bool { self.dwSize == other.dwSize && self.dwFlags == other.dwFlags && self.lpUserName == other.lpUserName && self.lpProfilePath == other.lpProfilePath && self.lpDefaultPath == other.lpDefaultPath && self.lpServerName == other.lpServerName && self.lpPolicyPath == other.lpPolicyPath && self.hProfile == other.hProfile } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for PROFILEINFOA {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for PROFILEINFOA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct PROFILEINFOW { pub dwSize: u32, pub dwFlags: u32, pub lpUserName: super::super::Foundation::PWSTR, pub lpProfilePath: super::super::Foundation::PWSTR, pub lpDefaultPath: super::super::Foundation::PWSTR, pub lpServerName: super::super::Foundation::PWSTR, pub lpPolicyPath: super::super::Foundation::PWSTR, pub hProfile: super::super::Foundation::HANDLE, } #[cfg(feature = "Win32_Foundation")] impl PROFILEINFOW {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for PROFILEINFOW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for PROFILEINFOW { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("PROFILEINFOW") .field("dwSize", &self.dwSize) .field("dwFlags", &self.dwFlags) .field("lpUserName", &self.lpUserName) .field("lpProfilePath", &self.lpProfilePath) .field("lpDefaultPath", &self.lpDefaultPath) .field("lpServerName", &self.lpServerName) .field("lpPolicyPath", &self.lpPolicyPath) .field("hProfile", &self.hProfile) .finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for PROFILEINFOW { fn eq(&self, other: &Self) -> bool { self.dwSize == other.dwSize && self.dwFlags == other.dwFlags && self.lpUserName == other.lpUserName && self.lpProfilePath == other.lpProfilePath && self.lpDefaultPath == other.lpDefaultPath && self.lpServerName == other.lpServerName && self.lpPolicyPath == other.lpPolicyPath && self.hProfile == other.hProfile } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for PROFILEINFOW {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for PROFILEINFOW { type Abi = Self; } pub const PROGDLG_AUTOTIME: u32 = 2u32; pub const PROGDLG_MARQUEEPROGRESS: u32 = 32u32; pub const PROGDLG_MODAL: u32 = 1u32; pub const PROGDLG_NOCANCEL: u32 = 64u32; pub const PROGDLG_NOMINIMIZE: u32 = 8u32; pub const PROGDLG_NOPROGRESSBAR: u32 = 16u32; pub const PROGDLG_NORMAL: u32 = 0u32; pub const PROGDLG_NOTIME: u32 = 4u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct PUBAPPINFO { pub cbSize: u32, pub dwMask: u32, pub pszSource: super::super::Foundation::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 PUBAPPINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for PUBAPPINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for PUBAPPINFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("PUBAPPINFO").field("cbSize", &self.cbSize).field("dwMask", &self.dwMask).field("pszSource", &self.pszSource).field("stAssigned", &self.stAssigned).field("stPublished", &self.stPublished).field("stScheduled", &self.stScheduled).field("stExpire", &self.stExpire).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for PUBAPPINFO { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.dwMask == other.dwMask && self.pszSource == other.pszSource && self.stAssigned == other.stAssigned && self.stPublished == other.stPublished && self.stScheduled == other.stScheduled && self.stExpire == other.stExpire } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for PUBAPPINFO {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for PUBAPPINFO { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct PUBAPPINFOFLAGS(pub i32); pub const PAI_SOURCE: PUBAPPINFOFLAGS = PUBAPPINFOFLAGS(1i32); pub const PAI_ASSIGNEDTIME: PUBAPPINFOFLAGS = PUBAPPINFOFLAGS(2i32); pub const PAI_PUBLISHEDTIME: PUBAPPINFOFLAGS = PUBAPPINFOFLAGS(4i32); pub const PAI_SCHEDULEDTIME: PUBAPPINFOFLAGS = PUBAPPINFOFLAGS(8i32); pub const PAI_EXPIRETIME: PUBAPPINFOFLAGS = PUBAPPINFOFLAGS(16i32); impl ::core::convert::From<i32> for PUBAPPINFOFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for PUBAPPINFOFLAGS { type Abi = Self; } pub const PackageDebugSettings: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb1aec16f_2383_4852_b0e9_8f0b1dc66b4d); #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ParseURLA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pcszurl: Param0, ppu: *mut PARSEDURLA) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ParseURLA(pcszurl: super::super::Foundation::PSTR, ppu: *mut PARSEDURLA) -> ::windows::core::HRESULT; } ParseURLA(pcszurl.into_param().abi(), ::core::mem::transmute(ppu)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ParseURLW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pcszurl: Param0, ppu: *mut PARSEDURLW) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ParseURLW(pcszurl: super::super::Foundation::PWSTR, ppu: *mut PARSEDURLW) -> ::windows::core::HRESULT; } ParseURLW(pcszurl.into_param().abi(), ::core::mem::transmute(ppu)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const PasswordCredentialProvider: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x60b78e88_ead8_445c_9cfd_0b87f74ea6cd); #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathAddBackslashA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathAddBackslashA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::PSTR; } ::core::mem::transmute(PathAddBackslashA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathAddBackslashW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathAddBackslashW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(PathAddBackslashW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathAddExtensionA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0, pszext: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathAddExtensionA(pszpath: super::super::Foundation::PSTR, pszext: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathAddExtensionA(pszpath.into_param().abi(), pszext.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathAddExtensionW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, pszext: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathAddExtensionW(pszpath: super::super::Foundation::PWSTR, pszext: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathAddExtensionW(pszpath.into_param().abi(), pszext.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathAllocCanonicalize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpathin: Param0, dwflags: u32) -> ::windows::core::Result<super::super::Foundation::PWSTR> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathAllocCanonicalize(pszpathin: super::super::Foundation::PWSTR, dwflags: u32, ppszpathout: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); PathAllocCanonicalize(pszpathin.into_param().abi(), ::core::mem::transmute(dwflags), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathAllocCombine<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpathin: Param0, pszmore: Param1, dwflags: u32) -> ::windows::core::Result<super::super::Foundation::PWSTR> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathAllocCombine(pszpathin: super::super::Foundation::PWSTR, pszmore: super::super::Foundation::PWSTR, dwflags: u32, ppszpathout: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); PathAllocCombine(pszpathin.into_param().abi(), pszmore.into_param().abi(), ::core::mem::transmute(dwflags), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathAppendA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0, pszmore: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathAppendA(pszpath: super::super::Foundation::PSTR, pszmore: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathAppendA(pszpath.into_param().abi(), pszmore.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathAppendW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, pszmore: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathAppendW(pszpath: super::super::Foundation::PWSTR, pszmore: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathAppendW(pszpath.into_param().abi(), pszmore.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathBuildRootA(pszroot: super::super::Foundation::PSTR, idrive: i32) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathBuildRootA(pszroot: super::super::Foundation::PSTR, idrive: i32) -> super::super::Foundation::PSTR; } ::core::mem::transmute(PathBuildRootA(::core::mem::transmute(pszroot), ::core::mem::transmute(idrive))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathBuildRootW(pszroot: super::super::Foundation::PWSTR, idrive: i32) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathBuildRootW(pszroot: super::super::Foundation::PWSTR, idrive: i32) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(PathBuildRootW(::core::mem::transmute(pszroot), ::core::mem::transmute(idrive))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCanonicalizeA<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszbuf: super::super::Foundation::PSTR, pszpath: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCanonicalizeA(pszbuf: super::super::Foundation::PSTR, pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathCanonicalizeA(::core::mem::transmute(pszbuf), pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCanonicalizeW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszbuf: super::super::Foundation::PWSTR, pszpath: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCanonicalizeW(pszbuf: super::super::Foundation::PWSTR, pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathCanonicalizeW(::core::mem::transmute(pszbuf), pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCchAddBackslash<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, cchpath: usize) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCchAddBackslash(pszpath: super::super::Foundation::PWSTR, cchpath: usize) -> ::windows::core::HRESULT; } PathCchAddBackslash(pszpath.into_param().abi(), ::core::mem::transmute(cchpath)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCchAddBackslashEx<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, cchpath: usize, ppszend: *mut super::super::Foundation::PWSTR, pcchremaining: *mut usize) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCchAddBackslashEx(pszpath: super::super::Foundation::PWSTR, cchpath: usize, ppszend: *mut super::super::Foundation::PWSTR, pcchremaining: *mut usize) -> ::windows::core::HRESULT; } PathCchAddBackslashEx(pszpath.into_param().abi(), ::core::mem::transmute(cchpath), ::core::mem::transmute(ppszend), ::core::mem::transmute(pcchremaining)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCchAddExtension<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, cchpath: usize, pszext: Param2) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCchAddExtension(pszpath: super::super::Foundation::PWSTR, cchpath: usize, pszext: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } PathCchAddExtension(pszpath.into_param().abi(), ::core::mem::transmute(cchpath), pszext.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCchAppend<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, cchpath: usize, pszmore: Param2) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCchAppend(pszpath: super::super::Foundation::PWSTR, cchpath: usize, pszmore: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } PathCchAppend(pszpath.into_param().abi(), ::core::mem::transmute(cchpath), pszmore.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCchAppendEx<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, cchpath: usize, pszmore: Param2, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCchAppendEx(pszpath: super::super::Foundation::PWSTR, cchpath: usize, pszmore: super::super::Foundation::PWSTR, dwflags: u32) -> ::windows::core::HRESULT; } PathCchAppendEx(pszpath.into_param().abi(), ::core::mem::transmute(cchpath), pszmore.into_param().abi(), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCchCanonicalize<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpathout: super::super::Foundation::PWSTR, cchpathout: usize, pszpathin: Param2) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCchCanonicalize(pszpathout: super::super::Foundation::PWSTR, cchpathout: usize, pszpathin: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } PathCchCanonicalize(::core::mem::transmute(pszpathout), ::core::mem::transmute(cchpathout), pszpathin.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCchCanonicalizeEx<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpathout: super::super::Foundation::PWSTR, cchpathout: usize, pszpathin: Param2, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCchCanonicalizeEx(pszpathout: super::super::Foundation::PWSTR, cchpathout: usize, pszpathin: super::super::Foundation::PWSTR, dwflags: u32) -> ::windows::core::HRESULT; } PathCchCanonicalizeEx(::core::mem::transmute(pszpathout), ::core::mem::transmute(cchpathout), pszpathin.into_param().abi(), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCchCombine<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpathout: super::super::Foundation::PWSTR, cchpathout: usize, pszpathin: Param2, pszmore: Param3) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCchCombine(pszpathout: super::super::Foundation::PWSTR, cchpathout: usize, pszpathin: super::super::Foundation::PWSTR, pszmore: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } PathCchCombine(::core::mem::transmute(pszpathout), ::core::mem::transmute(cchpathout), pszpathin.into_param().abi(), pszmore.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCchCombineEx<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpathout: super::super::Foundation::PWSTR, cchpathout: usize, pszpathin: Param2, pszmore: Param3, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCchCombineEx(pszpathout: super::super::Foundation::PWSTR, cchpathout: usize, pszpathin: super::super::Foundation::PWSTR, pszmore: super::super::Foundation::PWSTR, dwflags: u32) -> ::windows::core::HRESULT; } PathCchCombineEx(::core::mem::transmute(pszpathout), ::core::mem::transmute(cchpathout), pszpathin.into_param().abi(), pszmore.into_param().abi(), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCchFindExtension<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, cchpath: usize) -> ::windows::core::Result<super::super::Foundation::PWSTR> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCchFindExtension(pszpath: super::super::Foundation::PWSTR, cchpath: usize, ppszext: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); PathCchFindExtension(pszpath.into_param().abi(), ::core::mem::transmute(cchpath), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCchIsRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCchIsRoot(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathCchIsRoot(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCchRemoveBackslash<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, cchpath: usize) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCchRemoveBackslash(pszpath: super::super::Foundation::PWSTR, cchpath: usize) -> ::windows::core::HRESULT; } PathCchRemoveBackslash(pszpath.into_param().abi(), ::core::mem::transmute(cchpath)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCchRemoveBackslashEx<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, cchpath: usize, ppszend: *mut super::super::Foundation::PWSTR, pcchremaining: *mut usize) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCchRemoveBackslashEx(pszpath: super::super::Foundation::PWSTR, cchpath: usize, ppszend: *mut super::super::Foundation::PWSTR, pcchremaining: *mut usize) -> ::windows::core::HRESULT; } PathCchRemoveBackslashEx(pszpath.into_param().abi(), ::core::mem::transmute(cchpath), ::core::mem::transmute(ppszend), ::core::mem::transmute(pcchremaining)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCchRemoveExtension<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, cchpath: usize) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCchRemoveExtension(pszpath: super::super::Foundation::PWSTR, cchpath: usize) -> ::windows::core::HRESULT; } PathCchRemoveExtension(pszpath.into_param().abi(), ::core::mem::transmute(cchpath)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCchRemoveFileSpec<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, cchpath: usize) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCchRemoveFileSpec(pszpath: super::super::Foundation::PWSTR, cchpath: usize) -> ::windows::core::HRESULT; } PathCchRemoveFileSpec(pszpath.into_param().abi(), ::core::mem::transmute(cchpath)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCchRenameExtension<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, cchpath: usize, pszext: Param2) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCchRenameExtension(pszpath: super::super::Foundation::PWSTR, cchpath: usize, pszext: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } PathCchRenameExtension(pszpath.into_param().abi(), ::core::mem::transmute(cchpath), pszext.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCchSkipRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> ::windows::core::Result<super::super::Foundation::PWSTR> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCchSkipRoot(pszpath: super::super::Foundation::PWSTR, ppszrootend: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); PathCchSkipRoot(pszpath.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCchStripPrefix<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, cchpath: usize) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCchStripPrefix(pszpath: super::super::Foundation::PWSTR, cchpath: usize) -> ::windows::core::HRESULT; } PathCchStripPrefix(pszpath.into_param().abi(), ::core::mem::transmute(cchpath)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCchStripToRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, cchpath: usize) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCchStripToRoot(pszpath: super::super::Foundation::PWSTR, cchpath: usize) -> ::windows::core::HRESULT; } PathCchStripToRoot(pszpath.into_param().abi(), ::core::mem::transmute(cchpath)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCleanupSpec<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszdir: Param0, pszspec: Param1) -> PCS_RET { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCleanupSpec(pszdir: super::super::Foundation::PWSTR, pszspec: super::super::Foundation::PWSTR) -> PCS_RET; } ::core::mem::transmute(PathCleanupSpec(pszdir.into_param().abi(), pszspec.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCombineA<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszdest: super::super::Foundation::PSTR, pszdir: Param1, pszfile: Param2) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCombineA(pszdest: super::super::Foundation::PSTR, pszdir: super::super::Foundation::PSTR, pszfile: super::super::Foundation::PSTR) -> super::super::Foundation::PSTR; } ::core::mem::transmute(PathCombineA(::core::mem::transmute(pszdest), pszdir.into_param().abi(), pszfile.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCombineW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszdest: super::super::Foundation::PWSTR, pszdir: Param1, pszfile: Param2) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCombineW(pszdest: super::super::Foundation::PWSTR, pszdir: super::super::Foundation::PWSTR, pszfile: super::super::Foundation::PWSTR) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(PathCombineW(::core::mem::transmute(pszdest), pszdir.into_param().abi(), pszfile.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCommonPrefixA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszfile1: Param0, pszfile2: Param1, achpath: super::super::Foundation::PSTR) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCommonPrefixA(pszfile1: super::super::Foundation::PSTR, pszfile2: super::super::Foundation::PSTR, achpath: super::super::Foundation::PSTR) -> i32; } ::core::mem::transmute(PathCommonPrefixA(pszfile1.into_param().abi(), pszfile2.into_param().abi(), ::core::mem::transmute(achpath))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCommonPrefixW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszfile1: Param0, pszfile2: Param1, achpath: super::super::Foundation::PWSTR) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCommonPrefixW(pszfile1: super::super::Foundation::PWSTR, pszfile2: super::super::Foundation::PWSTR, achpath: super::super::Foundation::PWSTR) -> i32; } ::core::mem::transmute(PathCommonPrefixW(pszfile1.into_param().abi(), pszfile2.into_param().abi(), ::core::mem::transmute(achpath))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] #[inline] pub unsafe fn PathCompactPathA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Graphics::Gdi::HDC>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(hdc: Param0, pszpath: Param1, dx: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCompactPathA(hdc: super::super::Graphics::Gdi::HDC, pszpath: super::super::Foundation::PSTR, dx: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathCompactPathA(hdc.into_param().abi(), pszpath.into_param().abi(), ::core::mem::transmute(dx))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCompactPathExA<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszout: super::super::Foundation::PSTR, pszsrc: Param1, cchmax: u32, dwflags: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCompactPathExA(pszout: super::super::Foundation::PSTR, pszsrc: super::super::Foundation::PSTR, cchmax: u32, dwflags: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathCompactPathExA(::core::mem::transmute(pszout), pszsrc.into_param().abi(), ::core::mem::transmute(cchmax), ::core::mem::transmute(dwflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCompactPathExW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszout: super::super::Foundation::PWSTR, pszsrc: Param1, cchmax: u32, dwflags: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCompactPathExW(pszout: super::super::Foundation::PWSTR, pszsrc: super::super::Foundation::PWSTR, cchmax: u32, dwflags: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathCompactPathExW(::core::mem::transmute(pszout), pszsrc.into_param().abi(), ::core::mem::transmute(cchmax), ::core::mem::transmute(dwflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] #[inline] pub unsafe fn PathCompactPathW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Graphics::Gdi::HDC>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hdc: Param0, pszpath: Param1, dx: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCompactPathW(hdc: super::super::Graphics::Gdi::HDC, pszpath: super::super::Foundation::PWSTR, dx: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathCompactPathW(hdc.into_param().abi(), pszpath.into_param().abi(), ::core::mem::transmute(dx))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCreateFromUrlA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszurl: Param0, pszpath: super::super::Foundation::PSTR, pcchpath: *mut u32, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCreateFromUrlA(pszurl: super::super::Foundation::PSTR, pszpath: super::super::Foundation::PSTR, pcchpath: *mut u32, dwflags: u32) -> ::windows::core::HRESULT; } PathCreateFromUrlA(pszurl.into_param().abi(), ::core::mem::transmute(pszpath), ::core::mem::transmute(pcchpath), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCreateFromUrlAlloc<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszin: Param0, ppszout: *mut super::super::Foundation::PWSTR, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCreateFromUrlAlloc(pszin: super::super::Foundation::PWSTR, ppszout: *mut super::super::Foundation::PWSTR, dwflags: u32) -> ::windows::core::HRESULT; } PathCreateFromUrlAlloc(pszin.into_param().abi(), ::core::mem::transmute(ppszout), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathCreateFromUrlW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszurl: Param0, pszpath: super::super::Foundation::PWSTR, pcchpath: *mut u32, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathCreateFromUrlW(pszurl: super::super::Foundation::PWSTR, pszpath: super::super::Foundation::PWSTR, pcchpath: *mut u32, dwflags: u32) -> ::windows::core::HRESULT; } PathCreateFromUrlW(pszurl.into_param().abi(), ::core::mem::transmute(pszpath), ::core::mem::transmute(pcchpath), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathFileExistsA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathFileExistsA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathFileExistsA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathFileExistsW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathFileExistsW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathFileExistsW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathFindExtensionA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathFindExtensionA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::PSTR; } ::core::mem::transmute(PathFindExtensionA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathFindExtensionW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathFindExtensionW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(PathFindExtensionW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathFindFileNameA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathFindFileNameA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::PSTR; } ::core::mem::transmute(PathFindFileNameA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathFindFileNameW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathFindFileNameW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(PathFindFileNameW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathFindNextComponentA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathFindNextComponentA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::PSTR; } ::core::mem::transmute(PathFindNextComponentA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathFindNextComponentW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathFindNextComponentW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(PathFindNextComponentW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathFindOnPathA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0, ppszotherdirs: *const *const i8) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathFindOnPathA(pszpath: super::super::Foundation::PSTR, ppszotherdirs: *const *const i8) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathFindOnPathA(pszpath.into_param().abi(), ::core::mem::transmute(ppszotherdirs))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathFindOnPathW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, ppszotherdirs: *const *const u16) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathFindOnPathW(pszpath: super::super::Foundation::PWSTR, ppszotherdirs: *const *const u16) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathFindOnPathW(pszpath.into_param().abi(), ::core::mem::transmute(ppszotherdirs))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathFindSuffixArrayA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0, apszsuffix: *const super::super::Foundation::PSTR, iarraysize: i32) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathFindSuffixArrayA(pszpath: super::super::Foundation::PSTR, apszsuffix: *const super::super::Foundation::PSTR, iarraysize: i32) -> super::super::Foundation::PSTR; } ::core::mem::transmute(PathFindSuffixArrayA(pszpath.into_param().abi(), ::core::mem::transmute(apszsuffix), ::core::mem::transmute(iarraysize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathFindSuffixArrayW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, apszsuffix: *const super::super::Foundation::PWSTR, iarraysize: i32) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathFindSuffixArrayW(pszpath: super::super::Foundation::PWSTR, apszsuffix: *const super::super::Foundation::PWSTR, iarraysize: i32) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(PathFindSuffixArrayW(pszpath.into_param().abi(), ::core::mem::transmute(apszsuffix), ::core::mem::transmute(iarraysize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathGetArgsA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathGetArgsA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::PSTR; } ::core::mem::transmute(PathGetArgsA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathGetArgsW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathGetArgsW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(PathGetArgsW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn PathGetCharTypeA(ch: u8) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathGetCharTypeA(ch: u8) -> u32; } ::core::mem::transmute(PathGetCharTypeA(::core::mem::transmute(ch))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn PathGetCharTypeW(ch: u16) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathGetCharTypeW(ch: u16) -> u32; } ::core::mem::transmute(PathGetCharTypeW(::core::mem::transmute(ch))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathGetDriveNumberA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathGetDriveNumberA(pszpath: super::super::Foundation::PSTR) -> i32; } ::core::mem::transmute(PathGetDriveNumberA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathGetDriveNumberW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathGetDriveNumberW(pszpath: super::super::Foundation::PWSTR) -> i32; } ::core::mem::transmute(PathGetDriveNumberW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathGetShortPath<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszlongpath: Param0) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathGetShortPath(pszlongpath: super::super::Foundation::PWSTR); } ::core::mem::transmute(PathGetShortPath(pszlongpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsContentTypeA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0, pszcontenttype: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsContentTypeA(pszpath: super::super::Foundation::PSTR, pszcontenttype: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsContentTypeA(pszpath.into_param().abi(), pszcontenttype.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsContentTypeW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, pszcontenttype: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsContentTypeW(pszpath: super::super::Foundation::PWSTR, pszcontenttype: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsContentTypeW(pszpath.into_param().abi(), pszcontenttype.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsDirectoryA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsDirectoryA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsDirectoryA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsDirectoryEmptyA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsDirectoryEmptyA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsDirectoryEmptyA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsDirectoryEmptyW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsDirectoryEmptyW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsDirectoryEmptyW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsDirectoryW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsDirectoryW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsDirectoryW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsExe<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsExe(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsExe(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsFileSpecA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsFileSpecA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsFileSpecA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsFileSpecW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsFileSpecW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsFileSpecW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsLFNFileSpecA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszname: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsLFNFileSpecA(pszname: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsLFNFileSpecA(pszname.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsLFNFileSpecW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszname: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsLFNFileSpecW(pszname: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsLFNFileSpecW(pszname.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsNetworkPathA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsNetworkPathA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsNetworkPathA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsNetworkPathW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsNetworkPathW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsNetworkPathW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsPrefixA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszprefix: Param0, pszpath: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsPrefixA(pszprefix: super::super::Foundation::PSTR, pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsPrefixA(pszprefix.into_param().abi(), pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsPrefixW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszprefix: Param0, pszpath: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsPrefixW(pszprefix: super::super::Foundation::PWSTR, pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsPrefixW(pszprefix.into_param().abi(), pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsRelativeA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsRelativeA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsRelativeA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsRelativeW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsRelativeW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsRelativeW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsRootA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsRootA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsRootA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsRootW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsRootW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsRootW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsSameRootA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath1: Param0, pszpath2: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsSameRootA(pszpath1: super::super::Foundation::PSTR, pszpath2: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsSameRootA(pszpath1.into_param().abi(), pszpath2.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsSameRootW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath1: Param0, pszpath2: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsSameRootW(pszpath1: super::super::Foundation::PWSTR, pszpath2: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsSameRootW(pszpath1.into_param().abi(), pszpath2.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsSlowA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszfile: Param0, dwattr: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsSlowA(pszfile: super::super::Foundation::PSTR, dwattr: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsSlowA(pszfile.into_param().abi(), ::core::mem::transmute(dwattr))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsSlowW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszfile: Param0, dwattr: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsSlowW(pszfile: super::super::Foundation::PWSTR, dwattr: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsSlowW(pszfile.into_param().abi(), ::core::mem::transmute(dwattr))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsSystemFolderA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0, dwattrb: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsSystemFolderA(pszpath: super::super::Foundation::PSTR, dwattrb: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsSystemFolderA(pszpath.into_param().abi(), ::core::mem::transmute(dwattrb))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsSystemFolderW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, dwattrb: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsSystemFolderW(pszpath: super::super::Foundation::PWSTR, dwattrb: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsSystemFolderW(pszpath.into_param().abi(), ::core::mem::transmute(dwattrb))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsUNCA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsUNCA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsUNCA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsUNCEx<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, ppszserver: *mut super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsUNCEx(pszpath: super::super::Foundation::PWSTR, ppszserver: *mut super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsUNCEx(pszpath.into_param().abi(), ::core::mem::transmute(ppszserver))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsUNCServerA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsUNCServerA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsUNCServerA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsUNCServerShareA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsUNCServerShareA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsUNCServerShareA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsUNCServerShareW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsUNCServerShareW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsUNCServerShareW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsUNCServerW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsUNCServerW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsUNCServerW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsUNCW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsUNCW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsUNCW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsURLA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsURLA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsURLA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathIsURLW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathIsURLW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathIsURLW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathMakePrettyA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathMakePrettyA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathMakePrettyA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathMakePrettyW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathMakePrettyW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathMakePrettyW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathMakeSystemFolderA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathMakeSystemFolderA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathMakeSystemFolderA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathMakeSystemFolderW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathMakeSystemFolderW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathMakeSystemFolderW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathMakeUniqueName<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszuniquename: super::super::Foundation::PWSTR, cchmax: u32, psztemplate: Param2, pszlongplate: Param3, pszdir: Param4) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathMakeUniqueName(pszuniquename: super::super::Foundation::PWSTR, cchmax: u32, psztemplate: super::super::Foundation::PWSTR, pszlongplate: super::super::Foundation::PWSTR, pszdir: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathMakeUniqueName(::core::mem::transmute(pszuniquename), ::core::mem::transmute(cchmax), psztemplate.into_param().abi(), pszlongplate.into_param().abi(), pszdir.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathMatchSpecA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszfile: Param0, pszspec: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathMatchSpecA(pszfile: super::super::Foundation::PSTR, pszspec: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathMatchSpecA(pszfile.into_param().abi(), pszspec.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathMatchSpecExA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszfile: Param0, pszspec: Param1, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathMatchSpecExA(pszfile: super::super::Foundation::PSTR, pszspec: super::super::Foundation::PSTR, dwflags: u32) -> ::windows::core::HRESULT; } PathMatchSpecExA(pszfile.into_param().abi(), pszspec.into_param().abi(), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathMatchSpecExW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszfile: Param0, pszspec: Param1, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathMatchSpecExW(pszfile: super::super::Foundation::PWSTR, pszspec: super::super::Foundation::PWSTR, dwflags: u32) -> ::windows::core::HRESULT; } PathMatchSpecExW(pszfile.into_param().abi(), pszspec.into_param().abi(), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathMatchSpecW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszfile: Param0, pszspec: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathMatchSpecW(pszfile: super::super::Foundation::PWSTR, pszspec: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathMatchSpecW(pszfile.into_param().abi(), pszspec.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathParseIconLocationA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(psziconfile: Param0) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathParseIconLocationA(psziconfile: super::super::Foundation::PSTR) -> i32; } ::core::mem::transmute(PathParseIconLocationA(psziconfile.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathParseIconLocationW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(psziconfile: Param0) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathParseIconLocationW(psziconfile: super::super::Foundation::PWSTR) -> i32; } ::core::mem::transmute(PathParseIconLocationW(psziconfile.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathQualify<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(psz: Param0) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathQualify(psz: super::super::Foundation::PWSTR); } ::core::mem::transmute(PathQualify(psz.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathQuoteSpacesA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(lpsz: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathQuoteSpacesA(lpsz: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathQuoteSpacesA(lpsz.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathQuoteSpacesW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(lpsz: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathQuoteSpacesW(lpsz: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathQuoteSpacesW(lpsz.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathRelativePathToA<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: super::super::Foundation::PSTR, pszfrom: Param1, dwattrfrom: u32, pszto: Param3, dwattrto: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathRelativePathToA(pszpath: super::super::Foundation::PSTR, pszfrom: super::super::Foundation::PSTR, dwattrfrom: u32, pszto: super::super::Foundation::PSTR, dwattrto: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathRelativePathToA(::core::mem::transmute(pszpath), pszfrom.into_param().abi(), ::core::mem::transmute(dwattrfrom), pszto.into_param().abi(), ::core::mem::transmute(dwattrto))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathRelativePathToW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: super::super::Foundation::PWSTR, pszfrom: Param1, dwattrfrom: u32, pszto: Param3, dwattrto: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathRelativePathToW(pszpath: super::super::Foundation::PWSTR, pszfrom: super::super::Foundation::PWSTR, dwattrfrom: u32, pszto: super::super::Foundation::PWSTR, dwattrto: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathRelativePathToW(::core::mem::transmute(pszpath), pszfrom.into_param().abi(), ::core::mem::transmute(dwattrfrom), pszto.into_param().abi(), ::core::mem::transmute(dwattrto))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathRemoveArgsA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathRemoveArgsA(pszpath: super::super::Foundation::PSTR); } ::core::mem::transmute(PathRemoveArgsA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathRemoveArgsW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathRemoveArgsW(pszpath: super::super::Foundation::PWSTR); } ::core::mem::transmute(PathRemoveArgsW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathRemoveBackslashA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathRemoveBackslashA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::PSTR; } ::core::mem::transmute(PathRemoveBackslashA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathRemoveBackslashW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathRemoveBackslashW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(PathRemoveBackslashW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathRemoveBlanksA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathRemoveBlanksA(pszpath: super::super::Foundation::PSTR); } ::core::mem::transmute(PathRemoveBlanksA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathRemoveBlanksW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathRemoveBlanksW(pszpath: super::super::Foundation::PWSTR); } ::core::mem::transmute(PathRemoveBlanksW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathRemoveExtensionA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathRemoveExtensionA(pszpath: super::super::Foundation::PSTR); } ::core::mem::transmute(PathRemoveExtensionA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathRemoveExtensionW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathRemoveExtensionW(pszpath: super::super::Foundation::PWSTR); } ::core::mem::transmute(PathRemoveExtensionW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathRemoveFileSpecA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathRemoveFileSpecA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathRemoveFileSpecA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathRemoveFileSpecW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathRemoveFileSpecW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathRemoveFileSpecW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathRenameExtensionA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0, pszext: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathRenameExtensionA(pszpath: super::super::Foundation::PSTR, pszext: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathRenameExtensionA(pszpath.into_param().abi(), pszext.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathRenameExtensionW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, pszext: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathRenameExtensionW(pszpath: super::super::Foundation::PWSTR, pszext: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathRenameExtensionW(pszpath.into_param().abi(), pszext.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathResolve<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, dirs: *const *const u16, fflags: PRF_FLAGS) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathResolve(pszpath: super::super::Foundation::PWSTR, dirs: *const *const u16, fflags: PRF_FLAGS) -> i32; } ::core::mem::transmute(PathResolve(pszpath.into_param().abi(), ::core::mem::transmute(dirs), ::core::mem::transmute(fflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathSearchAndQualifyA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0, pszbuf: super::super::Foundation::PSTR, cchbuf: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathSearchAndQualifyA(pszpath: super::super::Foundation::PSTR, pszbuf: super::super::Foundation::PSTR, cchbuf: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathSearchAndQualifyA(pszpath.into_param().abi(), ::core::mem::transmute(pszbuf), ::core::mem::transmute(cchbuf))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathSearchAndQualifyW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, pszbuf: super::super::Foundation::PWSTR, cchbuf: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathSearchAndQualifyW(pszpath: super::super::Foundation::PWSTR, pszbuf: super::super::Foundation::PWSTR, cchbuf: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathSearchAndQualifyW(pszpath.into_param().abi(), ::core::mem::transmute(pszbuf), ::core::mem::transmute(cchbuf))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathSetDlgItemPathA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(hdlg: Param0, id: i32, pszpath: Param2) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathSetDlgItemPathA(hdlg: super::super::Foundation::HWND, id: i32, pszpath: super::super::Foundation::PSTR); } ::core::mem::transmute(PathSetDlgItemPathA(hdlg.into_param().abi(), ::core::mem::transmute(id), pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathSetDlgItemPathW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hdlg: Param0, id: i32, pszpath: Param2) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathSetDlgItemPathW(hdlg: super::super::Foundation::HWND, id: i32, pszpath: super::super::Foundation::PWSTR); } ::core::mem::transmute(PathSetDlgItemPathW(hdlg.into_param().abi(), ::core::mem::transmute(id), pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathSkipRootA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathSkipRootA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::PSTR; } ::core::mem::transmute(PathSkipRootA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathSkipRootW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathSkipRootW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(PathSkipRootW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathStripPathA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathStripPathA(pszpath: super::super::Foundation::PSTR); } ::core::mem::transmute(PathStripPathA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathStripPathW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathStripPathW(pszpath: super::super::Foundation::PWSTR); } ::core::mem::transmute(PathStripPathW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathStripToRootA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathStripToRootA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathStripToRootA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathStripToRootW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathStripToRootW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathStripToRootW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathUnExpandEnvStringsA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0, pszbuf: super::super::Foundation::PSTR, cchbuf: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathUnExpandEnvStringsA(pszpath: super::super::Foundation::PSTR, pszbuf: super::super::Foundation::PSTR, cchbuf: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathUnExpandEnvStringsA(pszpath.into_param().abi(), ::core::mem::transmute(pszbuf), ::core::mem::transmute(cchbuf))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathUnExpandEnvStringsW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, pszbuf: super::super::Foundation::PWSTR, cchbuf: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathUnExpandEnvStringsW(pszpath: super::super::Foundation::PWSTR, pszbuf: super::super::Foundation::PWSTR, cchbuf: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathUnExpandEnvStringsW(pszpath.into_param().abi(), ::core::mem::transmute(pszbuf), ::core::mem::transmute(cchbuf))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathUndecorateA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathUndecorateA(pszpath: super::super::Foundation::PSTR); } ::core::mem::transmute(PathUndecorateA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathUndecorateW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathUndecorateW(pszpath: super::super::Foundation::PWSTR); } ::core::mem::transmute(PathUndecorateW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathUnmakeSystemFolderA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathUnmakeSystemFolderA(pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathUnmakeSystemFolderA(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathUnmakeSystemFolderW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathUnmakeSystemFolderW(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathUnmakeSystemFolderW(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathUnquoteSpacesA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(lpsz: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathUnquoteSpacesA(lpsz: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathUnquoteSpacesA(lpsz.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathUnquoteSpacesW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(lpsz: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathUnquoteSpacesW(lpsz: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathUnquoteSpacesW(lpsz.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PathYetAnotherMakeUniqueName<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszuniquename: super::super::Foundation::PWSTR, pszpath: Param1, pszshort: Param2, pszfilespec: Param3) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PathYetAnotherMakeUniqueName(pszuniquename: super::super::Foundation::PWSTR, pszpath: super::super::Foundation::PWSTR, pszshort: super::super::Foundation::PWSTR, pszfilespec: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PathYetAnotherMakeUniqueName(::core::mem::transmute(pszuniquename), pszpath.into_param().abi(), pszshort.into_param().abi(), pszfilespec.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PickIconDlg<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hwnd: Param0, psziconpath: Param1, cchiconpath: u32, piiconindex: *mut i32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PickIconDlg(hwnd: super::super::Foundation::HWND, psziconpath: super::super::Foundation::PWSTR, cchiconpath: u32, piiconindex: *mut i32) -> i32; } ::core::mem::transmute(PickIconDlg(hwnd.into_param().abi(), psziconpath.into_param().abi(), ::core::mem::transmute(cchiconpath), ::core::mem::transmute(piiconindex))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const PreviousVersions: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x596ab062_b4d2_4215_9f74_e9109b0a8153); pub const PropertiesUI: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd912f8cf_0396_4915_884e_fb425d32943b); pub const PublishDropTarget: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcc6eeffb_43f6_46c5_9619_51d571967f7d); pub const PublishingWizard: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6b33163c_76a5_4b6c_bf21_45de9cd503a1); #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub struct QCMINFO { pub hmenu: super::WindowsAndMessaging::HMENU, pub indexMenu: u32, pub idCmdFirst: u32, pub idCmdLast: u32, pub pIdMap: *mut QCMINFO_IDMAP, } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl QCMINFO {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::default::Default for QCMINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::fmt::Debug for QCMINFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("QCMINFO").field("hmenu", &self.hmenu).field("indexMenu", &self.indexMenu).field("idCmdFirst", &self.idCmdFirst).field("idCmdLast", &self.idCmdLast).field("pIdMap", &self.pIdMap).finish() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::cmp::PartialEq for QCMINFO { fn eq(&self, other: &Self) -> bool { self.hmenu == other.hmenu && self.indexMenu == other.indexMenu && self.idCmdFirst == other.idCmdFirst && self.idCmdLast == other.idCmdLast && self.pIdMap == other.pIdMap } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::cmp::Eq for QCMINFO {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] unsafe impl ::windows::core::Abi for QCMINFO { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct QCMINFO_IDMAP { pub nMaxIds: u32, pub pIdList: [QCMINFO_IDMAP_PLACEMENT; 1], } impl QCMINFO_IDMAP {} impl ::core::default::Default for QCMINFO_IDMAP { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for QCMINFO_IDMAP { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("QCMINFO_IDMAP").field("nMaxIds", &self.nMaxIds).field("pIdList", &self.pIdList).finish() } } impl ::core::cmp::PartialEq for QCMINFO_IDMAP { fn eq(&self, other: &Self) -> bool { self.nMaxIds == other.nMaxIds && self.pIdList == other.pIdList } } impl ::core::cmp::Eq for QCMINFO_IDMAP {} unsafe impl ::windows::core::Abi for QCMINFO_IDMAP { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct QCMINFO_IDMAP_PLACEMENT { pub id: u32, pub fFlags: u32, } impl QCMINFO_IDMAP_PLACEMENT {} impl ::core::default::Default for QCMINFO_IDMAP_PLACEMENT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for QCMINFO_IDMAP_PLACEMENT { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("QCMINFO_IDMAP_PLACEMENT").field("id", &self.id).field("fFlags", &self.fFlags).finish() } } impl ::core::cmp::PartialEq for QCMINFO_IDMAP_PLACEMENT { fn eq(&self, other: &Self) -> bool { self.id == other.id && self.fFlags == other.fFlags } } impl ::core::cmp::Eq for QCMINFO_IDMAP_PLACEMENT {} unsafe impl ::windows::core::Abi for QCMINFO_IDMAP_PLACEMENT { type Abi = Self; } pub const QCMINFO_PLACE_AFTER: u32 = 1u32; pub const QCMINFO_PLACE_BEFORE: u32 = 0u32; #[inline] pub unsafe fn QISearch<T: ::windows::core::Interface>(that: *mut ::core::ffi::c_void, pqit: *const QITAB) -> ::windows::core::Result<T> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn QISearch(that: *mut ::core::ffi::c_void, pqit: *const QITAB, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } let mut result__ = ::core::option::Option::None; QISearch(::core::mem::transmute(that), ::core::mem::transmute(pqit), &<T as ::windows::core::Interface>::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct QITAB { pub piid: *mut ::windows::core::GUID, pub dwOffset: u32, } impl QITAB {} impl ::core::default::Default for QITAB { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for QITAB { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("QITAB").field("piid", &self.piid).field("dwOffset", &self.dwOffset).finish() } } impl ::core::cmp::PartialEq for QITAB { fn eq(&self, other: &Self) -> bool { self.piid == other.piid && self.dwOffset == other.dwOffset } } impl ::core::cmp::Eq for QITAB {} unsafe impl ::windows::core::Abi for QITAB { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct QITIPF_FLAGS(pub i32); pub const QITIPF_DEFAULT: QITIPF_FLAGS = QITIPF_FLAGS(0i32); pub const QITIPF_USENAME: QITIPF_FLAGS = QITIPF_FLAGS(1i32); pub const QITIPF_LINKNOTARGET: QITIPF_FLAGS = QITIPF_FLAGS(2i32); pub const QITIPF_LINKUSETARGET: QITIPF_FLAGS = QITIPF_FLAGS(4i32); pub const QITIPF_USESLOWTIP: QITIPF_FLAGS = QITIPF_FLAGS(8i32); pub const QITIPF_SINGLELINE: QITIPF_FLAGS = QITIPF_FLAGS(16i32); pub const QIF_CACHED: QITIPF_FLAGS = QITIPF_FLAGS(1i32); pub const QIF_DONTEXPANDFOLDER: QITIPF_FLAGS = QITIPF_FLAGS(2i32); impl ::core::convert::From<i32> for QITIPF_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for QITIPF_FLAGS { type Abi = Self; } impl ::core::ops::BitOr for QITIPF_FLAGS { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for QITIPF_FLAGS { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for QITIPF_FLAGS { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for QITIPF_FLAGS { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for QITIPF_FLAGS { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct QUERY_USER_NOTIFICATION_STATE(pub i32); pub const QUNS_NOT_PRESENT: QUERY_USER_NOTIFICATION_STATE = QUERY_USER_NOTIFICATION_STATE(1i32); pub const QUNS_BUSY: QUERY_USER_NOTIFICATION_STATE = QUERY_USER_NOTIFICATION_STATE(2i32); pub const QUNS_RUNNING_D3D_FULL_SCREEN: QUERY_USER_NOTIFICATION_STATE = QUERY_USER_NOTIFICATION_STATE(3i32); pub const QUNS_PRESENTATION_MODE: QUERY_USER_NOTIFICATION_STATE = QUERY_USER_NOTIFICATION_STATE(4i32); pub const QUNS_ACCEPTS_NOTIFICATIONS: QUERY_USER_NOTIFICATION_STATE = QUERY_USER_NOTIFICATION_STATE(5i32); pub const QUNS_QUIET_TIME: QUERY_USER_NOTIFICATION_STATE = QUERY_USER_NOTIFICATION_STATE(6i32); pub const QUNS_APP: QUERY_USER_NOTIFICATION_STATE = QUERY_USER_NOTIFICATION_STATE(7i32); impl ::core::convert::From<i32> for QUERY_USER_NOTIFICATION_STATE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for QUERY_USER_NOTIFICATION_STATE { type Abi = Self; } pub const QueryCancelAutoPlay: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x331f1768_05a9_4ddd_b86e_dae34ddc998a); pub const RASProvider: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5537e283_b1e7_4ef8_9c6e_7ab0afe5056d); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct RESTRICTIONS(pub i32); pub const REST_NONE: RESTRICTIONS = RESTRICTIONS(0i32); pub const REST_NORUN: RESTRICTIONS = RESTRICTIONS(1i32); pub const REST_NOCLOSE: RESTRICTIONS = RESTRICTIONS(2i32); pub const REST_NOSAVESET: RESTRICTIONS = RESTRICTIONS(4i32); pub const REST_NOFILEMENU: RESTRICTIONS = RESTRICTIONS(8i32); pub const REST_NOSETFOLDERS: RESTRICTIONS = RESTRICTIONS(16i32); pub const REST_NOSETTASKBAR: RESTRICTIONS = RESTRICTIONS(32i32); pub const REST_NODESKTOP: RESTRICTIONS = RESTRICTIONS(64i32); pub const REST_NOFIND: RESTRICTIONS = RESTRICTIONS(128i32); pub const REST_NODRIVES: RESTRICTIONS = RESTRICTIONS(256i32); pub const REST_NODRIVEAUTORUN: RESTRICTIONS = RESTRICTIONS(512i32); pub const REST_NODRIVETYPEAUTORUN: RESTRICTIONS = RESTRICTIONS(1024i32); pub const REST_NONETHOOD: RESTRICTIONS = RESTRICTIONS(2048i32); pub const REST_STARTBANNER: RESTRICTIONS = RESTRICTIONS(4096i32); pub const REST_RESTRICTRUN: RESTRICTIONS = RESTRICTIONS(8192i32); pub const REST_NOPRINTERTABS: RESTRICTIONS = RESTRICTIONS(16384i32); pub const REST_NOPRINTERDELETE: RESTRICTIONS = RESTRICTIONS(32768i32); pub const REST_NOPRINTERADD: RESTRICTIONS = RESTRICTIONS(65536i32); pub const REST_NOSTARTMENUSUBFOLDERS: RESTRICTIONS = RESTRICTIONS(131072i32); pub const REST_MYDOCSONNET: RESTRICTIONS = RESTRICTIONS(262144i32); pub const REST_NOEXITTODOS: RESTRICTIONS = RESTRICTIONS(524288i32); pub const REST_ENFORCESHELLEXTSECURITY: RESTRICTIONS = RESTRICTIONS(1048576i32); pub const REST_LINKRESOLVEIGNORELINKINFO: RESTRICTIONS = RESTRICTIONS(2097152i32); pub const REST_NOCOMMONGROUPS: RESTRICTIONS = RESTRICTIONS(4194304i32); pub const REST_SEPARATEDESKTOPPROCESS: RESTRICTIONS = RESTRICTIONS(8388608i32); pub const REST_NOWEB: RESTRICTIONS = RESTRICTIONS(16777216i32); pub const REST_NOTRAYCONTEXTMENU: RESTRICTIONS = RESTRICTIONS(33554432i32); pub const REST_NOVIEWCONTEXTMENU: RESTRICTIONS = RESTRICTIONS(67108864i32); pub const REST_NONETCONNECTDISCONNECT: RESTRICTIONS = RESTRICTIONS(134217728i32); pub const REST_STARTMENULOGOFF: RESTRICTIONS = RESTRICTIONS(268435456i32); pub const REST_NOSETTINGSASSIST: RESTRICTIONS = RESTRICTIONS(536870912i32); pub const REST_NOINTERNETICON: RESTRICTIONS = RESTRICTIONS(1073741825i32); pub const REST_NORECENTDOCSHISTORY: RESTRICTIONS = RESTRICTIONS(1073741826i32); pub const REST_NORECENTDOCSMENU: RESTRICTIONS = RESTRICTIONS(1073741827i32); pub const REST_NOACTIVEDESKTOP: RESTRICTIONS = RESTRICTIONS(1073741828i32); pub const REST_NOACTIVEDESKTOPCHANGES: RESTRICTIONS = RESTRICTIONS(1073741829i32); pub const REST_NOFAVORITESMENU: RESTRICTIONS = RESTRICTIONS(1073741830i32); pub const REST_CLEARRECENTDOCSONEXIT: RESTRICTIONS = RESTRICTIONS(1073741831i32); pub const REST_CLASSICSHELL: RESTRICTIONS = RESTRICTIONS(1073741832i32); pub const REST_NOCUSTOMIZEWEBVIEW: RESTRICTIONS = RESTRICTIONS(1073741833i32); pub const REST_NOHTMLWALLPAPER: RESTRICTIONS = RESTRICTIONS(1073741840i32); pub const REST_NOCHANGINGWALLPAPER: RESTRICTIONS = RESTRICTIONS(1073741841i32); pub const REST_NODESKCOMP: RESTRICTIONS = RESTRICTIONS(1073741842i32); pub const REST_NOADDDESKCOMP: RESTRICTIONS = RESTRICTIONS(1073741843i32); pub const REST_NODELDESKCOMP: RESTRICTIONS = RESTRICTIONS(1073741844i32); pub const REST_NOCLOSEDESKCOMP: RESTRICTIONS = RESTRICTIONS(1073741845i32); pub const REST_NOCLOSE_DRAGDROPBAND: RESTRICTIONS = RESTRICTIONS(1073741846i32); pub const REST_NOMOVINGBAND: RESTRICTIONS = RESTRICTIONS(1073741847i32); pub const REST_NOEDITDESKCOMP: RESTRICTIONS = RESTRICTIONS(1073741848i32); pub const REST_NORESOLVESEARCH: RESTRICTIONS = RESTRICTIONS(1073741849i32); pub const REST_NORESOLVETRACK: RESTRICTIONS = RESTRICTIONS(1073741850i32); pub const REST_FORCECOPYACLWITHFILE: RESTRICTIONS = RESTRICTIONS(1073741851i32); pub const REST_NOFORGETSOFTWAREUPDATE: RESTRICTIONS = RESTRICTIONS(1073741853i32); pub const REST_NOSETACTIVEDESKTOP: RESTRICTIONS = RESTRICTIONS(1073741854i32); pub const REST_NOUPDATEWINDOWS: RESTRICTIONS = RESTRICTIONS(1073741855i32); pub const REST_NOCHANGESTARMENU: RESTRICTIONS = RESTRICTIONS(1073741856i32); pub const REST_NOFOLDEROPTIONS: RESTRICTIONS = RESTRICTIONS(1073741857i32); pub const REST_HASFINDCOMPUTERS: RESTRICTIONS = RESTRICTIONS(1073741858i32); pub const REST_INTELLIMENUS: RESTRICTIONS = RESTRICTIONS(1073741859i32); pub const REST_RUNDLGMEMCHECKBOX: RESTRICTIONS = RESTRICTIONS(1073741860i32); pub const REST_ARP_ShowPostSetup: RESTRICTIONS = RESTRICTIONS(1073741861i32); pub const REST_NOCSC: RESTRICTIONS = RESTRICTIONS(1073741862i32); pub const REST_NOCONTROLPANEL: RESTRICTIONS = RESTRICTIONS(1073741863i32); pub const REST_ENUMWORKGROUP: RESTRICTIONS = RESTRICTIONS(1073741864i32); pub const REST_ARP_NOARP: RESTRICTIONS = RESTRICTIONS(1073741865i32); pub const REST_ARP_NOREMOVEPAGE: RESTRICTIONS = RESTRICTIONS(1073741866i32); pub const REST_ARP_NOADDPAGE: RESTRICTIONS = RESTRICTIONS(1073741867i32); pub const REST_ARP_NOWINSETUPPAGE: RESTRICTIONS = RESTRICTIONS(1073741868i32); pub const REST_GREYMSIADS: RESTRICTIONS = RESTRICTIONS(1073741869i32); pub const REST_NOCHANGEMAPPEDDRIVELABEL: RESTRICTIONS = RESTRICTIONS(1073741870i32); pub const REST_NOCHANGEMAPPEDDRIVECOMMENT: RESTRICTIONS = RESTRICTIONS(1073741871i32); pub const REST_MaxRecentDocs: RESTRICTIONS = RESTRICTIONS(1073741872i32); pub const REST_NONETWORKCONNECTIONS: RESTRICTIONS = RESTRICTIONS(1073741873i32); pub const REST_FORCESTARTMENULOGOFF: RESTRICTIONS = RESTRICTIONS(1073741874i32); pub const REST_NOWEBVIEW: RESTRICTIONS = RESTRICTIONS(1073741875i32); pub const REST_NOCUSTOMIZETHISFOLDER: RESTRICTIONS = RESTRICTIONS(1073741876i32); pub const REST_NOENCRYPTION: RESTRICTIONS = RESTRICTIONS(1073741877i32); pub const REST_DONTSHOWSUPERHIDDEN: RESTRICTIONS = RESTRICTIONS(1073741879i32); pub const REST_NOSHELLSEARCHBUTTON: RESTRICTIONS = RESTRICTIONS(1073741880i32); pub const REST_NOHARDWARETAB: RESTRICTIONS = RESTRICTIONS(1073741881i32); pub const REST_NORUNASINSTALLPROMPT: RESTRICTIONS = RESTRICTIONS(1073741882i32); pub const REST_PROMPTRUNASINSTALLNETPATH: RESTRICTIONS = RESTRICTIONS(1073741883i32); pub const REST_NOMANAGEMYCOMPUTERVERB: RESTRICTIONS = RESTRICTIONS(1073741884i32); pub const REST_DISALLOWRUN: RESTRICTIONS = RESTRICTIONS(1073741886i32); pub const REST_NOWELCOMESCREEN: RESTRICTIONS = RESTRICTIONS(1073741887i32); pub const REST_RESTRICTCPL: RESTRICTIONS = RESTRICTIONS(1073741888i32); pub const REST_DISALLOWCPL: RESTRICTIONS = RESTRICTIONS(1073741889i32); pub const REST_NOSMBALLOONTIP: RESTRICTIONS = RESTRICTIONS(1073741890i32); pub const REST_NOSMHELP: RESTRICTIONS = RESTRICTIONS(1073741891i32); pub const REST_NOWINKEYS: RESTRICTIONS = RESTRICTIONS(1073741892i32); pub const REST_NOENCRYPTONMOVE: RESTRICTIONS = RESTRICTIONS(1073741893i32); pub const REST_NOLOCALMACHINERUN: RESTRICTIONS = RESTRICTIONS(1073741894i32); pub const REST_NOCURRENTUSERRUN: RESTRICTIONS = RESTRICTIONS(1073741895i32); pub const REST_NOLOCALMACHINERUNONCE: RESTRICTIONS = RESTRICTIONS(1073741896i32); pub const REST_NOCURRENTUSERRUNONCE: RESTRICTIONS = RESTRICTIONS(1073741897i32); pub const REST_FORCEACTIVEDESKTOPON: RESTRICTIONS = RESTRICTIONS(1073741898i32); pub const REST_NOVIEWONDRIVE: RESTRICTIONS = RESTRICTIONS(1073741900i32); pub const REST_NONETCRAWL: RESTRICTIONS = RESTRICTIONS(1073741901i32); pub const REST_NOSHAREDDOCUMENTS: RESTRICTIONS = RESTRICTIONS(1073741902i32); pub const REST_NOSMMYDOCS: RESTRICTIONS = RESTRICTIONS(1073741903i32); pub const REST_NOSMMYPICS: RESTRICTIONS = RESTRICTIONS(1073741904i32); pub const REST_ALLOWBITBUCKDRIVES: RESTRICTIONS = RESTRICTIONS(1073741905i32); pub const REST_NONLEGACYSHELLMODE: RESTRICTIONS = RESTRICTIONS(1073741906i32); pub const REST_NOCONTROLPANELBARRICADE: RESTRICTIONS = RESTRICTIONS(1073741907i32); pub const REST_NOSTARTPAGE: RESTRICTIONS = RESTRICTIONS(1073741908i32); pub const REST_NOAUTOTRAYNOTIFY: RESTRICTIONS = RESTRICTIONS(1073741909i32); pub const REST_NOTASKGROUPING: RESTRICTIONS = RESTRICTIONS(1073741910i32); pub const REST_NOCDBURNING: RESTRICTIONS = RESTRICTIONS(1073741911i32); pub const REST_MYCOMPNOPROP: RESTRICTIONS = RESTRICTIONS(1073741912i32); pub const REST_MYDOCSNOPROP: RESTRICTIONS = RESTRICTIONS(1073741913i32); pub const REST_NOSTARTPANEL: RESTRICTIONS = RESTRICTIONS(1073741914i32); pub const REST_NODISPLAYAPPEARANCEPAGE: RESTRICTIONS = RESTRICTIONS(1073741915i32); pub const REST_NOTHEMESTAB: RESTRICTIONS = RESTRICTIONS(1073741916i32); pub const REST_NOVISUALSTYLECHOICE: RESTRICTIONS = RESTRICTIONS(1073741917i32); pub const REST_NOSIZECHOICE: RESTRICTIONS = RESTRICTIONS(1073741918i32); pub const REST_NOCOLORCHOICE: RESTRICTIONS = RESTRICTIONS(1073741919i32); pub const REST_SETVISUALSTYLE: RESTRICTIONS = RESTRICTIONS(1073741920i32); pub const REST_STARTRUNNOHOMEPATH: RESTRICTIONS = RESTRICTIONS(1073741921i32); pub const REST_NOUSERNAMEINSTARTPANEL: RESTRICTIONS = RESTRICTIONS(1073741922i32); pub const REST_NOMYCOMPUTERICON: RESTRICTIONS = RESTRICTIONS(1073741923i32); pub const REST_NOSMNETWORKPLACES: RESTRICTIONS = RESTRICTIONS(1073741924i32); pub const REST_NOSMPINNEDLIST: RESTRICTIONS = RESTRICTIONS(1073741925i32); pub const REST_NOSMMYMUSIC: RESTRICTIONS = RESTRICTIONS(1073741926i32); pub const REST_NOSMEJECTPC: RESTRICTIONS = RESTRICTIONS(1073741927i32); pub const REST_NOSMMOREPROGRAMS: RESTRICTIONS = RESTRICTIONS(1073741928i32); pub const REST_NOSMMFUPROGRAMS: RESTRICTIONS = RESTRICTIONS(1073741929i32); pub const REST_NOTRAYITEMSDISPLAY: RESTRICTIONS = RESTRICTIONS(1073741930i32); pub const REST_NOTOOLBARSONTASKBAR: RESTRICTIONS = RESTRICTIONS(1073741931i32); pub const REST_NOSMCONFIGUREPROGRAMS: RESTRICTIONS = RESTRICTIONS(1073741935i32); pub const REST_HIDECLOCK: RESTRICTIONS = RESTRICTIONS(1073741936i32); pub const REST_NOLOWDISKSPACECHECKS: RESTRICTIONS = RESTRICTIONS(1073741937i32); pub const REST_NOENTIRENETWORK: RESTRICTIONS = RESTRICTIONS(1073741938i32); pub const REST_NODESKTOPCLEANUP: RESTRICTIONS = RESTRICTIONS(1073741939i32); pub const REST_BITBUCKNUKEONDELETE: RESTRICTIONS = RESTRICTIONS(1073741940i32); pub const REST_BITBUCKCONFIRMDELETE: RESTRICTIONS = RESTRICTIONS(1073741941i32); pub const REST_BITBUCKNOPROP: RESTRICTIONS = RESTRICTIONS(1073741942i32); pub const REST_NODISPBACKGROUND: RESTRICTIONS = RESTRICTIONS(1073741943i32); pub const REST_NODISPSCREENSAVEPG: RESTRICTIONS = RESTRICTIONS(1073741944i32); pub const REST_NODISPSETTINGSPG: RESTRICTIONS = RESTRICTIONS(1073741945i32); pub const REST_NODISPSCREENSAVEPREVIEW: RESTRICTIONS = RESTRICTIONS(1073741946i32); pub const REST_NODISPLAYCPL: RESTRICTIONS = RESTRICTIONS(1073741947i32); pub const REST_HIDERUNASVERB: RESTRICTIONS = RESTRICTIONS(1073741948i32); pub const REST_NOTHUMBNAILCACHE: RESTRICTIONS = RESTRICTIONS(1073741949i32); pub const REST_NOSTRCMPLOGICAL: RESTRICTIONS = RESTRICTIONS(1073741950i32); pub const REST_NOPUBLISHWIZARD: RESTRICTIONS = RESTRICTIONS(1073741951i32); pub const REST_NOONLINEPRINTSWIZARD: RESTRICTIONS = RESTRICTIONS(1073741952i32); pub const REST_NOWEBSERVICES: RESTRICTIONS = RESTRICTIONS(1073741953i32); pub const REST_ALLOWUNHASHEDWEBVIEW: RESTRICTIONS = RESTRICTIONS(1073741954i32); pub const REST_ALLOWLEGACYWEBVIEW: RESTRICTIONS = RESTRICTIONS(1073741955i32); pub const REST_REVERTWEBVIEWSECURITY: RESTRICTIONS = RESTRICTIONS(1073741956i32); pub const REST_INHERITCONSOLEHANDLES: RESTRICTIONS = RESTRICTIONS(1073741958i32); pub const REST_NOREMOTERECURSIVEEVENTS: RESTRICTIONS = RESTRICTIONS(1073741961i32); pub const REST_NOREMOTECHANGENOTIFY: RESTRICTIONS = RESTRICTIONS(1073741969i32); pub const REST_NOENUMENTIRENETWORK: RESTRICTIONS = RESTRICTIONS(1073741971i32); pub const REST_NOINTERNETOPENWITH: RESTRICTIONS = RESTRICTIONS(1073741973i32); pub const REST_DONTRETRYBADNETNAME: RESTRICTIONS = RESTRICTIONS(1073741979i32); pub const REST_ALLOWFILECLSIDJUNCTIONS: RESTRICTIONS = RESTRICTIONS(1073741980i32); pub const REST_NOUPNPINSTALL: RESTRICTIONS = RESTRICTIONS(1073741981i32); pub const REST_ARP_DONTGROUPPATCHES: RESTRICTIONS = RESTRICTIONS(1073741996i32); pub const REST_ARP_NOCHOOSEPROGRAMSPAGE: RESTRICTIONS = RESTRICTIONS(1073741997i32); pub const REST_NODISCONNECT: RESTRICTIONS = RESTRICTIONS(1090519041i32); pub const REST_NOSECURITY: RESTRICTIONS = RESTRICTIONS(1090519042i32); pub const REST_NOFILEASSOCIATE: RESTRICTIONS = RESTRICTIONS(1090519043i32); pub const REST_ALLOWCOMMENTTOGGLE: RESTRICTIONS = RESTRICTIONS(1090519044i32); impl ::core::convert::From<i32> for RESTRICTIONS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for RESTRICTIONS { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ReadCabinetState(pcs: *mut CABINETSTATE, clength: i32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ReadCabinetState(pcs: *mut CABINETSTATE, clength: i32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(ReadCabinetState(::core::mem::transmute(pcs), ::core::mem::transmute(clength))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn RealDriveType<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(idrive: i32, foktohitnet: Param1) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn RealDriveType(idrive: i32, foktohitnet: super::super::Foundation::BOOL) -> i32; } ::core::mem::transmute(RealDriveType(::core::mem::transmute(idrive), foktohitnet.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct RefreshConstants(pub i32); pub const REFRESH_NORMAL: RefreshConstants = RefreshConstants(0i32); pub const REFRESH_IFEXPIRED: RefreshConstants = RefreshConstants(1i32); pub const REFRESH_COMPLETELY: RefreshConstants = RefreshConstants(3i32); impl ::core::convert::From<i32> for RefreshConstants { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for RefreshConstants { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn RegisterAppConstrainedChangeNotification(routine: ::core::option::Option<PAPPCONSTRAIN_CHANGE_ROUTINE>, context: *const ::core::ffi::c_void, registration: *mut *mut _APPCONSTRAIN_REGISTRATION) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn RegisterAppConstrainedChangeNotification(routine: ::windows::core::RawPtr, context: *const ::core::ffi::c_void, registration: *mut *mut _APPCONSTRAIN_REGISTRATION) -> u32; } ::core::mem::transmute(RegisterAppConstrainedChangeNotification(::core::mem::transmute(routine), ::core::mem::transmute(context), ::core::mem::transmute(registration))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn RegisterAppStateChangeNotification(routine: ::core::option::Option<PAPPSTATE_CHANGE_ROUTINE>, context: *const ::core::ffi::c_void, registration: *mut *mut _APPSTATE_REGISTRATION) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn RegisterAppStateChangeNotification(routine: ::windows::core::RawPtr, context: *const ::core::ffi::c_void, registration: *mut *mut _APPSTATE_REGISTRATION) -> u32; } ::core::mem::transmute(RegisterAppStateChangeNotification(::core::mem::transmute(routine), ::core::mem::transmute(context), ::core::mem::transmute(registration))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn RegisterScaleChangeEvent<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hevent: Param0) -> ::windows::core::Result<usize> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn RegisterScaleChangeEvent(hevent: super::super::Foundation::HANDLE, pdwcookie: *mut usize) -> ::windows::core::HRESULT; } let mut result__: <usize as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); RegisterScaleChangeEvent(hevent.into_param().abi(), &mut result__).from_abi::<usize>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn RegisterScaleChangeNotifications<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(displaydevice: DISPLAY_DEVICE_TYPE, hwndnotify: Param1, umsgnotify: u32) -> ::windows::core::Result<u32> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn RegisterScaleChangeNotifications(displaydevice: DISPLAY_DEVICE_TYPE, hwndnotify: super::super::Foundation::HWND, umsgnotify: u32, pdwcookie: *mut u32) -> ::windows::core::HRESULT; } let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); RegisterScaleChangeNotifications(::core::mem::transmute(displaydevice), hwndnotify.into_param().abi(), ::core::mem::transmute(umsgnotify), &mut result__).from_abi::<u32>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn RemoveWindowSubclass<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(hwnd: Param0, pfnsubclass: ::core::option::Option<SUBCLASSPROC>, uidsubclass: usize) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn RemoveWindowSubclass(hwnd: super::super::Foundation::HWND, pfnsubclass: ::windows::core::RawPtr, uidsubclass: usize) -> super::super::Foundation::BOOL; } ::core::mem::transmute(RemoveWindowSubclass(hwnd.into_param().abi(), ::core::mem::transmute(pfnsubclass), ::core::mem::transmute(uidsubclass))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn RestartDialog<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hwnd: Param0, pszprompt: Param1, dwreturn: u32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn RestartDialog(hwnd: super::super::Foundation::HWND, pszprompt: super::super::Foundation::PWSTR, dwreturn: u32) -> i32; } ::core::mem::transmute(RestartDialog(hwnd.into_param().abi(), pszprompt.into_param().abi(), ::core::mem::transmute(dwreturn))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn RestartDialogEx<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hwnd: Param0, pszprompt: Param1, dwreturn: u32, dwreasoncode: u32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn RestartDialogEx(hwnd: super::super::Foundation::HWND, pszprompt: super::super::Foundation::PWSTR, dwreturn: u32, dwreasoncode: u32) -> i32; } ::core::mem::transmute(RestartDialogEx(hwnd.into_param().abi(), pszprompt.into_param().abi(), ::core::mem::transmute(dwreturn), ::core::mem::transmute(dwreasoncode))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn RevokeScaleChangeNotifications(displaydevice: DISPLAY_DEVICE_TYPE, dwcookie: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn RevokeScaleChangeNotifications(displaydevice: DISPLAY_DEVICE_TYPE, dwcookie: u32) -> ::windows::core::HRESULT; } RevokeScaleChangeNotifications(::core::mem::transmute(displaydevice), ::core::mem::transmute(dwcookie)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const SBSP_ABSOLUTE: u32 = 0u32; pub const SBSP_ACTIVATE_NOFOCUS: u32 = 524288u32; pub const SBSP_ALLOW_AUTONAVIGATE: u32 = 65536u32; pub const SBSP_CALLERUNTRUSTED: u32 = 8388608u32; pub const SBSP_CREATENOHISTORY: u32 = 1048576u32; pub const SBSP_DEFBROWSER: u32 = 0u32; pub const SBSP_DEFMODE: u32 = 0u32; pub const SBSP_EXPLOREMODE: u32 = 32u32; pub const SBSP_FEEDNAVIGATION: u32 = 536870912u32; pub const SBSP_HELPMODE: u32 = 64u32; pub const SBSP_INITIATEDBYHLINKFRAME: u32 = 2147483648u32; pub const SBSP_KEEPSAMETEMPLATE: u32 = 131072u32; pub const SBSP_KEEPWORDWHEELTEXT: u32 = 262144u32; pub const SBSP_NAVIGATEBACK: u32 = 16384u32; pub const SBSP_NAVIGATEFORWARD: u32 = 32768u32; pub const SBSP_NEWBROWSER: u32 = 2u32; pub const SBSP_NOAUTOSELECT: u32 = 67108864u32; pub const SBSP_NOTRANSFERHIST: u32 = 128u32; pub const SBSP_OPENMODE: u32 = 16u32; pub const SBSP_PARENT: u32 = 8192u32; pub const SBSP_PLAYNOSOUND: u32 = 2097152u32; pub const SBSP_REDIRECT: u32 = 1073741824u32; pub const SBSP_RELATIVE: u32 = 4096u32; pub const SBSP_SAMEBROWSER: u32 = 1u32; pub const SBSP_TRUSTEDFORACTIVEX: u32 = 268435456u32; pub const SBSP_TRUSTFIRSTDOWNLOAD: u32 = 16777216u32; pub const SBSP_UNTRUSTEDFORDOWNLOAD: u32 = 33554432u32; pub const SBSP_WRITENOHISTORY: u32 = 134217728u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SCALE_CHANGE_FLAGS(pub u32); pub const SCF_VALUE_NONE: SCALE_CHANGE_FLAGS = SCALE_CHANGE_FLAGS(0u32); pub const SCF_SCALE: SCALE_CHANGE_FLAGS = SCALE_CHANGE_FLAGS(1u32); pub const SCF_PHYSICAL: SCALE_CHANGE_FLAGS = SCALE_CHANGE_FLAGS(2u32); impl ::core::convert::From<u32> for SCALE_CHANGE_FLAGS { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SCALE_CHANGE_FLAGS { type Abi = Self; } impl ::core::ops::BitOr for SCALE_CHANGE_FLAGS { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for SCALE_CHANGE_FLAGS { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for SCALE_CHANGE_FLAGS { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for SCALE_CHANGE_FLAGS { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for SCALE_CHANGE_FLAGS { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } pub const SCHEME_CREATE: u32 = 128u32; pub const SCHEME_DISPLAY: u32 = 1u32; pub const SCHEME_DONOTUSE: u32 = 64u32; pub const SCHEME_EDIT: u32 = 2u32; pub const SCHEME_GLOBAL: u32 = 8u32; pub const SCHEME_LOCAL: u32 = 4u32; pub const SCHEME_REFRESH: u32 = 16u32; pub const SCHEME_UPDATE: u32 = 32u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SCNRT_STATUS(pub i32); pub const SCNRT_ENABLE: SCNRT_STATUS = SCNRT_STATUS(0i32); pub const SCNRT_DISABLE: SCNRT_STATUS = SCNRT_STATUS(1i32); impl ::core::convert::From<i32> for SCNRT_STATUS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SCNRT_STATUS { type Abi = Self; } pub const SCRM_VERIFYPW: u32 = 32768u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SECURELOCKCODE(pub i32); pub const SECURELOCK_NOCHANGE: SECURELOCKCODE = SECURELOCKCODE(-1i32); pub const SECURELOCK_SET_UNSECURE: SECURELOCKCODE = SECURELOCKCODE(0i32); pub const SECURELOCK_SET_MIXED: SECURELOCKCODE = SECURELOCKCODE(1i32); pub const SECURELOCK_SET_SECUREUNKNOWNBIT: SECURELOCKCODE = SECURELOCKCODE(2i32); pub const SECURELOCK_SET_SECURE40BIT: SECURELOCKCODE = SECURELOCKCODE(3i32); pub const SECURELOCK_SET_SECURE56BIT: SECURELOCKCODE = SECURELOCKCODE(4i32); pub const SECURELOCK_SET_FORTEZZA: SECURELOCKCODE = SECURELOCKCODE(5i32); pub const SECURELOCK_SET_SECURE128BIT: SECURELOCKCODE = SECURELOCKCODE(6i32); pub const SECURELOCK_FIRSTSUGGEST: SECURELOCKCODE = SECURELOCKCODE(7i32); pub const SECURELOCK_SUGGEST_UNSECURE: SECURELOCKCODE = SECURELOCKCODE(7i32); pub const SECURELOCK_SUGGEST_MIXED: SECURELOCKCODE = SECURELOCKCODE(8i32); pub const SECURELOCK_SUGGEST_SECUREUNKNOWNBIT: SECURELOCKCODE = SECURELOCKCODE(9i32); pub const SECURELOCK_SUGGEST_SECURE40BIT: SECURELOCKCODE = SECURELOCKCODE(10i32); pub const SECURELOCK_SUGGEST_SECURE56BIT: SECURELOCKCODE = SECURELOCKCODE(11i32); pub const SECURELOCK_SUGGEST_FORTEZZA: SECURELOCKCODE = SECURELOCKCODE(12i32); pub const SECURELOCK_SUGGEST_SECURE128BIT: SECURELOCKCODE = SECURELOCKCODE(13i32); impl ::core::convert::From<i32> for SECURELOCKCODE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SECURELOCKCODE { type Abi = Self; } pub const SEE_MASK_ASYNCOK: u32 = 1048576u32; pub const SEE_MASK_CLASSKEY: u32 = 3u32; pub const SEE_MASK_CLASSNAME: u32 = 1u32; pub const SEE_MASK_CONNECTNETDRV: u32 = 128u32; pub const SEE_MASK_DEFAULT: u32 = 0u32; pub const SEE_MASK_DOENVSUBST: u32 = 512u32; pub const SEE_MASK_FLAG_DDEWAIT: u32 = 256u32; pub const SEE_MASK_FLAG_HINST_IS_SITE: u32 = 134217728u32; pub const SEE_MASK_FLAG_LOG_USAGE: u32 = 67108864u32; pub const SEE_MASK_FLAG_NO_UI: u32 = 1024u32; pub const SEE_MASK_HMONITOR: u32 = 2097152u32; pub const SEE_MASK_HOTKEY: u32 = 32u32; pub const SEE_MASK_ICON: u32 = 16u32; pub const SEE_MASK_IDLIST: u32 = 4u32; pub const SEE_MASK_INVOKEIDLIST: u32 = 12u32; pub const SEE_MASK_NOASYNC: u32 = 256u32; pub const SEE_MASK_NOCLOSEPROCESS: u32 = 64u32; pub const SEE_MASK_NOQUERYCLASSSTORE: u32 = 16777216u32; pub const SEE_MASK_NOZONECHECKS: u32 = 8388608u32; pub const SEE_MASK_NO_CONSOLE: u32 = 32768u32; pub const SEE_MASK_UNICODE: u32 = 16384u32; pub const SEE_MASK_WAITFORINPUTIDLE: u32 = 33554432u32; pub const SETPROPS_NONE: u32 = 0u32; pub const SE_ERR_ACCESSDENIED: u32 = 5u32; pub const SE_ERR_ASSOCINCOMPLETE: u32 = 27u32; pub const SE_ERR_DDEBUSY: u32 = 30u32; pub const SE_ERR_DDEFAIL: u32 = 29u32; pub const SE_ERR_DDETIMEOUT: u32 = 28u32; pub const SE_ERR_DLLNOTFOUND: u32 = 32u32; pub const SE_ERR_FNF: u32 = 2u32; pub const SE_ERR_NOASSOC: u32 = 31u32; pub const SE_ERR_OOM: u32 = 8u32; pub const SE_ERR_PNF: u32 = 3u32; pub const SE_ERR_SHARE: u32 = 26u32; pub const SFBID_PIDLCHANGED: i32 = 0i32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SFBS_FLAGS(pub i32); pub const SFBS_FLAGS_ROUND_TO_NEAREST_DISPLAYED_DIGIT: SFBS_FLAGS = SFBS_FLAGS(1i32); pub const SFBS_FLAGS_TRUNCATE_UNDISPLAYED_DECIMAL_DIGITS: SFBS_FLAGS = SFBS_FLAGS(2i32); impl ::core::convert::From<i32> for SFBS_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SFBS_FLAGS { type Abi = Self; } pub const SFGAO_BROWSABLE: i32 = 134217728i32; pub const SFGAO_CANCOPY: u32 = 1u32; pub const SFGAO_CANDELETE: i32 = 32i32; pub const SFGAO_CANLINK: u32 = 4u32; pub const SFGAO_CANMONIKER: i32 = 4194304i32; pub const SFGAO_CANMOVE: u32 = 2u32; pub const SFGAO_CANRENAME: i32 = 16i32; pub const SFGAO_CAPABILITYMASK: i32 = 375i32; pub const SFGAO_COMPRESSED: i32 = 67108864i32; pub const SFGAO_CONTENTSMASK: i32 = -2147483648i32; pub const SFGAO_DISPLAYATTRMASK: i32 = 1032192i32; pub const SFGAO_DROPTARGET: i32 = 256i32; pub const SFGAO_ENCRYPTED: i32 = 8192i32; pub const SFGAO_FILESYSANCESTOR: i32 = 268435456i32; pub const SFGAO_FILESYSTEM: i32 = 1073741824i32; pub const SFGAO_FOLDER: i32 = 536870912i32; pub const SFGAO_GHOSTED: i32 = 32768i32; pub const SFGAO_HASPROPSHEET: i32 = 64i32; pub const SFGAO_HASSTORAGE: i32 = 4194304i32; pub const SFGAO_HASSUBFOLDER: i32 = -2147483648i32; pub const SFGAO_HIDDEN: i32 = 524288i32; pub const SFGAO_ISSLOW: i32 = 16384i32; pub const SFGAO_LINK: i32 = 65536i32; pub const SFGAO_NEWCONTENT: i32 = 2097152i32; pub const SFGAO_NONENUMERATED: i32 = 1048576i32; pub const SFGAO_PKEYSFGAOMASK: i32 = -2130427904i32; pub const SFGAO_PLACEHOLDER: i32 = 2048i32; pub const SFGAO_READONLY: i32 = 262144i32; pub const SFGAO_REMOVABLE: i32 = 33554432i32; pub const SFGAO_SHARE: i32 = 131072i32; pub const SFGAO_STORAGE: i32 = 8i32; pub const SFGAO_STORAGEANCESTOR: i32 = 8388608i32; pub const SFGAO_STORAGECAPMASK: i32 = 1891958792i32; pub const SFGAO_STREAM: i32 = 4194304i32; pub const SFGAO_SYSTEM: i32 = 4096i32; pub const SFGAO_VALIDATE: i32 = 16777216i32; pub const SFVM_ADDOBJECT: u32 = 3u32; pub const SFVM_GETSELECTEDOBJECTS: u32 = 9u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct SFVM_HELPTOPIC_DATA { pub wszHelpFile: [u16; 260], pub wszHelpTopic: [u16; 260], } impl SFVM_HELPTOPIC_DATA {} impl ::core::default::Default for SFVM_HELPTOPIC_DATA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for SFVM_HELPTOPIC_DATA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SFVM_HELPTOPIC_DATA").field("wszHelpFile", &self.wszHelpFile).field("wszHelpTopic", &self.wszHelpTopic).finish() } } impl ::core::cmp::PartialEq for SFVM_HELPTOPIC_DATA { fn eq(&self, other: &Self) -> bool { self.wszHelpFile == other.wszHelpFile && self.wszHelpTopic == other.wszHelpTopic } } impl ::core::cmp::Eq for SFVM_HELPTOPIC_DATA {} unsafe impl ::windows::core::Abi for SFVM_HELPTOPIC_DATA { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SFVM_MESSAGE_ID(pub i32); pub const SFVM_MERGEMENU: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(1i32); pub const SFVM_INVOKECOMMAND: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(2i32); pub const SFVM_GETHELPTEXT: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(3i32); pub const SFVM_GETTOOLTIPTEXT: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(4i32); pub const SFVM_GETBUTTONINFO: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(5i32); pub const SFVM_GETBUTTONS: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(6i32); pub const SFVM_INITMENUPOPUP: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(7i32); pub const SFVM_FSNOTIFY: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(14i32); pub const SFVM_WINDOWCREATED: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(15i32); pub const SFVM_GETDETAILSOF: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(23i32); pub const SFVM_COLUMNCLICK: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(24i32); pub const SFVM_QUERYFSNOTIFY: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(25i32); pub const SFVM_DEFITEMCOUNT: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(26i32); pub const SFVM_DEFVIEWMODE: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(27i32); pub const SFVM_UNMERGEMENU: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(28i32); pub const SFVM_UPDATESTATUSBAR: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(31i32); pub const SFVM_BACKGROUNDENUM: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(32i32); pub const SFVM_DIDDRAGDROP: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(36i32); pub const SFVM_SETISFV: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(39i32); pub const SFVM_THISIDLIST: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(41i32); pub const SFVM_ADDPROPERTYPAGES: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(47i32); pub const SFVM_BACKGROUNDENUMDONE: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(48i32); pub const SFVM_GETNOTIFY: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(49i32); pub const SFVM_GETSORTDEFAULTS: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(53i32); pub const SFVM_SIZE: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(57i32); pub const SFVM_GETZONE: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(58i32); pub const SFVM_GETPANE: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(59i32); pub const SFVM_GETHELPTOPIC: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(63i32); pub const SFVM_GETANIMATION: SFVM_MESSAGE_ID = SFVM_MESSAGE_ID(68i32); impl ::core::convert::From<i32> for SFVM_MESSAGE_ID { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SFVM_MESSAGE_ID { type Abi = Self; } #[derive(:: core :: clone :: Clone)] #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub struct SFVM_PROPPAGE_DATA { pub dwReserved: u32, pub pfn: ::core::option::Option<super::Controls::LPFNSVADDPROPSHEETPAGE>, pub lParam: super::super::Foundation::LPARAM, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] impl SFVM_PROPPAGE_DATA {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] impl ::core::default::Default for SFVM_PROPPAGE_DATA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] impl ::core::fmt::Debug for SFVM_PROPPAGE_DATA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SFVM_PROPPAGE_DATA").field("dwReserved", &self.dwReserved).field("lParam", &self.lParam).finish() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] impl ::core::cmp::PartialEq for SFVM_PROPPAGE_DATA { fn eq(&self, other: &Self) -> bool { self.dwReserved == other.dwReserved && self.pfn.map(|f| f as usize) == other.pfn.map(|f| f as usize) && self.lParam == other.lParam } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] impl ::core::cmp::Eq for SFVM_PROPPAGE_DATA {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] unsafe impl ::windows::core::Abi for SFVM_PROPPAGE_DATA { type Abi = ::core::mem::ManuallyDrop<Self>; } pub const SFVM_REARRANGE: u32 = 1u32; pub const SFVM_REMOVEOBJECT: u32 = 6u32; pub const SFVM_SETCLIPBOARD: u32 = 16u32; pub const SFVM_SETITEMPOS: u32 = 14u32; pub const SFVM_SETPOINTS: u32 = 23u32; pub const SFVM_UPDATEOBJECT: u32 = 7u32; pub const SFVSOC_INVALIDATE_ALL: u32 = 1u32; pub const SFVSOC_NOSCROLL: u32 = 2u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SFVS_SELECT(pub i32); pub const SFVS_SELECT_NONE: SFVS_SELECT = SFVS_SELECT(0i32); pub const SFVS_SELECT_ALLITEMS: SFVS_SELECT = SFVS_SELECT(1i32); pub const SFVS_SELECT_INVERT: SFVS_SELECT = SFVS_SELECT(2i32); impl ::core::convert::From<i32> for SFVS_SELECT { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SFVS_SELECT { type Abi = Self; } #[derive(:: core :: clone :: Clone)] #[repr(C)] pub struct SFV_CREATE { pub cbSize: u32, pub pshf: ::core::option::Option<IShellFolder>, pub psvOuter: ::core::option::Option<IShellView>, pub psfvcb: ::core::option::Option<IShellFolderViewCB>, } impl SFV_CREATE {} impl ::core::default::Default for SFV_CREATE { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for SFV_CREATE { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SFV_CREATE").field("cbSize", &self.cbSize).field("pshf", &self.pshf).field("psvOuter", &self.psvOuter).field("psfvcb", &self.psfvcb).finish() } } impl ::core::cmp::PartialEq for SFV_CREATE { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.pshf == other.pshf && self.psvOuter == other.psvOuter && self.psfvcb == other.psfvcb } } impl ::core::cmp::Eq for SFV_CREATE {} unsafe impl ::windows::core::Abi for SFV_CREATE { type Abi = ::core::mem::ManuallyDrop<Self>; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[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 SFV_SETITEMPOS {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::default::Default for SFV_SETITEMPOS { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::fmt::Debug for SFV_SETITEMPOS { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SFV_SETITEMPOS").field("pidl", &self.pidl).field("pt", &self.pt).finish() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::cmp::PartialEq for SFV_SETITEMPOS { fn eq(&self, other: &Self) -> bool { self.pidl == other.pidl && self.pt == other.pt } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::cmp::Eq for SFV_SETITEMPOS {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] unsafe impl ::windows::core::Abi for SFV_SETITEMPOS { type Abi = Self; } pub const SHACF_AUTOAPPEND_FORCE_OFF: u32 = 2147483648u32; pub const SHACF_AUTOAPPEND_FORCE_ON: u32 = 1073741824u32; pub const SHACF_AUTOSUGGEST_FORCE_OFF: u32 = 536870912u32; pub const SHACF_AUTOSUGGEST_FORCE_ON: u32 = 268435456u32; pub const SHACF_DEFAULT: u32 = 0u32; pub const SHACF_FILESYSTEM: u32 = 1u32; pub const SHACF_FILESYS_DIRS: u32 = 32u32; pub const SHACF_FILESYS_ONLY: u32 = 16u32; pub const SHACF_URLHISTORY: u32 = 2u32; pub const SHACF_URLMRU: u32 = 4u32; pub const SHACF_USETAB: u32 = 8u32; pub const SHACF_VIRTUAL_NAMESPACE: u32 = 64u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SHARD(pub i32); pub const SHARD_PIDL: SHARD = SHARD(1i32); pub const SHARD_PATHA: SHARD = SHARD(2i32); pub const SHARD_PATHW: SHARD = SHARD(3i32); pub const SHARD_APPIDINFO: SHARD = SHARD(4i32); pub const SHARD_APPIDINFOIDLIST: SHARD = SHARD(5i32); pub const SHARD_LINK: SHARD = SHARD(6i32); pub const SHARD_APPIDINFOLINK: SHARD = SHARD(7i32); pub const SHARD_SHELLITEM: SHARD = SHARD(8i32); impl ::core::convert::From<i32> for SHARD { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SHARD { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for SHARDAPPIDINFO { fn clone(&self) -> Self { unimplemented!() } } #[repr(C, packed(1))] #[cfg(feature = "Win32_Foundation")] pub struct SHARDAPPIDINFO { pub psi: ::core::option::Option<IShellItem>, pub pszAppID: super::super::Foundation::PWSTR, } #[cfg(feature = "Win32_Foundation")] impl SHARDAPPIDINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for SHARDAPPIDINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for SHARDAPPIDINFO { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for SHARDAPPIDINFO {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for SHARDAPPIDINFO { type Abi = ::core::mem::ManuallyDrop<Self>; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub struct SHARDAPPIDINFOIDLIST { pub pidl: *mut Common::ITEMIDLIST, pub pszAppID: super::super::Foundation::PWSTR, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl SHARDAPPIDINFOIDLIST {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::default::Default for SHARDAPPIDINFOIDLIST { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::cmp::PartialEq for SHARDAPPIDINFOIDLIST { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::cmp::Eq for SHARDAPPIDINFOIDLIST {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] unsafe impl ::windows::core::Abi for SHARDAPPIDINFOIDLIST { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for SHARDAPPIDINFOLINK { fn clone(&self) -> Self { unimplemented!() } } #[repr(C, packed(1))] #[cfg(feature = "Win32_Foundation")] pub struct SHARDAPPIDINFOLINK { pub psl: ::core::option::Option<IShellLinkA>, pub pszAppID: super::super::Foundation::PWSTR, } #[cfg(feature = "Win32_Foundation")] impl SHARDAPPIDINFOLINK {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for SHARDAPPIDINFOLINK { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for SHARDAPPIDINFOLINK { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for SHARDAPPIDINFOLINK {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for SHARDAPPIDINFOLINK { type Abi = ::core::mem::ManuallyDrop<Self>; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SHARE_ROLE(pub i32); pub const SHARE_ROLE_INVALID: SHARE_ROLE = SHARE_ROLE(-1i32); pub const SHARE_ROLE_READER: SHARE_ROLE = SHARE_ROLE(0i32); pub const SHARE_ROLE_CONTRIBUTOR: SHARE_ROLE = SHARE_ROLE(1i32); pub const SHARE_ROLE_CO_OWNER: SHARE_ROLE = SHARE_ROLE(2i32); pub const SHARE_ROLE_OWNER: SHARE_ROLE = SHARE_ROLE(3i32); pub const SHARE_ROLE_CUSTOM: SHARE_ROLE = SHARE_ROLE(4i32); pub const SHARE_ROLE_MIXED: SHARE_ROLE = SHARE_ROLE(5i32); impl ::core::convert::From<i32> for SHARE_ROLE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SHARE_ROLE { type Abi = Self; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] #[inline] pub unsafe fn SHAddFromPropSheetExtArray<'a, Param0: ::windows::core::IntoParam<'a, HPSXA>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(hpsxa: Param0, lpfnaddpage: ::core::option::Option<super::Controls::LPFNSVADDPROPSHEETPAGE>, lparam: Param2) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHAddFromPropSheetExtArray(hpsxa: HPSXA, lpfnaddpage: ::windows::core::RawPtr, lparam: super::super::Foundation::LPARAM) -> u32; } ::core::mem::transmute(SHAddFromPropSheetExtArray(hpsxa.into_param().abi(), ::core::mem::transmute(lpfnaddpage), lparam.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHAddToRecentDocs(uflags: u32, pv: *const ::core::ffi::c_void) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHAddToRecentDocs(uflags: u32, pv: *const ::core::ffi::c_void); } ::core::mem::transmute(SHAddToRecentDocs(::core::mem::transmute(uflags), ::core::mem::transmute(pv))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHAlloc(cb: usize) -> *mut ::core::ffi::c_void { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHAlloc(cb: usize) -> *mut ::core::ffi::c_void; } ::core::mem::transmute(SHAlloc(::core::mem::transmute(cb))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHAllocShared(pvdata: *const ::core::ffi::c_void, dwsize: u32, dwprocessid: u32) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHAllocShared(pvdata: *const ::core::ffi::c_void, dwsize: u32, dwprocessid: u32) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(SHAllocShared(::core::mem::transmute(pvdata), ::core::mem::transmute(dwsize), ::core::mem::transmute(dwprocessid))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHAnsiToAnsi<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszsrc: Param0, pszdst: super::super::Foundation::PSTR, cchbuf: i32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHAnsiToAnsi(pszsrc: super::super::Foundation::PSTR, pszdst: super::super::Foundation::PSTR, cchbuf: i32) -> i32; } ::core::mem::transmute(SHAnsiToAnsi(pszsrc.into_param().abi(), ::core::mem::transmute(pszdst), ::core::mem::transmute(cchbuf))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHAnsiToUnicode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszsrc: Param0, pwszdst: super::super::Foundation::PWSTR, cwchbuf: i32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHAnsiToUnicode(pszsrc: super::super::Foundation::PSTR, pwszdst: super::super::Foundation::PWSTR, cwchbuf: i32) -> i32; } ::core::mem::transmute(SHAnsiToUnicode(pszsrc.into_param().abi(), ::core::mem::transmute(pwszdst), ::core::mem::transmute(cwchbuf))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHAppBarMessage(dwmessage: u32, pdata: *mut APPBARDATA) -> usize { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHAppBarMessage(dwmessage: u32, pdata: *mut APPBARDATA) -> usize; } ::core::mem::transmute(SHAppBarMessage(::core::mem::transmute(dwmessage), ::core::mem::transmute(pdata))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHAssocEnumHandlers<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszextra: Param0, affilter: ASSOC_FILTER) -> ::windows::core::Result<IEnumAssocHandlers> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHAssocEnumHandlers(pszextra: super::super::Foundation::PWSTR, affilter: ASSOC_FILTER, ppenumhandler: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT; } let mut result__: <IEnumAssocHandlers as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHAssocEnumHandlers(pszextra.into_param().abi(), ::core::mem::transmute(affilter), &mut result__).from_abi::<IEnumAssocHandlers>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHAssocEnumHandlersForProtocolByApplication<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(protocol: Param0, riid: *const ::windows::core::GUID, enumhandlers: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHAssocEnumHandlersForProtocolByApplication(protocol: super::super::Foundation::PWSTR, riid: *const ::windows::core::GUID, enumhandlers: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } SHAssocEnumHandlersForProtocolByApplication(protocol.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(enumhandlers)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHAutoComplete<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(hwndedit: Param0, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHAutoComplete(hwndedit: super::super::Foundation::HWND, dwflags: u32) -> ::windows::core::HRESULT; } SHAutoComplete(hwndedit.into_param().abi(), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHBindToFolderIDListParent<'a, Param0: ::windows::core::IntoParam<'a, IShellFolder>>(psfroot: Param0, pidl: *const Common::ITEMIDLIST, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void, ppidllast: *mut *mut Common::ITEMIDLIST) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHBindToFolderIDListParent(psfroot: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void, ppidllast: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT; } SHBindToFolderIDListParent(psfroot.into_param().abi(), ::core::mem::transmute(pidl), ::core::mem::transmute(riid), ::core::mem::transmute(ppv), ::core::mem::transmute(ppidllast)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHBindToFolderIDListParentEx<'a, Param0: ::windows::core::IntoParam<'a, IShellFolder>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>>(psfroot: Param0, pidl: *const Common::ITEMIDLIST, ppbc: Param2, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void, ppidllast: *mut *mut Common::ITEMIDLIST) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHBindToFolderIDListParentEx(psfroot: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, ppbc: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void, ppidllast: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT; } SHBindToFolderIDListParentEx(psfroot.into_param().abi(), ::core::mem::transmute(pidl), ppbc.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv), ::core::mem::transmute(ppidllast)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHBindToObject<'a, Param0: ::windows::core::IntoParam<'a, IShellFolder>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>>(psf: Param0, pidl: *const Common::ITEMIDLIST, pbc: Param2, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHBindToObject(psf: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, pbc: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } SHBindToObject(psf.into_param().abi(), ::core::mem::transmute(pidl), pbc.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHBindToParent(pidl: *const Common::ITEMIDLIST, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void, ppidllast: *mut *mut Common::ITEMIDLIST) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHBindToParent(pidl: *const Common::ITEMIDLIST, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void, ppidllast: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT; } SHBindToParent(::core::mem::transmute(pidl), ::core::mem::transmute(riid), ::core::mem::transmute(ppv), ::core::mem::transmute(ppidllast)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHBrowseForFolderA(lpbi: *const BROWSEINFOA) -> *mut Common::ITEMIDLIST { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHBrowseForFolderA(lpbi: *const ::core::mem::ManuallyDrop<BROWSEINFOA>) -> *mut Common::ITEMIDLIST; } ::core::mem::transmute(SHBrowseForFolderA(::core::mem::transmute(lpbi))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHBrowseForFolderW(lpbi: *const BROWSEINFOW) -> *mut Common::ITEMIDLIST { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHBrowseForFolderW(lpbi: *const ::core::mem::ManuallyDrop<BROWSEINFOW>) -> *mut Common::ITEMIDLIST; } ::core::mem::transmute(SHBrowseForFolderW(::core::mem::transmute(lpbi))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const SHCDF_UPDATEITEM: u32 = 1u32; pub const SHCIDS_ALLFIELDS: i32 = -2147483648i32; pub const SHCIDS_BITMASK: i32 = -65536i32; pub const SHCIDS_CANONICALONLY: i32 = 268435456i32; pub const SHCIDS_COLUMNMASK: i32 = 65535i32; #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHCLSIDFromString<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(psz: Param0) -> ::windows::core::Result<::windows::core::GUID> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCLSIDFromString(psz: super::super::Foundation::PWSTR, pclsid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT; } let mut result__: <::windows::core::GUID as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHCLSIDFromString(psz.into_param().abi(), &mut result__).from_abi::<::windows::core::GUID>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const SHCNEE_MSI_CHANGE: i32 = 4i32; pub const SHCNEE_MSI_UNINSTALL: i32 = 5i32; pub const SHCNEE_ORDERCHANGED: i32 = 2i32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SHCNE_ID(pub u32); pub const SHCNE_RENAMEITEM: SHCNE_ID = SHCNE_ID(1u32); pub const SHCNE_CREATE: SHCNE_ID = SHCNE_ID(2u32); pub const SHCNE_DELETE: SHCNE_ID = SHCNE_ID(4u32); pub const SHCNE_MKDIR: SHCNE_ID = SHCNE_ID(8u32); pub const SHCNE_RMDIR: SHCNE_ID = SHCNE_ID(16u32); pub const SHCNE_MEDIAINSERTED: SHCNE_ID = SHCNE_ID(32u32); pub const SHCNE_MEDIAREMOVED: SHCNE_ID = SHCNE_ID(64u32); pub const SHCNE_DRIVEREMOVED: SHCNE_ID = SHCNE_ID(128u32); pub const SHCNE_DRIVEADD: SHCNE_ID = SHCNE_ID(256u32); pub const SHCNE_NETSHARE: SHCNE_ID = SHCNE_ID(512u32); pub const SHCNE_NETUNSHARE: SHCNE_ID = SHCNE_ID(1024u32); pub const SHCNE_ATTRIBUTES: SHCNE_ID = SHCNE_ID(2048u32); pub const SHCNE_UPDATEDIR: SHCNE_ID = SHCNE_ID(4096u32); pub const SHCNE_UPDATEITEM: SHCNE_ID = SHCNE_ID(8192u32); pub const SHCNE_SERVERDISCONNECT: SHCNE_ID = SHCNE_ID(16384u32); pub const SHCNE_UPDATEIMAGE: SHCNE_ID = SHCNE_ID(32768u32); pub const SHCNE_DRIVEADDGUI: SHCNE_ID = SHCNE_ID(65536u32); pub const SHCNE_RENAMEFOLDER: SHCNE_ID = SHCNE_ID(131072u32); pub const SHCNE_FREESPACE: SHCNE_ID = SHCNE_ID(262144u32); pub const SHCNE_EXTENDED_EVENT: SHCNE_ID = SHCNE_ID(67108864u32); pub const SHCNE_ASSOCCHANGED: SHCNE_ID = SHCNE_ID(134217728u32); pub const SHCNE_DISKEVENTS: SHCNE_ID = SHCNE_ID(145439u32); pub const SHCNE_GLOBALEVENTS: SHCNE_ID = SHCNE_ID(201687520u32); pub const SHCNE_ALLEVENTS: SHCNE_ID = SHCNE_ID(2147483647u32); pub const SHCNE_INTERRUPT: SHCNE_ID = SHCNE_ID(2147483648u32); impl ::core::convert::From<u32> for SHCNE_ID { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SHCNE_ID { type Abi = Self; } impl ::core::ops::BitOr for SHCNE_ID { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for SHCNE_ID { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for SHCNE_ID { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for SHCNE_ID { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for SHCNE_ID { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SHCNF_FLAGS(pub u32); pub const SHCNF_IDLIST: SHCNF_FLAGS = SHCNF_FLAGS(0u32); pub const SHCNF_PATHA: SHCNF_FLAGS = SHCNF_FLAGS(1u32); pub const SHCNF_PRINTERA: SHCNF_FLAGS = SHCNF_FLAGS(2u32); pub const SHCNF_DWORD: SHCNF_FLAGS = SHCNF_FLAGS(3u32); pub const SHCNF_PATHW: SHCNF_FLAGS = SHCNF_FLAGS(5u32); pub const SHCNF_PRINTERW: SHCNF_FLAGS = SHCNF_FLAGS(6u32); pub const SHCNF_TYPE: SHCNF_FLAGS = SHCNF_FLAGS(255u32); pub const SHCNF_FLUSH: SHCNF_FLAGS = SHCNF_FLAGS(4096u32); pub const SHCNF_FLUSHNOWAIT: SHCNF_FLAGS = SHCNF_FLAGS(12288u32); pub const SHCNF_NOTIFYRECURSIVE: SHCNF_FLAGS = SHCNF_FLAGS(65536u32); pub const SHCNF_PATH: SHCNF_FLAGS = SHCNF_FLAGS(5u32); pub const SHCNF_PRINTER: SHCNF_FLAGS = SHCNF_FLAGS(6u32); impl ::core::convert::From<u32> for SHCNF_FLAGS { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SHCNF_FLAGS { type Abi = Self; } impl ::core::ops::BitOr for SHCNF_FLAGS { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for SHCNF_FLAGS { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for SHCNF_FLAGS { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for SHCNF_FLAGS { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for SHCNF_FLAGS { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SHCNRF_SOURCE(pub i32); pub const SHCNRF_InterruptLevel: SHCNRF_SOURCE = SHCNRF_SOURCE(1i32); pub const SHCNRF_ShellLevel: SHCNRF_SOURCE = SHCNRF_SOURCE(2i32); pub const SHCNRF_RecursiveInterrupt: SHCNRF_SOURCE = SHCNRF_SOURCE(4096i32); pub const SHCNRF_NewDelivery: SHCNRF_SOURCE = SHCNRF_SOURCE(32768i32); impl ::core::convert::From<i32> for SHCNRF_SOURCE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SHCNRF_SOURCE { type Abi = Self; } impl ::core::ops::BitOr for SHCNRF_SOURCE { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for SHCNRF_SOURCE { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for SHCNRF_SOURCE { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for SHCNRF_SOURCE { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for SHCNRF_SOURCE { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct SHCOLUMNDATA { pub dwFlags: u32, pub dwFileAttributes: u32, pub dwReserved: u32, pub pwszExt: super::super::Foundation::PWSTR, pub wszFile: [u16; 260], } #[cfg(feature = "Win32_Foundation")] impl SHCOLUMNDATA {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for SHCOLUMNDATA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for SHCOLUMNDATA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SHCOLUMNDATA").field("dwFlags", &self.dwFlags).field("dwFileAttributes", &self.dwFileAttributes).field("dwReserved", &self.dwReserved).field("pwszExt", &self.pwszExt).field("wszFile", &self.wszFile).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for SHCOLUMNDATA { fn eq(&self, other: &Self) -> bool { self.dwFlags == other.dwFlags && self.dwFileAttributes == other.dwFileAttributes && self.dwReserved == other.dwReserved && self.pwszExt == other.pwszExt && self.wszFile == other.wszFile } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for SHCOLUMNDATA {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for SHCOLUMNDATA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub struct SHCOLUMNINFO { pub scid: PropertiesSystem::PROPERTYKEY, pub vt: u16, pub fmt: u32, pub cChars: u32, pub csFlags: u32, pub wszTitle: [u16; 80], pub wszDescription: [u16; 128], } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl SHCOLUMNINFO {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ::core::default::Default for SHCOLUMNINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ::core::cmp::PartialEq for SHCOLUMNINFO { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ::core::cmp::Eq for SHCOLUMNINFO {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] unsafe impl ::windows::core::Abi for SHCOLUMNINFO { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct SHCOLUMNINIT { pub dwFlags: u32, pub dwReserved: u32, pub wszFolder: [u16; 260], } impl SHCOLUMNINIT {} impl ::core::default::Default for SHCOLUMNINIT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for SHCOLUMNINIT { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SHCOLUMNINIT").field("dwFlags", &self.dwFlags).field("dwReserved", &self.dwReserved).field("wszFolder", &self.wszFolder).finish() } } impl ::core::cmp::PartialEq for SHCOLUMNINIT { fn eq(&self, other: &Self) -> bool { self.dwFlags == other.dwFlags && self.dwReserved == other.dwReserved && self.wszFolder == other.wszFolder } } impl ::core::cmp::Eq for SHCOLUMNINIT {} unsafe impl ::windows::core::Abi for SHCOLUMNINIT { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[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: super::super::Foundation::PWSTR, pub pszParameters: super::super::Foundation::PWSTR, pub pszCurrentDirectory: super::super::Foundation::PWSTR, 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 = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_System_Threading"))] impl SHCREATEPROCESSINFOW {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_System_Threading"))] impl ::core::default::Default for SHCREATEPROCESSINFOW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_System_Threading"))] impl ::core::fmt::Debug for SHCREATEPROCESSINFOW { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SHCREATEPROCESSINFOW") .field("cbSize", &self.cbSize) .field("fMask", &self.fMask) .field("hwnd", &self.hwnd) .field("pszFile", &self.pszFile) .field("pszParameters", &self.pszParameters) .field("pszCurrentDirectory", &self.pszCurrentDirectory) .field("hUserToken", &self.hUserToken) .field("lpProcessAttributes", &self.lpProcessAttributes) .field("lpThreadAttributes", &self.lpThreadAttributes) .field("bInheritHandles", &self.bInheritHandles) .field("dwCreationFlags", &self.dwCreationFlags) .field("lpStartupInfo", &self.lpStartupInfo) .field("lpProcessInformation", &self.lpProcessInformation) .finish() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_System_Threading"))] impl ::core::cmp::PartialEq for SHCREATEPROCESSINFOW { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.fMask == other.fMask && self.hwnd == other.hwnd && self.pszFile == other.pszFile && self.pszParameters == other.pszParameters && self.pszCurrentDirectory == other.pszCurrentDirectory && self.hUserToken == other.hUserToken && self.lpProcessAttributes == other.lpProcessAttributes && self.lpThreadAttributes == other.lpThreadAttributes && self.bInheritHandles == other.bInheritHandles && self.dwCreationFlags == other.dwCreationFlags && self.lpStartupInfo == other.lpStartupInfo && self.lpProcessInformation == other.lpProcessInformation } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_System_Threading"))] impl ::core::cmp::Eq for SHCREATEPROCESSINFOW {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_System_Threading"))] unsafe impl ::windows::core::Abi for SHCREATEPROCESSINFOW { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(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: super::super::Foundation::PWSTR, pub pszParameters: super::super::Foundation::PWSTR, pub pszCurrentDirectory: super::super::Foundation::PWSTR, 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 = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_System_Threading"))] impl SHCREATEPROCESSINFOW {} #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_System_Threading"))] impl ::core::default::Default for SHCREATEPROCESSINFOW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_System_Threading"))] impl ::core::cmp::PartialEq for SHCREATEPROCESSINFOW { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_System_Threading"))] impl ::core::cmp::Eq for SHCREATEPROCESSINFOW {} #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_System_Threading"))] unsafe impl ::windows::core::Abi for SHCREATEPROCESSINFOW { type Abi = Self; } pub const SHC_E_SHELL_COMPONENT_STARTUP_FAILURE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927180i32 as _); #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] pub struct SHChangeDWORDAsIDList { pub cb: u16, pub dwItem1: u32, pub dwItem2: u32, pub cbZero: u16, } impl SHChangeDWORDAsIDList {} impl ::core::default::Default for SHChangeDWORDAsIDList { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::cmp::PartialEq for SHChangeDWORDAsIDList { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } impl ::core::cmp::Eq for SHChangeDWORDAsIDList {} unsafe impl ::windows::core::Abi for SHChangeDWORDAsIDList { type Abi = Self; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHChangeNotification_Lock<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hchange: Param0, dwprocid: u32, pppidl: *mut *mut *mut Common::ITEMIDLIST, plevent: *mut i32) -> ShFindChangeNotificationHandle { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHChangeNotification_Lock(hchange: super::super::Foundation::HANDLE, dwprocid: u32, pppidl: *mut *mut *mut Common::ITEMIDLIST, plevent: *mut i32) -> ShFindChangeNotificationHandle; } ::core::mem::transmute(SHChangeNotification_Lock(hchange.into_param().abi(), ::core::mem::transmute(dwprocid), ::core::mem::transmute(pppidl), ::core::mem::transmute(plevent))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHChangeNotification_Unlock<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hlock: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHChangeNotification_Unlock(hlock: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHChangeNotification_Unlock(hlock.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHChangeNotify(weventid: SHCNE_ID, uflags: SHCNF_FLAGS, dwitem1: *const ::core::ffi::c_void, dwitem2: *const ::core::ffi::c_void) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHChangeNotify(weventid: SHCNE_ID, uflags: SHCNF_FLAGS, dwitem1: *const ::core::ffi::c_void, dwitem2: *const ::core::ffi::c_void); } ::core::mem::transmute(SHChangeNotify(::core::mem::transmute(weventid), ::core::mem::transmute(uflags), ::core::mem::transmute(dwitem1), ::core::mem::transmute(dwitem2))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHChangeNotifyDeregister(ulid: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHChangeNotifyDeregister(ulid: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHChangeNotifyDeregister(::core::mem::transmute(ulid))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[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 SHChangeNotifyEntry {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::default::Default for SHChangeNotifyEntry { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::cmp::PartialEq for SHChangeNotifyEntry { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::cmp::Eq for SHChangeNotifyEntry {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] unsafe impl ::windows::core::Abi for SHChangeNotifyEntry { type Abi = Self; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHChangeNotifyRegister<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(hwnd: Param0, fsources: SHCNRF_SOURCE, fevents: i32, wmsg: u32, centries: i32, pshcne: *const SHChangeNotifyEntry) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHChangeNotifyRegister(hwnd: super::super::Foundation::HWND, fsources: SHCNRF_SOURCE, fevents: i32, wmsg: u32, centries: i32, pshcne: *const SHChangeNotifyEntry) -> u32; } ::core::mem::transmute(SHChangeNotifyRegister(hwnd.into_param().abi(), ::core::mem::transmute(fsources), ::core::mem::transmute(fevents), ::core::mem::transmute(wmsg), ::core::mem::transmute(centries), ::core::mem::transmute(pshcne))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHChangeNotifyRegisterThread(status: SCNRT_STATUS) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHChangeNotifyRegisterThread(status: SCNRT_STATUS); } ::core::mem::transmute(SHChangeNotifyRegisterThread(::core::mem::transmute(status))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] pub struct SHChangeProductKeyAsIDList { pub cb: u16, pub wszProductKey: [u16; 39], pub cbZero: u16, } impl SHChangeProductKeyAsIDList {} impl ::core::default::Default for SHChangeProductKeyAsIDList { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::cmp::PartialEq for SHChangeProductKeyAsIDList { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } impl ::core::cmp::Eq for SHChangeProductKeyAsIDList {} unsafe impl ::windows::core::Abi for SHChangeProductKeyAsIDList { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] 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 SHChangeUpdateImageIDList {} impl ::core::default::Default for SHChangeUpdateImageIDList { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::cmp::PartialEq for SHChangeUpdateImageIDList { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } impl ::core::cmp::Eq for SHChangeUpdateImageIDList {} unsafe impl ::windows::core::Abi for SHChangeUpdateImageIDList { type Abi = Self; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHCloneSpecialIDList<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(hwnd: Param0, csidl: i32, fcreate: Param2) -> *mut Common::ITEMIDLIST { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCloneSpecialIDList(hwnd: super::super::Foundation::HWND, csidl: i32, fcreate: super::super::Foundation::BOOL) -> *mut Common::ITEMIDLIST; } ::core::mem::transmute(SHCloneSpecialIDList(hwnd.into_param().abi(), ::core::mem::transmute(csidl), fcreate.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHCoCreateInstance<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(pszclsid: Param0, pclsid: *const ::windows::core::GUID, punkouter: Param2, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCoCreateInstance(pszclsid: super::super::Foundation::PWSTR, pclsid: *const ::windows::core::GUID, punkouter: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } SHCoCreateInstance(pszclsid.into_param().abi(), ::core::mem::transmute(pclsid), punkouter.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHCopyKeyA<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param2: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>>(hkeysrc: Param0, pszsrcsubkey: Param1, hkeydest: Param2, freserved: u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCopyKeyA(hkeysrc: super::super::System::Registry::HKEY, pszsrcsubkey: super::super::Foundation::PSTR, hkeydest: super::super::System::Registry::HKEY, freserved: u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHCopyKeyA(hkeysrc.into_param().abi(), pszsrcsubkey.into_param().abi(), hkeydest.into_param().abi(), ::core::mem::transmute(freserved))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHCopyKeyW<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>>(hkeysrc: Param0, pszsrcsubkey: Param1, hkeydest: Param2, freserved: u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCopyKeyW(hkeysrc: super::super::System::Registry::HKEY, pszsrcsubkey: super::super::Foundation::PWSTR, hkeydest: super::super::System::Registry::HKEY, freserved: u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHCopyKeyW(hkeysrc.into_param().abi(), pszsrcsubkey.into_param().abi(), hkeydest.into_param().abi(), ::core::mem::transmute(freserved))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHCreateAssociationRegistration(riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateAssociationRegistration(riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } SHCreateAssociationRegistration(::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHCreateDataObject<'a, Param3: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>>(pidlfolder: *const Common::ITEMIDLIST, cidl: u32, apidl: *const *const Common::ITEMIDLIST, pdtinner: Param3, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateDataObject(pidlfolder: *const Common::ITEMIDLIST, cidl: u32, apidl: *const *const Common::ITEMIDLIST, pdtinner: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } SHCreateDataObject(::core::mem::transmute(pidlfolder), ::core::mem::transmute(cidl), ::core::mem::transmute(apidl), pdtinner.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHCreateDefaultContextMenu(pdcm: *const DEFCONTEXTMENU, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateDefaultContextMenu(pdcm: *const ::core::mem::ManuallyDrop<DEFCONTEXTMENU>, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } SHCreateDefaultContextMenu(::core::mem::transmute(pdcm), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHCreateDefaultExtractIcon(riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateDefaultExtractIcon(riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } SHCreateDefaultExtractIcon(::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHCreateDefaultPropertiesOp<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(psi: Param0) -> ::windows::core::Result<IFileOperation> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateDefaultPropertiesOp(psi: ::windows::core::RawPtr, ppfileop: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT; } let mut result__: <IFileOperation as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHCreateDefaultPropertiesOp(psi.into_param().abi(), &mut result__).from_abi::<IFileOperation>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHCreateDirectory<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hwnd: Param0, pszpath: Param1) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateDirectory(hwnd: super::super::Foundation::HWND, pszpath: super::super::Foundation::PWSTR) -> i32; } ::core::mem::transmute(SHCreateDirectory(hwnd.into_param().abi(), pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SHCreateDirectoryExA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(hwnd: Param0, pszpath: Param1, psa: *const super::super::Security::SECURITY_ATTRIBUTES) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateDirectoryExA(hwnd: super::super::Foundation::HWND, pszpath: super::super::Foundation::PSTR, psa: *const super::super::Security::SECURITY_ATTRIBUTES) -> i32; } ::core::mem::transmute(SHCreateDirectoryExA(hwnd.into_param().abi(), pszpath.into_param().abi(), ::core::mem::transmute(psa))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SHCreateDirectoryExW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hwnd: Param0, pszpath: Param1, psa: *const super::super::Security::SECURITY_ATTRIBUTES) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateDirectoryExW(hwnd: super::super::Foundation::HWND, pszpath: super::super::Foundation::PWSTR, psa: *const super::super::Security::SECURITY_ATTRIBUTES) -> i32; } ::core::mem::transmute(SHCreateDirectoryExW(hwnd.into_param().abi(), pszpath.into_param().abi(), ::core::mem::transmute(psa))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHCreateFileExtractIconW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszfile: Param0, dwfileattributes: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateFileExtractIconW(pszfile: super::super::Foundation::PWSTR, dwfileattributes: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } SHCreateFileExtractIconW(pszfile.into_param().abi(), ::core::mem::transmute(dwfileattributes), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHCreateItemFromIDList(pidl: *const Common::ITEMIDLIST, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateItemFromIDList(pidl: *const Common::ITEMIDLIST, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } SHCreateItemFromIDList(::core::mem::transmute(pidl), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] pub unsafe fn SHCreateItemFromParsingName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>>(pszpath: Param0, pbc: Param1, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateItemFromParsingName(pszpath: super::super::Foundation::PWSTR, pbc: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } SHCreateItemFromParsingName(pszpath.into_param().abi(), pbc.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] pub unsafe fn SHCreateItemFromRelativeName<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>>(psiparent: Param0, pszname: Param1, pbc: Param2, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateItemFromRelativeName(psiparent: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR, pbc: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } SHCreateItemFromRelativeName(psiparent.into_param().abi(), pszname.into_param().abi(), pbc.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHCreateItemInKnownFolder<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(kfid: *const ::windows::core::GUID, dwkfflags: u32, pszitem: Param2, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateItemInKnownFolder(kfid: *const ::windows::core::GUID, dwkfflags: u32, pszitem: super::super::Foundation::PWSTR, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } SHCreateItemInKnownFolder(::core::mem::transmute(kfid), ::core::mem::transmute(dwkfflags), pszitem.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHCreateItemWithParent<'a, Param1: ::windows::core::IntoParam<'a, IShellFolder>>(pidlparent: *const Common::ITEMIDLIST, psfparent: Param1, pidl: *const Common::ITEMIDLIST, riid: *const ::windows::core::GUID, ppvitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateItemWithParent(pidlparent: *const Common::ITEMIDLIST, psfparent: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, riid: *const ::windows::core::GUID, ppvitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } SHCreateItemWithParent(::core::mem::transmute(pidlparent), psfparent.into_param().abi(), ::core::mem::transmute(pidl), ::core::mem::transmute(riid), ::core::mem::transmute(ppvitem)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SHCreateMemStream(pinit: *const u8, cbinit: u32) -> ::core::option::Option<super::super::System::Com::IStream> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateMemStream(pinit: *const u8, cbinit: u32) -> ::core::option::Option<super::super::System::Com::IStream>; } ::core::mem::transmute(SHCreateMemStream(::core::mem::transmute(pinit), ::core::mem::transmute(cbinit))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_System_Threading"))] #[inline] pub unsafe fn SHCreateProcessAsUserW(pscpi: *mut SHCREATEPROCESSINFOW) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateProcessAsUserW(pscpi: *mut SHCREATEPROCESSINFOW) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHCreateProcessAsUserW(::core::mem::transmute(pscpi))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHCreatePropSheetExtArray<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hkey: Param0, pszsubkey: Param1, max_iface: u32) -> HPSXA { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreatePropSheetExtArray(hkey: super::super::System::Registry::HKEY, pszsubkey: super::super::Foundation::PWSTR, max_iface: u32) -> HPSXA; } ::core::mem::transmute(SHCreatePropSheetExtArray(hkey.into_param().abi(), pszsubkey.into_param().abi(), ::core::mem::transmute(max_iface))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SHCreateQueryCancelAutoPlayMoniker() -> ::windows::core::Result<super::super::System::Com::IMoniker> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateQueryCancelAutoPlayMoniker(ppmoniker: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT; } let mut result__: <super::super::System::Com::IMoniker as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHCreateQueryCancelAutoPlayMoniker(&mut result__).from_abi::<super::super::System::Com::IMoniker>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHCreateShellFolderView(pcsfv: *const SFV_CREATE) -> ::windows::core::Result<IShellView> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateShellFolderView(pcsfv: *const ::core::mem::ManuallyDrop<SFV_CREATE>, ppsv: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT; } let mut result__: <IShellView as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHCreateShellFolderView(::core::mem::transmute(pcsfv), &mut result__).from_abi::<IShellView>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHCreateShellFolderViewEx(pcsfv: *const CSFV) -> ::windows::core::Result<IShellView> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateShellFolderViewEx(pcsfv: *const ::core::mem::ManuallyDrop<CSFV>, ppsv: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT; } let mut result__: <IShellView as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHCreateShellFolderViewEx(::core::mem::transmute(pcsfv), &mut result__).from_abi::<IShellView>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHCreateShellItem<'a, Param1: ::windows::core::IntoParam<'a, IShellFolder>>(pidlparent: *const Common::ITEMIDLIST, psfparent: Param1, pidl: *const Common::ITEMIDLIST) -> ::windows::core::Result<IShellItem> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateShellItem(pidlparent: *const Common::ITEMIDLIST, psfparent: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, ppsi: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT; } let mut result__: <IShellItem as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHCreateShellItem(::core::mem::transmute(pidlparent), psfparent.into_param().abi(), ::core::mem::transmute(pidl), &mut result__).from_abi::<IShellItem>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHCreateShellItemArray<'a, Param1: ::windows::core::IntoParam<'a, IShellFolder>>(pidlparent: *const Common::ITEMIDLIST, psf: Param1, cidl: u32, ppidl: *const *const Common::ITEMIDLIST) -> ::windows::core::Result<IShellItemArray> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateShellItemArray(pidlparent: *const Common::ITEMIDLIST, psf: ::windows::core::RawPtr, cidl: u32, ppidl: *const *const Common::ITEMIDLIST, ppsiitemarray: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT; } let mut result__: <IShellItemArray as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHCreateShellItemArray(::core::mem::transmute(pidlparent), psf.into_param().abi(), ::core::mem::transmute(cidl), ::core::mem::transmute(ppidl), &mut result__).from_abi::<IShellItemArray>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SHCreateShellItemArrayFromDataObject<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>>(pdo: Param0, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateShellItemArrayFromDataObject(pdo: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } SHCreateShellItemArrayFromDataObject(pdo.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHCreateShellItemArrayFromIDLists(cidl: u32, rgpidl: *const *const Common::ITEMIDLIST) -> ::windows::core::Result<IShellItemArray> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateShellItemArrayFromIDLists(cidl: u32, rgpidl: *const *const Common::ITEMIDLIST, ppsiitemarray: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT; } let mut result__: <IShellItemArray as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHCreateShellItemArrayFromIDLists(::core::mem::transmute(cidl), ::core::mem::transmute(rgpidl), &mut result__).from_abi::<IShellItemArray>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHCreateShellItemArrayFromShellItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(psi: Param0, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateShellItemArrayFromShellItem(psi: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } SHCreateShellItemArrayFromShellItem(psi.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SHCreateShellPalette<'a, Param0: ::windows::core::IntoParam<'a, super::super::Graphics::Gdi::HDC>>(hdc: Param0) -> super::super::Graphics::Gdi::HPALETTE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateShellPalette(hdc: super::super::Graphics::Gdi::HDC) -> super::super::Graphics::Gdi::HPALETTE; } ::core::mem::transmute(SHCreateShellPalette(hdc.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SHCreateStdEnumFmtEtc(cfmt: u32, afmt: *const super::super::System::Com::FORMATETC) -> ::windows::core::Result<super::super::System::Com::IEnumFORMATETC> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateStdEnumFmtEtc(cfmt: u32, afmt: *const super::super::System::Com::FORMATETC, ppenumformatetc: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT; } let mut result__: <super::super::System::Com::IEnumFORMATETC as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHCreateStdEnumFmtEtc(::core::mem::transmute(cfmt), ::core::mem::transmute(afmt), &mut result__).from_abi::<super::super::System::Com::IEnumFORMATETC>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] pub unsafe fn SHCreateStreamOnFileA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszfile: Param0, grfmode: u32) -> ::windows::core::Result<super::super::System::Com::IStream> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateStreamOnFileA(pszfile: super::super::Foundation::PSTR, grfmode: u32, ppstm: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT; } let mut result__: <super::super::System::Com::IStream as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHCreateStreamOnFileA(pszfile.into_param().abi(), ::core::mem::transmute(grfmode), &mut result__).from_abi::<super::super::System::Com::IStream>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] pub unsafe fn SHCreateStreamOnFileEx<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param4: ::windows::core::IntoParam<'a, super::super::System::Com::IStream>>(pszfile: Param0, grfmode: u32, dwattributes: u32, fcreate: Param3, pstmtemplate: Param4) -> ::windows::core::Result<super::super::System::Com::IStream> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateStreamOnFileEx(pszfile: super::super::Foundation::PWSTR, grfmode: u32, dwattributes: u32, fcreate: super::super::Foundation::BOOL, pstmtemplate: ::windows::core::RawPtr, ppstm: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT; } let mut result__: <super::super::System::Com::IStream as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHCreateStreamOnFileEx(pszfile.into_param().abi(), ::core::mem::transmute(grfmode), ::core::mem::transmute(dwattributes), fcreate.into_param().abi(), pstmtemplate.into_param().abi(), &mut result__).from_abi::<super::super::System::Com::IStream>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] pub unsafe fn SHCreateStreamOnFileW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszfile: Param0, grfmode: u32) -> ::windows::core::Result<super::super::System::Com::IStream> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateStreamOnFileW(pszfile: super::super::Foundation::PWSTR, grfmode: u32, ppstm: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT; } let mut result__: <super::super::System::Com::IStream as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHCreateStreamOnFileW(pszfile.into_param().abi(), ::core::mem::transmute(grfmode), &mut result__).from_abi::<super::super::System::Com::IStream>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Threading"))] #[inline] pub unsafe fn SHCreateThread(pfnthreadproc: ::core::option::Option<super::super::System::Threading::LPTHREAD_START_ROUTINE>, pdata: *const ::core::ffi::c_void, flags: u32, pfncallback: ::core::option::Option<super::super::System::Threading::LPTHREAD_START_ROUTINE>) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateThread(pfnthreadproc: ::windows::core::RawPtr, pdata: *const ::core::ffi::c_void, flags: u32, pfncallback: ::windows::core::RawPtr) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHCreateThread(::core::mem::transmute(pfnthreadproc), ::core::mem::transmute(pdata), ::core::mem::transmute(flags), ::core::mem::transmute(pfncallback))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHCreateThreadRef(pcref: *mut i32, ppunk: *mut ::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateThreadRef(pcref: *mut i32, ppunk: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT; } SHCreateThreadRef(::core::mem::transmute(pcref), ::core::mem::transmute(ppunk)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Threading"))] #[inline] pub unsafe fn SHCreateThreadWithHandle(pfnthreadproc: ::core::option::Option<super::super::System::Threading::LPTHREAD_START_ROUTINE>, pdata: *const ::core::ffi::c_void, flags: u32, pfncallback: ::core::option::Option<super::super::System::Threading::LPTHREAD_START_ROUTINE>, phandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHCreateThreadWithHandle(pfnthreadproc: ::windows::core::RawPtr, pdata: *const ::core::ffi::c_void, flags: u32, pfncallback: ::windows::core::RawPtr, phandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHCreateThreadWithHandle(::core::mem::transmute(pfnthreadproc), ::core::mem::transmute(pdata), ::core::mem::transmute(flags), ::core::mem::transmute(pfncallback), ::core::mem::transmute(phandle))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct SHDESCRIPTIONID { pub dwDescriptionId: SHDID_ID, pub clsid: ::windows::core::GUID, } impl SHDESCRIPTIONID {} impl ::core::default::Default for SHDESCRIPTIONID { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for SHDESCRIPTIONID { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SHDESCRIPTIONID").field("dwDescriptionId", &self.dwDescriptionId).field("clsid", &self.clsid).finish() } } impl ::core::cmp::PartialEq for SHDESCRIPTIONID { fn eq(&self, other: &Self) -> bool { self.dwDescriptionId == other.dwDescriptionId && self.clsid == other.clsid } } impl ::core::cmp::Eq for SHDESCRIPTIONID {} unsafe impl ::windows::core::Abi for SHDESCRIPTIONID { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SHDID_ID(pub i32); pub const SHDID_ROOT_REGITEM: SHDID_ID = SHDID_ID(1i32); pub const SHDID_FS_FILE: SHDID_ID = SHDID_ID(2i32); pub const SHDID_FS_DIRECTORY: SHDID_ID = SHDID_ID(3i32); pub const SHDID_FS_OTHER: SHDID_ID = SHDID_ID(4i32); pub const SHDID_COMPUTER_DRIVE35: SHDID_ID = SHDID_ID(5i32); pub const SHDID_COMPUTER_DRIVE525: SHDID_ID = SHDID_ID(6i32); pub const SHDID_COMPUTER_REMOVABLE: SHDID_ID = SHDID_ID(7i32); pub const SHDID_COMPUTER_FIXED: SHDID_ID = SHDID_ID(8i32); pub const SHDID_COMPUTER_NETDRIVE: SHDID_ID = SHDID_ID(9i32); pub const SHDID_COMPUTER_CDROM: SHDID_ID = SHDID_ID(10i32); pub const SHDID_COMPUTER_RAMDISK: SHDID_ID = SHDID_ID(11i32); pub const SHDID_COMPUTER_OTHER: SHDID_ID = SHDID_ID(12i32); pub const SHDID_NET_DOMAIN: SHDID_ID = SHDID_ID(13i32); pub const SHDID_NET_SERVER: SHDID_ID = SHDID_ID(14i32); pub const SHDID_NET_SHARE: SHDID_ID = SHDID_ID(15i32); pub const SHDID_NET_RESTOFNET: SHDID_ID = SHDID_ID(16i32); pub const SHDID_NET_OTHER: SHDID_ID = SHDID_ID(17i32); pub const SHDID_COMPUTER_IMAGING: SHDID_ID = SHDID_ID(18i32); pub const SHDID_COMPUTER_AUDIO: SHDID_ID = SHDID_ID(19i32); pub const SHDID_COMPUTER_SHAREDDOCS: SHDID_ID = SHDID_ID(20i32); pub const SHDID_MOBILE_DEVICE: SHDID_ID = SHDID_ID(21i32); pub const SHDID_REMOTE_DESKTOP_DRIVE: SHDID_ID = SHDID_ID(22i32); impl ::core::convert::From<i32> for SHDID_ID { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SHDID_ID { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[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: u32, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl SHDRAGIMAGE {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::default::Default for SHDRAGIMAGE { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::fmt::Debug for SHDRAGIMAGE { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SHDRAGIMAGE").field("sizeDragImage", &self.sizeDragImage).field("ptOffset", &self.ptOffset).field("hbmpDragImage", &self.hbmpDragImage).field("crColorKey", &self.crColorKey).finish() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::cmp::PartialEq for SHDRAGIMAGE { fn eq(&self, other: &Self) -> bool { self.sizeDragImage == other.sizeDragImage && self.ptOffset == other.ptOffset && self.hbmpDragImage == other.hbmpDragImage && self.crColorKey == other.crColorKey } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::cmp::Eq for SHDRAGIMAGE {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] unsafe impl ::windows::core::Abi for SHDRAGIMAGE { type Abi = Self; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn SHDefExtractIconA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(psziconfile: Param0, iindex: i32, uflags: u32, phiconlarge: *mut super::WindowsAndMessaging::HICON, phiconsmall: *mut super::WindowsAndMessaging::HICON, niconsize: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHDefExtractIconA(psziconfile: super::super::Foundation::PSTR, iindex: i32, uflags: u32, phiconlarge: *mut super::WindowsAndMessaging::HICON, phiconsmall: *mut super::WindowsAndMessaging::HICON, niconsize: u32) -> ::windows::core::HRESULT; } SHDefExtractIconA(psziconfile.into_param().abi(), ::core::mem::transmute(iindex), ::core::mem::transmute(uflags), ::core::mem::transmute(phiconlarge), ::core::mem::transmute(phiconsmall), ::core::mem::transmute(niconsize)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn SHDefExtractIconW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(psziconfile: Param0, iindex: i32, uflags: u32, phiconlarge: *mut super::WindowsAndMessaging::HICON, phiconsmall: *mut super::WindowsAndMessaging::HICON, niconsize: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHDefExtractIconW(psziconfile: super::super::Foundation::PWSTR, iindex: i32, uflags: u32, phiconlarge: *mut super::WindowsAndMessaging::HICON, phiconsmall: *mut super::WindowsAndMessaging::HICON, niconsize: u32) -> ::windows::core::HRESULT; } SHDefExtractIconW(psziconfile.into_param().abi(), ::core::mem::transmute(iindex), ::core::mem::transmute(uflags), ::core::mem::transmute(phiconlarge), ::core::mem::transmute(phiconsmall), ::core::mem::transmute(niconsize)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHDeleteEmptyKeyA<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(hkey: Param0, pszsubkey: Param1) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHDeleteEmptyKeyA(hkey: super::super::System::Registry::HKEY, pszsubkey: super::super::Foundation::PSTR) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHDeleteEmptyKeyA(hkey.into_param().abi(), pszsubkey.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHDeleteEmptyKeyW<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hkey: Param0, pszsubkey: Param1) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHDeleteEmptyKeyW(hkey: super::super::System::Registry::HKEY, pszsubkey: super::super::Foundation::PWSTR) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHDeleteEmptyKeyW(hkey.into_param().abi(), pszsubkey.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHDeleteKeyA<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(hkey: Param0, pszsubkey: Param1) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHDeleteKeyA(hkey: super::super::System::Registry::HKEY, pszsubkey: super::super::Foundation::PSTR) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHDeleteKeyA(hkey.into_param().abi(), pszsubkey.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHDeleteKeyW<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hkey: Param0, pszsubkey: Param1) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHDeleteKeyW(hkey: super::super::System::Registry::HKEY, pszsubkey: super::super::Foundation::PWSTR) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHDeleteKeyW(hkey.into_param().abi(), pszsubkey.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHDeleteValueA<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(hkey: Param0, pszsubkey: Param1, pszvalue: Param2) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHDeleteValueA(hkey: super::super::System::Registry::HKEY, pszsubkey: super::super::Foundation::PSTR, pszvalue: super::super::Foundation::PSTR) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHDeleteValueA(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHDeleteValueW<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hkey: Param0, pszsubkey: Param1, pszvalue: Param2) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHDeleteValueW(hkey: super::super::System::Registry::HKEY, pszsubkey: super::super::Foundation::PWSTR, pszvalue: super::super::Foundation::PWSTR) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHDeleteValueW(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHDestroyPropSheetExtArray<'a, Param0: ::windows::core::IntoParam<'a, HPSXA>>(hpsxa: Param0) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHDestroyPropSheetExtArray(hpsxa: HPSXA); } ::core::mem::transmute(SHDestroyPropSheetExtArray(hpsxa.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] pub unsafe fn SHDoDragDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>, Param2: ::windows::core::IntoParam<'a, super::super::System::Ole::IDropSource>>(hwnd: Param0, pdata: Param1, pdsrc: Param2, dweffect: u32) -> ::windows::core::Result<u32> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHDoDragDrop(hwnd: super::super::Foundation::HWND, pdata: ::windows::core::RawPtr, pdsrc: ::windows::core::RawPtr, dweffect: u32, pdweffect: *mut u32) -> ::windows::core::HRESULT; } let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHDoDragDrop(hwnd.into_param().abi(), pdata.into_param().abi(), pdsrc.into_param().abi(), ::core::mem::transmute(dweffect), &mut result__).from_abi::<u32>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SHELLBROWSERSHOWCONTROL(pub i32); pub const SBSC_HIDE: SHELLBROWSERSHOWCONTROL = SHELLBROWSERSHOWCONTROL(0i32); pub const SBSC_SHOW: SHELLBROWSERSHOWCONTROL = SHELLBROWSERSHOWCONTROL(1i32); pub const SBSC_TOGGLE: SHELLBROWSERSHOWCONTROL = SHELLBROWSERSHOWCONTROL(2i32); pub const SBSC_QUERY: SHELLBROWSERSHOWCONTROL = SHELLBROWSERSHOWCONTROL(3i32); impl ::core::convert::From<i32> for SHELLBROWSERSHOWCONTROL { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SHELLBROWSERSHOWCONTROL { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[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: super::super::Foundation::PSTR, pub lpFile: super::super::Foundation::PSTR, pub lpParameters: super::super::Foundation::PSTR, pub lpDirectory: super::super::Foundation::PSTR, pub nShow: i32, pub hInstApp: super::super::Foundation::HINSTANCE, pub lpIDList: *mut ::core::ffi::c_void, pub lpClass: super::super::Foundation::PSTR, pub hkeyClass: super::super::System::Registry::HKEY, pub dwHotKey: u32, pub Anonymous: SHELLEXECUTEINFOA_0, pub hProcess: super::super::Foundation::HANDLE, } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl SHELLEXECUTEINFOA {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::default::Default for SHELLEXECUTEINFOA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::cmp::PartialEq for SHELLEXECUTEINFOA { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::cmp::Eq for SHELLEXECUTEINFOA {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] unsafe impl ::windows::core::Abi for SHELLEXECUTEINFOA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[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 = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl SHELLEXECUTEINFOA_0 {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::default::Default for SHELLEXECUTEINFOA_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::cmp::PartialEq for SHELLEXECUTEINFOA_0 { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::cmp::Eq for SHELLEXECUTEINFOA_0 {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] unsafe impl ::windows::core::Abi for SHELLEXECUTEINFOA_0 { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(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: super::super::Foundation::PSTR, pub lpFile: super::super::Foundation::PSTR, pub lpParameters: super::super::Foundation::PSTR, pub lpDirectory: super::super::Foundation::PSTR, pub nShow: i32, pub hInstApp: super::super::Foundation::HINSTANCE, pub lpIDList: *mut ::core::ffi::c_void, pub lpClass: super::super::Foundation::PSTR, pub hkeyClass: super::super::System::Registry::HKEY, pub dwHotKey: u32, pub Anonymous: SHELLEXECUTEINFOA_0, pub hProcess: super::super::Foundation::HANDLE, } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl SHELLEXECUTEINFOA {} #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::default::Default for SHELLEXECUTEINFOA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::cmp::PartialEq for SHELLEXECUTEINFOA { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::cmp::Eq for SHELLEXECUTEINFOA {} #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] unsafe impl ::windows::core::Abi for SHELLEXECUTEINFOA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(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(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl SHELLEXECUTEINFOA_0 {} #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::default::Default for SHELLEXECUTEINFOA_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::cmp::PartialEq for SHELLEXECUTEINFOA_0 { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::cmp::Eq for SHELLEXECUTEINFOA_0 {} #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] unsafe impl ::windows::core::Abi for SHELLEXECUTEINFOA_0 { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[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: super::super::Foundation::PWSTR, pub lpFile: super::super::Foundation::PWSTR, pub lpParameters: super::super::Foundation::PWSTR, pub lpDirectory: super::super::Foundation::PWSTR, pub nShow: i32, pub hInstApp: super::super::Foundation::HINSTANCE, pub lpIDList: *mut ::core::ffi::c_void, pub lpClass: super::super::Foundation::PWSTR, pub hkeyClass: super::super::System::Registry::HKEY, pub dwHotKey: u32, pub Anonymous: SHELLEXECUTEINFOW_0, pub hProcess: super::super::Foundation::HANDLE, } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl SHELLEXECUTEINFOW {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::default::Default for SHELLEXECUTEINFOW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::cmp::PartialEq for SHELLEXECUTEINFOW { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::cmp::Eq for SHELLEXECUTEINFOW {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] unsafe impl ::windows::core::Abi for SHELLEXECUTEINFOW { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[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 = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl SHELLEXECUTEINFOW_0 {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::default::Default for SHELLEXECUTEINFOW_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::cmp::PartialEq for SHELLEXECUTEINFOW_0 { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::cmp::Eq for SHELLEXECUTEINFOW_0 {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] unsafe impl ::windows::core::Abi for SHELLEXECUTEINFOW_0 { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(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: super::super::Foundation::PWSTR, pub lpFile: super::super::Foundation::PWSTR, pub lpParameters: super::super::Foundation::PWSTR, pub lpDirectory: super::super::Foundation::PWSTR, pub nShow: i32, pub hInstApp: super::super::Foundation::HINSTANCE, pub lpIDList: *mut ::core::ffi::c_void, pub lpClass: super::super::Foundation::PWSTR, pub hkeyClass: super::super::System::Registry::HKEY, pub dwHotKey: u32, pub Anonymous: SHELLEXECUTEINFOW_0, pub hProcess: super::super::Foundation::HANDLE, } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl SHELLEXECUTEINFOW {} #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::default::Default for SHELLEXECUTEINFOW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::cmp::PartialEq for SHELLEXECUTEINFOW { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::cmp::Eq for SHELLEXECUTEINFOW {} #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] unsafe impl ::windows::core::Abi for SHELLEXECUTEINFOW { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(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(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl SHELLEXECUTEINFOW_0 {} #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::default::Default for SHELLEXECUTEINFOW_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::cmp::PartialEq for SHELLEXECUTEINFOW_0 { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] impl ::core::cmp::Eq for SHELLEXECUTEINFOW_0 {} #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] unsafe impl ::windows::core::Abi for SHELLEXECUTEINFOW_0 { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] pub struct SHELLFLAGSTATE { pub _bitfield: i32, } impl SHELLFLAGSTATE {} impl ::core::default::Default for SHELLFLAGSTATE { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::cmp::PartialEq for SHELLFLAGSTATE { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } impl ::core::cmp::Eq for SHELLFLAGSTATE {} unsafe impl ::windows::core::Abi for SHELLFLAGSTATE { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] 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 SHELLSTATEA {} impl ::core::default::Default for SHELLSTATEA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::cmp::PartialEq for SHELLSTATEA { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } impl ::core::cmp::Eq for SHELLSTATEA {} unsafe impl ::windows::core::Abi for SHELLSTATEA { type Abi = Self; } pub const SHELLSTATEVERSION_IE4: u32 = 9u32; pub const SHELLSTATEVERSION_WIN2K: u32 = 10u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] 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 SHELLSTATEW {} impl ::core::default::Default for SHELLSTATEW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::cmp::PartialEq for SHELLSTATEW { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } impl ::core::cmp::Eq for SHELLSTATEW {} unsafe impl ::windows::core::Abi for SHELLSTATEW { type Abi = Self; } pub const SHELL_E_WRONG_BITDEPTH: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927486i32 as _); #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct SHELL_ITEM_RESOURCE { pub guidType: ::windows::core::GUID, pub szName: [u16; 260], } impl SHELL_ITEM_RESOURCE {} impl ::core::default::Default for SHELL_ITEM_RESOURCE { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for SHELL_ITEM_RESOURCE { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SHELL_ITEM_RESOURCE").field("guidType", &self.guidType).field("szName", &self.szName).finish() } } impl ::core::cmp::PartialEq for SHELL_ITEM_RESOURCE { fn eq(&self, other: &Self) -> bool { self.guidType == other.guidType && self.szName == other.szName } } impl ::core::cmp::Eq for SHELL_ITEM_RESOURCE {} unsafe impl ::windows::core::Abi for SHELL_ITEM_RESOURCE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SHELL_LINK_DATA_FLAGS(pub i32); pub const SLDF_DEFAULT: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(0i32); pub const SLDF_HAS_ID_LIST: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(1i32); pub const SLDF_HAS_LINK_INFO: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(2i32); pub const SLDF_HAS_NAME: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(4i32); pub const SLDF_HAS_RELPATH: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(8i32); pub const SLDF_HAS_WORKINGDIR: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(16i32); pub const SLDF_HAS_ARGS: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(32i32); pub const SLDF_HAS_ICONLOCATION: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(64i32); pub const SLDF_UNICODE: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(128i32); pub const SLDF_FORCE_NO_LINKINFO: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(256i32); pub const SLDF_HAS_EXP_SZ: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(512i32); pub const SLDF_RUN_IN_SEPARATE: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(1024i32); pub const SLDF_HAS_DARWINID: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(4096i32); pub const SLDF_RUNAS_USER: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(8192i32); pub const SLDF_HAS_EXP_ICON_SZ: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(16384i32); pub const SLDF_NO_PIDL_ALIAS: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(32768i32); pub const SLDF_FORCE_UNCNAME: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(65536i32); pub const SLDF_RUN_WITH_SHIMLAYER: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(131072i32); pub const SLDF_FORCE_NO_LINKTRACK: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(262144i32); pub const SLDF_ENABLE_TARGET_METADATA: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(524288i32); pub const SLDF_DISABLE_LINK_PATH_TRACKING: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(1048576i32); pub const SLDF_DISABLE_KNOWNFOLDER_RELATIVE_TRACKING: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(2097152i32); pub const SLDF_NO_KF_ALIAS: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(4194304i32); pub const SLDF_ALLOW_LINK_TO_LINK: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(8388608i32); pub const SLDF_UNALIAS_ON_SAVE: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(16777216i32); pub const SLDF_PREFER_ENVIRONMENT_PATH: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(33554432i32); pub const SLDF_KEEP_LOCAL_IDLIST_FOR_UNC_TARGET: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(67108864i32); pub const SLDF_PERSIST_VOLUME_ID_RELATIVE: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(134217728i32); pub const SLDF_VALID: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(268433407i32); pub const SLDF_RESERVED: SHELL_LINK_DATA_FLAGS = SHELL_LINK_DATA_FLAGS(-2147483648i32); impl ::core::convert::From<i32> for SHELL_LINK_DATA_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SHELL_LINK_DATA_FLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SHELL_UI_COMPONENT(pub i32); pub const SHELL_UI_COMPONENT_TASKBARS: SHELL_UI_COMPONENT = SHELL_UI_COMPONENT(0i32); pub const SHELL_UI_COMPONENT_NOTIFICATIONAREA: SHELL_UI_COMPONENT = SHELL_UI_COMPONENT(1i32); pub const SHELL_UI_COMPONENT_DESKBAND: SHELL_UI_COMPONENT = SHELL_UI_COMPONENT(2i32); impl ::core::convert::From<i32> for SHELL_UI_COMPONENT { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SHELL_UI_COMPONENT { type Abi = Self; } pub const SHERB_NOCONFIRMATION: u32 = 1u32; pub const SHERB_NOPROGRESSUI: u32 = 2u32; pub const SHERB_NOSOUND: u32 = 4u32; #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHEmptyRecycleBinA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(hwnd: Param0, pszrootpath: Param1, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHEmptyRecycleBinA(hwnd: super::super::Foundation::HWND, pszrootpath: super::super::Foundation::PSTR, dwflags: u32) -> ::windows::core::HRESULT; } SHEmptyRecycleBinA(hwnd.into_param().abi(), pszrootpath.into_param().abi(), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHEmptyRecycleBinW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hwnd: Param0, pszrootpath: Param1, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHEmptyRecycleBinW(hwnd: super::super::Foundation::HWND, pszrootpath: super::super::Foundation::PWSTR, dwflags: u32) -> ::windows::core::HRESULT; } SHEmptyRecycleBinW(hwnd.into_param().abi(), pszrootpath.into_param().abi(), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHEnumKeyExA<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>>(hkey: Param0, dwindex: u32, pszname: super::super::Foundation::PSTR, pcchname: *mut u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHEnumKeyExA(hkey: super::super::System::Registry::HKEY, dwindex: u32, pszname: super::super::Foundation::PSTR, pcchname: *mut u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHEnumKeyExA(hkey.into_param().abi(), ::core::mem::transmute(dwindex), ::core::mem::transmute(pszname), ::core::mem::transmute(pcchname))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHEnumKeyExW<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>>(hkey: Param0, dwindex: u32, pszname: super::super::Foundation::PWSTR, pcchname: *mut u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHEnumKeyExW(hkey: super::super::System::Registry::HKEY, dwindex: u32, pszname: super::super::Foundation::PWSTR, pcchname: *mut u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHEnumKeyExW(hkey.into_param().abi(), ::core::mem::transmute(dwindex), ::core::mem::transmute(pszname), ::core::mem::transmute(pcchname))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHEnumValueA<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>>(hkey: Param0, dwindex: u32, pszvaluename: super::super::Foundation::PSTR, pcchvaluename: *mut u32, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHEnumValueA(hkey: super::super::System::Registry::HKEY, dwindex: u32, pszvaluename: super::super::Foundation::PSTR, pcchvaluename: *mut u32, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHEnumValueA(hkey.into_param().abi(), ::core::mem::transmute(dwindex), ::core::mem::transmute(pszvaluename), ::core::mem::transmute(pcchvaluename), ::core::mem::transmute(pdwtype), ::core::mem::transmute(pvdata), ::core::mem::transmute(pcbdata))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHEnumValueW<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>>(hkey: Param0, dwindex: u32, pszvaluename: super::super::Foundation::PWSTR, pcchvaluename: *mut u32, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHEnumValueW(hkey: super::super::System::Registry::HKEY, dwindex: u32, pszvaluename: super::super::Foundation::PWSTR, pcchvaluename: *mut u32, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHEnumValueW(hkey.into_param().abi(), ::core::mem::transmute(dwindex), ::core::mem::transmute(pszvaluename), ::core::mem::transmute(pcchvaluename), ::core::mem::transmute(pdwtype), ::core::mem::transmute(pvdata), ::core::mem::transmute(pcbdata))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHEnumerateUnreadMailAccountsW<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>>(hkeyuser: Param0, dwindex: u32, pszmailaddress: super::super::Foundation::PWSTR, cchmailaddress: i32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHEnumerateUnreadMailAccountsW(hkeyuser: super::super::System::Registry::HKEY, dwindex: u32, pszmailaddress: super::super::Foundation::PWSTR, cchmailaddress: i32) -> ::windows::core::HRESULT; } SHEnumerateUnreadMailAccountsW(hkeyuser.into_param().abi(), ::core::mem::transmute(dwindex), ::core::mem::transmute(pszmailaddress), ::core::mem::transmute(cchmailaddress)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHEvaluateSystemCommandTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszcmdtemplate: Param0, ppszapplication: *mut super::super::Foundation::PWSTR, ppszcommandline: *mut super::super::Foundation::PWSTR, ppszparameters: *mut super::super::Foundation::PWSTR) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHEvaluateSystemCommandTemplate(pszcmdtemplate: super::super::Foundation::PWSTR, ppszapplication: *mut super::super::Foundation::PWSTR, ppszcommandline: *mut super::super::Foundation::PWSTR, ppszparameters: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } SHEvaluateSystemCommandTemplate(pszcmdtemplate.into_param().abi(), ::core::mem::transmute(ppszapplication), ::core::mem::transmute(ppszcommandline), ::core::mem::transmute(ppszparameters)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub struct SHFILEINFOA { pub hIcon: super::WindowsAndMessaging::HICON, pub iIcon: i32, pub dwAttributes: u32, pub szDisplayName: [super::super::Foundation::CHAR; 260], pub szTypeName: [super::super::Foundation::CHAR; 80], } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl SHFILEINFOA {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::default::Default for SHFILEINFOA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::fmt::Debug for SHFILEINFOA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SHFILEINFOA").field("hIcon", &self.hIcon).field("iIcon", &self.iIcon).field("dwAttributes", &self.dwAttributes).field("szDisplayName", &self.szDisplayName).field("szTypeName", &self.szTypeName).finish() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::PartialEq for SHFILEINFOA { fn eq(&self, other: &Self) -> bool { self.hIcon == other.hIcon && self.iIcon == other.iIcon && self.dwAttributes == other.dwAttributes && self.szDisplayName == other.szDisplayName && self.szTypeName == other.szTypeName } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::Eq for SHFILEINFOA {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] unsafe impl ::windows::core::Abi for SHFILEINFOA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub struct SHFILEINFOA { pub hIcon: super::WindowsAndMessaging::HICON, pub iIcon: i32, pub dwAttributes: u32, pub szDisplayName: [super::super::Foundation::CHAR; 260], pub szTypeName: [super::super::Foundation::CHAR; 80], } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl SHFILEINFOA {} #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::default::Default for SHFILEINFOA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::PartialEq for SHFILEINFOA { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::Eq for SHFILEINFOA {} #[cfg(any(target_arch = "x86",))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] unsafe impl ::windows::core::Abi for SHFILEINFOA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[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 = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl SHFILEINFOW {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::default::Default for SHFILEINFOW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::fmt::Debug for SHFILEINFOW { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SHFILEINFOW").field("hIcon", &self.hIcon).field("iIcon", &self.iIcon).field("dwAttributes", &self.dwAttributes).field("szDisplayName", &self.szDisplayName).field("szTypeName", &self.szTypeName).finish() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::cmp::PartialEq for SHFILEINFOW { fn eq(&self, other: &Self) -> bool { self.hIcon == other.hIcon && self.iIcon == other.iIcon && self.dwAttributes == other.dwAttributes && self.szDisplayName == other.szDisplayName && self.szTypeName == other.szTypeName } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::cmp::Eq for SHFILEINFOW {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] unsafe impl ::windows::core::Abi for SHFILEINFOW { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(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(any(target_arch = "x86",))] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl SHFILEINFOW {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::default::Default for SHFILEINFOW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::cmp::PartialEq for SHFILEINFOW { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::cmp::Eq for SHFILEINFOW {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] unsafe impl ::windows::core::Abi for SHFILEINFOW { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[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: super::super::Foundation::PSTR, } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl SHFILEOPSTRUCTA {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for SHFILEOPSTRUCTA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for SHFILEOPSTRUCTA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SHFILEOPSTRUCTA") .field("hwnd", &self.hwnd) .field("wFunc", &self.wFunc) .field("pFrom", &self.pFrom) .field("pTo", &self.pTo) .field("fFlags", &self.fFlags) .field("fAnyOperationsAborted", &self.fAnyOperationsAborted) .field("hNameMappings", &self.hNameMappings) .field("lpszProgressTitle", &self.lpszProgressTitle) .finish() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for SHFILEOPSTRUCTA { fn eq(&self, other: &Self) -> bool { self.hwnd == other.hwnd && self.wFunc == other.wFunc && self.pFrom == other.pFrom && self.pTo == other.pTo && self.fFlags == other.fFlags && self.fAnyOperationsAborted == other.fAnyOperationsAborted && self.hNameMappings == other.hNameMappings && self.lpszProgressTitle == other.lpszProgressTitle } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for SHFILEOPSTRUCTA {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for SHFILEOPSTRUCTA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(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: super::super::Foundation::PSTR, } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl SHFILEOPSTRUCTA {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for SHFILEOPSTRUCTA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for SHFILEOPSTRUCTA { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for SHFILEOPSTRUCTA {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for SHFILEOPSTRUCTA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] pub struct SHFILEOPSTRUCTW { pub hwnd: super::super::Foundation::HWND, pub wFunc: u32, pub pFrom: super::super::Foundation::PWSTR, pub pTo: super::super::Foundation::PWSTR, pub fFlags: u16, pub fAnyOperationsAborted: super::super::Foundation::BOOL, pub hNameMappings: *mut ::core::ffi::c_void, pub lpszProgressTitle: super::super::Foundation::PWSTR, } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl SHFILEOPSTRUCTW {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for SHFILEOPSTRUCTW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for SHFILEOPSTRUCTW { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SHFILEOPSTRUCTW") .field("hwnd", &self.hwnd) .field("wFunc", &self.wFunc) .field("pFrom", &self.pFrom) .field("pTo", &self.pTo) .field("fFlags", &self.fFlags) .field("fAnyOperationsAborted", &self.fAnyOperationsAborted) .field("hNameMappings", &self.hNameMappings) .field("lpszProgressTitle", &self.lpszProgressTitle) .finish() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for SHFILEOPSTRUCTW { fn eq(&self, other: &Self) -> bool { self.hwnd == other.hwnd && self.wFunc == other.wFunc && self.pFrom == other.pFrom && self.pTo == other.pTo && self.fFlags == other.fFlags && self.fAnyOperationsAborted == other.fAnyOperationsAborted && self.hNameMappings == other.hNameMappings && self.lpszProgressTitle == other.lpszProgressTitle } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for SHFILEOPSTRUCTW {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for SHFILEOPSTRUCTW { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] pub struct SHFILEOPSTRUCTW { pub hwnd: super::super::Foundation::HWND, pub wFunc: u32, pub pFrom: super::super::Foundation::PWSTR, pub pTo: super::super::Foundation::PWSTR, pub fFlags: u16, pub fAnyOperationsAborted: super::super::Foundation::BOOL, pub hNameMappings: *mut ::core::ffi::c_void, pub lpszProgressTitle: super::super::Foundation::PWSTR, } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl SHFILEOPSTRUCTW {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for SHFILEOPSTRUCTW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for SHFILEOPSTRUCTW { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for SHFILEOPSTRUCTW {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for SHFILEOPSTRUCTW { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SHFMT_ID(pub u32); pub const SHFMT_ID_DEFAULT: SHFMT_ID = SHFMT_ID(65535u32); impl ::core::convert::From<u32> for SHFMT_ID { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SHFMT_ID { type Abi = Self; } impl ::core::ops::BitOr for SHFMT_ID { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for SHFMT_ID { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for SHFMT_ID { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for SHFMT_ID { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for SHFMT_ID { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SHFMT_OPT(pub i32); pub const SHFMT_OPT_NONE: SHFMT_OPT = SHFMT_OPT(0i32); pub const SHFMT_OPT_FULL: SHFMT_OPT = SHFMT_OPT(1i32); pub const SHFMT_OPT_SYSONLY: SHFMT_OPT = SHFMT_OPT(2i32); impl ::core::convert::From<i32> for SHFMT_OPT { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SHFMT_OPT { type Abi = Self; } impl ::core::ops::BitOr for SHFMT_OPT { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for SHFMT_OPT { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for SHFMT_OPT { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for SHFMT_OPT { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for SHFMT_OPT { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SHFMT_RET(pub u32); pub const SHFMT_ERROR: SHFMT_RET = SHFMT_RET(4294967295u32); pub const SHFMT_CANCEL: SHFMT_RET = SHFMT_RET(4294967294u32); pub const SHFMT_NOFORMAT: SHFMT_RET = SHFMT_RET(4294967293u32); impl ::core::convert::From<u32> for SHFMT_RET { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SHFMT_RET { type Abi = Self; } impl ::core::ops::BitOr for SHFMT_RET { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for SHFMT_RET { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for SHFMT_RET { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for SHFMT_RET { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for SHFMT_RET { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct SHFOLDERCUSTOMSETTINGS { pub dwSize: u32, pub dwMask: u32, pub pvid: *mut ::windows::core::GUID, pub pszWebViewTemplate: super::super::Foundation::PWSTR, pub cchWebViewTemplate: u32, pub pszWebViewTemplateVersion: super::super::Foundation::PWSTR, pub pszInfoTip: super::super::Foundation::PWSTR, pub cchInfoTip: u32, pub pclsid: *mut ::windows::core::GUID, pub dwFlags: u32, pub pszIconFile: super::super::Foundation::PWSTR, pub cchIconFile: u32, pub iIconIndex: i32, pub pszLogo: super::super::Foundation::PWSTR, pub cchLogo: u32, } #[cfg(feature = "Win32_Foundation")] impl SHFOLDERCUSTOMSETTINGS {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for SHFOLDERCUSTOMSETTINGS { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for SHFOLDERCUSTOMSETTINGS { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SHFOLDERCUSTOMSETTINGS") .field("dwSize", &self.dwSize) .field("dwMask", &self.dwMask) .field("pvid", &self.pvid) .field("pszWebViewTemplate", &self.pszWebViewTemplate) .field("cchWebViewTemplate", &self.cchWebViewTemplate) .field("pszWebViewTemplateVersion", &self.pszWebViewTemplateVersion) .field("pszInfoTip", &self.pszInfoTip) .field("cchInfoTip", &self.cchInfoTip) .field("pclsid", &self.pclsid) .field("dwFlags", &self.dwFlags) .field("pszIconFile", &self.pszIconFile) .field("cchIconFile", &self.cchIconFile) .field("iIconIndex", &self.iIconIndex) .field("pszLogo", &self.pszLogo) .field("cchLogo", &self.cchLogo) .finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for SHFOLDERCUSTOMSETTINGS { fn eq(&self, other: &Self) -> bool { self.dwSize == other.dwSize && self.dwMask == other.dwMask && self.pvid == other.pvid && self.pszWebViewTemplate == other.pszWebViewTemplate && self.cchWebViewTemplate == other.cchWebViewTemplate && self.pszWebViewTemplateVersion == other.pszWebViewTemplateVersion && self.pszInfoTip == other.pszInfoTip && self.cchInfoTip == other.cchInfoTip && self.pclsid == other.pclsid && self.dwFlags == other.dwFlags && self.pszIconFile == other.pszIconFile && self.cchIconFile == other.cchIconFile && self.iIconIndex == other.iIconIndex && self.pszLogo == other.pszLogo && self.cchLogo == other.cchLogo } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for SHFOLDERCUSTOMSETTINGS {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for SHFOLDERCUSTOMSETTINGS { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHFileOperationA(lpfileop: *mut SHFILEOPSTRUCTA) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHFileOperationA(lpfileop: *mut SHFILEOPSTRUCTA) -> i32; } ::core::mem::transmute(SHFileOperationA(::core::mem::transmute(lpfileop))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHFileOperationW(lpfileop: *mut SHFILEOPSTRUCTW) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHFileOperationW(lpfileop: *mut SHFILEOPSTRUCTW) -> i32; } ::core::mem::transmute(SHFileOperationW(::core::mem::transmute(lpfileop))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHFindFiles(pidlfolder: *const Common::ITEMIDLIST, pidlsavefile: *const Common::ITEMIDLIST) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHFindFiles(pidlfolder: *const Common::ITEMIDLIST, pidlsavefile: *const Common::ITEMIDLIST) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHFindFiles(::core::mem::transmute(pidlfolder), ::core::mem::transmute(pidlsavefile))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn SHFind_InitMenuPopup<'a, Param0: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HMENU>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(hmenu: Param0, hwndowner: Param1, idcmdfirst: u32, idcmdlast: u32) -> ::core::option::Option<IContextMenu> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHFind_InitMenuPopup(hmenu: super::WindowsAndMessaging::HMENU, hwndowner: super::super::Foundation::HWND, idcmdfirst: u32, idcmdlast: u32) -> ::core::option::Option<IContextMenu>; } ::core::mem::transmute(SHFind_InitMenuPopup(hmenu.into_param().abi(), hwndowner.into_param().abi(), ::core::mem::transmute(idcmdfirst), ::core::mem::transmute(idcmdlast))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHFlushSFCache() { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHFlushSFCache(); } ::core::mem::transmute(SHFlushSFCache()) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHFormatDateTimeA(pft: *const super::super::Foundation::FILETIME, pdwflags: *mut u32, pszbuf: super::super::Foundation::PSTR, cchbuf: u32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHFormatDateTimeA(pft: *const super::super::Foundation::FILETIME, pdwflags: *mut u32, pszbuf: super::super::Foundation::PSTR, cchbuf: u32) -> i32; } ::core::mem::transmute(SHFormatDateTimeA(::core::mem::transmute(pft), ::core::mem::transmute(pdwflags), ::core::mem::transmute(pszbuf), ::core::mem::transmute(cchbuf))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHFormatDateTimeW(pft: *const super::super::Foundation::FILETIME, pdwflags: *mut u32, pszbuf: super::super::Foundation::PWSTR, cchbuf: u32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHFormatDateTimeW(pft: *const super::super::Foundation::FILETIME, pdwflags: *mut u32, pszbuf: super::super::Foundation::PWSTR, cchbuf: u32) -> i32; } ::core::mem::transmute(SHFormatDateTimeW(::core::mem::transmute(pft), ::core::mem::transmute(pdwflags), ::core::mem::transmute(pszbuf), ::core::mem::transmute(cchbuf))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHFormatDrive<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(hwnd: Param0, drive: u32, fmtid: SHFMT_ID, options: SHFMT_OPT) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHFormatDrive(hwnd: super::super::Foundation::HWND, drive: u32, fmtid: SHFMT_ID, options: SHFMT_OPT) -> u32; } ::core::mem::transmute(SHFormatDrive(hwnd.into_param().abi(), ::core::mem::transmute(drive), ::core::mem::transmute(fmtid), ::core::mem::transmute(options))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHFree(pv: *const ::core::ffi::c_void) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHFree(pv: *const ::core::ffi::c_void); } ::core::mem::transmute(SHFree(::core::mem::transmute(pv))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHFreeNameMappings<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hnamemappings: Param0) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHFreeNameMappings(hnamemappings: super::super::Foundation::HANDLE); } ::core::mem::transmute(SHFreeNameMappings(hnamemappings.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHFreeShared<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hdata: Param0, dwprocessid: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHFreeShared(hdata: super::super::Foundation::HANDLE, dwprocessid: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHFreeShared(hdata.into_param().abi(), ::core::mem::transmute(dwprocessid))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SHGDFIL_FORMAT(pub i32); pub const SHGDFIL_FINDDATA: SHGDFIL_FORMAT = SHGDFIL_FORMAT(1i32); pub const SHGDFIL_NETRESOURCE: SHGDFIL_FORMAT = SHGDFIL_FORMAT(2i32); pub const SHGDFIL_DESCRIPTIONID: SHGDFIL_FORMAT = SHGDFIL_FORMAT(3i32); impl ::core::convert::From<i32> for SHGDFIL_FORMAT { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SHGDFIL_FORMAT { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SHGFI_FLAGS(pub i32); pub const SHGFI_ADDOVERLAYS: SHGFI_FLAGS = SHGFI_FLAGS(32i32); pub const SHGFI_ATTR_SPECIFIED: SHGFI_FLAGS = SHGFI_FLAGS(131072i32); pub const SHGFI_ATTRIBUTES: SHGFI_FLAGS = SHGFI_FLAGS(2048i32); pub const SHGFI_DISPLAYNAME: SHGFI_FLAGS = SHGFI_FLAGS(512i32); pub const SHGFI_EXETYPE: SHGFI_FLAGS = SHGFI_FLAGS(8192i32); pub const SHGFI_ICON: SHGFI_FLAGS = SHGFI_FLAGS(256i32); pub const SHGFI_ICONLOCATION: SHGFI_FLAGS = SHGFI_FLAGS(4096i32); pub const SHGFI_LARGEICON: SHGFI_FLAGS = SHGFI_FLAGS(0i32); pub const SHGFI_LINKOVERLAY: SHGFI_FLAGS = SHGFI_FLAGS(32768i32); pub const SHGFI_OPENICON: SHGFI_FLAGS = SHGFI_FLAGS(2i32); pub const SHGFI_OVERLAYINDEX: SHGFI_FLAGS = SHGFI_FLAGS(64i32); pub const SHGFI_PIDL: SHGFI_FLAGS = SHGFI_FLAGS(8i32); pub const SHGFI_SELECTED: SHGFI_FLAGS = SHGFI_FLAGS(65536i32); pub const SHGFI_SHELLICONSIZE: SHGFI_FLAGS = SHGFI_FLAGS(4i32); pub const SHGFI_SMALLICON: SHGFI_FLAGS = SHGFI_FLAGS(1i32); pub const SHGFI_SYSICONINDEX: SHGFI_FLAGS = SHGFI_FLAGS(16384i32); pub const SHGFI_TYPENAME: SHGFI_FLAGS = SHGFI_FLAGS(1024i32); pub const SHGFI_USEFILEATTRIBUTES: SHGFI_FLAGS = SHGFI_FLAGS(16i32); impl ::core::convert::From<i32> for SHGFI_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SHGFI_FLAGS { type Abi = Self; } impl ::core::ops::BitOr for SHGFI_FLAGS { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for SHGFI_FLAGS { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for SHGFI_FLAGS { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for SHGFI_FLAGS { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for SHGFI_FLAGS { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SHGFP_TYPE(pub i32); pub const SHGFP_TYPE_CURRENT: SHGFP_TYPE = SHGFP_TYPE(0i32); pub const SHGFP_TYPE_DEFAULT: SHGFP_TYPE = SHGFP_TYPE(1i32); impl ::core::convert::From<i32> for SHGFP_TYPE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SHGFP_TYPE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SHGLOBALCOUNTER(pub i32); pub const GLOBALCOUNTER_SEARCHMANAGER: SHGLOBALCOUNTER = SHGLOBALCOUNTER(0i32); pub const GLOBALCOUNTER_SEARCHOPTIONS: SHGLOBALCOUNTER = SHGLOBALCOUNTER(1i32); pub const GLOBALCOUNTER_FOLDERSETTINGSCHANGE: SHGLOBALCOUNTER = SHGLOBALCOUNTER(2i32); pub const GLOBALCOUNTER_RATINGS: SHGLOBALCOUNTER = SHGLOBALCOUNTER(3i32); pub const GLOBALCOUNTER_APPROVEDSITES: SHGLOBALCOUNTER = SHGLOBALCOUNTER(4i32); pub const GLOBALCOUNTER_RESTRICTIONS: SHGLOBALCOUNTER = SHGLOBALCOUNTER(5i32); pub const GLOBALCOUNTER_SHELLSETTINGSCHANGED: SHGLOBALCOUNTER = SHGLOBALCOUNTER(6i32); pub const GLOBALCOUNTER_SYSTEMPIDLCHANGE: SHGLOBALCOUNTER = SHGLOBALCOUNTER(7i32); pub const GLOBALCOUNTER_OVERLAYMANAGER: SHGLOBALCOUNTER = SHGLOBALCOUNTER(8i32); pub const GLOBALCOUNTER_QUERYASSOCIATIONS: SHGLOBALCOUNTER = SHGLOBALCOUNTER(9i32); pub const GLOBALCOUNTER_IESESSIONS: SHGLOBALCOUNTER = SHGLOBALCOUNTER(10i32); pub const GLOBALCOUNTER_IEONLY_SESSIONS: SHGLOBALCOUNTER = SHGLOBALCOUNTER(11i32); pub const GLOBALCOUNTER_APPLICATION_DESTINATIONS: SHGLOBALCOUNTER = SHGLOBALCOUNTER(12i32); pub const __UNUSED_RECYCLE_WAS_GLOBALCOUNTER_CSCSYNCINPROGRESS: SHGLOBALCOUNTER = SHGLOBALCOUNTER(13i32); pub const GLOBALCOUNTER_BITBUCKETNUMDELETERS: SHGLOBALCOUNTER = SHGLOBALCOUNTER(14i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_SHARES: SHGLOBALCOUNTER = SHGLOBALCOUNTER(15i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_A: SHGLOBALCOUNTER = SHGLOBALCOUNTER(16i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_B: SHGLOBALCOUNTER = SHGLOBALCOUNTER(17i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_C: SHGLOBALCOUNTER = SHGLOBALCOUNTER(18i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_D: SHGLOBALCOUNTER = SHGLOBALCOUNTER(19i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_E: SHGLOBALCOUNTER = SHGLOBALCOUNTER(20i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_F: SHGLOBALCOUNTER = SHGLOBALCOUNTER(21i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_G: SHGLOBALCOUNTER = SHGLOBALCOUNTER(22i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_H: SHGLOBALCOUNTER = SHGLOBALCOUNTER(23i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_I: SHGLOBALCOUNTER = SHGLOBALCOUNTER(24i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_J: SHGLOBALCOUNTER = SHGLOBALCOUNTER(25i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_K: SHGLOBALCOUNTER = SHGLOBALCOUNTER(26i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_L: SHGLOBALCOUNTER = SHGLOBALCOUNTER(27i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_M: SHGLOBALCOUNTER = SHGLOBALCOUNTER(28i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_N: SHGLOBALCOUNTER = SHGLOBALCOUNTER(29i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_O: SHGLOBALCOUNTER = SHGLOBALCOUNTER(30i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_P: SHGLOBALCOUNTER = SHGLOBALCOUNTER(31i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_Q: SHGLOBALCOUNTER = SHGLOBALCOUNTER(32i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_R: SHGLOBALCOUNTER = SHGLOBALCOUNTER(33i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_S: SHGLOBALCOUNTER = SHGLOBALCOUNTER(34i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_T: SHGLOBALCOUNTER = SHGLOBALCOUNTER(35i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_U: SHGLOBALCOUNTER = SHGLOBALCOUNTER(36i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_V: SHGLOBALCOUNTER = SHGLOBALCOUNTER(37i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_W: SHGLOBALCOUNTER = SHGLOBALCOUNTER(38i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_X: SHGLOBALCOUNTER = SHGLOBALCOUNTER(39i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_Y: SHGLOBALCOUNTER = SHGLOBALCOUNTER(40i32); pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_Z: SHGLOBALCOUNTER = SHGLOBALCOUNTER(41i32); pub const __UNUSED_RECYCLE_WAS_GLOBALCOUNTER_RECYCLEDIRTYCOUNT_SERVERDRIVE: SHGLOBALCOUNTER = SHGLOBALCOUNTER(42i32); pub const __UNUSED_RECYCLE_WAS_GLOBALCOUNTER_RECYCLEGLOBALDIRTYCOUNT: SHGLOBALCOUNTER = SHGLOBALCOUNTER(43i32); pub const GLOBALCOUNTER_RECYCLEBINENUM: SHGLOBALCOUNTER = SHGLOBALCOUNTER(44i32); pub const GLOBALCOUNTER_RECYCLEBINCORRUPTED: SHGLOBALCOUNTER = SHGLOBALCOUNTER(45i32); pub const GLOBALCOUNTER_RATINGS_STATECOUNTER: SHGLOBALCOUNTER = SHGLOBALCOUNTER(46i32); pub const GLOBALCOUNTER_PRIVATE_PROFILE_CACHE: SHGLOBALCOUNTER = SHGLOBALCOUNTER(47i32); pub const GLOBALCOUNTER_INTERNETTOOLBAR_LAYOUT: SHGLOBALCOUNTER = SHGLOBALCOUNTER(48i32); pub const GLOBALCOUNTER_FOLDERDEFINITION_CACHE: SHGLOBALCOUNTER = SHGLOBALCOUNTER(49i32); pub const GLOBALCOUNTER_COMMONPLACES_LIST_CACHE: SHGLOBALCOUNTER = SHGLOBALCOUNTER(50i32); pub const GLOBALCOUNTER_PRIVATE_PROFILE_CACHE_MACHINEWIDE: SHGLOBALCOUNTER = SHGLOBALCOUNTER(51i32); pub const GLOBALCOUNTER_ASSOCCHANGED: SHGLOBALCOUNTER = SHGLOBALCOUNTER(52i32); pub const GLOBALCOUNTER_APP_ITEMS_STATE_STORE_CACHE: SHGLOBALCOUNTER = SHGLOBALCOUNTER(53i32); pub const GLOBALCOUNTER_SETTINGSYNC_ENABLED: SHGLOBALCOUNTER = SHGLOBALCOUNTER(54i32); pub const GLOBALCOUNTER_APPSFOLDER_FILETYPEASSOCIATION_COUNTER: SHGLOBALCOUNTER = SHGLOBALCOUNTER(55i32); pub const GLOBALCOUNTER_USERINFOCHANGED: SHGLOBALCOUNTER = SHGLOBALCOUNTER(56i32); pub const GLOBALCOUNTER_SYNC_ENGINE_INFORMATION_CACHE_MACHINEWIDE: SHGLOBALCOUNTER = SHGLOBALCOUNTER(57i32); pub const GLOBALCOUNTER_BANNERS_DATAMODEL_CACHE_MACHINEWIDE: SHGLOBALCOUNTER = SHGLOBALCOUNTER(58i32); pub const GLOBALCOUNTER_MAXIMUMVALUE: SHGLOBALCOUNTER = SHGLOBALCOUNTER(59i32); impl ::core::convert::From<i32> for SHGLOBALCOUNTER { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SHGLOBALCOUNTER { type Abi = Self; } pub const SHGNLI_NOLNK: u64 = 8u64; pub const SHGNLI_NOLOCNAME: u64 = 16u64; pub const SHGNLI_NOUNIQUE: u64 = 4u64; pub const SHGNLI_PIDL: u64 = 1u64; pub const SHGNLI_PREFIXNAME: u64 = 2u64; pub const SHGNLI_USEURLEXT: u64 = 32u64; pub const SHGSI_ICONLOCATION: u32 = 0u32; pub const SHGVSPB_ALLFOLDERS: u32 = 8u32; pub const SHGVSPB_ALLUSERS: u32 = 2u32; pub const SHGVSPB_INHERIT: u32 = 16u32; pub const SHGVSPB_NOAUTODEFAULTS: u32 = 2147483648u32; pub const SHGVSPB_PERFOLDER: u32 = 4u32; pub const SHGVSPB_PERUSER: u32 = 1u32; pub const SHGVSPB_ROAM: u32 = 32u32; #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SHGetAttributesFromDataObject<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>>(pdo: Param0, dwattributemask: u32, pdwattributes: *mut u32, pcitems: *mut u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetAttributesFromDataObject(pdo: ::windows::core::RawPtr, dwattributemask: u32, pdwattributes: *mut u32, pcitems: *mut u32) -> ::windows::core::HRESULT; } SHGetAttributesFromDataObject(pdo.into_param().abi(), ::core::mem::transmute(dwattributemask), ::core::mem::transmute(pdwattributes), ::core::mem::transmute(pcitems)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHGetDataFromIDListA<'a, Param0: ::windows::core::IntoParam<'a, IShellFolder>>(psf: Param0, pidl: *const Common::ITEMIDLIST, nformat: SHGDFIL_FORMAT, pv: *mut ::core::ffi::c_void, cb: i32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetDataFromIDListA(psf: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, nformat: SHGDFIL_FORMAT, pv: *mut ::core::ffi::c_void, cb: i32) -> ::windows::core::HRESULT; } SHGetDataFromIDListA(psf.into_param().abi(), ::core::mem::transmute(pidl), ::core::mem::transmute(nformat), ::core::mem::transmute(pv), ::core::mem::transmute(cb)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHGetDataFromIDListW<'a, Param0: ::windows::core::IntoParam<'a, IShellFolder>>(psf: Param0, pidl: *const Common::ITEMIDLIST, nformat: SHGDFIL_FORMAT, pv: *mut ::core::ffi::c_void, cb: i32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetDataFromIDListW(psf: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, nformat: SHGDFIL_FORMAT, pv: *mut ::core::ffi::c_void, cb: i32) -> ::windows::core::HRESULT; } SHGetDataFromIDListW(psf.into_param().abi(), ::core::mem::transmute(pidl), ::core::mem::transmute(nformat), ::core::mem::transmute(pv), ::core::mem::transmute(cb)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHGetDesktopFolder() -> ::windows::core::Result<IShellFolder> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetDesktopFolder(ppshf: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT; } let mut result__: <IShellFolder as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHGetDesktopFolder(&mut result__).from_abi::<IShellFolder>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHGetDiskFreeSpaceExA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszdirectoryname: Param0, pulfreebytesavailabletocaller: *mut u64, pultotalnumberofbytes: *mut u64, pultotalnumberoffreebytes: *mut u64) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetDiskFreeSpaceExA(pszdirectoryname: super::super::Foundation::PSTR, pulfreebytesavailabletocaller: *mut u64, pultotalnumberofbytes: *mut u64, pultotalnumberoffreebytes: *mut u64) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHGetDiskFreeSpaceExA(pszdirectoryname.into_param().abi(), ::core::mem::transmute(pulfreebytesavailabletocaller), ::core::mem::transmute(pultotalnumberofbytes), ::core::mem::transmute(pultotalnumberoffreebytes))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHGetDiskFreeSpaceExW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszdirectoryname: Param0, pulfreebytesavailabletocaller: *mut u64, pultotalnumberofbytes: *mut u64, pultotalnumberoffreebytes: *mut u64) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetDiskFreeSpaceExW(pszdirectoryname: super::super::Foundation::PWSTR, pulfreebytesavailabletocaller: *mut u64, pultotalnumberofbytes: *mut u64, pultotalnumberoffreebytes: *mut u64) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHGetDiskFreeSpaceExW(pszdirectoryname.into_param().abi(), ::core::mem::transmute(pulfreebytesavailabletocaller), ::core::mem::transmute(pultotalnumberofbytes), ::core::mem::transmute(pultotalnumberoffreebytes))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHGetDriveMedia<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszdrive: Param0) -> ::windows::core::Result<u32> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetDriveMedia(pszdrive: super::super::Foundation::PWSTR, pdwmediacontent: *mut u32) -> ::windows::core::HRESULT; } let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHGetDriveMedia(pszdrive.into_param().abi(), &mut result__).from_abi::<u32>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_FileSystem", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn SHGetFileInfoA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0, dwfileattributes: super::super::Storage::FileSystem::FILE_FLAGS_AND_ATTRIBUTES, psfi: *mut SHFILEINFOA, cbfileinfo: u32, uflags: SHGFI_FLAGS) -> usize { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetFileInfoA(pszpath: super::super::Foundation::PSTR, dwfileattributes: super::super::Storage::FileSystem::FILE_FLAGS_AND_ATTRIBUTES, psfi: *mut SHFILEINFOA, cbfileinfo: u32, uflags: SHGFI_FLAGS) -> usize; } ::core::mem::transmute(SHGetFileInfoA(pszpath.into_param().abi(), ::core::mem::transmute(dwfileattributes), ::core::mem::transmute(psfi), ::core::mem::transmute(cbfileinfo), ::core::mem::transmute(uflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_FileSystem", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn SHGetFileInfoW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, dwfileattributes: super::super::Storage::FileSystem::FILE_FLAGS_AND_ATTRIBUTES, psfi: *mut SHFILEINFOW, cbfileinfo: u32, uflags: SHGFI_FLAGS) -> usize { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetFileInfoW(pszpath: super::super::Foundation::PWSTR, dwfileattributes: super::super::Storage::FileSystem::FILE_FLAGS_AND_ATTRIBUTES, psfi: *mut SHFILEINFOW, cbfileinfo: u32, uflags: SHGFI_FLAGS) -> usize; } ::core::mem::transmute(SHGetFileInfoW(pszpath.into_param().abi(), ::core::mem::transmute(dwfileattributes), ::core::mem::transmute(psfi), ::core::mem::transmute(cbfileinfo), ::core::mem::transmute(uflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHGetFolderLocation<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hwnd: Param0, csidl: i32, htoken: Param2, dwflags: u32) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetFolderLocation(hwnd: super::super::Foundation::HWND, csidl: i32, htoken: super::super::Foundation::HANDLE, dwflags: u32, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT; } let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHGetFolderLocation(hwnd.into_param().abi(), ::core::mem::transmute(csidl), htoken.into_param().abi(), ::core::mem::transmute(dwflags), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHGetFolderPathA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hwnd: Param0, csidl: i32, htoken: Param2, dwflags: u32, pszpath: super::super::Foundation::PSTR) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetFolderPathA(hwnd: super::super::Foundation::HWND, csidl: i32, htoken: super::super::Foundation::HANDLE, dwflags: u32, pszpath: super::super::Foundation::PSTR) -> ::windows::core::HRESULT; } SHGetFolderPathA(hwnd.into_param().abi(), ::core::mem::transmute(csidl), htoken.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(pszpath)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHGetFolderPathAndSubDirA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(hwnd: Param0, csidl: i32, htoken: Param2, dwflags: u32, pszsubdir: Param4, pszpath: super::super::Foundation::PSTR) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetFolderPathAndSubDirA(hwnd: super::super::Foundation::HWND, csidl: i32, htoken: super::super::Foundation::HANDLE, dwflags: u32, pszsubdir: super::super::Foundation::PSTR, pszpath: super::super::Foundation::PSTR) -> ::windows::core::HRESULT; } SHGetFolderPathAndSubDirA(hwnd.into_param().abi(), ::core::mem::transmute(csidl), htoken.into_param().abi(), ::core::mem::transmute(dwflags), pszsubdir.into_param().abi(), ::core::mem::transmute(pszpath)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHGetFolderPathAndSubDirW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hwnd: Param0, csidl: i32, htoken: Param2, dwflags: u32, pszsubdir: Param4, pszpath: super::super::Foundation::PWSTR) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetFolderPathAndSubDirW(hwnd: super::super::Foundation::HWND, csidl: i32, htoken: super::super::Foundation::HANDLE, dwflags: u32, pszsubdir: super::super::Foundation::PWSTR, pszpath: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } SHGetFolderPathAndSubDirW(hwnd.into_param().abi(), ::core::mem::transmute(csidl), htoken.into_param().abi(), ::core::mem::transmute(dwflags), pszsubdir.into_param().abi(), ::core::mem::transmute(pszpath)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHGetFolderPathW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hwnd: Param0, csidl: i32, htoken: Param2, dwflags: u32, pszpath: super::super::Foundation::PWSTR) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetFolderPathW(hwnd: super::super::Foundation::HWND, csidl: i32, htoken: super::super::Foundation::HANDLE, dwflags: u32, pszpath: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } SHGetFolderPathW(hwnd.into_param().abi(), ::core::mem::transmute(csidl), htoken.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(pszpath)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHGetIDListFromObject<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(punk: Param0) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetIDListFromObject(punk: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT; } let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHGetIDListFromObject(punk.into_param().abi(), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHGetIconOverlayIndexA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(psziconpath: Param0, iiconindex: i32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetIconOverlayIndexA(psziconpath: super::super::Foundation::PSTR, iiconindex: i32) -> i32; } ::core::mem::transmute(SHGetIconOverlayIndexA(psziconpath.into_param().abi(), ::core::mem::transmute(iiconindex))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHGetIconOverlayIndexW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(psziconpath: Param0, iiconindex: i32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetIconOverlayIndexW(psziconpath: super::super::Foundation::PWSTR, iiconindex: i32) -> i32; } ::core::mem::transmute(SHGetIconOverlayIndexW(psziconpath.into_param().abi(), ::core::mem::transmute(iiconindex))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHGetImageList(iimagelist: i32, riid: *const ::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetImageList(iimagelist: i32, riid: *const ::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } SHGetImageList(::core::mem::transmute(iimagelist), ::core::mem::transmute(riid), ::core::mem::transmute(ppvobj)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHGetInstanceExplorer() -> ::windows::core::Result<::windows::core::IUnknown> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetInstanceExplorer(ppunk: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT; } let mut result__: <::windows::core::IUnknown as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHGetInstanceExplorer(&mut result__).from_abi::<::windows::core::IUnknown>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHGetInverseCMAP(pbmap: *mut u8, cbmap: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetInverseCMAP(pbmap: *mut u8, cbmap: u32) -> ::windows::core::HRESULT; } SHGetInverseCMAP(::core::mem::transmute(pbmap), ::core::mem::transmute(cbmap)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SHGetItemFromDataObject<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>>(pdtobj: Param0, dwflags: DATAOBJ_GET_ITEM_FLAGS, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetItemFromDataObject(pdtobj: ::windows::core::RawPtr, dwflags: DATAOBJ_GET_ITEM_FLAGS, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } SHGetItemFromDataObject(pdtobj.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHGetItemFromObject<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(punk: Param0, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetItemFromObject(punk: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } SHGetItemFromObject(punk.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHGetKnownFolderIDList<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(rfid: *const ::windows::core::GUID, dwflags: u32, htoken: Param2) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetKnownFolderIDList(rfid: *const ::windows::core::GUID, dwflags: u32, htoken: super::super::Foundation::HANDLE, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT; } let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHGetKnownFolderIDList(::core::mem::transmute(rfid), ::core::mem::transmute(dwflags), htoken.into_param().abi(), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHGetKnownFolderItem<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(rfid: *const ::windows::core::GUID, flags: KNOWN_FOLDER_FLAG, htoken: Param2, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetKnownFolderItem(rfid: *const ::windows::core::GUID, flags: KNOWN_FOLDER_FLAG, htoken: super::super::Foundation::HANDLE, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } SHGetKnownFolderItem(::core::mem::transmute(rfid), ::core::mem::transmute(flags), htoken.into_param().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHGetKnownFolderPath<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(rfid: *const ::windows::core::GUID, dwflags: u32, htoken: Param2) -> ::windows::core::Result<super::super::Foundation::PWSTR> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetKnownFolderPath(rfid: *const ::windows::core::GUID, dwflags: u32, htoken: super::super::Foundation::HANDLE, ppszpath: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHGetKnownFolderPath(::core::mem::transmute(rfid), ::core::mem::transmute(dwflags), htoken.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHGetLocalizedName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, pszresmodule: super::super::Foundation::PWSTR, cch: u32, pidsres: *mut i32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetLocalizedName(pszpath: super::super::Foundation::PWSTR, pszresmodule: super::super::Foundation::PWSTR, cch: u32, pidsres: *mut i32) -> ::windows::core::HRESULT; } SHGetLocalizedName(pszpath.into_param().abi(), ::core::mem::transmute(pszresmodule), ::core::mem::transmute(cch), ::core::mem::transmute(pidsres)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SHGetMalloc() -> ::windows::core::Result<super::super::System::Com::IMalloc> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetMalloc(ppmalloc: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT; } let mut result__: <super::super::System::Com::IMalloc as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHGetMalloc(&mut result__).from_abi::<super::super::System::Com::IMalloc>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHGetNameFromIDList(pidl: *const Common::ITEMIDLIST, sigdnname: SIGDN) -> ::windows::core::Result<super::super::Foundation::PWSTR> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetNameFromIDList(pidl: *const Common::ITEMIDLIST, sigdnname: SIGDN, ppszname: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHGetNameFromIDList(::core::mem::transmute(pidl), ::core::mem::transmute(sigdnname), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHGetNewLinkInfoA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszlinkto: Param0, pszdir: Param1, pszname: super::super::Foundation::PSTR, pfmustcopy: *mut super::super::Foundation::BOOL, uflags: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetNewLinkInfoA(pszlinkto: super::super::Foundation::PSTR, pszdir: super::super::Foundation::PSTR, pszname: super::super::Foundation::PSTR, pfmustcopy: *mut super::super::Foundation::BOOL, uflags: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHGetNewLinkInfoA(pszlinkto.into_param().abi(), pszdir.into_param().abi(), ::core::mem::transmute(pszname), ::core::mem::transmute(pfmustcopy), ::core::mem::transmute(uflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHGetNewLinkInfoW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszlinkto: Param0, pszdir: Param1, pszname: super::super::Foundation::PWSTR, pfmustcopy: *mut super::super::Foundation::BOOL, uflags: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetNewLinkInfoW(pszlinkto: super::super::Foundation::PWSTR, pszdir: super::super::Foundation::PWSTR, pszname: super::super::Foundation::PWSTR, pfmustcopy: *mut super::super::Foundation::BOOL, uflags: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHGetNewLinkInfoW(pszlinkto.into_param().abi(), pszdir.into_param().abi(), ::core::mem::transmute(pszname), ::core::mem::transmute(pfmustcopy), ::core::mem::transmute(uflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHGetPathFromIDListA(pidl: *const Common::ITEMIDLIST, pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetPathFromIDListA(pidl: *const Common::ITEMIDLIST, pszpath: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHGetPathFromIDListA(::core::mem::transmute(pidl), ::core::mem::transmute(pszpath))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHGetPathFromIDListEx(pidl: *const Common::ITEMIDLIST, pszpath: super::super::Foundation::PWSTR, cchpath: u32, uopts: i32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetPathFromIDListEx(pidl: *const Common::ITEMIDLIST, pszpath: super::super::Foundation::PWSTR, cchpath: u32, uopts: i32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHGetPathFromIDListEx(::core::mem::transmute(pidl), ::core::mem::transmute(pszpath), ::core::mem::transmute(cchpath), ::core::mem::transmute(uopts))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHGetPathFromIDListW(pidl: *const Common::ITEMIDLIST, pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetPathFromIDListW(pidl: *const Common::ITEMIDLIST, pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHGetPathFromIDListW(::core::mem::transmute(pidl), ::core::mem::transmute(pszpath))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHGetRealIDL<'a, Param0: ::windows::core::IntoParam<'a, IShellFolder>>(psf: Param0, pidlsimple: *const Common::ITEMIDLIST) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetRealIDL(psf: ::windows::core::RawPtr, pidlsimple: *const Common::ITEMIDLIST, ppidlreal: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT; } let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHGetRealIDL(psf.into_param().abi(), ::core::mem::transmute(pidlsimple), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHGetSetFolderCustomSettings<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pfcs: *mut SHFOLDERCUSTOMSETTINGS, pszpath: Param1, dwreadwrite: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetSetFolderCustomSettings(pfcs: *mut SHFOLDERCUSTOMSETTINGS, pszpath: super::super::Foundation::PWSTR, dwreadwrite: u32) -> ::windows::core::HRESULT; } SHGetSetFolderCustomSettings(::core::mem::transmute(pfcs), pszpath.into_param().abi(), ::core::mem::transmute(dwreadwrite)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHGetSetSettings<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(lpss: *mut SHELLSTATEA, dwmask: SSF_MASK, bset: Param2) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetSetSettings(lpss: *mut SHELLSTATEA, dwmask: SSF_MASK, bset: super::super::Foundation::BOOL); } ::core::mem::transmute(SHGetSetSettings(::core::mem::transmute(lpss), ::core::mem::transmute(dwmask), bset.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHGetSettings(psfs: *mut SHELLFLAGSTATE, dwmask: u32) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetSettings(psfs: *mut SHELLFLAGSTATE, dwmask: u32); } ::core::mem::transmute(SHGetSettings(::core::mem::transmute(psfs), ::core::mem::transmute(dwmask))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHGetSpecialFolderLocation<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(hwnd: Param0, csidl: i32) -> ::windows::core::Result<*mut Common::ITEMIDLIST> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetSpecialFolderLocation(hwnd: super::super::Foundation::HWND, csidl: i32, ppidl: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT; } let mut result__: <*mut Common::ITEMIDLIST as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHGetSpecialFolderLocation(hwnd.into_param().abi(), ::core::mem::transmute(csidl), &mut result__).from_abi::<*mut Common::ITEMIDLIST>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHGetSpecialFolderPathA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(hwnd: Param0, pszpath: super::super::Foundation::PSTR, csidl: i32, fcreate: Param3) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetSpecialFolderPathA(hwnd: super::super::Foundation::HWND, pszpath: super::super::Foundation::PSTR, csidl: i32, fcreate: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHGetSpecialFolderPathA(hwnd.into_param().abi(), ::core::mem::transmute(pszpath), ::core::mem::transmute(csidl), fcreate.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHGetSpecialFolderPathW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(hwnd: Param0, pszpath: super::super::Foundation::PWSTR, csidl: i32, fcreate: Param3) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetSpecialFolderPathW(hwnd: super::super::Foundation::HWND, pszpath: super::super::Foundation::PWSTR, csidl: i32, fcreate: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHGetSpecialFolderPathW(hwnd.into_param().abi(), ::core::mem::transmute(pszpath), ::core::mem::transmute(csidl), fcreate.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn SHGetStockIconInfo(siid: SHSTOCKICONID, uflags: u32, psii: *mut SHSTOCKICONINFO) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetStockIconInfo(siid: SHSTOCKICONID, uflags: u32, psii: *mut SHSTOCKICONINFO) -> ::windows::core::HRESULT; } SHGetStockIconInfo(::core::mem::transmute(siid), ::core::mem::transmute(uflags), ::core::mem::transmute(psii)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] #[inline] pub unsafe fn SHGetTemporaryPropertyForItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(psi: Param0, propkey: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result<super::super::System::Com::StructuredStorage::PROPVARIANT> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetTemporaryPropertyForItem(psi: ::windows::core::RawPtr, propkey: *const PropertiesSystem::PROPERTYKEY, ppropvar: *mut ::core::mem::ManuallyDrop<super::super::System::Com::StructuredStorage::PROPVARIANT>) -> ::windows::core::HRESULT; } let mut result__: <super::super::System::Com::StructuredStorage::PROPVARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHGetTemporaryPropertyForItem(psi.into_param().abi(), ::core::mem::transmute(propkey), &mut result__).from_abi::<super::super::System::Com::StructuredStorage::PROPVARIANT>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHGetThreadRef() -> ::windows::core::Result<::windows::core::IUnknown> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetThreadRef(ppunk: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT; } let mut result__: <::windows::core::IUnknown as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHGetThreadRef(&mut result__).from_abi::<::windows::core::IUnknown>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHGetUnreadMailCountW<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hkeyuser: Param0, pszmailaddress: Param1, pdwcount: *mut u32, pfiletime: *mut super::super::Foundation::FILETIME, pszshellexecutecommand: super::super::Foundation::PWSTR, cchshellexecutecommand: i32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetUnreadMailCountW(hkeyuser: super::super::System::Registry::HKEY, pszmailaddress: super::super::Foundation::PWSTR, pdwcount: *mut u32, pfiletime: *mut super::super::Foundation::FILETIME, pszshellexecutecommand: super::super::Foundation::PWSTR, cchshellexecutecommand: i32) -> ::windows::core::HRESULT; } SHGetUnreadMailCountW(hkeyuser.into_param().abi(), pszmailaddress.into_param().abi(), ::core::mem::transmute(pdwcount), ::core::mem::transmute(pfiletime), ::core::mem::transmute(pszshellexecutecommand), ::core::mem::transmute(cchshellexecutecommand)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHGetValueA<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(hkey: Param0, pszsubkey: Param1, pszvalue: Param2, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetValueA(hkey: super::super::System::Registry::HKEY, pszsubkey: super::super::Foundation::PSTR, pszvalue: super::super::Foundation::PSTR, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHGetValueA(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi(), ::core::mem::transmute(pdwtype), ::core::mem::transmute(pvdata), ::core::mem::transmute(pcbdata))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHGetValueW<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hkey: Param0, pszsubkey: Param1, pszvalue: Param2, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetValueW(hkey: super::super::System::Registry::HKEY, pszsubkey: super::super::Foundation::PWSTR, pszvalue: super::super::Foundation::PWSTR, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHGetValueW(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi(), ::core::mem::transmute(pdwtype), ::core::mem::transmute(pvdata), ::core::mem::transmute(pcbdata))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHGetViewStatePropertyBag<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pidl: *const Common::ITEMIDLIST, pszbagname: Param1, dwflags: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGetViewStatePropertyBag(pidl: *const Common::ITEMIDLIST, pszbagname: super::super::Foundation::PWSTR, dwflags: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } SHGetViewStatePropertyBag(::core::mem::transmute(pidl), pszbagname.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHGlobalCounterDecrement(id: SHGLOBALCOUNTER) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGlobalCounterDecrement(id: SHGLOBALCOUNTER) -> i32; } ::core::mem::transmute(SHGlobalCounterDecrement(::core::mem::transmute(id))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHGlobalCounterGetValue(id: SHGLOBALCOUNTER) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGlobalCounterGetValue(id: SHGLOBALCOUNTER) -> i32; } ::core::mem::transmute(SHGlobalCounterGetValue(::core::mem::transmute(id))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHGlobalCounterIncrement(id: SHGLOBALCOUNTER) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHGlobalCounterIncrement(id: SHGLOBALCOUNTER) -> i32; } ::core::mem::transmute(SHGlobalCounterIncrement(::core::mem::transmute(id))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const SHHLNF_NOAUTOSELECT: u32 = 67108864u32; pub const SHHLNF_WRITENOHISTORY: u32 = 134217728u32; #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHHandleUpdateImage(pidlextra: *const Common::ITEMIDLIST) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHHandleUpdateImage(pidlextra: *const Common::ITEMIDLIST) -> i32; } ::core::mem::transmute(SHHandleUpdateImage(::core::mem::transmute(pidlextra))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHILCreateFromPath<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, ppidl: *mut *mut Common::ITEMIDLIST, rgfinout: *mut u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHILCreateFromPath(pszpath: super::super::Foundation::PWSTR, ppidl: *mut *mut Common::ITEMIDLIST, rgfinout: *mut u32) -> ::windows::core::HRESULT; } SHILCreateFromPath(pszpath.into_param().abi(), ::core::mem::transmute(ppidl), ::core::mem::transmute(rgfinout)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const SHIL_EXTRALARGE: u32 = 2u32; pub const SHIL_JUMBO: u32 = 4u32; pub const SHIL_LARGE: u32 = 0u32; pub const SHIL_LAST: u32 = 4u32; pub const SHIL_SMALL: u32 = 1u32; pub const SHIL_SYSSMALL: u32 = 3u32; pub const SHIMGDEC_DEFAULT: u32 = 0u32; pub const SHIMGDEC_LOADFULL: u32 = 2u32; pub const SHIMGDEC_THUMBNAIL: u32 = 1u32; pub const SHIMSTCAPFLAG_LOCKABLE: u32 = 1u32; pub const SHIMSTCAPFLAG_PURGEABLE: u32 = 2u32; #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHInvokePrinterCommandA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(hwnd: Param0, uaction: u32, lpbuf1: Param2, lpbuf2: Param3, fmodal: Param4) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHInvokePrinterCommandA(hwnd: super::super::Foundation::HWND, uaction: u32, lpbuf1: super::super::Foundation::PSTR, lpbuf2: super::super::Foundation::PSTR, fmodal: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHInvokePrinterCommandA(hwnd.into_param().abi(), ::core::mem::transmute(uaction), lpbuf1.into_param().abi(), lpbuf2.into_param().abi(), fmodal.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHInvokePrinterCommandW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(hwnd: Param0, uaction: u32, lpbuf1: Param2, lpbuf2: Param3, fmodal: Param4) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHInvokePrinterCommandW(hwnd: super::super::Foundation::HWND, uaction: u32, lpbuf1: super::super::Foundation::PWSTR, lpbuf2: super::super::Foundation::PWSTR, fmodal: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHInvokePrinterCommandW(hwnd.into_param().abi(), ::core::mem::transmute(uaction), lpbuf1.into_param().abi(), lpbuf2.into_param().abi(), fmodal.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHIsFileAvailableOffline<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pwszpath: Param0) -> ::windows::core::Result<u32> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHIsFileAvailableOffline(pwszpath: super::super::Foundation::PWSTR, pdwstatus: *mut u32) -> ::windows::core::HRESULT; } let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHIsFileAvailableOffline(pwszpath.into_param().abi(), &mut result__).from_abi::<u32>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHIsLowMemoryMachine(dwtype: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHIsLowMemoryMachine(dwtype: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHIsLowMemoryMachine(::core::mem::transmute(dwtype))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHLimitInputEdit<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, IShellFolder>>(hwndedit: Param0, psf: Param1) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHLimitInputEdit(hwndedit: super::super::Foundation::HWND, psf: ::windows::core::RawPtr) -> ::windows::core::HRESULT; } SHLimitInputEdit(hwndedit.into_param().abi(), psf.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHLoadInProc(rclsid: *const ::windows::core::GUID) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHLoadInProc(rclsid: *const ::windows::core::GUID) -> ::windows::core::HRESULT; } SHLoadInProc(::core::mem::transmute(rclsid)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHLoadIndirectString<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszsource: Param0, pszoutbuf: super::super::Foundation::PWSTR, cchoutbuf: u32, ppvreserved: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHLoadIndirectString(pszsource: super::super::Foundation::PWSTR, pszoutbuf: super::super::Foundation::PWSTR, cchoutbuf: u32, ppvreserved: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } SHLoadIndirectString(pszsource.into_param().abi(), ::core::mem::transmute(pszoutbuf), ::core::mem::transmute(cchoutbuf), ::core::mem::transmute(ppvreserved)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHLoadNonloadedIconOverlayIdentifiers() -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHLoadNonloadedIconOverlayIdentifiers() -> ::windows::core::HRESULT; } SHLoadNonloadedIconOverlayIdentifiers().ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHLockShared<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hdata: Param0, dwprocessid: u32) -> *mut ::core::ffi::c_void { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHLockShared(hdata: super::super::Foundation::HANDLE, dwprocessid: u32) -> *mut ::core::ffi::c_void; } ::core::mem::transmute(SHLockShared(hdata.into_param().abi(), ::core::mem::transmute(dwprocessid))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHMapPIDLToSystemImageListIndex<'a, Param0: ::windows::core::IntoParam<'a, IShellFolder>>(pshf: Param0, pidl: *const Common::ITEMIDLIST, piindexsel: *mut i32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHMapPIDLToSystemImageListIndex(pshf: ::windows::core::RawPtr, pidl: *const Common::ITEMIDLIST, piindexsel: *mut i32) -> i32; } ::core::mem::transmute(SHMapPIDLToSystemImageListIndex(pshf.into_param().abi(), ::core::mem::transmute(pidl), ::core::mem::transmute(piindexsel))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHMessageBoxCheckA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param5: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(hwnd: Param0, psztext: Param1, pszcaption: Param2, utype: u32, idefault: i32, pszregval: Param5) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHMessageBoxCheckA(hwnd: super::super::Foundation::HWND, psztext: super::super::Foundation::PSTR, pszcaption: super::super::Foundation::PSTR, utype: u32, idefault: i32, pszregval: super::super::Foundation::PSTR) -> i32; } ::core::mem::transmute(SHMessageBoxCheckA(hwnd.into_param().abi(), psztext.into_param().abi(), pszcaption.into_param().abi(), ::core::mem::transmute(utype), ::core::mem::transmute(idefault), pszregval.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHMessageBoxCheckW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param5: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hwnd: Param0, psztext: Param1, pszcaption: Param2, utype: u32, idefault: i32, pszregval: Param5) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHMessageBoxCheckW(hwnd: super::super::Foundation::HWND, psztext: super::super::Foundation::PWSTR, pszcaption: super::super::Foundation::PWSTR, utype: u32, idefault: i32, pszregval: super::super::Foundation::PWSTR) -> i32; } ::core::mem::transmute(SHMessageBoxCheckW(hwnd.into_param().abi(), psztext.into_param().abi(), pszcaption.into_param().abi(), ::core::mem::transmute(utype), ::core::mem::transmute(idefault), pszregval.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn SHMultiFileProperties<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>>(pdtobj: Param0, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHMultiFileProperties(pdtobj: ::windows::core::RawPtr, dwflags: u32) -> ::windows::core::HRESULT; } SHMultiFileProperties(pdtobj.into_param().abi(), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] pub struct SHNAMEMAPPINGA { pub pszOldPath: super::super::Foundation::PSTR, pub pszNewPath: super::super::Foundation::PSTR, pub cchOldPath: i32, pub cchNewPath: i32, } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl SHNAMEMAPPINGA {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for SHNAMEMAPPINGA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for SHNAMEMAPPINGA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SHNAMEMAPPINGA").field("pszOldPath", &self.pszOldPath).field("pszNewPath", &self.pszNewPath).field("cchOldPath", &self.cchOldPath).field("cchNewPath", &self.cchNewPath).finish() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for SHNAMEMAPPINGA { fn eq(&self, other: &Self) -> bool { self.pszOldPath == other.pszOldPath && self.pszNewPath == other.pszNewPath && self.cchOldPath == other.cchOldPath && self.cchNewPath == other.cchNewPath } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for SHNAMEMAPPINGA {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for SHNAMEMAPPINGA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] pub struct SHNAMEMAPPINGA { pub pszOldPath: super::super::Foundation::PSTR, pub pszNewPath: super::super::Foundation::PSTR, pub cchOldPath: i32, pub cchNewPath: i32, } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl SHNAMEMAPPINGA {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for SHNAMEMAPPINGA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for SHNAMEMAPPINGA { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for SHNAMEMAPPINGA {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for SHNAMEMAPPINGA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] pub struct SHNAMEMAPPINGW { pub pszOldPath: super::super::Foundation::PWSTR, pub pszNewPath: super::super::Foundation::PWSTR, pub cchOldPath: i32, pub cchNewPath: i32, } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl SHNAMEMAPPINGW {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for SHNAMEMAPPINGW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for SHNAMEMAPPINGW { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SHNAMEMAPPINGW").field("pszOldPath", &self.pszOldPath).field("pszNewPath", &self.pszNewPath).field("cchOldPath", &self.cchOldPath).field("cchNewPath", &self.cchNewPath).finish() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for SHNAMEMAPPINGW { fn eq(&self, other: &Self) -> bool { self.pszOldPath == other.pszOldPath && self.pszNewPath == other.pszNewPath && self.cchOldPath == other.cchOldPath && self.cchNewPath == other.cchNewPath } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for SHNAMEMAPPINGW {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for SHNAMEMAPPINGW { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] pub struct SHNAMEMAPPINGW { pub pszOldPath: super::super::Foundation::PWSTR, pub pszNewPath: super::super::Foundation::PWSTR, pub cchOldPath: i32, pub cchNewPath: i32, } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl SHNAMEMAPPINGW {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for SHNAMEMAPPINGW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for SHNAMEMAPPINGW { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for SHNAMEMAPPINGW {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for SHNAMEMAPPINGW { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SHOP_TYPE(pub i32); pub const SHOP_PRINTERNAME: SHOP_TYPE = SHOP_TYPE(1i32); pub const SHOP_FILEPATH: SHOP_TYPE = SHOP_TYPE(2i32); pub const SHOP_VOLUMEGUID: SHOP_TYPE = SHOP_TYPE(4i32); impl ::core::convert::From<i32> for SHOP_TYPE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SHOP_TYPE { type Abi = Self; } impl ::core::ops::BitOr for SHOP_TYPE { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for SHOP_TYPE { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for SHOP_TYPE { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for SHOP_TYPE { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for SHOP_TYPE { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHObjectProperties<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hwnd: Param0, shopobjecttype: SHOP_TYPE, pszobjectname: Param2, pszpropertypage: Param3) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHObjectProperties(hwnd: super::super::Foundation::HWND, shopobjecttype: SHOP_TYPE, pszobjectname: super::super::Foundation::PWSTR, pszpropertypage: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHObjectProperties(hwnd.into_param().abi(), ::core::mem::transmute(shopobjecttype), pszobjectname.into_param().abi(), pszpropertypage.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHOpenFolderAndSelectItems(pidlfolder: *const Common::ITEMIDLIST, cidl: u32, apidl: *const *const Common::ITEMIDLIST, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHOpenFolderAndSelectItems(pidlfolder: *const Common::ITEMIDLIST, cidl: u32, apidl: *const *const Common::ITEMIDLIST, dwflags: u32) -> ::windows::core::HRESULT; } SHOpenFolderAndSelectItems(::core::mem::transmute(pidlfolder), ::core::mem::transmute(cidl), ::core::mem::transmute(apidl), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHOpenPropSheetW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param4: ::windows::core::IntoParam<'a, super::super::System::Com::IDataObject>, Param5: ::windows::core::IntoParam<'a, IShellBrowser>, Param6: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>( pszcaption: Param0, ahkeys: *const super::super::System::Registry::HKEY, ckeys: u32, pclsiddefault: *const ::windows::core::GUID, pdtobj: Param4, psb: Param5, pstartpage: Param6, ) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHOpenPropSheetW(pszcaption: super::super::Foundation::PWSTR, ahkeys: *const super::super::System::Registry::HKEY, ckeys: u32, pclsiddefault: *const ::windows::core::GUID, pdtobj: ::windows::core::RawPtr, psb: ::windows::core::RawPtr, pstartpage: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHOpenPropSheetW(pszcaption.into_param().abi(), ::core::mem::transmute(ahkeys), ::core::mem::transmute(ckeys), ::core::mem::transmute(pclsiddefault), pdtobj.into_param().abi(), psb.into_param().abi(), pstartpage.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHOpenRegStream2A<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(hkey: Param0, pszsubkey: Param1, pszvalue: Param2, grfmode: u32) -> ::core::option::Option<super::super::System::Com::IStream> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHOpenRegStream2A(hkey: super::super::System::Registry::HKEY, pszsubkey: super::super::Foundation::PSTR, pszvalue: super::super::Foundation::PSTR, grfmode: u32) -> ::core::option::Option<super::super::System::Com::IStream>; } ::core::mem::transmute(SHOpenRegStream2A(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi(), ::core::mem::transmute(grfmode))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHOpenRegStream2W<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hkey: Param0, pszsubkey: Param1, pszvalue: Param2, grfmode: u32) -> ::core::option::Option<super::super::System::Com::IStream> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHOpenRegStream2W(hkey: super::super::System::Registry::HKEY, pszsubkey: super::super::Foundation::PWSTR, pszvalue: super::super::Foundation::PWSTR, grfmode: u32) -> ::core::option::Option<super::super::System::Com::IStream>; } ::core::mem::transmute(SHOpenRegStream2W(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi(), ::core::mem::transmute(grfmode))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHOpenRegStreamA<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(hkey: Param0, pszsubkey: Param1, pszvalue: Param2, grfmode: u32) -> ::core::option::Option<super::super::System::Com::IStream> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHOpenRegStreamA(hkey: super::super::System::Registry::HKEY, pszsubkey: super::super::Foundation::PSTR, pszvalue: super::super::Foundation::PSTR, grfmode: u32) -> ::core::option::Option<super::super::System::Com::IStream>; } ::core::mem::transmute(SHOpenRegStreamA(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi(), ::core::mem::transmute(grfmode))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHOpenRegStreamW<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hkey: Param0, pszsubkey: Param1, pszvalue: Param2, grfmode: u32) -> ::core::option::Option<super::super::System::Com::IStream> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHOpenRegStreamW(hkey: super::super::System::Registry::HKEY, pszsubkey: super::super::Foundation::PWSTR, pszvalue: super::super::Foundation::PWSTR, grfmode: u32) -> ::core::option::Option<super::super::System::Com::IStream>; } ::core::mem::transmute(SHOpenRegStreamW(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi(), ::core::mem::transmute(grfmode))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHOpenWithDialog<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(hwndparent: Param0, poainfo: *const OPENASINFO) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHOpenWithDialog(hwndparent: super::super::Foundation::HWND, poainfo: *const OPENASINFO) -> ::windows::core::HRESULT; } SHOpenWithDialog(hwndparent.into_param().abi(), ::core::mem::transmute(poainfo)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const SHPPFW_ASKDIRCREATE: u32 = 2u32; pub const SHPPFW_DIRCREATE: u32 = 1u32; pub const SHPPFW_IGNOREFILENAME: u32 = 4u32; pub const SHPPFW_MEDIACHECKONLY: u32 = 16u32; pub const SHPPFW_NONE: u32 = 0u32; pub const SHPPFW_NOWRITECHECK: u32 = 8u32; pub const SHPWHF_ANYLOCATION: u32 = 256u32; pub const SHPWHF_NOFILESELECTOR: u32 = 4u32; pub const SHPWHF_NONETPLACECREATE: u32 = 2u32; pub const SHPWHF_NORECOMPRESS: u32 = 1u32; pub const SHPWHF_USEMRU: u32 = 8u32; pub const SHPWHF_VALIDATEVIAWEBFOLDERS: u32 = 65536u32; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHParseDisplayName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>>(pszname: Param0, pbc: Param1, ppidl: *mut *mut Common::ITEMIDLIST, sfgaoin: u32, psfgaoout: *mut u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHParseDisplayName(pszname: super::super::Foundation::PWSTR, pbc: ::windows::core::RawPtr, ppidl: *mut *mut Common::ITEMIDLIST, sfgaoin: u32, psfgaoout: *mut u32) -> ::windows::core::HRESULT; } SHParseDisplayName(pszname.into_param().abi(), pbc.into_param().abi(), ::core::mem::transmute(ppidl), ::core::mem::transmute(sfgaoin), ::core::mem::transmute(psfgaoout)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHPathPrepareForWriteA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(hwnd: Param0, punkenablemodless: Param1, pszpath: Param2, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHPathPrepareForWriteA(hwnd: super::super::Foundation::HWND, punkenablemodless: ::windows::core::RawPtr, pszpath: super::super::Foundation::PSTR, dwflags: u32) -> ::windows::core::HRESULT; } SHPathPrepareForWriteA(hwnd.into_param().abi(), punkenablemodless.into_param().abi(), pszpath.into_param().abi(), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHPathPrepareForWriteW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hwnd: Param0, punkenablemodless: Param1, pszpath: Param2, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHPathPrepareForWriteW(hwnd: super::super::Foundation::HWND, punkenablemodless: ::windows::core::RawPtr, pszpath: super::super::Foundation::PWSTR, dwflags: u32) -> ::windows::core::HRESULT; } SHPathPrepareForWriteW(hwnd.into_param().abi(), punkenablemodless.into_param().abi(), pszpath.into_param().abi(), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] pub struct SHQUERYRBINFO { pub cbSize: u32, pub i64Size: i64, pub i64NumItems: i64, } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] impl SHQUERYRBINFO {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] impl ::core::default::Default for SHQUERYRBINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] impl ::core::fmt::Debug for SHQUERYRBINFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SHQUERYRBINFO").field("cbSize", &self.cbSize).field("i64Size", &self.i64Size).field("i64NumItems", &self.i64NumItems).finish() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] impl ::core::cmp::PartialEq for SHQUERYRBINFO { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.i64Size == other.i64Size && self.i64NumItems == other.i64NumItems } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] impl ::core::cmp::Eq for SHQUERYRBINFO {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] unsafe impl ::windows::core::Abi for SHQUERYRBINFO { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(target_arch = "x86",))] pub struct SHQUERYRBINFO { pub cbSize: u32, pub i64Size: i64, pub i64NumItems: i64, } #[cfg(any(target_arch = "x86",))] impl SHQUERYRBINFO {} #[cfg(any(target_arch = "x86",))] impl ::core::default::Default for SHQUERYRBINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] impl ::core::cmp::PartialEq for SHQUERYRBINFO { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] impl ::core::cmp::Eq for SHQUERYRBINFO {} #[cfg(any(target_arch = "x86",))] unsafe impl ::windows::core::Abi for SHQUERYRBINFO { type Abi = Self; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHQueryInfoKeyA<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>>(hkey: Param0, pcsubkeys: *mut u32, pcchmaxsubkeylen: *mut u32, pcvalues: *mut u32, pcchmaxvaluenamelen: *mut u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHQueryInfoKeyA(hkey: super::super::System::Registry::HKEY, pcsubkeys: *mut u32, pcchmaxsubkeylen: *mut u32, pcvalues: *mut u32, pcchmaxvaluenamelen: *mut u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHQueryInfoKeyA(hkey.into_param().abi(), ::core::mem::transmute(pcsubkeys), ::core::mem::transmute(pcchmaxsubkeylen), ::core::mem::transmute(pcvalues), ::core::mem::transmute(pcchmaxvaluenamelen))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHQueryInfoKeyW<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>>(hkey: Param0, pcsubkeys: *mut u32, pcchmaxsubkeylen: *mut u32, pcvalues: *mut u32, pcchmaxvaluenamelen: *mut u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHQueryInfoKeyW(hkey: super::super::System::Registry::HKEY, pcsubkeys: *mut u32, pcchmaxsubkeylen: *mut u32, pcvalues: *mut u32, pcchmaxvaluenamelen: *mut u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHQueryInfoKeyW(hkey.into_param().abi(), ::core::mem::transmute(pcsubkeys), ::core::mem::transmute(pcchmaxsubkeylen), ::core::mem::transmute(pcvalues), ::core::mem::transmute(pcchmaxvaluenamelen))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHQueryRecycleBinA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszrootpath: Param0, pshqueryrbinfo: *mut SHQUERYRBINFO) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHQueryRecycleBinA(pszrootpath: super::super::Foundation::PSTR, pshqueryrbinfo: *mut SHQUERYRBINFO) -> ::windows::core::HRESULT; } SHQueryRecycleBinA(pszrootpath.into_param().abi(), ::core::mem::transmute(pshqueryrbinfo)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHQueryRecycleBinW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszrootpath: Param0, pshqueryrbinfo: *mut SHQUERYRBINFO) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHQueryRecycleBinW(pszrootpath: super::super::Foundation::PWSTR, pshqueryrbinfo: *mut SHQUERYRBINFO) -> ::windows::core::HRESULT; } SHQueryRecycleBinW(pszrootpath.into_param().abi(), ::core::mem::transmute(pshqueryrbinfo)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHQueryUserNotificationState() -> ::windows::core::Result<QUERY_USER_NOTIFICATION_STATE> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHQueryUserNotificationState(pquns: *mut QUERY_USER_NOTIFICATION_STATE) -> ::windows::core::HRESULT; } let mut result__: <QUERY_USER_NOTIFICATION_STATE as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHQueryUserNotificationState(&mut result__).from_abi::<QUERY_USER_NOTIFICATION_STATE>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHQueryValueExA<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(hkey: Param0, pszvalue: Param1, pdwreserved: *mut u32, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHQueryValueExA(hkey: super::super::System::Registry::HKEY, pszvalue: super::super::Foundation::PSTR, pdwreserved: *mut u32, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHQueryValueExA(hkey.into_param().abi(), pszvalue.into_param().abi(), ::core::mem::transmute(pdwreserved), ::core::mem::transmute(pdwtype), ::core::mem::transmute(pvdata), ::core::mem::transmute(pcbdata))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHQueryValueExW<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hkey: Param0, pszvalue: Param1, pdwreserved: *mut u32, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHQueryValueExW(hkey: super::super::System::Registry::HKEY, pszvalue: super::super::Foundation::PWSTR, pdwreserved: *mut u32, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHQueryValueExW(hkey.into_param().abi(), pszvalue.into_param().abi(), ::core::mem::transmute(pdwreserved), ::core::mem::transmute(pdwtype), ::core::mem::transmute(pvdata), ::core::mem::transmute(pcbdata))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SHREGDEL_FLAGS(pub i32); pub const SHREGDEL_DEFAULT: SHREGDEL_FLAGS = SHREGDEL_FLAGS(0i32); pub const SHREGDEL_HKCU: SHREGDEL_FLAGS = SHREGDEL_FLAGS(1i32); pub const SHREGDEL_HKLM: SHREGDEL_FLAGS = SHREGDEL_FLAGS(16i32); pub const SHREGDEL_BOTH: SHREGDEL_FLAGS = SHREGDEL_FLAGS(17i32); impl ::core::convert::From<i32> for SHREGDEL_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SHREGDEL_FLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SHREGENUM_FLAGS(pub i32); pub const SHREGENUM_DEFAULT: SHREGENUM_FLAGS = SHREGENUM_FLAGS(0i32); pub const SHREGENUM_HKCU: SHREGENUM_FLAGS = SHREGENUM_FLAGS(1i32); pub const SHREGENUM_HKLM: SHREGENUM_FLAGS = SHREGENUM_FLAGS(16i32); pub const SHREGENUM_BOTH: SHREGENUM_FLAGS = SHREGENUM_FLAGS(17i32); impl ::core::convert::From<i32> for SHREGENUM_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SHREGENUM_FLAGS { type Abi = Self; } pub const SHREGSET_FORCE_HKCU: u32 = 2u32; pub const SHREGSET_FORCE_HKLM: u32 = 8u32; pub const SHREGSET_HKCU: u32 = 1u32; pub const SHREGSET_HKLM: u32 = 4u32; #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegCloseUSKey(huskey: isize) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegCloseUSKey(huskey: isize) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegCloseUSKey(::core::mem::transmute(huskey))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegCreateUSKeyA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0, samdesired: u32, hrelativeuskey: isize, phnewuskey: *mut isize, dwflags: u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegCreateUSKeyA(pszpath: super::super::Foundation::PSTR, samdesired: u32, hrelativeuskey: isize, phnewuskey: *mut isize, dwflags: u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegCreateUSKeyA(pszpath.into_param().abi(), ::core::mem::transmute(samdesired), ::core::mem::transmute(hrelativeuskey), ::core::mem::transmute(phnewuskey), ::core::mem::transmute(dwflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegCreateUSKeyW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pwzpath: Param0, samdesired: u32, hrelativeuskey: isize, phnewuskey: *mut isize, dwflags: u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegCreateUSKeyW(pwzpath: super::super::Foundation::PWSTR, samdesired: u32, hrelativeuskey: isize, phnewuskey: *mut isize, dwflags: u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegCreateUSKeyW(pwzpath.into_param().abi(), ::core::mem::transmute(samdesired), ::core::mem::transmute(hrelativeuskey), ::core::mem::transmute(phnewuskey), ::core::mem::transmute(dwflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegDeleteEmptyUSKeyA<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(huskey: isize, pszsubkey: Param1, delregflags: SHREGDEL_FLAGS) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegDeleteEmptyUSKeyA(huskey: isize, pszsubkey: super::super::Foundation::PSTR, delregflags: SHREGDEL_FLAGS) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegDeleteEmptyUSKeyA(::core::mem::transmute(huskey), pszsubkey.into_param().abi(), ::core::mem::transmute(delregflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegDeleteEmptyUSKeyW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(huskey: isize, pwzsubkey: Param1, delregflags: SHREGDEL_FLAGS) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegDeleteEmptyUSKeyW(huskey: isize, pwzsubkey: super::super::Foundation::PWSTR, delregflags: SHREGDEL_FLAGS) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegDeleteEmptyUSKeyW(::core::mem::transmute(huskey), pwzsubkey.into_param().abi(), ::core::mem::transmute(delregflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegDeleteUSValueA<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(huskey: isize, pszvalue: Param1, delregflags: SHREGDEL_FLAGS) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegDeleteUSValueA(huskey: isize, pszvalue: super::super::Foundation::PSTR, delregflags: SHREGDEL_FLAGS) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegDeleteUSValueA(::core::mem::transmute(huskey), pszvalue.into_param().abi(), ::core::mem::transmute(delregflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegDeleteUSValueW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(huskey: isize, pwzvalue: Param1, delregflags: SHREGDEL_FLAGS) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegDeleteUSValueW(huskey: isize, pwzvalue: super::super::Foundation::PWSTR, delregflags: SHREGDEL_FLAGS) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegDeleteUSValueW(::core::mem::transmute(huskey), pwzvalue.into_param().abi(), ::core::mem::transmute(delregflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn SHRegDuplicateHKey<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>>(hkey: Param0) -> super::super::System::Registry::HKEY { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegDuplicateHKey(hkey: super::super::System::Registry::HKEY) -> super::super::System::Registry::HKEY; } ::core::mem::transmute(SHRegDuplicateHKey(hkey.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegEnumUSKeyA(huskey: isize, dwindex: u32, pszname: super::super::Foundation::PSTR, pcchname: *mut u32, enumregflags: SHREGENUM_FLAGS) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegEnumUSKeyA(huskey: isize, dwindex: u32, pszname: super::super::Foundation::PSTR, pcchname: *mut u32, enumregflags: SHREGENUM_FLAGS) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegEnumUSKeyA(::core::mem::transmute(huskey), ::core::mem::transmute(dwindex), ::core::mem::transmute(pszname), ::core::mem::transmute(pcchname), ::core::mem::transmute(enumregflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegEnumUSKeyW(huskey: isize, dwindex: u32, pwzname: super::super::Foundation::PWSTR, pcchname: *mut u32, enumregflags: SHREGENUM_FLAGS) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegEnumUSKeyW(huskey: isize, dwindex: u32, pwzname: super::super::Foundation::PWSTR, pcchname: *mut u32, enumregflags: SHREGENUM_FLAGS) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegEnumUSKeyW(::core::mem::transmute(huskey), ::core::mem::transmute(dwindex), ::core::mem::transmute(pwzname), ::core::mem::transmute(pcchname), ::core::mem::transmute(enumregflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegEnumUSValueA(huskey: isize, dwindex: u32, pszvaluename: super::super::Foundation::PSTR, pcchvaluename: *mut u32, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32, enumregflags: SHREGENUM_FLAGS) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegEnumUSValueA(huskey: isize, dwindex: u32, pszvaluename: super::super::Foundation::PSTR, pcchvaluename: *mut u32, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32, enumregflags: SHREGENUM_FLAGS) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegEnumUSValueA(::core::mem::transmute(huskey), ::core::mem::transmute(dwindex), ::core::mem::transmute(pszvaluename), ::core::mem::transmute(pcchvaluename), ::core::mem::transmute(pdwtype), ::core::mem::transmute(pvdata), ::core::mem::transmute(pcbdata), ::core::mem::transmute(enumregflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegEnumUSValueW(huskey: isize, dwindex: u32, pszvaluename: super::super::Foundation::PWSTR, pcchvaluename: *mut u32, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32, enumregflags: SHREGENUM_FLAGS) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegEnumUSValueW(huskey: isize, dwindex: u32, pszvaluename: super::super::Foundation::PWSTR, pcchvaluename: *mut u32, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32, enumregflags: SHREGENUM_FLAGS) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegEnumUSValueW(::core::mem::transmute(huskey), ::core::mem::transmute(dwindex), ::core::mem::transmute(pszvaluename), ::core::mem::transmute(pcchvaluename), ::core::mem::transmute(pdwtype), ::core::mem::transmute(pvdata), ::core::mem::transmute(pcbdata), ::core::mem::transmute(enumregflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegGetBoolUSValueA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(pszsubkey: Param0, pszvalue: Param1, fignorehkcu: Param2, fdefault: Param3) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegGetBoolUSValueA(pszsubkey: super::super::Foundation::PSTR, pszvalue: super::super::Foundation::PSTR, fignorehkcu: super::super::Foundation::BOOL, fdefault: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHRegGetBoolUSValueA(pszsubkey.into_param().abi(), pszvalue.into_param().abi(), fignorehkcu.into_param().abi(), fdefault.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegGetBoolUSValueW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(pszsubkey: Param0, pszvalue: Param1, fignorehkcu: Param2, fdefault: Param3) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegGetBoolUSValueW(pszsubkey: super::super::Foundation::PWSTR, pszvalue: super::super::Foundation::PWSTR, fignorehkcu: super::super::Foundation::BOOL, fdefault: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHRegGetBoolUSValueW(pszsubkey.into_param().abi(), pszvalue.into_param().abi(), fignorehkcu.into_param().abi(), fdefault.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHRegGetIntW<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hk: Param0, pwzkey: Param1, idefault: i32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegGetIntW(hk: super::super::System::Registry::HKEY, pwzkey: super::super::Foundation::PWSTR, idefault: i32) -> i32; } ::core::mem::transmute(SHRegGetIntW(hk.into_param().abi(), pwzkey.into_param().abi(), ::core::mem::transmute(idefault))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHRegGetPathA<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(hkey: Param0, pcszsubkey: Param1, pcszvalue: Param2, pszpath: super::super::Foundation::PSTR, dwflags: u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegGetPathA(hkey: super::super::System::Registry::HKEY, pcszsubkey: super::super::Foundation::PSTR, pcszvalue: super::super::Foundation::PSTR, pszpath: super::super::Foundation::PSTR, dwflags: u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegGetPathA(hkey.into_param().abi(), pcszsubkey.into_param().abi(), pcszvalue.into_param().abi(), ::core::mem::transmute(pszpath), ::core::mem::transmute(dwflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHRegGetPathW<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hkey: Param0, pcszsubkey: Param1, pcszvalue: Param2, pszpath: super::super::Foundation::PWSTR, dwflags: u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegGetPathW(hkey: super::super::System::Registry::HKEY, pcszsubkey: super::super::Foundation::PWSTR, pcszvalue: super::super::Foundation::PWSTR, pszpath: super::super::Foundation::PWSTR, dwflags: u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegGetPathW(hkey.into_param().abi(), pcszsubkey.into_param().abi(), pcszvalue.into_param().abi(), ::core::mem::transmute(pszpath), ::core::mem::transmute(dwflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegGetUSValueA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param5: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(pszsubkey: Param0, pszvalue: Param1, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32, fignorehkcu: Param5, pvdefaultdata: *const ::core::ffi::c_void, dwdefaultdatasize: u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegGetUSValueA(pszsubkey: super::super::Foundation::PSTR, pszvalue: super::super::Foundation::PSTR, 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::LSTATUS; } ::core::mem::transmute(SHRegGetUSValueA(pszsubkey.into_param().abi(), pszvalue.into_param().abi(), ::core::mem::transmute(pdwtype), ::core::mem::transmute(pvdata), ::core::mem::transmute(pcbdata), fignorehkcu.into_param().abi(), ::core::mem::transmute(pvdefaultdata), ::core::mem::transmute(dwdefaultdatasize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegGetUSValueW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param5: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(pszsubkey: Param0, pszvalue: Param1, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32, fignorehkcu: Param5, pvdefaultdata: *const ::core::ffi::c_void, dwdefaultdatasize: u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegGetUSValueW(pszsubkey: super::super::Foundation::PWSTR, pszvalue: super::super::Foundation::PWSTR, 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::LSTATUS; } ::core::mem::transmute(SHRegGetUSValueW(pszsubkey.into_param().abi(), pszvalue.into_param().abi(), ::core::mem::transmute(pdwtype), ::core::mem::transmute(pvdata), ::core::mem::transmute(pcbdata), fignorehkcu.into_param().abi(), ::core::mem::transmute(pvdefaultdata), ::core::mem::transmute(dwdefaultdatasize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHRegGetValueA<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(hkey: Param0, pszsubkey: Param1, pszvalue: Param2, srrfflags: i32, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegGetValueA(hkey: super::super::System::Registry::HKEY, pszsubkey: super::super::Foundation::PSTR, pszvalue: super::super::Foundation::PSTR, srrfflags: i32, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegGetValueA(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi(), ::core::mem::transmute(srrfflags), ::core::mem::transmute(pdwtype), ::core::mem::transmute(pvdata), ::core::mem::transmute(pcbdata))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegGetValueFromHKCUHKLM<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pwszkey: Param0, pwszvalue: Param1, srrfflags: i32, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegGetValueFromHKCUHKLM(pwszkey: super::super::Foundation::PWSTR, pwszvalue: super::super::Foundation::PWSTR, srrfflags: i32, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegGetValueFromHKCUHKLM(pwszkey.into_param().abi(), pwszvalue.into_param().abi(), ::core::mem::transmute(srrfflags), ::core::mem::transmute(pdwtype), ::core::mem::transmute(pvdata), ::core::mem::transmute(pcbdata))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHRegGetValueW<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hkey: Param0, pszsubkey: Param1, pszvalue: Param2, srrfflags: i32, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegGetValueW(hkey: super::super::System::Registry::HKEY, pszsubkey: super::super::Foundation::PWSTR, pszvalue: super::super::Foundation::PWSTR, srrfflags: i32, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegGetValueW(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi(), ::core::mem::transmute(srrfflags), ::core::mem::transmute(pdwtype), ::core::mem::transmute(pvdata), ::core::mem::transmute(pcbdata))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegOpenUSKeyA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(pszpath: Param0, samdesired: u32, hrelativeuskey: isize, phnewuskey: *mut isize, fignorehkcu: Param4) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegOpenUSKeyA(pszpath: super::super::Foundation::PSTR, samdesired: u32, hrelativeuskey: isize, phnewuskey: *mut isize, fignorehkcu: super::super::Foundation::BOOL) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegOpenUSKeyA(pszpath.into_param().abi(), ::core::mem::transmute(samdesired), ::core::mem::transmute(hrelativeuskey), ::core::mem::transmute(phnewuskey), fignorehkcu.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegOpenUSKeyW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(pwzpath: Param0, samdesired: u32, hrelativeuskey: isize, phnewuskey: *mut isize, fignorehkcu: Param4) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegOpenUSKeyW(pwzpath: super::super::Foundation::PWSTR, samdesired: u32, hrelativeuskey: isize, phnewuskey: *mut isize, fignorehkcu: super::super::Foundation::BOOL) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegOpenUSKeyW(pwzpath.into_param().abi(), ::core::mem::transmute(samdesired), ::core::mem::transmute(hrelativeuskey), ::core::mem::transmute(phnewuskey), fignorehkcu.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegQueryInfoUSKeyA(huskey: isize, pcsubkeys: *mut u32, pcchmaxsubkeylen: *mut u32, pcvalues: *mut u32, pcchmaxvaluenamelen: *mut u32, enumregflags: SHREGENUM_FLAGS) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegQueryInfoUSKeyA(huskey: isize, pcsubkeys: *mut u32, pcchmaxsubkeylen: *mut u32, pcvalues: *mut u32, pcchmaxvaluenamelen: *mut u32, enumregflags: SHREGENUM_FLAGS) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegQueryInfoUSKeyA(::core::mem::transmute(huskey), ::core::mem::transmute(pcsubkeys), ::core::mem::transmute(pcchmaxsubkeylen), ::core::mem::transmute(pcvalues), ::core::mem::transmute(pcchmaxvaluenamelen), ::core::mem::transmute(enumregflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegQueryInfoUSKeyW(huskey: isize, pcsubkeys: *mut u32, pcchmaxsubkeylen: *mut u32, pcvalues: *mut u32, pcchmaxvaluenamelen: *mut u32, enumregflags: SHREGENUM_FLAGS) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegQueryInfoUSKeyW(huskey: isize, pcsubkeys: *mut u32, pcchmaxsubkeylen: *mut u32, pcvalues: *mut u32, pcchmaxvaluenamelen: *mut u32, enumregflags: SHREGENUM_FLAGS) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegQueryInfoUSKeyW(::core::mem::transmute(huskey), ::core::mem::transmute(pcsubkeys), ::core::mem::transmute(pcchmaxsubkeylen), ::core::mem::transmute(pcvalues), ::core::mem::transmute(pcchmaxvaluenamelen), ::core::mem::transmute(enumregflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegQueryUSValueA<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param5: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(huskey: isize, pszvalue: Param1, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32, fignorehkcu: Param5, pvdefaultdata: *const ::core::ffi::c_void, dwdefaultdatasize: u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegQueryUSValueA(huskey: isize, pszvalue: super::super::Foundation::PSTR, 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::LSTATUS; } ::core::mem::transmute(SHRegQueryUSValueA(::core::mem::transmute(huskey), pszvalue.into_param().abi(), ::core::mem::transmute(pdwtype), ::core::mem::transmute(pvdata), ::core::mem::transmute(pcbdata), fignorehkcu.into_param().abi(), ::core::mem::transmute(pvdefaultdata), ::core::mem::transmute(dwdefaultdatasize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegQueryUSValueW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param5: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(huskey: isize, pszvalue: Param1, pdwtype: *mut u32, pvdata: *mut ::core::ffi::c_void, pcbdata: *mut u32, fignorehkcu: Param5, pvdefaultdata: *const ::core::ffi::c_void, dwdefaultdatasize: u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegQueryUSValueW(huskey: isize, pszvalue: super::super::Foundation::PWSTR, 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::LSTATUS; } ::core::mem::transmute(SHRegQueryUSValueW(::core::mem::transmute(huskey), pszvalue.into_param().abi(), ::core::mem::transmute(pdwtype), ::core::mem::transmute(pvdata), ::core::mem::transmute(pcbdata), fignorehkcu.into_param().abi(), ::core::mem::transmute(pvdefaultdata), ::core::mem::transmute(dwdefaultdatasize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHRegSetPathA<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(hkey: Param0, pcszsubkey: Param1, pcszvalue: Param2, pcszpath: Param3, dwflags: u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegSetPathA(hkey: super::super::System::Registry::HKEY, pcszsubkey: super::super::Foundation::PSTR, pcszvalue: super::super::Foundation::PSTR, pcszpath: super::super::Foundation::PSTR, dwflags: u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegSetPathA(hkey.into_param().abi(), pcszsubkey.into_param().abi(), pcszvalue.into_param().abi(), pcszpath.into_param().abi(), ::core::mem::transmute(dwflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHRegSetPathW<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hkey: Param0, pcszsubkey: Param1, pcszvalue: Param2, pcszpath: Param3, dwflags: u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegSetPathW(hkey: super::super::System::Registry::HKEY, pcszsubkey: super::super::Foundation::PWSTR, pcszvalue: super::super::Foundation::PWSTR, pcszpath: super::super::Foundation::PWSTR, dwflags: u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegSetPathW(hkey.into_param().abi(), pcszsubkey.into_param().abi(), pcszvalue.into_param().abi(), pcszpath.into_param().abi(), ::core::mem::transmute(dwflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegSetUSValueA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszsubkey: Param0, pszvalue: Param1, dwtype: u32, pvdata: *const ::core::ffi::c_void, cbdata: u32, dwflags: u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegSetUSValueA(pszsubkey: super::super::Foundation::PSTR, pszvalue: super::super::Foundation::PSTR, dwtype: u32, pvdata: *const ::core::ffi::c_void, cbdata: u32, dwflags: u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegSetUSValueA(pszsubkey.into_param().abi(), pszvalue.into_param().abi(), ::core::mem::transmute(dwtype), ::core::mem::transmute(pvdata), ::core::mem::transmute(cbdata), ::core::mem::transmute(dwflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegSetUSValueW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pwzsubkey: Param0, pwzvalue: Param1, dwtype: u32, pvdata: *const ::core::ffi::c_void, cbdata: u32, dwflags: u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegSetUSValueW(pwzsubkey: super::super::Foundation::PWSTR, pwzvalue: super::super::Foundation::PWSTR, dwtype: u32, pvdata: *const ::core::ffi::c_void, cbdata: u32, dwflags: u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegSetUSValueW(pwzsubkey.into_param().abi(), pwzvalue.into_param().abi(), ::core::mem::transmute(dwtype), ::core::mem::transmute(pvdata), ::core::mem::transmute(cbdata), ::core::mem::transmute(dwflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegWriteUSValueA<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(huskey: isize, pszvalue: Param1, dwtype: u32, pvdata: *const ::core::ffi::c_void, cbdata: u32, dwflags: u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegWriteUSValueA(huskey: isize, pszvalue: super::super::Foundation::PSTR, dwtype: u32, pvdata: *const ::core::ffi::c_void, cbdata: u32, dwflags: u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegWriteUSValueA(::core::mem::transmute(huskey), pszvalue.into_param().abi(), ::core::mem::transmute(dwtype), ::core::mem::transmute(pvdata), ::core::mem::transmute(cbdata), ::core::mem::transmute(dwflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRegWriteUSValueW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(huskey: isize, pwzvalue: Param1, dwtype: u32, pvdata: *const ::core::ffi::c_void, cbdata: u32, dwflags: u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRegWriteUSValueW(huskey: isize, pwzvalue: super::super::Foundation::PWSTR, dwtype: u32, pvdata: *const ::core::ffi::c_void, cbdata: u32, dwflags: u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHRegWriteUSValueW(::core::mem::transmute(huskey), pwzvalue.into_param().abi(), ::core::mem::transmute(dwtype), ::core::mem::transmute(pvdata), ::core::mem::transmute(cbdata), ::core::mem::transmute(dwflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHReleaseThreadRef() -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHReleaseThreadRef() -> ::windows::core::HRESULT; } SHReleaseThreadRef().ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHRemoveLocalizedName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRemoveLocalizedName(pszpath: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } SHRemoveLocalizedName(pszpath.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] #[inline] pub unsafe fn SHReplaceFromPropSheetExtArray<'a, Param0: ::windows::core::IntoParam<'a, HPSXA>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(hpsxa: Param0, upageid: u32, lpfnreplacewith: ::core::option::Option<super::Controls::LPFNSVADDPROPSHEETPAGE>, lparam: Param3) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHReplaceFromPropSheetExtArray(hpsxa: HPSXA, upageid: u32, lpfnreplacewith: ::windows::core::RawPtr, lparam: super::super::Foundation::LPARAM) -> u32; } ::core::mem::transmute(SHReplaceFromPropSheetExtArray(hpsxa.into_param().abi(), ::core::mem::transmute(upageid), ::core::mem::transmute(lpfnreplacewith), lparam.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHResolveLibrary<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(psilibrary: Param0) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHResolveLibrary(psilibrary: ::windows::core::RawPtr) -> ::windows::core::HRESULT; } SHResolveLibrary(psilibrary.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHRestricted(rest: RESTRICTIONS) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHRestricted(rest: RESTRICTIONS) -> u32; } ::core::mem::transmute(SHRestricted(::core::mem::transmute(rest))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SHSTOCKICONID(pub i32); pub const SIID_DOCNOASSOC: SHSTOCKICONID = SHSTOCKICONID(0i32); pub const SIID_DOCASSOC: SHSTOCKICONID = SHSTOCKICONID(1i32); pub const SIID_APPLICATION: SHSTOCKICONID = SHSTOCKICONID(2i32); pub const SIID_FOLDER: SHSTOCKICONID = SHSTOCKICONID(3i32); pub const SIID_FOLDEROPEN: SHSTOCKICONID = SHSTOCKICONID(4i32); pub const SIID_DRIVE525: SHSTOCKICONID = SHSTOCKICONID(5i32); pub const SIID_DRIVE35: SHSTOCKICONID = SHSTOCKICONID(6i32); pub const SIID_DRIVEREMOVE: SHSTOCKICONID = SHSTOCKICONID(7i32); pub const SIID_DRIVEFIXED: SHSTOCKICONID = SHSTOCKICONID(8i32); pub const SIID_DRIVENET: SHSTOCKICONID = SHSTOCKICONID(9i32); pub const SIID_DRIVENETDISABLED: SHSTOCKICONID = SHSTOCKICONID(10i32); pub const SIID_DRIVECD: SHSTOCKICONID = SHSTOCKICONID(11i32); pub const SIID_DRIVERAM: SHSTOCKICONID = SHSTOCKICONID(12i32); pub const SIID_WORLD: SHSTOCKICONID = SHSTOCKICONID(13i32); pub const SIID_SERVER: SHSTOCKICONID = SHSTOCKICONID(15i32); pub const SIID_PRINTER: SHSTOCKICONID = SHSTOCKICONID(16i32); pub const SIID_MYNETWORK: SHSTOCKICONID = SHSTOCKICONID(17i32); pub const SIID_FIND: SHSTOCKICONID = SHSTOCKICONID(22i32); pub const SIID_HELP: SHSTOCKICONID = SHSTOCKICONID(23i32); pub const SIID_SHARE: SHSTOCKICONID = SHSTOCKICONID(28i32); pub const SIID_LINK: SHSTOCKICONID = SHSTOCKICONID(29i32); pub const SIID_SLOWFILE: SHSTOCKICONID = SHSTOCKICONID(30i32); pub const SIID_RECYCLER: SHSTOCKICONID = SHSTOCKICONID(31i32); pub const SIID_RECYCLERFULL: SHSTOCKICONID = SHSTOCKICONID(32i32); pub const SIID_MEDIACDAUDIO: SHSTOCKICONID = SHSTOCKICONID(40i32); pub const SIID_LOCK: SHSTOCKICONID = SHSTOCKICONID(47i32); pub const SIID_AUTOLIST: SHSTOCKICONID = SHSTOCKICONID(49i32); pub const SIID_PRINTERNET: SHSTOCKICONID = SHSTOCKICONID(50i32); pub const SIID_SERVERSHARE: SHSTOCKICONID = SHSTOCKICONID(51i32); pub const SIID_PRINTERFAX: SHSTOCKICONID = SHSTOCKICONID(52i32); pub const SIID_PRINTERFAXNET: SHSTOCKICONID = SHSTOCKICONID(53i32); pub const SIID_PRINTERFILE: SHSTOCKICONID = SHSTOCKICONID(54i32); pub const SIID_STACK: SHSTOCKICONID = SHSTOCKICONID(55i32); pub const SIID_MEDIASVCD: SHSTOCKICONID = SHSTOCKICONID(56i32); pub const SIID_STUFFEDFOLDER: SHSTOCKICONID = SHSTOCKICONID(57i32); pub const SIID_DRIVEUNKNOWN: SHSTOCKICONID = SHSTOCKICONID(58i32); pub const SIID_DRIVEDVD: SHSTOCKICONID = SHSTOCKICONID(59i32); pub const SIID_MEDIADVD: SHSTOCKICONID = SHSTOCKICONID(60i32); pub const SIID_MEDIADVDRAM: SHSTOCKICONID = SHSTOCKICONID(61i32); pub const SIID_MEDIADVDRW: SHSTOCKICONID = SHSTOCKICONID(62i32); pub const SIID_MEDIADVDR: SHSTOCKICONID = SHSTOCKICONID(63i32); pub const SIID_MEDIADVDROM: SHSTOCKICONID = SHSTOCKICONID(64i32); pub const SIID_MEDIACDAUDIOPLUS: SHSTOCKICONID = SHSTOCKICONID(65i32); pub const SIID_MEDIACDRW: SHSTOCKICONID = SHSTOCKICONID(66i32); pub const SIID_MEDIACDR: SHSTOCKICONID = SHSTOCKICONID(67i32); pub const SIID_MEDIACDBURN: SHSTOCKICONID = SHSTOCKICONID(68i32); pub const SIID_MEDIABLANKCD: SHSTOCKICONID = SHSTOCKICONID(69i32); pub const SIID_MEDIACDROM: SHSTOCKICONID = SHSTOCKICONID(70i32); pub const SIID_AUDIOFILES: SHSTOCKICONID = SHSTOCKICONID(71i32); pub const SIID_IMAGEFILES: SHSTOCKICONID = SHSTOCKICONID(72i32); pub const SIID_VIDEOFILES: SHSTOCKICONID = SHSTOCKICONID(73i32); pub const SIID_MIXEDFILES: SHSTOCKICONID = SHSTOCKICONID(74i32); pub const SIID_FOLDERBACK: SHSTOCKICONID = SHSTOCKICONID(75i32); pub const SIID_FOLDERFRONT: SHSTOCKICONID = SHSTOCKICONID(76i32); pub const SIID_SHIELD: SHSTOCKICONID = SHSTOCKICONID(77i32); pub const SIID_WARNING: SHSTOCKICONID = SHSTOCKICONID(78i32); pub const SIID_INFO: SHSTOCKICONID = SHSTOCKICONID(79i32); pub const SIID_ERROR: SHSTOCKICONID = SHSTOCKICONID(80i32); pub const SIID_KEY: SHSTOCKICONID = SHSTOCKICONID(81i32); pub const SIID_SOFTWARE: SHSTOCKICONID = SHSTOCKICONID(82i32); pub const SIID_RENAME: SHSTOCKICONID = SHSTOCKICONID(83i32); pub const SIID_DELETE: SHSTOCKICONID = SHSTOCKICONID(84i32); pub const SIID_MEDIAAUDIODVD: SHSTOCKICONID = SHSTOCKICONID(85i32); pub const SIID_MEDIAMOVIEDVD: SHSTOCKICONID = SHSTOCKICONID(86i32); pub const SIID_MEDIAENHANCEDCD: SHSTOCKICONID = SHSTOCKICONID(87i32); pub const SIID_MEDIAENHANCEDDVD: SHSTOCKICONID = SHSTOCKICONID(88i32); pub const SIID_MEDIAHDDVD: SHSTOCKICONID = SHSTOCKICONID(89i32); pub const SIID_MEDIABLURAY: SHSTOCKICONID = SHSTOCKICONID(90i32); pub const SIID_MEDIAVCD: SHSTOCKICONID = SHSTOCKICONID(91i32); pub const SIID_MEDIADVDPLUSR: SHSTOCKICONID = SHSTOCKICONID(92i32); pub const SIID_MEDIADVDPLUSRW: SHSTOCKICONID = SHSTOCKICONID(93i32); pub const SIID_DESKTOPPC: SHSTOCKICONID = SHSTOCKICONID(94i32); pub const SIID_MOBILEPC: SHSTOCKICONID = SHSTOCKICONID(95i32); pub const SIID_USERS: SHSTOCKICONID = SHSTOCKICONID(96i32); pub const SIID_MEDIASMARTMEDIA: SHSTOCKICONID = SHSTOCKICONID(97i32); pub const SIID_MEDIACOMPACTFLASH: SHSTOCKICONID = SHSTOCKICONID(98i32); pub const SIID_DEVICECELLPHONE: SHSTOCKICONID = SHSTOCKICONID(99i32); pub const SIID_DEVICECAMERA: SHSTOCKICONID = SHSTOCKICONID(100i32); pub const SIID_DEVICEVIDEOCAMERA: SHSTOCKICONID = SHSTOCKICONID(101i32); pub const SIID_DEVICEAUDIOPLAYER: SHSTOCKICONID = SHSTOCKICONID(102i32); pub const SIID_NETWORKCONNECT: SHSTOCKICONID = SHSTOCKICONID(103i32); pub const SIID_INTERNET: SHSTOCKICONID = SHSTOCKICONID(104i32); pub const SIID_ZIPFILE: SHSTOCKICONID = SHSTOCKICONID(105i32); pub const SIID_SETTINGS: SHSTOCKICONID = SHSTOCKICONID(106i32); pub const SIID_DRIVEHDDVD: SHSTOCKICONID = SHSTOCKICONID(132i32); pub const SIID_DRIVEBD: SHSTOCKICONID = SHSTOCKICONID(133i32); pub const SIID_MEDIAHDDVDROM: SHSTOCKICONID = SHSTOCKICONID(134i32); pub const SIID_MEDIAHDDVDR: SHSTOCKICONID = SHSTOCKICONID(135i32); pub const SIID_MEDIAHDDVDRAM: SHSTOCKICONID = SHSTOCKICONID(136i32); pub const SIID_MEDIABDROM: SHSTOCKICONID = SHSTOCKICONID(137i32); pub const SIID_MEDIABDR: SHSTOCKICONID = SHSTOCKICONID(138i32); pub const SIID_MEDIABDRE: SHSTOCKICONID = SHSTOCKICONID(139i32); pub const SIID_CLUSTEREDDRIVE: SHSTOCKICONID = SHSTOCKICONID(140i32); pub const SIID_MAX_ICONS: SHSTOCKICONID = SHSTOCKICONID(181i32); impl ::core::convert::From<i32> for SHSTOCKICONID { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SHSTOCKICONID { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[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 = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl SHSTOCKICONINFO {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::default::Default for SHSTOCKICONINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::fmt::Debug for SHSTOCKICONINFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SHSTOCKICONINFO").field("cbSize", &self.cbSize).field("hIcon", &self.hIcon).field("iSysImageIndex", &self.iSysImageIndex).field("iIcon", &self.iIcon).field("szPath", &self.szPath).finish() } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::cmp::PartialEq for SHSTOCKICONINFO { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.hIcon == other.hIcon && self.iSysImageIndex == other.iSysImageIndex && self.iIcon == other.iIcon && self.szPath == other.szPath } } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::cmp::Eq for SHSTOCKICONINFO {} #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] unsafe impl ::windows::core::Abi for SHSTOCKICONINFO { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C, packed(1))] #[cfg(any(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(any(target_arch = "x86",))] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl SHSTOCKICONINFO {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::default::Default for SHSTOCKICONINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::cmp::PartialEq for SHSTOCKICONINFO { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::cmp::Eq for SHSTOCKICONINFO {} #[cfg(any(target_arch = "x86",))] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] unsafe impl ::windows::core::Abi for SHSTOCKICONINFO { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHSendMessageBroadcastA<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(umsg: u32, wparam: Param1, lparam: Param2) -> super::super::Foundation::LRESULT { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHSendMessageBroadcastA(umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT; } ::core::mem::transmute(SHSendMessageBroadcastA(::core::mem::transmute(umsg), wparam.into_param().abi(), lparam.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHSendMessageBroadcastW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::WPARAM>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(umsg: u32, wparam: Param1, lparam: Param2) -> super::super::Foundation::LRESULT { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHSendMessageBroadcastW(umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT; } ::core::mem::transmute(SHSendMessageBroadcastW(::core::mem::transmute(umsg), wparam.into_param().abi(), lparam.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHSetDefaultProperties<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, IShellItem>, Param3: ::windows::core::IntoParam<'a, IFileOperationProgressSink>>(hwnd: Param0, psi: Param1, dwfileopflags: u32, pfops: Param3) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHSetDefaultProperties(hwnd: super::super::Foundation::HWND, psi: ::windows::core::RawPtr, dwfileopflags: u32, pfops: ::windows::core::RawPtr) -> ::windows::core::HRESULT; } SHSetDefaultProperties(hwnd.into_param().abi(), psi.into_param().abi(), ::core::mem::transmute(dwfileopflags), pfops.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHSetFolderPathA<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(csidl: i32, htoken: Param1, dwflags: u32, pszpath: Param3) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHSetFolderPathA(csidl: i32, htoken: super::super::Foundation::HANDLE, dwflags: u32, pszpath: super::super::Foundation::PSTR) -> ::windows::core::HRESULT; } SHSetFolderPathA(::core::mem::transmute(csidl), htoken.into_param().abi(), ::core::mem::transmute(dwflags), pszpath.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHSetFolderPathW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(csidl: i32, htoken: Param1, dwflags: u32, pszpath: Param3) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHSetFolderPathW(csidl: i32, htoken: super::super::Foundation::HANDLE, dwflags: u32, pszpath: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } SHSetFolderPathW(::core::mem::transmute(csidl), htoken.into_param().abi(), ::core::mem::transmute(dwflags), pszpath.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHSetInstanceExplorer<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(punk: Param0) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHSetInstanceExplorer(punk: ::windows::core::RawPtr); } ::core::mem::transmute(SHSetInstanceExplorer(punk.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHSetKnownFolderPath<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(rfid: *const ::windows::core::GUID, dwflags: u32, htoken: Param2, pszpath: Param3) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHSetKnownFolderPath(rfid: *const ::windows::core::GUID, dwflags: u32, htoken: super::super::Foundation::HANDLE, pszpath: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } SHSetKnownFolderPath(::core::mem::transmute(rfid), ::core::mem::transmute(dwflags), htoken.into_param().abi(), pszpath.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHSetLocalizedName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, pszresmodule: Param1, idsres: i32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHSetLocalizedName(pszpath: super::super::Foundation::PWSTR, pszresmodule: super::super::Foundation::PWSTR, idsres: i32) -> ::windows::core::HRESULT; } SHSetLocalizedName(pszpath.into_param().abi(), pszresmodule.into_param().abi(), ::core::mem::transmute(idsres)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] #[inline] pub unsafe fn SHSetTemporaryPropertyForItem<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>>(psi: Param0, propkey: *const PropertiesSystem::PROPERTYKEY, propvar: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHSetTemporaryPropertyForItem(psi: ::windows::core::RawPtr, propkey: *const PropertiesSystem::PROPERTYKEY, propvar: *const ::core::mem::ManuallyDrop<super::super::System::Com::StructuredStorage::PROPVARIANT>) -> ::windows::core::HRESULT; } SHSetTemporaryPropertyForItem(psi.into_param().abi(), ::core::mem::transmute(propkey), ::core::mem::transmute(propvar)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SHSetThreadRef<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IUnknown>>(punk: Param0) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHSetThreadRef(punk: ::windows::core::RawPtr) -> ::windows::core::HRESULT; } SHSetThreadRef(punk.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHSetUnreadMailCountW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszmailaddress: Param0, dwcount: u32, pszshellexecutecommand: Param2) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHSetUnreadMailCountW(pszmailaddress: super::super::Foundation::PWSTR, dwcount: u32, pszshellexecutecommand: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } SHSetUnreadMailCountW(pszmailaddress.into_param().abi(), ::core::mem::transmute(dwcount), pszshellexecutecommand.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHSetValueA<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(hkey: Param0, pszsubkey: Param1, pszvalue: Param2, dwtype: u32, pvdata: *const ::core::ffi::c_void, cbdata: u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHSetValueA(hkey: super::super::System::Registry::HKEY, pszsubkey: super::super::Foundation::PSTR, pszvalue: super::super::Foundation::PSTR, dwtype: u32, pvdata: *const ::core::ffi::c_void, cbdata: u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHSetValueA(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi(), ::core::mem::transmute(dwtype), ::core::mem::transmute(pvdata), ::core::mem::transmute(cbdata))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn SHSetValueW<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Registry::HKEY>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hkey: Param0, pszsubkey: Param1, pszvalue: Param2, dwtype: u32, pvdata: *const ::core::ffi::c_void, cbdata: u32) -> super::super::Foundation::LSTATUS { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHSetValueW(hkey: super::super::System::Registry::HKEY, pszsubkey: super::super::Foundation::PWSTR, pszvalue: super::super::Foundation::PWSTR, dwtype: u32, pvdata: *const ::core::ffi::c_void, cbdata: u32) -> super::super::Foundation::LSTATUS; } ::core::mem::transmute(SHSetValueW(hkey.into_param().abi(), pszsubkey.into_param().abi(), pszvalue.into_param().abi(), ::core::mem::transmute(dwtype), ::core::mem::transmute(pvdata), ::core::mem::transmute(cbdata))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHShellFolderView_Message<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::LPARAM>>(hwndmain: Param0, umsg: u32, lparam: Param2) -> super::super::Foundation::LRESULT { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHShellFolderView_Message(hwndmain: super::super::Foundation::HWND, umsg: u32, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT; } ::core::mem::transmute(SHShellFolderView_Message(hwndmain.into_param().abi(), ::core::mem::transmute(umsg), lparam.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHShowManageLibraryUI<'a, Param0: ::windows::core::IntoParam<'a, IShellItem>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(psilibrary: Param0, hwndowner: Param1, psztitle: Param2, pszinstruction: Param3, lmdoptions: LIBRARYMANAGEDIALOGOPTIONS) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHShowManageLibraryUI(psilibrary: ::windows::core::RawPtr, hwndowner: super::super::Foundation::HWND, psztitle: super::super::Foundation::PWSTR, pszinstruction: super::super::Foundation::PWSTR, lmdoptions: LIBRARYMANAGEDIALOGOPTIONS) -> ::windows::core::HRESULT; } SHShowManageLibraryUI(psilibrary.into_param().abi(), hwndowner.into_param().abi(), psztitle.into_param().abi(), pszinstruction.into_param().abi(), ::core::mem::transmute(lmdoptions)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SHSimpleIDListFromPath<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> *mut Common::ITEMIDLIST { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHSimpleIDListFromPath(pszpath: super::super::Foundation::PWSTR) -> *mut Common::ITEMIDLIST; } ::core::mem::transmute(SHSimpleIDListFromPath(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] pub unsafe fn SHSkipJunction<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::IBindCtx>>(pbc: Param0, pclsid: *const ::windows::core::GUID) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHSkipJunction(pbc: ::windows::core::RawPtr, pclsid: *const ::windows::core::GUID) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHSkipJunction(pbc.into_param().abi(), ::core::mem::transmute(pclsid))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHStartNetConnectionDialogW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hwnd: Param0, pszremotename: Param1, dwtype: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHStartNetConnectionDialogW(hwnd: super::super::Foundation::HWND, pszremotename: super::super::Foundation::PWSTR, dwtype: u32) -> ::windows::core::HRESULT; } SHStartNetConnectionDialogW(hwnd.into_param().abi(), pszremotename.into_param().abi(), ::core::mem::transmute(dwtype)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHStrDupA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(psz: Param0) -> ::windows::core::Result<super::super::Foundation::PWSTR> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHStrDupA(psz: super::super::Foundation::PSTR, ppwsz: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHStrDupA(psz.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHStrDupW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(psz: Param0) -> ::windows::core::Result<super::super::Foundation::PWSTR> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHStrDupW(psz: super::super::Foundation::PWSTR, ppwsz: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); SHStrDupW(psz.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHStripMneumonicA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszmenu: Param0) -> super::super::Foundation::CHAR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHStripMneumonicA(pszmenu: super::super::Foundation::PSTR) -> super::super::Foundation::CHAR; } ::core::mem::transmute(SHStripMneumonicA(pszmenu.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHStripMneumonicW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszmenu: Param0) -> u16 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHStripMneumonicW(pszmenu: super::super::Foundation::PWSTR) -> u16; } ::core::mem::transmute(SHStripMneumonicW(pszmenu.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHTestTokenMembership<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(htoken: Param0, ulrid: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHTestTokenMembership(htoken: super::super::Foundation::HANDLE, ulrid: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHTestTokenMembership(htoken.into_param().abi(), ::core::mem::transmute(ulrid))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHUnicodeToAnsi<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pwszsrc: Param0, pszdst: super::super::Foundation::PSTR, cchbuf: i32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHUnicodeToAnsi(pwszsrc: super::super::Foundation::PWSTR, pszdst: super::super::Foundation::PSTR, cchbuf: i32) -> i32; } ::core::mem::transmute(SHUnicodeToAnsi(pwszsrc.into_param().abi(), ::core::mem::transmute(pszdst), ::core::mem::transmute(cchbuf))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHUnicodeToUnicode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pwzsrc: Param0, pwzdst: super::super::Foundation::PWSTR, cwchbuf: i32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHUnicodeToUnicode(pwzsrc: super::super::Foundation::PWSTR, pwzdst: super::super::Foundation::PWSTR, cwchbuf: i32) -> i32; } ::core::mem::transmute(SHUnicodeToUnicode(pwzsrc.into_param().abi(), ::core::mem::transmute(pwzdst), ::core::mem::transmute(cwchbuf))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHUnlockShared(pvdata: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHUnlockShared(pvdata: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHUnlockShared(::core::mem::transmute(pvdata))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHUpdateImageA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszhashitem: Param0, iindex: i32, uflags: u32, iimageindex: i32) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHUpdateImageA(pszhashitem: super::super::Foundation::PSTR, iindex: i32, uflags: u32, iimageindex: i32); } ::core::mem::transmute(SHUpdateImageA(pszhashitem.into_param().abi(), ::core::mem::transmute(iindex), ::core::mem::transmute(uflags), ::core::mem::transmute(iimageindex))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHUpdateImageW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszhashitem: Param0, iindex: i32, uflags: u32, iimageindex: i32) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHUpdateImageW(pszhashitem: super::super::Foundation::PWSTR, iindex: i32, uflags: u32, iimageindex: i32); } ::core::mem::transmute(SHUpdateImageW(pszhashitem.into_param().abi(), ::core::mem::transmute(iindex), ::core::mem::transmute(uflags), ::core::mem::transmute(iimageindex))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SHValidateUNC<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hwndowner: Param0, pszfile: Param1, fconnect: VALIDATEUNC_OPTION) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SHValidateUNC(hwndowner: super::super::Foundation::HWND, pszfile: super::super::Foundation::PWSTR, fconnect: VALIDATEUNC_OPTION) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SHValidateUNC(hwndowner.into_param().abi(), pszfile.into_param().abi(), ::core::mem::transmute(fconnect))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SIATTRIBFLAGS(pub i32); pub const SIATTRIBFLAGS_AND: SIATTRIBFLAGS = SIATTRIBFLAGS(1i32); pub const SIATTRIBFLAGS_OR: SIATTRIBFLAGS = SIATTRIBFLAGS(2i32); pub const SIATTRIBFLAGS_APPCOMPAT: SIATTRIBFLAGS = SIATTRIBFLAGS(3i32); pub const SIATTRIBFLAGS_MASK: SIATTRIBFLAGS = SIATTRIBFLAGS(3i32); pub const SIATTRIBFLAGS_ALLITEMS: SIATTRIBFLAGS = SIATTRIBFLAGS(16384i32); impl ::core::convert::From<i32> for SIATTRIBFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SIATTRIBFLAGS { type Abi = Self; } pub const SID_CommandsPropertyBag: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6e043250_4416_485c_b143_e62a760d9fe5); pub const SID_CtxQueryAssociations: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfaadfc40_b777_4b69_aa81_77035ef0e6e8); pub const SID_DefView: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6d12fe80_7911_11cf_9534_0000c05bae0b); pub const SID_LaunchSourceAppUserModelId: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2ce78010_74db_48bc_9c6a_10f372495723); pub const SID_LaunchSourceViewSizePreference: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x80605492_67d9_414f_af89_a1cdf1242bc1); pub const SID_LaunchTargetViewSizePreference: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x26db2472_b7b7_406b_9702_730a4e20d3bf); pub const SID_MenuShellFolder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa6c17eb4_2d65_11d2_838f_00c04fd918d0); pub const SID_SCommDlgBrowser: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x80f30233_b7df_11d2_a33b_006097df5bd4); pub const SID_SCommandBarState: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb99eaa5c_3850_4400_bc33_2ce534048bf8); pub const SID_SGetViewFromViewDual: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x889a935d_971e_4b12_b90c_24dfc9e1e5e8); pub const SID_SInPlaceBrowser: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1d2ae02b_3655_46cc_b63a_285988153bca); pub const SID_SMenuBandBKContextMenu: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x164bbd86_1d0d_4de0_9a3b_d9729647c2b8); pub const SID_SMenuBandBottom: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x743ca664_0deb_11d1_9825_00c04fd91972); pub const SID_SMenuBandBottomSelected: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x165ebaf4_6d51_11d2_83ad_00c04fd918d0); pub const SID_SMenuBandChild: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xed9cc020_08b9_11d1_9823_00c04fd91972); pub const SID_SMenuBandContextMenuModifier: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x39545874_7162_465e_b783_2aa1874fef81); pub const SID_SMenuBandParent: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8c278eec_3eab_11d1_8cb0_00c04fd918d0); pub const SID_SMenuBandTop: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9493a810_ec38_11d0_bc46_00aa006ce2f5); pub const SID_SMenuPopup: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd1e7afeb_6a2e_11d0_8c78_00c04fd918b4); pub const SID_SSearchBoxInfo: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x142daa61_516b_4713_b49c_fb985ef82998); pub const SID_STopLevelBrowser: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4c96be40_915c_11cf_99d3_00aa004ae837); pub const SID_STopWindow: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x49e1b500_4636_11d3_97f7_00c04f45d0b3); pub const SID_ShellExecuteNamedPropertyStore: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xeb84ada2_00ff_4992_8324_ed5ce061cb29); pub const SID_URLExecutionContext: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfb5f8ebc_bbb6_4d10_a461_777291a09030); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SIGDN(pub i32); pub const SIGDN_NORMALDISPLAY: SIGDN = SIGDN(0i32); pub const SIGDN_PARENTRELATIVEPARSING: SIGDN = SIGDN(-2147385343i32); pub const SIGDN_DESKTOPABSOLUTEPARSING: SIGDN = SIGDN(-2147319808i32); pub const SIGDN_PARENTRELATIVEEDITING: SIGDN = SIGDN(-2147282943i32); pub const SIGDN_DESKTOPABSOLUTEEDITING: SIGDN = SIGDN(-2147172352i32); pub const SIGDN_FILESYSPATH: SIGDN = SIGDN(-2147123200i32); pub const SIGDN_URL: SIGDN = SIGDN(-2147057664i32); pub const SIGDN_PARENTRELATIVEFORADDRESSBAR: SIGDN = SIGDN(-2146975743i32); pub const SIGDN_PARENTRELATIVE: SIGDN = SIGDN(-2146959359i32); pub const SIGDN_PARENTRELATIVEFORUI: SIGDN = SIGDN(-2146877439i32); impl ::core::convert::From<i32> for SIGDN { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SIGDN { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SIIGBF(pub i32); pub const SIIGBF_RESIZETOFIT: SIIGBF = SIIGBF(0i32); pub const SIIGBF_BIGGERSIZEOK: SIIGBF = SIIGBF(1i32); pub const SIIGBF_MEMORYONLY: SIIGBF = SIIGBF(2i32); pub const SIIGBF_ICONONLY: SIIGBF = SIIGBF(4i32); pub const SIIGBF_THUMBNAILONLY: SIIGBF = SIIGBF(8i32); pub const SIIGBF_INCACHEONLY: SIIGBF = SIIGBF(16i32); pub const SIIGBF_CROPTOSQUARE: SIIGBF = SIIGBF(32i32); pub const SIIGBF_WIDETHUMBNAILS: SIIGBF = SIIGBF(64i32); pub const SIIGBF_ICONBACKGROUND: SIIGBF = SIIGBF(128i32); pub const SIIGBF_SCALEUP: SIIGBF = SIIGBF(256i32); impl ::core::convert::From<i32> for SIIGBF { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SIIGBF { type Abi = Self; } impl ::core::ops::BitOr for SIIGBF { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for SIIGBF { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for SIIGBF { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for SIIGBF { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for SIIGBF { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } pub const SIOM_ICONINDEX: u32 = 2u32; pub const SIOM_OVERLAYINDEX: u32 = 1u32; pub const SIOM_RESERVED_DEFAULT: u32 = 3u32; pub const SIOM_RESERVED_LINK: u32 = 1u32; pub const SIOM_RESERVED_SHARED: u32 = 0u32; pub const SIOM_RESERVED_SLOWFILE: u32 = 2u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SLGP_FLAGS(pub i32); pub const SLGP_SHORTPATH: SLGP_FLAGS = SLGP_FLAGS(1i32); pub const SLGP_UNCPRIORITY: SLGP_FLAGS = SLGP_FLAGS(2i32); pub const SLGP_RAWPATH: SLGP_FLAGS = SLGP_FLAGS(4i32); pub const SLGP_RELATIVEPRIORITY: SLGP_FLAGS = SLGP_FLAGS(8i32); impl ::core::convert::From<i32> for SLGP_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SLGP_FLAGS { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct SLOWAPPINFO { pub ullSize: u64, pub ftLastUsed: super::super::Foundation::FILETIME, pub iTimesUsed: i32, pub pszImage: super::super::Foundation::PWSTR, } #[cfg(feature = "Win32_Foundation")] impl SLOWAPPINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for SLOWAPPINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for SLOWAPPINFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SLOWAPPINFO").field("ullSize", &self.ullSize).field("ftLastUsed", &self.ftLastUsed).field("iTimesUsed", &self.iTimesUsed).field("pszImage", &self.pszImage).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for SLOWAPPINFO { fn eq(&self, other: &Self) -> bool { self.ullSize == other.ullSize && self.ftLastUsed == other.ftLastUsed && self.iTimesUsed == other.iTimesUsed && self.pszImage == other.pszImage } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for SLOWAPPINFO {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for SLOWAPPINFO { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SLR_FLAGS(pub i32); pub const SLR_NONE: SLR_FLAGS = SLR_FLAGS(0i32); pub const SLR_NO_UI: SLR_FLAGS = SLR_FLAGS(1i32); pub const SLR_ANY_MATCH: SLR_FLAGS = SLR_FLAGS(2i32); pub const SLR_UPDATE: SLR_FLAGS = SLR_FLAGS(4i32); pub const SLR_NOUPDATE: SLR_FLAGS = SLR_FLAGS(8i32); pub const SLR_NOSEARCH: SLR_FLAGS = SLR_FLAGS(16i32); pub const SLR_NOTRACK: SLR_FLAGS = SLR_FLAGS(32i32); pub const SLR_NOLINKINFO: SLR_FLAGS = SLR_FLAGS(64i32); pub const SLR_INVOKE_MSI: SLR_FLAGS = SLR_FLAGS(128i32); pub const SLR_NO_UI_WITH_MSG_PUMP: SLR_FLAGS = SLR_FLAGS(257i32); pub const SLR_OFFER_DELETE_WITHOUT_FILE: SLR_FLAGS = SLR_FLAGS(512i32); pub const SLR_KNOWNFOLDER: SLR_FLAGS = SLR_FLAGS(1024i32); pub const SLR_MACHINE_IN_LOCAL_TARGET: SLR_FLAGS = SLR_FLAGS(2048i32); pub const SLR_UPDATE_MACHINE_AND_SID: SLR_FLAGS = SLR_FLAGS(4096i32); pub const SLR_NO_OBJECT_ID: SLR_FLAGS = SLR_FLAGS(8192i32); impl ::core::convert::From<i32> for SLR_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SLR_FLAGS { type Abi = Self; } pub const SMAE_CONTRACTED: u32 = 2u32; pub const SMAE_EXPANDED: u32 = 1u32; pub const SMAE_USER: u32 = 4u32; pub const SMAE_VALID: u32 = 7u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[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 SMCSHCHANGENOTIFYSTRUCT {} #[cfg(feature = "Win32_UI_Shell_Common")] impl ::core::default::Default for SMCSHCHANGENOTIFYSTRUCT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_UI_Shell_Common")] impl ::core::fmt::Debug for SMCSHCHANGENOTIFYSTRUCT { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SMCSHCHANGENOTIFYSTRUCT").field("lEvent", &self.lEvent).field("pidl1", &self.pidl1).field("pidl2", &self.pidl2).finish() } } #[cfg(feature = "Win32_UI_Shell_Common")] impl ::core::cmp::PartialEq for SMCSHCHANGENOTIFYSTRUCT { fn eq(&self, other: &Self) -> bool { self.lEvent == other.lEvent && self.pidl1 == other.pidl1 && self.pidl2 == other.pidl2 } } #[cfg(feature = "Win32_UI_Shell_Common")] impl ::core::cmp::Eq for SMCSHCHANGENOTIFYSTRUCT {} #[cfg(feature = "Win32_UI_Shell_Common")] unsafe impl ::windows::core::Abi for SMCSHCHANGENOTIFYSTRUCT { type Abi = Self; } pub const SMC_AUTOEXPANDCHANGE: u32 = 66u32; pub const SMC_CHEVRONEXPAND: u32 = 25u32; pub const SMC_CHEVRONGETTIP: u32 = 47u32; pub const SMC_CREATE: u32 = 2u32; pub const SMC_DEFAULTICON: u32 = 22u32; pub const SMC_DEMOTE: u32 = 17u32; pub const SMC_DISPLAYCHEVRONTIP: u32 = 42u32; pub const SMC_EXITMENU: u32 = 3u32; pub const SMC_GETAUTOEXPANDSTATE: u32 = 65u32; pub const SMC_GETBKCONTEXTMENU: u32 = 68u32; pub const SMC_GETCONTEXTMENUMODIFIER: u32 = 67u32; pub const SMC_GETINFO: u32 = 5u32; pub const SMC_GETOBJECT: u32 = 7u32; pub const SMC_GETSFINFO: u32 = 6u32; pub const SMC_GETSFOBJECT: u32 = 8u32; pub const SMC_INITMENU: u32 = 1u32; pub const SMC_NEWITEM: u32 = 23u32; pub const SMC_OPEN: u32 = 69u32; pub const SMC_PROMOTE: u32 = 18u32; pub const SMC_REFRESH: u32 = 16u32; pub const SMC_SETSFOBJECT: u32 = 45u32; pub const SMC_SFDDRESTRICTED: u32 = 48u32; pub const SMC_SFEXEC: u32 = 9u32; pub const SMC_SFEXEC_MIDDLE: u32 = 49u32; pub const SMC_SFSELECTITEM: u32 = 10u32; pub const SMC_SHCHANGENOTIFY: u32 = 46u32; #[derive(:: core :: clone :: Clone)] #[repr(C)] #[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: ::core::option::Option<::windows::core::IUnknown>, pub pidlFolder: *mut Common::ITEMIDLIST, pub pidlItem: *mut Common::ITEMIDLIST, pub psf: ::core::option::Option<IShellFolder>, pub pvUserData: *mut ::core::ffi::c_void, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl SMDATA {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::default::Default for SMDATA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::fmt::Debug for SMDATA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SMDATA") .field("dwMask", &self.dwMask) .field("dwFlags", &self.dwFlags) .field("hmenu", &self.hmenu) .field("hwnd", &self.hwnd) .field("uId", &self.uId) .field("uIdParent", &self.uIdParent) .field("uIdAncestor", &self.uIdAncestor) .field("punk", &self.punk) .field("pidlFolder", &self.pidlFolder) .field("pidlItem", &self.pidlItem) .field("psf", &self.psf) .field("pvUserData", &self.pvUserData) .finish() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::PartialEq for SMDATA { fn eq(&self, other: &Self) -> bool { self.dwMask == other.dwMask && self.dwFlags == other.dwFlags && self.hmenu == other.hmenu && self.hwnd == other.hwnd && self.uId == other.uId && self.uIdParent == other.uIdParent && self.uIdAncestor == other.uIdAncestor && self.punk == other.punk && self.pidlFolder == other.pidlFolder && self.pidlItem == other.pidlItem && self.psf == other.psf && self.pvUserData == other.pvUserData } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::Eq for SMDATA {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] unsafe impl ::windows::core::Abi for SMDATA { type Abi = ::core::mem::ManuallyDrop<Self>; } pub const SMDM_HMENU: u32 = 2u32; pub const SMDM_SHELLFOLDER: u32 = 1u32; pub const SMDM_TOOLBAR: u32 = 4u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct SMINFO { pub dwMask: u32, pub dwType: u32, pub dwFlags: u32, pub iIcon: i32, } impl SMINFO {} impl ::core::default::Default for SMINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for SMINFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SMINFO").field("dwMask", &self.dwMask).field("dwType", &self.dwType).field("dwFlags", &self.dwFlags).field("iIcon", &self.iIcon).finish() } } impl ::core::cmp::PartialEq for SMINFO { fn eq(&self, other: &Self) -> bool { self.dwMask == other.dwMask && self.dwType == other.dwType && self.dwFlags == other.dwFlags && self.iIcon == other.iIcon } } impl ::core::cmp::Eq for SMINFO {} unsafe impl ::windows::core::Abi for SMINFO { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SMINFOFLAGS(pub i32); pub const SMIF_ICON: SMINFOFLAGS = SMINFOFLAGS(1i32); pub const SMIF_ACCELERATOR: SMINFOFLAGS = SMINFOFLAGS(2i32); pub const SMIF_DROPTARGET: SMINFOFLAGS = SMINFOFLAGS(4i32); pub const SMIF_SUBMENU: SMINFOFLAGS = SMINFOFLAGS(8i32); pub const SMIF_CHECKED: SMINFOFLAGS = SMINFOFLAGS(32i32); pub const SMIF_DROPCASCADE: SMINFOFLAGS = SMINFOFLAGS(64i32); pub const SMIF_HIDDEN: SMINFOFLAGS = SMINFOFLAGS(128i32); pub const SMIF_DISABLED: SMINFOFLAGS = SMINFOFLAGS(256i32); pub const SMIF_TRACKPOPUP: SMINFOFLAGS = SMINFOFLAGS(512i32); pub const SMIF_DEMOTED: SMINFOFLAGS = SMINFOFLAGS(1024i32); pub const SMIF_ALTSTATE: SMINFOFLAGS = SMINFOFLAGS(2048i32); pub const SMIF_DRAGNDROP: SMINFOFLAGS = SMINFOFLAGS(4096i32); pub const SMIF_NEW: SMINFOFLAGS = SMINFOFLAGS(8192i32); impl ::core::convert::From<i32> for SMINFOFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SMINFOFLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SMINFOMASK(pub i32); pub const SMIM_TYPE: SMINFOMASK = SMINFOMASK(1i32); pub const SMIM_FLAGS: SMINFOMASK = SMINFOMASK(2i32); pub const SMIM_ICON: SMINFOMASK = SMINFOMASK(4i32); impl ::core::convert::From<i32> for SMINFOMASK { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SMINFOMASK { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SMINFOTYPE(pub i32); pub const SMIT_SEPARATOR: SMINFOTYPE = SMINFOTYPE(1i32); pub const SMIT_STRING: SMINFOTYPE = SMINFOTYPE(2i32); impl ::core::convert::From<i32> for SMINFOTYPE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SMINFOTYPE { type Abi = Self; } pub const SMINIT_AUTOEXPAND: u32 = 256u32; pub const SMINIT_AUTOTOOLTIP: u32 = 512u32; pub const SMINIT_CACHED: u32 = 16u32; pub const SMINIT_DEFAULT: u32 = 0u32; pub const SMINIT_DROPONCONTAINER: u32 = 1024u32; pub const SMINIT_HORIZONTAL: u32 = 536870912u32; pub const SMINIT_RESTRICT_DRAGDROP: u32 = 2u32; pub const SMINIT_TOPLEVEL: u32 = 4u32; pub const SMINIT_VERTICAL: u32 = 268435456u32; pub const SMINV_ID: u32 = 8u32; pub const SMINV_REFRESH: u32 = 1u32; pub const SMSET_BOTTOM: u32 = 536870912u32; pub const SMSET_DONTOWN: u32 = 1u32; pub const SMSET_TOP: u32 = 268435456u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub struct SORTCOLUMN { pub propkey: PropertiesSystem::PROPERTYKEY, pub direction: SORTDIRECTION, } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl SORTCOLUMN {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ::core::default::Default for SORTCOLUMN { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ::core::fmt::Debug for SORTCOLUMN { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SORTCOLUMN").field("propkey", &self.propkey).field("direction", &self.direction).finish() } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ::core::cmp::PartialEq for SORTCOLUMN { fn eq(&self, other: &Self) -> bool { self.propkey == other.propkey && self.direction == other.direction } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ::core::cmp::Eq for SORTCOLUMN {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] unsafe impl ::windows::core::Abi for SORTCOLUMN { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SORTDIRECTION(pub i32); pub const SORT_DESCENDING: SORTDIRECTION = SORTDIRECTION(-1i32); pub const SORT_ASCENDING: SORTDIRECTION = SORTDIRECTION(1i32); impl ::core::convert::From<i32> for SORTDIRECTION { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SORTDIRECTION { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SORT_ORDER_TYPE(pub i32); pub const SOT_DEFAULT: SORT_ORDER_TYPE = SORT_ORDER_TYPE(0i32); pub const SOT_IGNORE_FOLDERNESS: SORT_ORDER_TYPE = SORT_ORDER_TYPE(1i32); impl ::core::convert::From<i32> for SORT_ORDER_TYPE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SORT_ORDER_TYPE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SPACTION(pub i32); pub const SPACTION_NONE: SPACTION = SPACTION(0i32); pub const SPACTION_MOVING: SPACTION = SPACTION(1i32); pub const SPACTION_COPYING: SPACTION = SPACTION(2i32); pub const SPACTION_RECYCLING: SPACTION = SPACTION(3i32); pub const SPACTION_APPLYINGATTRIBS: SPACTION = SPACTION(4i32); pub const SPACTION_DOWNLOADING: SPACTION = SPACTION(5i32); pub const SPACTION_SEARCHING_INTERNET: SPACTION = SPACTION(6i32); pub const SPACTION_CALCULATING: SPACTION = SPACTION(7i32); pub const SPACTION_UPLOADING: SPACTION = SPACTION(8i32); pub const SPACTION_SEARCHING_FILES: SPACTION = SPACTION(9i32); pub const SPACTION_DELETING: SPACTION = SPACTION(10i32); pub const SPACTION_RENAMING: SPACTION = SPACTION(11i32); pub const SPACTION_FORMATTING: SPACTION = SPACTION(12i32); pub const SPACTION_COPY_MOVING: SPACTION = SPACTION(13i32); impl ::core::convert::From<i32> for SPACTION { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SPACTION { type Abi = Self; } pub const SPMODE_BROWSER: u32 = 8u32; pub const SPMODE_DBMON: u32 = 8192u32; pub const SPMODE_DEBUGBREAK: u32 = 512u32; pub const SPMODE_DEBUGOUT: u32 = 2u32; pub const SPMODE_EVENT: u32 = 32u32; pub const SPMODE_EVENTTRACE: u32 = 32768u32; pub const SPMODE_FLUSH: u32 = 16u32; pub const SPMODE_FORMATTEXT: u32 = 128u32; pub const SPMODE_MEMWATCH: u32 = 4096u32; pub const SPMODE_MSGTRACE: u32 = 1024u32; pub const SPMODE_MSVM: u32 = 64u32; pub const SPMODE_MULTISTOP: u32 = 16384u32; pub const SPMODE_PERFTAGS: u32 = 2048u32; pub const SPMODE_PROFILE: u32 = 256u32; pub const SPMODE_SHELL: u32 = 1u32; pub const SPMODE_TEST: u32 = 4u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SPTEXT(pub i32); pub const SPTEXT_ACTIONDESCRIPTION: SPTEXT = SPTEXT(1i32); pub const SPTEXT_ACTIONDETAIL: SPTEXT = SPTEXT(2i32); impl ::core::convert::From<i32> for SPTEXT { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SPTEXT { type Abi = Self; } pub const SRRF_NOEXPAND: u32 = 268435456u32; pub const SRRF_NOVIRT: u32 = 1073741824u32; pub const SRRF_RM_ANY: u32 = 0u32; pub const SRRF_RM_NORMAL: u32 = 65536u32; pub const SRRF_RM_SAFE: u32 = 131072u32; pub const SRRF_RM_SAFENETWORK: u32 = 262144u32; pub const SRRF_RT_ANY: u32 = 65535u32; pub const SRRF_RT_REG_BINARY: u32 = 8u32; pub const SRRF_RT_REG_DWORD: u32 = 16u32; pub const SRRF_RT_REG_EXPAND_SZ: u32 = 4u32; pub const SRRF_RT_REG_MULTI_SZ: u32 = 32u32; pub const SRRF_RT_REG_NONE: u32 = 1u32; pub const SRRF_RT_REG_QWORD: u32 = 64u32; pub const SRRF_RT_REG_SZ: u32 = 2u32; pub const SRRF_ZEROONFAILURE: u32 = 536870912u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SSF_MASK(pub u32); pub const SSF_SHOWALLOBJECTS: SSF_MASK = SSF_MASK(1u32); pub const SSF_SHOWEXTENSIONS: SSF_MASK = SSF_MASK(2u32); pub const SSF_HIDDENFILEEXTS: SSF_MASK = SSF_MASK(4u32); pub const SSF_SERVERADMINUI: SSF_MASK = SSF_MASK(4u32); pub const SSF_SHOWCOMPCOLOR: SSF_MASK = SSF_MASK(8u32); pub const SSF_SORTCOLUMNS: SSF_MASK = SSF_MASK(16u32); pub const SSF_SHOWSYSFILES: SSF_MASK = SSF_MASK(32u32); pub const SSF_DOUBLECLICKINWEBVIEW: SSF_MASK = SSF_MASK(128u32); pub const SSF_SHOWATTRIBCOL: SSF_MASK = SSF_MASK(256u32); pub const SSF_DESKTOPHTML: SSF_MASK = SSF_MASK(512u32); pub const SSF_WIN95CLASSIC: SSF_MASK = SSF_MASK(1024u32); pub const SSF_DONTPRETTYPATH: SSF_MASK = SSF_MASK(2048u32); pub const SSF_SHOWINFOTIP: SSF_MASK = SSF_MASK(8192u32); pub const SSF_MAPNETDRVBUTTON: SSF_MASK = SSF_MASK(4096u32); pub const SSF_NOCONFIRMRECYCLE: SSF_MASK = SSF_MASK(32768u32); pub const SSF_HIDEICONS: SSF_MASK = SSF_MASK(16384u32); pub const SSF_FILTER: SSF_MASK = SSF_MASK(65536u32); pub const SSF_WEBVIEW: SSF_MASK = SSF_MASK(131072u32); pub const SSF_SHOWSUPERHIDDEN: SSF_MASK = SSF_MASK(262144u32); pub const SSF_SEPPROCESS: SSF_MASK = SSF_MASK(524288u32); pub const SSF_NONETCRAWLING: SSF_MASK = SSF_MASK(1048576u32); pub const SSF_STARTPANELON: SSF_MASK = SSF_MASK(2097152u32); pub const SSF_SHOWSTARTPAGE: SSF_MASK = SSF_MASK(4194304u32); pub const SSF_AUTOCHECKSELECT: SSF_MASK = SSF_MASK(8388608u32); pub const SSF_ICONSONLY: SSF_MASK = SSF_MASK(16777216u32); pub const SSF_SHOWTYPEOVERLAY: SSF_MASK = SSF_MASK(33554432u32); pub const SSF_SHOWSTATUSBAR: SSF_MASK = SSF_MASK(67108864u32); impl ::core::convert::From<u32> for SSF_MASK { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SSF_MASK { type Abi = Self; } impl ::core::ops::BitOr for SSF_MASK { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for SSF_MASK { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for SSF_MASK { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for SSF_MASK { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for SSF_MASK { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } pub const SSM_CLEAR: u32 = 0u32; pub const SSM_REFRESH: u32 = 2u32; pub const SSM_SET: u32 = 1u32; pub const SSM_UPDATE: u32 = 4u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct STGOP(pub i32); pub const STGOP_MOVE: STGOP = STGOP(1i32); pub const STGOP_COPY: STGOP = STGOP(2i32); pub const STGOP_SYNC: STGOP = STGOP(3i32); pub const STGOP_REMOVE: STGOP = STGOP(5i32); pub const STGOP_RENAME: STGOP = STGOP(6i32); pub const STGOP_APPLYPROPERTIES: STGOP = STGOP(8i32); pub const STGOP_NEW: STGOP = STGOP(10i32); impl ::core::convert::From<i32> for STGOP { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for STGOP { type Abi = Self; } pub const STIF_DEFAULT: i32 = 0i32; pub const STIF_SUPPORT_HEX: i32 = 1i32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct STORAGE_PROVIDER_FILE_FLAGS(pub i32); pub const SPFF_NONE: STORAGE_PROVIDER_FILE_FLAGS = STORAGE_PROVIDER_FILE_FLAGS(0i32); pub const SPFF_DOWNLOAD_BY_DEFAULT: STORAGE_PROVIDER_FILE_FLAGS = STORAGE_PROVIDER_FILE_FLAGS(1i32); pub const SPFF_CREATED_ON_THIS_DEVICE: STORAGE_PROVIDER_FILE_FLAGS = STORAGE_PROVIDER_FILE_FLAGS(2i32); impl ::core::convert::From<i32> for STORAGE_PROVIDER_FILE_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for STORAGE_PROVIDER_FILE_FLAGS { type Abi = Self; } pub const STORE_E_NEWER_VERSION_AVAILABLE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144927484i32 as _); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct STPFLAG(pub i32); pub const STPF_NONE: STPFLAG = STPFLAG(0i32); pub const STPF_USEAPPTHUMBNAILALWAYS: STPFLAG = STPFLAG(1i32); pub const STPF_USEAPPTHUMBNAILWHENACTIVE: STPFLAG = STPFLAG(2i32); pub const STPF_USEAPPPEEKALWAYS: STPFLAG = STPFLAG(4i32); pub const STPF_USEAPPPEEKWHENACTIVE: STPFLAG = STPFLAG(8i32); impl ::core::convert::From<i32> for STPFLAG { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for STPFLAG { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] pub type SUBCLASSPROC = 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; #[derive(:: core :: clone :: Clone)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct SV2CVW2_PARAMS { pub cbSize: u32, pub psvPrev: ::core::option::Option<IShellView>, pub pfs: *mut FOLDERSETTINGS, pub psbOwner: ::core::option::Option<IShellBrowser>, pub prcView: *mut super::super::Foundation::RECT, pub pvid: *mut ::windows::core::GUID, pub hwndView: super::super::Foundation::HWND, } #[cfg(feature = "Win32_Foundation")] impl SV2CVW2_PARAMS {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for SV2CVW2_PARAMS { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for SV2CVW2_PARAMS { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SV2CVW2_PARAMS").field("cbSize", &self.cbSize).field("psvPrev", &self.psvPrev).field("pfs", &self.pfs).field("psbOwner", &self.psbOwner).field("prcView", &self.prcView).field("pvid", &self.pvid).field("hwndView", &self.hwndView).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for SV2CVW2_PARAMS { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.psvPrev == other.psvPrev && self.pfs == other.pfs && self.psbOwner == other.psbOwner && self.prcView == other.prcView && self.pvid == other.pvid && self.hwndView == other.hwndView } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for SV2CVW2_PARAMS {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for SV2CVW2_PARAMS { type Abi = ::core::mem::ManuallyDrop<Self>; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SVUIA_STATUS(pub i32); pub const SVUIA_DEACTIVATE: SVUIA_STATUS = SVUIA_STATUS(0i32); pub const SVUIA_ACTIVATE_NOFOCUS: SVUIA_STATUS = SVUIA_STATUS(1i32); pub const SVUIA_ACTIVATE_FOCUS: SVUIA_STATUS = SVUIA_STATUS(2i32); pub const SVUIA_INPLACEACTIVATE: SVUIA_STATUS = SVUIA_STATUS(3i32); impl ::core::convert::From<i32> for SVUIA_STATUS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SVUIA_STATUS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGRERRORFLAGS(pub i32); pub const SYNCMGRERRORFLAG_ENABLEJUMPTEXT: SYNCMGRERRORFLAGS = SYNCMGRERRORFLAGS(1i32); impl ::core::convert::From<i32> for SYNCMGRERRORFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGRERRORFLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGRFLAG(pub i32); pub const SYNCMGRFLAG_CONNECT: SYNCMGRFLAG = SYNCMGRFLAG(1i32); pub const SYNCMGRFLAG_PENDINGDISCONNECT: SYNCMGRFLAG = SYNCMGRFLAG(2i32); pub const SYNCMGRFLAG_MANUAL: SYNCMGRFLAG = SYNCMGRFLAG(3i32); pub const SYNCMGRFLAG_IDLE: SYNCMGRFLAG = SYNCMGRFLAG(4i32); pub const SYNCMGRFLAG_INVOKE: SYNCMGRFLAG = SYNCMGRFLAG(5i32); pub const SYNCMGRFLAG_SCHEDULED: SYNCMGRFLAG = SYNCMGRFLAG(6i32); pub const SYNCMGRFLAG_EVENTMASK: SYNCMGRFLAG = SYNCMGRFLAG(255i32); pub const SYNCMGRFLAG_SETTINGS: SYNCMGRFLAG = SYNCMGRFLAG(256i32); pub const SYNCMGRFLAG_MAYBOTHERUSER: SYNCMGRFLAG = SYNCMGRFLAG(512i32); impl ::core::convert::From<i32> for SYNCMGRFLAG { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGRFLAG { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGRHANDLERFLAGS(pub i32); pub const SYNCMGRHANDLER_HASPROPERTIES: SYNCMGRHANDLERFLAGS = SYNCMGRHANDLERFLAGS(1i32); pub const SYNCMGRHANDLER_MAYESTABLISHCONNECTION: SYNCMGRHANDLERFLAGS = SYNCMGRHANDLERFLAGS(2i32); pub const SYNCMGRHANDLER_ALWAYSLISTHANDLER: SYNCMGRHANDLERFLAGS = SYNCMGRHANDLERFLAGS(4i32); pub const SYNCMGRHANDLER_HIDDEN: SYNCMGRHANDLERFLAGS = SYNCMGRHANDLERFLAGS(8i32); impl ::core::convert::From<i32> for SYNCMGRHANDLERFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGRHANDLERFLAGS { type Abi = Self; } pub const SYNCMGRHANDLERFLAG_MASK: u32 = 15u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[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 SYNCMGRHANDLERINFO {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::default::Default for SYNCMGRHANDLERINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::fmt::Debug for SYNCMGRHANDLERINFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SYNCMGRHANDLERINFO").field("cbSize", &self.cbSize).field("hIcon", &self.hIcon).field("SyncMgrHandlerFlags", &self.SyncMgrHandlerFlags).field("wszHandlerName", &self.wszHandlerName).finish() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::cmp::PartialEq for SYNCMGRHANDLERINFO { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.hIcon == other.hIcon && self.SyncMgrHandlerFlags == other.SyncMgrHandlerFlags && self.wszHandlerName == other.wszHandlerName } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::cmp::Eq for SYNCMGRHANDLERINFO {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] unsafe impl ::windows::core::Abi for SYNCMGRHANDLERINFO { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGRINVOKEFLAGS(pub i32); pub const SYNCMGRINVOKE_STARTSYNC: SYNCMGRINVOKEFLAGS = SYNCMGRINVOKEFLAGS(2i32); pub const SYNCMGRINVOKE_MINIMIZED: SYNCMGRINVOKEFLAGS = SYNCMGRINVOKEFLAGS(4i32); impl ::core::convert::From<i32> for SYNCMGRINVOKEFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGRINVOKEFLAGS { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub struct SYNCMGRITEM { pub cbSize: u32, pub dwFlags: u32, pub ItemID: ::windows::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 SYNCMGRITEM {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::default::Default for SYNCMGRITEM { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::fmt::Debug for SYNCMGRITEM { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SYNCMGRITEM").field("cbSize", &self.cbSize).field("dwFlags", &self.dwFlags).field("ItemID", &self.ItemID).field("dwItemState", &self.dwItemState).field("hIcon", &self.hIcon).field("wszItemName", &self.wszItemName).field("ftLastUpdate", &self.ftLastUpdate).finish() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::PartialEq for SYNCMGRITEM { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.dwFlags == other.dwFlags && self.ItemID == other.ItemID && self.dwItemState == other.dwItemState && self.hIcon == other.hIcon && self.wszItemName == other.wszItemName && self.ftLastUpdate == other.ftLastUpdate } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::core::cmp::Eq for SYNCMGRITEM {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] unsafe impl ::windows::core::Abi for SYNCMGRITEM { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGRITEMFLAGS(pub i32); pub const SYNCMGRITEM_HASPROPERTIES: SYNCMGRITEMFLAGS = SYNCMGRITEMFLAGS(1i32); pub const SYNCMGRITEM_TEMPORARY: SYNCMGRITEMFLAGS = SYNCMGRITEMFLAGS(2i32); pub const SYNCMGRITEM_ROAMINGUSER: SYNCMGRITEMFLAGS = SYNCMGRITEMFLAGS(4i32); pub const SYNCMGRITEM_LASTUPDATETIME: SYNCMGRITEMFLAGS = SYNCMGRITEMFLAGS(8i32); pub const SYNCMGRITEM_MAYDELETEITEM: SYNCMGRITEMFLAGS = SYNCMGRITEMFLAGS(16i32); pub const SYNCMGRITEM_HIDDEN: SYNCMGRITEMFLAGS = SYNCMGRITEMFLAGS(32i32); impl ::core::convert::From<i32> for SYNCMGRITEMFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGRITEMFLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGRITEMSTATE(pub i32); pub const SYNCMGRITEMSTATE_UNCHECKED: SYNCMGRITEMSTATE = SYNCMGRITEMSTATE(0i32); pub const SYNCMGRITEMSTATE_CHECKED: SYNCMGRITEMSTATE = SYNCMGRITEMSTATE(1i32); impl ::core::convert::From<i32> for SYNCMGRITEMSTATE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGRITEMSTATE { type Abi = Self; } pub const SYNCMGRITEM_ITEMFLAGMASK: u32 = 127u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct SYNCMGRLOGERRORINFO { pub cbSize: u32, pub mask: u32, pub dwSyncMgrErrorFlags: u32, pub ErrorID: ::windows::core::GUID, pub ItemID: ::windows::core::GUID, } impl SYNCMGRLOGERRORINFO {} impl ::core::default::Default for SYNCMGRLOGERRORINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for SYNCMGRLOGERRORINFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SYNCMGRLOGERRORINFO").field("cbSize", &self.cbSize).field("mask", &self.mask).field("dwSyncMgrErrorFlags", &self.dwSyncMgrErrorFlags).field("ErrorID", &self.ErrorID).field("ItemID", &self.ItemID).finish() } } impl ::core::cmp::PartialEq for SYNCMGRLOGERRORINFO { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.mask == other.mask && self.dwSyncMgrErrorFlags == other.dwSyncMgrErrorFlags && self.ErrorID == other.ErrorID && self.ItemID == other.ItemID } } impl ::core::cmp::Eq for SYNCMGRLOGERRORINFO {} unsafe impl ::windows::core::Abi for SYNCMGRLOGERRORINFO { type Abi = Self; } pub const SYNCMGRLOGERROR_ERRORFLAGS: u32 = 1u32; pub const SYNCMGRLOGERROR_ERRORID: u32 = 2u32; pub const SYNCMGRLOGERROR_ITEMID: u32 = 4u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGRLOGLEVEL(pub i32); pub const SYNCMGRLOGLEVEL_INFORMATION: SYNCMGRLOGLEVEL = SYNCMGRLOGLEVEL(1i32); pub const SYNCMGRLOGLEVEL_WARNING: SYNCMGRLOGLEVEL = SYNCMGRLOGLEVEL(2i32); pub const SYNCMGRLOGLEVEL_ERROR: SYNCMGRLOGLEVEL = SYNCMGRLOGLEVEL(3i32); pub const SYNCMGRLOGLEVEL_LOGLEVELMAX: SYNCMGRLOGLEVEL = SYNCMGRLOGLEVEL(3i32); impl ::core::convert::From<i32> for SYNCMGRLOGLEVEL { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGRLOGLEVEL { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct SYNCMGRPROGRESSITEM { pub cbSize: u32, pub mask: u32, pub lpcStatusText: super::super::Foundation::PWSTR, pub dwStatusType: u32, pub iProgValue: i32, pub iMaxValue: i32, } #[cfg(feature = "Win32_Foundation")] impl SYNCMGRPROGRESSITEM {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for SYNCMGRPROGRESSITEM { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for SYNCMGRPROGRESSITEM { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SYNCMGRPROGRESSITEM").field("cbSize", &self.cbSize).field("mask", &self.mask).field("lpcStatusText", &self.lpcStatusText).field("dwStatusType", &self.dwStatusType).field("iProgValue", &self.iProgValue).field("iMaxValue", &self.iMaxValue).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for SYNCMGRPROGRESSITEM { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.mask == other.mask && self.lpcStatusText == other.lpcStatusText && self.dwStatusType == other.dwStatusType && self.iProgValue == other.iProgValue && self.iMaxValue == other.iMaxValue } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for SYNCMGRPROGRESSITEM {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for SYNCMGRPROGRESSITEM { type Abi = Self; } pub const SYNCMGRPROGRESSITEM_MAXVALUE: u32 = 8u32; pub const SYNCMGRPROGRESSITEM_PROGVALUE: u32 = 4u32; pub const SYNCMGRPROGRESSITEM_STATUSTEXT: u32 = 1u32; pub const SYNCMGRPROGRESSITEM_STATUSTYPE: u32 = 2u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGRREGISTERFLAGS(pub i32); pub const SYNCMGRREGISTERFLAG_CONNECT: SYNCMGRREGISTERFLAGS = SYNCMGRREGISTERFLAGS(1i32); pub const SYNCMGRREGISTERFLAG_PENDINGDISCONNECT: SYNCMGRREGISTERFLAGS = SYNCMGRREGISTERFLAGS(2i32); pub const SYNCMGRREGISTERFLAG_IDLE: SYNCMGRREGISTERFLAGS = SYNCMGRREGISTERFLAGS(4i32); impl ::core::convert::From<i32> for SYNCMGRREGISTERFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGRREGISTERFLAGS { type Abi = Self; } pub const SYNCMGRREGISTERFLAGS_MASK: u32 = 7u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGRSTATUS(pub i32); pub const SYNCMGRSTATUS_STOPPED: SYNCMGRSTATUS = SYNCMGRSTATUS(0i32); pub const SYNCMGRSTATUS_SKIPPED: SYNCMGRSTATUS = SYNCMGRSTATUS(1i32); pub const SYNCMGRSTATUS_PENDING: SYNCMGRSTATUS = SYNCMGRSTATUS(2i32); pub const SYNCMGRSTATUS_UPDATING: SYNCMGRSTATUS = SYNCMGRSTATUS(3i32); pub const SYNCMGRSTATUS_SUCCEEDED: SYNCMGRSTATUS = SYNCMGRSTATUS(4i32); pub const SYNCMGRSTATUS_FAILED: SYNCMGRSTATUS = SYNCMGRSTATUS(5i32); pub const SYNCMGRSTATUS_PAUSED: SYNCMGRSTATUS = SYNCMGRSTATUS(6i32); pub const SYNCMGRSTATUS_RESUMING: SYNCMGRSTATUS = SYNCMGRSTATUS(7i32); pub const SYNCMGRSTATUS_UPDATING_INDETERMINATE: SYNCMGRSTATUS = SYNCMGRSTATUS(8i32); pub const SYNCMGRSTATUS_DELETED: SYNCMGRSTATUS = SYNCMGRSTATUS(256i32); impl ::core::convert::From<i32> for SYNCMGRSTATUS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGRSTATUS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGR_CANCEL_REQUEST(pub i32); pub const SYNCMGR_CR_NONE: SYNCMGR_CANCEL_REQUEST = SYNCMGR_CANCEL_REQUEST(0i32); pub const SYNCMGR_CR_CANCEL_ITEM: SYNCMGR_CANCEL_REQUEST = SYNCMGR_CANCEL_REQUEST(1i32); pub const SYNCMGR_CR_CANCEL_ALL: SYNCMGR_CANCEL_REQUEST = SYNCMGR_CANCEL_REQUEST(2i32); pub const SYNCMGR_CR_MAX: SYNCMGR_CANCEL_REQUEST = SYNCMGR_CANCEL_REQUEST(2i32); impl ::core::convert::From<i32> for SYNCMGR_CANCEL_REQUEST { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGR_CANCEL_REQUEST { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[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 SYNCMGR_CONFLICT_ID_INFO {} #[cfg(feature = "Win32_System_Com")] impl ::core::default::Default for SYNCMGR_CONFLICT_ID_INFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_System_Com")] impl ::core::fmt::Debug for SYNCMGR_CONFLICT_ID_INFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("SYNCMGR_CONFLICT_ID_INFO").field("pblobID", &self.pblobID).field("pblobExtra", &self.pblobExtra).finish() } } #[cfg(feature = "Win32_System_Com")] impl ::core::cmp::PartialEq for SYNCMGR_CONFLICT_ID_INFO { fn eq(&self, other: &Self) -> bool { self.pblobID == other.pblobID && self.pblobExtra == other.pblobExtra } } #[cfg(feature = "Win32_System_Com")] impl ::core::cmp::Eq for SYNCMGR_CONFLICT_ID_INFO {} #[cfg(feature = "Win32_System_Com")] unsafe impl ::windows::core::Abi for SYNCMGR_CONFLICT_ID_INFO { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGR_CONFLICT_ITEM_TYPE(pub i32); pub const SYNCMGR_CIT_UPDATED: SYNCMGR_CONFLICT_ITEM_TYPE = SYNCMGR_CONFLICT_ITEM_TYPE(1i32); pub const SYNCMGR_CIT_DELETED: SYNCMGR_CONFLICT_ITEM_TYPE = SYNCMGR_CONFLICT_ITEM_TYPE(2i32); impl ::core::convert::From<i32> for SYNCMGR_CONFLICT_ITEM_TYPE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGR_CONFLICT_ITEM_TYPE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGR_CONTROL_FLAGS(pub i32); pub const SYNCMGR_CF_NONE: SYNCMGR_CONTROL_FLAGS = SYNCMGR_CONTROL_FLAGS(0i32); pub const SYNCMGR_CF_NOWAIT: SYNCMGR_CONTROL_FLAGS = SYNCMGR_CONTROL_FLAGS(0i32); pub const SYNCMGR_CF_WAIT: SYNCMGR_CONTROL_FLAGS = SYNCMGR_CONTROL_FLAGS(1i32); pub const SYNCMGR_CF_NOUI: SYNCMGR_CONTROL_FLAGS = SYNCMGR_CONTROL_FLAGS(2i32); pub const SYNCMGR_CF_VALID: SYNCMGR_CONTROL_FLAGS = SYNCMGR_CONTROL_FLAGS(3i32); impl ::core::convert::From<i32> for SYNCMGR_CONTROL_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGR_CONTROL_FLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGR_EVENT_FLAGS(pub i32); pub const SYNCMGR_EF_NONE: SYNCMGR_EVENT_FLAGS = SYNCMGR_EVENT_FLAGS(0i32); pub const SYNCMGR_EF_VALID: SYNCMGR_EVENT_FLAGS = SYNCMGR_EVENT_FLAGS(0i32); impl ::core::convert::From<i32> for SYNCMGR_EVENT_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGR_EVENT_FLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGR_EVENT_LEVEL(pub i32); pub const SYNCMGR_EL_INFORMATION: SYNCMGR_EVENT_LEVEL = SYNCMGR_EVENT_LEVEL(1i32); pub const SYNCMGR_EL_WARNING: SYNCMGR_EVENT_LEVEL = SYNCMGR_EVENT_LEVEL(2i32); pub const SYNCMGR_EL_ERROR: SYNCMGR_EVENT_LEVEL = SYNCMGR_EVENT_LEVEL(3i32); pub const SYNCMGR_EL_MAX: SYNCMGR_EVENT_LEVEL = SYNCMGR_EVENT_LEVEL(3i32); impl ::core::convert::From<i32> for SYNCMGR_EVENT_LEVEL { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGR_EVENT_LEVEL { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGR_HANDLER_CAPABILITIES(pub i32); pub const SYNCMGR_HCM_NONE: SYNCMGR_HANDLER_CAPABILITIES = SYNCMGR_HANDLER_CAPABILITIES(0i32); pub const SYNCMGR_HCM_PROVIDES_ICON: SYNCMGR_HANDLER_CAPABILITIES = SYNCMGR_HANDLER_CAPABILITIES(1i32); pub const SYNCMGR_HCM_EVENT_STORE: SYNCMGR_HANDLER_CAPABILITIES = SYNCMGR_HANDLER_CAPABILITIES(2i32); pub const SYNCMGR_HCM_CONFLICT_STORE: SYNCMGR_HANDLER_CAPABILITIES = SYNCMGR_HANDLER_CAPABILITIES(4i32); pub const SYNCMGR_HCM_SUPPORTS_CONCURRENT_SESSIONS: SYNCMGR_HANDLER_CAPABILITIES = SYNCMGR_HANDLER_CAPABILITIES(16i32); pub const SYNCMGR_HCM_CAN_BROWSE_CONTENT: SYNCMGR_HANDLER_CAPABILITIES = SYNCMGR_HANDLER_CAPABILITIES(65536i32); pub const SYNCMGR_HCM_CAN_SHOW_SCHEDULE: SYNCMGR_HANDLER_CAPABILITIES = SYNCMGR_HANDLER_CAPABILITIES(131072i32); pub const SYNCMGR_HCM_QUERY_BEFORE_ACTIVATE: SYNCMGR_HANDLER_CAPABILITIES = SYNCMGR_HANDLER_CAPABILITIES(1048576i32); pub const SYNCMGR_HCM_QUERY_BEFORE_DEACTIVATE: SYNCMGR_HANDLER_CAPABILITIES = SYNCMGR_HANDLER_CAPABILITIES(2097152i32); pub const SYNCMGR_HCM_QUERY_BEFORE_ENABLE: SYNCMGR_HANDLER_CAPABILITIES = SYNCMGR_HANDLER_CAPABILITIES(4194304i32); pub const SYNCMGR_HCM_QUERY_BEFORE_DISABLE: SYNCMGR_HANDLER_CAPABILITIES = SYNCMGR_HANDLER_CAPABILITIES(8388608i32); pub const SYNCMGR_HCM_VALID_MASK: SYNCMGR_HANDLER_CAPABILITIES = SYNCMGR_HANDLER_CAPABILITIES(15925271i32); impl ::core::convert::From<i32> for SYNCMGR_HANDLER_CAPABILITIES { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGR_HANDLER_CAPABILITIES { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGR_HANDLER_POLICIES(pub i32); pub const SYNCMGR_HPM_NONE: SYNCMGR_HANDLER_POLICIES = SYNCMGR_HANDLER_POLICIES(0i32); pub const SYNCMGR_HPM_PREVENT_ACTIVATE: SYNCMGR_HANDLER_POLICIES = SYNCMGR_HANDLER_POLICIES(1i32); pub const SYNCMGR_HPM_PREVENT_DEACTIVATE: SYNCMGR_HANDLER_POLICIES = SYNCMGR_HANDLER_POLICIES(2i32); pub const SYNCMGR_HPM_PREVENT_ENABLE: SYNCMGR_HANDLER_POLICIES = SYNCMGR_HANDLER_POLICIES(4i32); pub const SYNCMGR_HPM_PREVENT_DISABLE: SYNCMGR_HANDLER_POLICIES = SYNCMGR_HANDLER_POLICIES(8i32); pub const SYNCMGR_HPM_PREVENT_START_SYNC: SYNCMGR_HANDLER_POLICIES = SYNCMGR_HANDLER_POLICIES(16i32); pub const SYNCMGR_HPM_PREVENT_STOP_SYNC: SYNCMGR_HANDLER_POLICIES = SYNCMGR_HANDLER_POLICIES(32i32); pub const SYNCMGR_HPM_DISABLE_ENABLE: SYNCMGR_HANDLER_POLICIES = SYNCMGR_HANDLER_POLICIES(256i32); pub const SYNCMGR_HPM_DISABLE_DISABLE: SYNCMGR_HANDLER_POLICIES = SYNCMGR_HANDLER_POLICIES(512i32); pub const SYNCMGR_HPM_DISABLE_START_SYNC: SYNCMGR_HANDLER_POLICIES = SYNCMGR_HANDLER_POLICIES(1024i32); pub const SYNCMGR_HPM_DISABLE_STOP_SYNC: SYNCMGR_HANDLER_POLICIES = SYNCMGR_HANDLER_POLICIES(2048i32); pub const SYNCMGR_HPM_DISABLE_BROWSE: SYNCMGR_HANDLER_POLICIES = SYNCMGR_HANDLER_POLICIES(4096i32); pub const SYNCMGR_HPM_DISABLE_SCHEDULE: SYNCMGR_HANDLER_POLICIES = SYNCMGR_HANDLER_POLICIES(8192i32); pub const SYNCMGR_HPM_HIDDEN_BY_DEFAULT: SYNCMGR_HANDLER_POLICIES = SYNCMGR_HANDLER_POLICIES(65536i32); pub const SYNCMGR_HPM_BACKGROUND_SYNC_ONLY: SYNCMGR_HANDLER_POLICIES = SYNCMGR_HANDLER_POLICIES(48i32); pub const SYNCMGR_HPM_VALID_MASK: SYNCMGR_HANDLER_POLICIES = SYNCMGR_HANDLER_POLICIES(77631i32); impl ::core::convert::From<i32> for SYNCMGR_HANDLER_POLICIES { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGR_HANDLER_POLICIES { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGR_HANDLER_TYPE(pub i32); pub const SYNCMGR_HT_UNSPECIFIED: SYNCMGR_HANDLER_TYPE = SYNCMGR_HANDLER_TYPE(0i32); pub const SYNCMGR_HT_APPLICATION: SYNCMGR_HANDLER_TYPE = SYNCMGR_HANDLER_TYPE(1i32); pub const SYNCMGR_HT_DEVICE: SYNCMGR_HANDLER_TYPE = SYNCMGR_HANDLER_TYPE(2i32); pub const SYNCMGR_HT_FOLDER: SYNCMGR_HANDLER_TYPE = SYNCMGR_HANDLER_TYPE(3i32); pub const SYNCMGR_HT_SERVICE: SYNCMGR_HANDLER_TYPE = SYNCMGR_HANDLER_TYPE(4i32); pub const SYNCMGR_HT_COMPUTER: SYNCMGR_HANDLER_TYPE = SYNCMGR_HANDLER_TYPE(5i32); pub const SYNCMGR_HT_MIN: SYNCMGR_HANDLER_TYPE = SYNCMGR_HANDLER_TYPE(0i32); pub const SYNCMGR_HT_MAX: SYNCMGR_HANDLER_TYPE = SYNCMGR_HANDLER_TYPE(5i32); impl ::core::convert::From<i32> for SYNCMGR_HANDLER_TYPE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGR_HANDLER_TYPE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGR_ITEM_CAPABILITIES(pub i32); pub const SYNCMGR_ICM_NONE: SYNCMGR_ITEM_CAPABILITIES = SYNCMGR_ITEM_CAPABILITIES(0i32); pub const SYNCMGR_ICM_PROVIDES_ICON: SYNCMGR_ITEM_CAPABILITIES = SYNCMGR_ITEM_CAPABILITIES(1i32); pub const SYNCMGR_ICM_EVENT_STORE: SYNCMGR_ITEM_CAPABILITIES = SYNCMGR_ITEM_CAPABILITIES(2i32); pub const SYNCMGR_ICM_CONFLICT_STORE: SYNCMGR_ITEM_CAPABILITIES = SYNCMGR_ITEM_CAPABILITIES(4i32); pub const SYNCMGR_ICM_CAN_DELETE: SYNCMGR_ITEM_CAPABILITIES = SYNCMGR_ITEM_CAPABILITIES(16i32); pub const SYNCMGR_ICM_CAN_BROWSE_CONTENT: SYNCMGR_ITEM_CAPABILITIES = SYNCMGR_ITEM_CAPABILITIES(65536i32); pub const SYNCMGR_ICM_QUERY_BEFORE_ENABLE: SYNCMGR_ITEM_CAPABILITIES = SYNCMGR_ITEM_CAPABILITIES(1048576i32); pub const SYNCMGR_ICM_QUERY_BEFORE_DISABLE: SYNCMGR_ITEM_CAPABILITIES = SYNCMGR_ITEM_CAPABILITIES(2097152i32); pub const SYNCMGR_ICM_QUERY_BEFORE_DELETE: SYNCMGR_ITEM_CAPABILITIES = SYNCMGR_ITEM_CAPABILITIES(4194304i32); pub const SYNCMGR_ICM_VALID_MASK: SYNCMGR_ITEM_CAPABILITIES = SYNCMGR_ITEM_CAPABILITIES(7405591i32); impl ::core::convert::From<i32> for SYNCMGR_ITEM_CAPABILITIES { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGR_ITEM_CAPABILITIES { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGR_ITEM_POLICIES(pub i32); pub const SYNCMGR_IPM_NONE: SYNCMGR_ITEM_POLICIES = SYNCMGR_ITEM_POLICIES(0i32); pub const SYNCMGR_IPM_PREVENT_ENABLE: SYNCMGR_ITEM_POLICIES = SYNCMGR_ITEM_POLICIES(1i32); pub const SYNCMGR_IPM_PREVENT_DISABLE: SYNCMGR_ITEM_POLICIES = SYNCMGR_ITEM_POLICIES(2i32); pub const SYNCMGR_IPM_PREVENT_START_SYNC: SYNCMGR_ITEM_POLICIES = SYNCMGR_ITEM_POLICIES(4i32); pub const SYNCMGR_IPM_PREVENT_STOP_SYNC: SYNCMGR_ITEM_POLICIES = SYNCMGR_ITEM_POLICIES(8i32); pub const SYNCMGR_IPM_DISABLE_ENABLE: SYNCMGR_ITEM_POLICIES = SYNCMGR_ITEM_POLICIES(16i32); pub const SYNCMGR_IPM_DISABLE_DISABLE: SYNCMGR_ITEM_POLICIES = SYNCMGR_ITEM_POLICIES(32i32); pub const SYNCMGR_IPM_DISABLE_START_SYNC: SYNCMGR_ITEM_POLICIES = SYNCMGR_ITEM_POLICIES(64i32); pub const SYNCMGR_IPM_DISABLE_STOP_SYNC: SYNCMGR_ITEM_POLICIES = SYNCMGR_ITEM_POLICIES(128i32); pub const SYNCMGR_IPM_DISABLE_BROWSE: SYNCMGR_ITEM_POLICIES = SYNCMGR_ITEM_POLICIES(256i32); pub const SYNCMGR_IPM_DISABLE_DELETE: SYNCMGR_ITEM_POLICIES = SYNCMGR_ITEM_POLICIES(512i32); pub const SYNCMGR_IPM_HIDDEN_BY_DEFAULT: SYNCMGR_ITEM_POLICIES = SYNCMGR_ITEM_POLICIES(65536i32); pub const SYNCMGR_IPM_VALID_MASK: SYNCMGR_ITEM_POLICIES = SYNCMGR_ITEM_POLICIES(66303i32); impl ::core::convert::From<i32> for SYNCMGR_ITEM_POLICIES { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGR_ITEM_POLICIES { type Abi = Self; } pub const SYNCMGR_OBJECTID_BrowseContent: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x57cbb584_e9b4_47ae_a120_c4df3335dee2); pub const SYNCMGR_OBJECTID_ConflictStore: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd78181f4_2389_47e4_a960_60bcc2ed930b); pub const SYNCMGR_OBJECTID_EventLinkClick: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2203bdc1_1af1_4082_8c30_28399f41384c); pub const SYNCMGR_OBJECTID_EventStore: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4bef34b9_a786_4075_ba88_0c2b9d89a98f); pub const SYNCMGR_OBJECTID_Icon: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6dbc85c3_5d07_4c72_a777_7fec78072c06); pub const SYNCMGR_OBJECTID_QueryBeforeActivate: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd882d80b_e7aa_49ed_86b7_e6e1f714cdfe); pub const SYNCMGR_OBJECTID_QueryBeforeDeactivate: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa0efc282_60e0_460e_9374_ea88513cfc80); pub const SYNCMGR_OBJECTID_QueryBeforeDelete: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf76c3397_afb3_45d7_a59f_5a49e905437e); pub const SYNCMGR_OBJECTID_QueryBeforeDisable: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbb5f64aa_f004_4eb5_8e4d_26751966344c); pub const SYNCMGR_OBJECTID_QueryBeforeEnable: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x04cbf7f0_5beb_4de1_bc90_908345c480f6); pub const SYNCMGR_OBJECTID_ShowSchedule: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xedc6f3e3_8441_4109_adf3_6c1ca0b7de47); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGR_PRESENTER_CHOICE(pub i32); pub const SYNCMGR_PC_NO_CHOICE: SYNCMGR_PRESENTER_CHOICE = SYNCMGR_PRESENTER_CHOICE(0i32); pub const SYNCMGR_PC_KEEP_ONE: SYNCMGR_PRESENTER_CHOICE = SYNCMGR_PRESENTER_CHOICE(1i32); pub const SYNCMGR_PC_KEEP_MULTIPLE: SYNCMGR_PRESENTER_CHOICE = SYNCMGR_PRESENTER_CHOICE(2i32); pub const SYNCMGR_PC_KEEP_RECENT: SYNCMGR_PRESENTER_CHOICE = SYNCMGR_PRESENTER_CHOICE(3i32); pub const SYNCMGR_PC_REMOVE_FROM_SYNC_SET: SYNCMGR_PRESENTER_CHOICE = SYNCMGR_PRESENTER_CHOICE(4i32); pub const SYNCMGR_PC_SKIP: SYNCMGR_PRESENTER_CHOICE = SYNCMGR_PRESENTER_CHOICE(5i32); impl ::core::convert::From<i32> for SYNCMGR_PRESENTER_CHOICE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGR_PRESENTER_CHOICE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGR_PRESENTER_NEXT_STEP(pub i32); pub const SYNCMGR_PNS_CONTINUE: SYNCMGR_PRESENTER_NEXT_STEP = SYNCMGR_PRESENTER_NEXT_STEP(0i32); pub const SYNCMGR_PNS_DEFAULT: SYNCMGR_PRESENTER_NEXT_STEP = SYNCMGR_PRESENTER_NEXT_STEP(1i32); pub const SYNCMGR_PNS_CANCEL: SYNCMGR_PRESENTER_NEXT_STEP = SYNCMGR_PRESENTER_NEXT_STEP(2i32); impl ::core::convert::From<i32> for SYNCMGR_PRESENTER_NEXT_STEP { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGR_PRESENTER_NEXT_STEP { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGR_PROGRESS_STATUS(pub i32); pub const SYNCMGR_PS_UPDATING: SYNCMGR_PROGRESS_STATUS = SYNCMGR_PROGRESS_STATUS(1i32); pub const SYNCMGR_PS_UPDATING_INDETERMINATE: SYNCMGR_PROGRESS_STATUS = SYNCMGR_PROGRESS_STATUS(2i32); pub const SYNCMGR_PS_SUCCEEDED: SYNCMGR_PROGRESS_STATUS = SYNCMGR_PROGRESS_STATUS(3i32); pub const SYNCMGR_PS_FAILED: SYNCMGR_PROGRESS_STATUS = SYNCMGR_PROGRESS_STATUS(4i32); pub const SYNCMGR_PS_CANCELED: SYNCMGR_PROGRESS_STATUS = SYNCMGR_PROGRESS_STATUS(5i32); pub const SYNCMGR_PS_DISCONNECTED: SYNCMGR_PROGRESS_STATUS = SYNCMGR_PROGRESS_STATUS(6i32); pub const SYNCMGR_PS_MAX: SYNCMGR_PROGRESS_STATUS = SYNCMGR_PROGRESS_STATUS(6i32); impl ::core::convert::From<i32> for SYNCMGR_PROGRESS_STATUS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGR_PROGRESS_STATUS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGR_RESOLUTION_ABILITIES(pub i32); pub const SYNCMGR_RA_KEEPOTHER: SYNCMGR_RESOLUTION_ABILITIES = SYNCMGR_RESOLUTION_ABILITIES(1i32); pub const SYNCMGR_RA_KEEPRECENT: SYNCMGR_RESOLUTION_ABILITIES = SYNCMGR_RESOLUTION_ABILITIES(2i32); pub const SYNCMGR_RA_REMOVEFROMSYNCSET: SYNCMGR_RESOLUTION_ABILITIES = SYNCMGR_RESOLUTION_ABILITIES(4i32); pub const SYNCMGR_RA_KEEP_SINGLE: SYNCMGR_RESOLUTION_ABILITIES = SYNCMGR_RESOLUTION_ABILITIES(8i32); pub const SYNCMGR_RA_KEEP_MULTIPLE: SYNCMGR_RESOLUTION_ABILITIES = SYNCMGR_RESOLUTION_ABILITIES(16i32); pub const SYNCMGR_RA_VALID: SYNCMGR_RESOLUTION_ABILITIES = SYNCMGR_RESOLUTION_ABILITIES(31i32); impl ::core::convert::From<i32> for SYNCMGR_RESOLUTION_ABILITIES { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGR_RESOLUTION_ABILITIES { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGR_RESOLUTION_FEEDBACK(pub i32); pub const SYNCMGR_RF_CONTINUE: SYNCMGR_RESOLUTION_FEEDBACK = SYNCMGR_RESOLUTION_FEEDBACK(0i32); pub const SYNCMGR_RF_REFRESH: SYNCMGR_RESOLUTION_FEEDBACK = SYNCMGR_RESOLUTION_FEEDBACK(1i32); pub const SYNCMGR_RF_CANCEL: SYNCMGR_RESOLUTION_FEEDBACK = SYNCMGR_RESOLUTION_FEEDBACK(2i32); impl ::core::convert::From<i32> for SYNCMGR_RESOLUTION_FEEDBACK { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGR_RESOLUTION_FEEDBACK { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGR_SYNC_CONTROL_FLAGS(pub i32); pub const SYNCMGR_SCF_NONE: SYNCMGR_SYNC_CONTROL_FLAGS = SYNCMGR_SYNC_CONTROL_FLAGS(0i32); pub const SYNCMGR_SCF_IGNORE_IF_ALREADY_SYNCING: SYNCMGR_SYNC_CONTROL_FLAGS = SYNCMGR_SYNC_CONTROL_FLAGS(1i32); pub const SYNCMGR_SCF_VALID: SYNCMGR_SYNC_CONTROL_FLAGS = SYNCMGR_SYNC_CONTROL_FLAGS(1i32); impl ::core::convert::From<i32> for SYNCMGR_SYNC_CONTROL_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGR_SYNC_CONTROL_FLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SYNCMGR_UPDATE_REASON(pub i32); pub const SYNCMGR_UR_ADDED: SYNCMGR_UPDATE_REASON = SYNCMGR_UPDATE_REASON(0i32); pub const SYNCMGR_UR_CHANGED: SYNCMGR_UPDATE_REASON = SYNCMGR_UPDATE_REASON(1i32); pub const SYNCMGR_UR_REMOVED: SYNCMGR_UPDATE_REASON = SYNCMGR_UPDATE_REASON(2i32); pub const SYNCMGR_UR_MAX: SYNCMGR_UPDATE_REASON = SYNCMGR_UPDATE_REASON(2i32); impl ::core::convert::From<i32> for SYNCMGR_UPDATE_REASON { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SYNCMGR_UPDATE_REASON { type Abi = Self; } pub const S_SYNCMGR_CANCELALL: ::windows::core::HRESULT = ::windows::core::HRESULT(262660i32 as _); pub const S_SYNCMGR_CANCELITEM: ::windows::core::HRESULT = ::windows::core::HRESULT(262659i32 as _); pub const S_SYNCMGR_ENUMITEMS: ::windows::core::HRESULT = ::windows::core::HRESULT(262673i32 as _); pub const S_SYNCMGR_ITEMDELETED: ::windows::core::HRESULT = ::windows::core::HRESULT(262672i32 as _); pub const S_SYNCMGR_MISSINGITEMS: ::windows::core::HRESULT = ::windows::core::HRESULT(262657i32 as _); pub const S_SYNCMGR_RETRYSYNC: ::windows::core::HRESULT = ::windows::core::HRESULT(262658i32 as _); pub const ScheduledTasks: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd6277990_4c6a_11cf_8d87_00aa0060f5bf); pub const SearchFolderItemFactory: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x14010e02_bbbd_41f0_88e3_eda371216584); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SecureLockIconConstants(pub i32); pub const secureLockIconUnsecure: SecureLockIconConstants = SecureLockIconConstants(0i32); pub const secureLockIconMixed: SecureLockIconConstants = SecureLockIconConstants(1i32); pub const secureLockIconSecureUnknownBits: SecureLockIconConstants = SecureLockIconConstants(2i32); pub const secureLockIconSecure40Bit: SecureLockIconConstants = SecureLockIconConstants(3i32); pub const secureLockIconSecure56Bit: SecureLockIconConstants = SecureLockIconConstants(4i32); pub const secureLockIconSecureFortezza: SecureLockIconConstants = SecureLockIconConstants(5i32); pub const secureLockIconSecure128Bit: SecureLockIconConstants = SecureLockIconConstants(6i32); impl ::core::convert::From<i32> for SecureLockIconConstants { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SecureLockIconConstants { type Abi = Self; } pub const SelectedItemCount_Property_GUID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8fe316d2_0e52_460a_9c1e_48f273d470a3); #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetCurrentProcessExplicitAppUserModelID<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(appid: Param0) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetCurrentProcessExplicitAppUserModelID(appid: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } SetCurrentProcessExplicitAppUserModelID(appid.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn SetMenuContextHelpId<'a, Param0: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HMENU>>(param0: Param0, param1: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetMenuContextHelpId(param0: super::WindowsAndMessaging::HMENU, param1: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetMenuContextHelpId(param0.into_param().abi(), ::core::mem::transmute(param1))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetWindowContextHelpId<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(param0: Param0, param1: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetWindowContextHelpId(param0: super::super::Foundation::HWND, param1: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetWindowContextHelpId(param0.into_param().abi(), ::core::mem::transmute(param1))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetWindowSubclass<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>>(hwnd: Param0, pfnsubclass: ::core::option::Option<SUBCLASSPROC>, uidsubclass: usize, dwrefdata: usize) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetWindowSubclass(hwnd: super::super::Foundation::HWND, pfnsubclass: ::windows::core::RawPtr, uidsubclass: usize, dwrefdata: usize) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetWindowSubclass(hwnd.into_param().abi(), ::core::mem::transmute(pfnsubclass), ::core::mem::transmute(uidsubclass), ::core::mem::transmute(dwrefdata))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy, :: core :: fmt :: Debug, :: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] #[repr(transparent)] pub struct ShFindChangeNotificationHandle(pub isize); impl ::core::default::Default for ShFindChangeNotificationHandle { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } unsafe impl ::windows::core::Handle for ShFindChangeNotificationHandle {} unsafe impl ::windows::core::Abi for ShFindChangeNotificationHandle { type Abi = Self; } pub const SharedBitmap: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4db26476_6787_4046_b836_e8412a9e8a27); pub const SharingConfigurationManager: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x49f371e1_8c5c_4d9c_9a3b_54a6827f513c); pub const Shell: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x13709620_c279_11ce_a49e_444553540000); #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn ShellAboutA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param3: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HICON>>(hwnd: Param0, szapp: Param1, szotherstuff: Param2, hicon: Param3) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ShellAboutA(hwnd: super::super::Foundation::HWND, szapp: super::super::Foundation::PSTR, szotherstuff: super::super::Foundation::PSTR, hicon: super::WindowsAndMessaging::HICON) -> i32; } ::core::mem::transmute(ShellAboutA(hwnd.into_param().abi(), szapp.into_param().abi(), szotherstuff.into_param().abi(), hicon.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn ShellAboutW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HICON>>(hwnd: Param0, szapp: Param1, szotherstuff: Param2, hicon: Param3) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ShellAboutW(hwnd: super::super::Foundation::HWND, szapp: super::super::Foundation::PWSTR, szotherstuff: super::super::Foundation::PWSTR, hicon: super::WindowsAndMessaging::HICON) -> i32; } ::core::mem::transmute(ShellAboutW(hwnd.into_param().abi(), szapp.into_param().abi(), szotherstuff.into_param().abi(), hicon.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const ShellBrowserWindow: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc08afd90_f2a1_11d1_8455_00a0c91f3880); pub const ShellDesktop: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00021400_0000_0000_c000_000000000046); pub const ShellDispatchInproc: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0a89a860_d7b1_11ce_8350_444553540000); #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ShellExecuteA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>( hwnd: Param0, lpoperation: Param1, lpfile: Param2, lpparameters: Param3, lpdirectory: Param4, nshowcmd: i32, ) -> super::super::Foundation::HINSTANCE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ShellExecuteA(hwnd: super::super::Foundation::HWND, lpoperation: super::super::Foundation::PSTR, lpfile: super::super::Foundation::PSTR, lpparameters: super::super::Foundation::PSTR, lpdirectory: super::super::Foundation::PSTR, nshowcmd: i32) -> super::super::Foundation::HINSTANCE; } ::core::mem::transmute(ShellExecuteA(hwnd.into_param().abi(), lpoperation.into_param().abi(), lpfile.into_param().abi(), lpparameters.into_param().abi(), lpdirectory.into_param().abi(), ::core::mem::transmute(nshowcmd))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn ShellExecuteExA(pexecinfo: *mut SHELLEXECUTEINFOA) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ShellExecuteExA(pexecinfo: *mut SHELLEXECUTEINFOA) -> super::super::Foundation::BOOL; } ::core::mem::transmute(ShellExecuteExA(::core::mem::transmute(pexecinfo))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] #[inline] pub unsafe fn ShellExecuteExW(pexecinfo: *mut SHELLEXECUTEINFOW) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ShellExecuteExW(pexecinfo: *mut SHELLEXECUTEINFOW) -> super::super::Foundation::BOOL; } ::core::mem::transmute(ShellExecuteExW(::core::mem::transmute(pexecinfo))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ShellExecuteW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>( hwnd: Param0, lpoperation: Param1, lpfile: Param2, lpparameters: Param3, lpdirectory: Param4, nshowcmd: i32, ) -> super::super::Foundation::HINSTANCE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ShellExecuteW(hwnd: super::super::Foundation::HWND, lpoperation: super::super::Foundation::PWSTR, lpfile: super::super::Foundation::PWSTR, lpparameters: super::super::Foundation::PWSTR, lpdirectory: super::super::Foundation::PWSTR, nshowcmd: i32) -> super::super::Foundation::HINSTANCE; } ::core::mem::transmute(ShellExecuteW(hwnd.into_param().abi(), lpoperation.into_param().abi(), lpfile.into_param().abi(), lpparameters.into_param().abi(), lpdirectory.into_param().abi(), ::core::mem::transmute(nshowcmd))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const ShellFSFolder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf3364ba0_65b9_11ce_a9ba_00aa004ae837); pub const ShellFolderItem: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2fe352ea_fd1f_11d2_b1f4_00c04f8eeb3e); pub const ShellFolderView: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x62112aa1_ebe4_11cf_a5fb_0020afe7292d); pub const ShellFolderViewOC: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9ba05971_f6a8_11cf_a442_00a0c90a8f39); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct ShellFolderViewOptions(pub i32); pub const SFVVO_SHOWALLOBJECTS: ShellFolderViewOptions = ShellFolderViewOptions(1i32); pub const SFVVO_SHOWEXTENSIONS: ShellFolderViewOptions = ShellFolderViewOptions(2i32); pub const SFVVO_SHOWCOMPCOLOR: ShellFolderViewOptions = ShellFolderViewOptions(8i32); pub const SFVVO_SHOWSYSFILES: ShellFolderViewOptions = ShellFolderViewOptions(32i32); pub const SFVVO_WIN95CLASSIC: ShellFolderViewOptions = ShellFolderViewOptions(64i32); pub const SFVVO_DOUBLECLICKINWEBVIEW: ShellFolderViewOptions = ShellFolderViewOptions(128i32); pub const SFVVO_DESKTOPHTML: ShellFolderViewOptions = ShellFolderViewOptions(512i32); impl ::core::convert::From<i32> for ShellFolderViewOptions { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for ShellFolderViewOptions { type Abi = Self; } pub const ShellImageDataFactory: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x66e4e4fb_f385_4dd0_8d74_a2efd1bc6178); pub const ShellItem: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9ac9fbe1_e0a2_4ad6_b4ee_e212013ea917); pub const ShellLibrary: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd9b3211d_e57f_4426_aaef_30a806add397); pub const ShellLink: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00021401_0000_0000_c000_000000000046); pub const ShellLinkObject: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x11219420_1768_11d1_95be_00609797ea4f); #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ShellMessageBoxA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HINSTANCE>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(happinst: Param0, hwnd: Param1, lpctext: Param2, lpctitle: Param3, fustyle: u32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ShellMessageBoxA(happinst: super::super::Foundation::HINSTANCE, hwnd: super::super::Foundation::HWND, lpctext: super::super::Foundation::PSTR, lpctitle: super::super::Foundation::PSTR, fustyle: u32) -> i32; } ::core::mem::transmute(ShellMessageBoxA(happinst.into_param().abi(), hwnd.into_param().abi(), lpctext.into_param().abi(), lpctitle.into_param().abi(), ::core::mem::transmute(fustyle))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ShellMessageBoxW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HINSTANCE>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(happinst: Param0, hwnd: Param1, lpctext: Param2, lpctitle: Param3, fustyle: u32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ShellMessageBoxW(happinst: super::super::Foundation::HINSTANCE, hwnd: super::super::Foundation::HWND, lpctext: super::super::Foundation::PWSTR, lpctitle: super::super::Foundation::PWSTR, fustyle: u32) -> i32; } ::core::mem::transmute(ShellMessageBoxW(happinst.into_param().abi(), hwnd.into_param().abi(), lpctext.into_param().abi(), lpctitle.into_param().abi(), ::core::mem::transmute(fustyle))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const ShellNameSpace: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x55136805_b2de_11d1_b9f2_00a0c98bc547); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct ShellSpecialFolderConstants(pub i32); pub const ssfDESKTOP: ShellSpecialFolderConstants = ShellSpecialFolderConstants(0i32); pub const ssfPROGRAMS: ShellSpecialFolderConstants = ShellSpecialFolderConstants(2i32); pub const ssfCONTROLS: ShellSpecialFolderConstants = ShellSpecialFolderConstants(3i32); pub const ssfPRINTERS: ShellSpecialFolderConstants = ShellSpecialFolderConstants(4i32); pub const ssfPERSONAL: ShellSpecialFolderConstants = ShellSpecialFolderConstants(5i32); pub const ssfFAVORITES: ShellSpecialFolderConstants = ShellSpecialFolderConstants(6i32); pub const ssfSTARTUP: ShellSpecialFolderConstants = ShellSpecialFolderConstants(7i32); pub const ssfRECENT: ShellSpecialFolderConstants = ShellSpecialFolderConstants(8i32); pub const ssfSENDTO: ShellSpecialFolderConstants = ShellSpecialFolderConstants(9i32); pub const ssfBITBUCKET: ShellSpecialFolderConstants = ShellSpecialFolderConstants(10i32); pub const ssfSTARTMENU: ShellSpecialFolderConstants = ShellSpecialFolderConstants(11i32); pub const ssfDESKTOPDIRECTORY: ShellSpecialFolderConstants = ShellSpecialFolderConstants(16i32); pub const ssfDRIVES: ShellSpecialFolderConstants = ShellSpecialFolderConstants(17i32); pub const ssfNETWORK: ShellSpecialFolderConstants = ShellSpecialFolderConstants(18i32); pub const ssfNETHOOD: ShellSpecialFolderConstants = ShellSpecialFolderConstants(19i32); pub const ssfFONTS: ShellSpecialFolderConstants = ShellSpecialFolderConstants(20i32); pub const ssfTEMPLATES: ShellSpecialFolderConstants = ShellSpecialFolderConstants(21i32); pub const ssfCOMMONSTARTMENU: ShellSpecialFolderConstants = ShellSpecialFolderConstants(22i32); pub const ssfCOMMONPROGRAMS: ShellSpecialFolderConstants = ShellSpecialFolderConstants(23i32); pub const ssfCOMMONSTARTUP: ShellSpecialFolderConstants = ShellSpecialFolderConstants(24i32); pub const ssfCOMMONDESKTOPDIR: ShellSpecialFolderConstants = ShellSpecialFolderConstants(25i32); pub const ssfAPPDATA: ShellSpecialFolderConstants = ShellSpecialFolderConstants(26i32); pub const ssfPRINTHOOD: ShellSpecialFolderConstants = ShellSpecialFolderConstants(27i32); pub const ssfLOCALAPPDATA: ShellSpecialFolderConstants = ShellSpecialFolderConstants(28i32); pub const ssfALTSTARTUP: ShellSpecialFolderConstants = ShellSpecialFolderConstants(29i32); pub const ssfCOMMONALTSTARTUP: ShellSpecialFolderConstants = ShellSpecialFolderConstants(30i32); pub const ssfCOMMONFAVORITES: ShellSpecialFolderConstants = ShellSpecialFolderConstants(31i32); pub const ssfINTERNETCACHE: ShellSpecialFolderConstants = ShellSpecialFolderConstants(32i32); pub const ssfCOOKIES: ShellSpecialFolderConstants = ShellSpecialFolderConstants(33i32); pub const ssfHISTORY: ShellSpecialFolderConstants = ShellSpecialFolderConstants(34i32); pub const ssfCOMMONAPPDATA: ShellSpecialFolderConstants = ShellSpecialFolderConstants(35i32); pub const ssfWINDOWS: ShellSpecialFolderConstants = ShellSpecialFolderConstants(36i32); pub const ssfSYSTEM: ShellSpecialFolderConstants = ShellSpecialFolderConstants(37i32); pub const ssfPROGRAMFILES: ShellSpecialFolderConstants = ShellSpecialFolderConstants(38i32); pub const ssfMYPICTURES: ShellSpecialFolderConstants = ShellSpecialFolderConstants(39i32); pub const ssfPROFILE: ShellSpecialFolderConstants = ShellSpecialFolderConstants(40i32); pub const ssfSYSTEMx86: ShellSpecialFolderConstants = ShellSpecialFolderConstants(41i32); pub const ssfPROGRAMFILESx86: ShellSpecialFolderConstants = ShellSpecialFolderConstants(48i32); impl ::core::convert::From<i32> for ShellSpecialFolderConstants { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for ShellSpecialFolderConstants { type Abi = Self; } pub const ShellUIHelper: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x64ab4bb7_111e_11d1_8f79_00c04fc2fbe1); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct ShellWindowFindWindowOptions(pub i32); pub const SWFO_NEEDDISPATCH: ShellWindowFindWindowOptions = ShellWindowFindWindowOptions(1i32); pub const SWFO_INCLUDEPENDING: ShellWindowFindWindowOptions = ShellWindowFindWindowOptions(2i32); pub const SWFO_COOKIEPASSED: ShellWindowFindWindowOptions = ShellWindowFindWindowOptions(4i32); impl ::core::convert::From<i32> for ShellWindowFindWindowOptions { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for ShellWindowFindWindowOptions { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct ShellWindowTypeConstants(pub i32); pub const SWC_EXPLORER: ShellWindowTypeConstants = ShellWindowTypeConstants(0i32); pub const SWC_BROWSER: ShellWindowTypeConstants = ShellWindowTypeConstants(1i32); pub const SWC_3RDPARTY: ShellWindowTypeConstants = ShellWindowTypeConstants(2i32); pub const SWC_CALLBACK: ShellWindowTypeConstants = ShellWindowTypeConstants(4i32); pub const SWC_DESKTOP: ShellWindowTypeConstants = ShellWindowTypeConstants(8i32); impl ::core::convert::From<i32> for ShellWindowTypeConstants { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for ShellWindowTypeConstants { type Abi = Self; } pub const ShellWindows: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9ba05972_f6a8_11cf_a442_00a0c90a8f39); #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn Shell_GetCachedImageIndex<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pwsziconpath: Param0, iiconindex: i32, uiconflags: u32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn Shell_GetCachedImageIndex(pwsziconpath: super::super::Foundation::PWSTR, iiconindex: i32, uiconflags: u32) -> i32; } ::core::mem::transmute(Shell_GetCachedImageIndex(pwsziconpath.into_param().abi(), ::core::mem::transmute(iiconindex), ::core::mem::transmute(uiconflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn Shell_GetCachedImageIndexA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(psziconpath: Param0, iiconindex: i32, uiconflags: u32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn Shell_GetCachedImageIndexA(psziconpath: super::super::Foundation::PSTR, iiconindex: i32, uiconflags: u32) -> i32; } ::core::mem::transmute(Shell_GetCachedImageIndexA(psziconpath.into_param().abi(), ::core::mem::transmute(iiconindex), ::core::mem::transmute(uiconflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn Shell_GetCachedImageIndexW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(psziconpath: Param0, iiconindex: i32, uiconflags: u32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn Shell_GetCachedImageIndexW(psziconpath: super::super::Foundation::PWSTR, iiconindex: i32, uiconflags: u32) -> i32; } ::core::mem::transmute(Shell_GetCachedImageIndexW(psziconpath.into_param().abi(), ::core::mem::transmute(iiconindex), ::core::mem::transmute(uiconflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] #[inline] pub unsafe fn Shell_GetImageLists(phiml: *mut super::Controls::HIMAGELIST, phimlsmall: *mut super::Controls::HIMAGELIST) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn Shell_GetImageLists(phiml: *mut super::Controls::HIMAGELIST, phimlsmall: *mut super::Controls::HIMAGELIST) -> super::super::Foundation::BOOL; } ::core::mem::transmute(Shell_GetImageLists(::core::mem::transmute(phiml), ::core::mem::transmute(phimlsmall))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn Shell_MergeMenus<'a, Param0: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HMENU>, Param1: ::windows::core::IntoParam<'a, super::WindowsAndMessaging::HMENU>>(hmdst: Param0, hmsrc: Param1, uinsert: u32, uidadjust: u32, uidadjustmax: u32, uflags: MM_FLAGS) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn Shell_MergeMenus(hmdst: super::WindowsAndMessaging::HMENU, hmsrc: super::WindowsAndMessaging::HMENU, uinsert: u32, uidadjust: u32, uidadjustmax: u32, uflags: MM_FLAGS) -> u32; } ::core::mem::transmute(Shell_MergeMenus(hmdst.into_param().abi(), hmsrc.into_param().abi(), ::core::mem::transmute(uinsert), ::core::mem::transmute(uidadjust), ::core::mem::transmute(uidadjustmax), ::core::mem::transmute(uflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn Shell_NotifyIconA(dwmessage: NOTIFY_ICON_MESSAGE, lpdata: *const NOTIFYICONDATAA) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn Shell_NotifyIconA(dwmessage: NOTIFY_ICON_MESSAGE, lpdata: *const NOTIFYICONDATAA) -> super::super::Foundation::BOOL; } ::core::mem::transmute(Shell_NotifyIconA(::core::mem::transmute(dwmessage), ::core::mem::transmute(lpdata))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn Shell_NotifyIconGetRect(identifier: *const NOTIFYICONIDENTIFIER) -> ::windows::core::Result<super::super::Foundation::RECT> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn Shell_NotifyIconGetRect(identifier: *const NOTIFYICONIDENTIFIER, iconlocation: *mut super::super::Foundation::RECT) -> ::windows::core::HRESULT; } let mut result__: <super::super::Foundation::RECT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); Shell_NotifyIconGetRect(::core::mem::transmute(identifier), &mut result__).from_abi::<super::super::Foundation::RECT>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn Shell_NotifyIconW(dwmessage: NOTIFY_ICON_MESSAGE, lpdata: *const NOTIFYICONDATAW) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn Shell_NotifyIconW(dwmessage: NOTIFY_ICON_MESSAGE, lpdata: *const NOTIFYICONDATAW) -> super::super::Foundation::BOOL; } ::core::mem::transmute(Shell_NotifyIconW(::core::mem::transmute(dwmessage), ::core::mem::transmute(lpdata))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const ShowInputPaneAnimationCoordinator: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1f046abf_3202_4dc1_8cb5_3c67617ce1fa); #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn SignalFileOpen(pidl: *const Common::ITEMIDLIST) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SignalFileOpen(pidl: *const Common::ITEMIDLIST) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SignalFileOpen(::core::mem::transmute(pidl))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const SimpleConflictPresenter: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7a0f6ab7_ed84_46b6_b47e_02aa159a152b); pub const SizeCategorizer: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x55d7b852_f6d1_42f2_aa75_8728a1b2d264); pub const SmartcardCredentialProvider: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8fd7e19c_3bf7_489b_a72c_846ab3678c96); pub const SmartcardPinProvider: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x94596c7e_3744_41ce_893e_bbf09122f76a); pub const SmartcardReaderSelectionProvider: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1b283861_754f_4022_ad47_a5eaaa618894); pub const SmartcardWinRTProvider: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1ee7337f_85ac_45e2_a23c_37c753209769); #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_Urlmon"))] #[inline] pub unsafe fn SoftwareUpdateMessageBox<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hwnd: Param0, pszdistunit: Param1, dwflags: u32, psdi: *mut super::super::System::Com::Urlmon::SOFTDISTINFO) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SoftwareUpdateMessageBox(hwnd: super::super::Foundation::HWND, pszdistunit: super::super::Foundation::PWSTR, dwflags: u32, psdi: *mut super::super::System::Com::Urlmon::SOFTDISTINFO) -> u32; } ::core::mem::transmute(SoftwareUpdateMessageBox(hwnd.into_param().abi(), pszdistunit.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(psdi))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const StartMenuPin: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa2a9545d_a0c2_42b4_9708_a0b2badd77c8); #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] #[inline] pub unsafe fn StgMakeUniqueName<'a, Param0: ::windows::core::IntoParam<'a, super::super::System::Com::StructuredStorage::IStorage>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pstgparent: Param0, pszfilespec: Param1, grfmode: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StgMakeUniqueName(pstgparent: ::windows::core::RawPtr, pszfilespec: super::super::Foundation::PWSTR, grfmode: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } StgMakeUniqueName(pstgparent.into_param().abi(), pszfilespec.into_param().abi(), ::core::mem::transmute(grfmode), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const StorageProviderBanners: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7ccdf9f4_e576_455a_8bc7_f6ec68d6f063); #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCSpnA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszstr: Param0, pszset: Param1) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCSpnA(pszstr: super::super::Foundation::PSTR, pszset: super::super::Foundation::PSTR) -> i32; } ::core::mem::transmute(StrCSpnA(pszstr.into_param().abi(), pszset.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCSpnIA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszstr: Param0, pszset: Param1) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCSpnIA(pszstr: super::super::Foundation::PSTR, pszset: super::super::Foundation::PSTR) -> i32; } ::core::mem::transmute(StrCSpnIA(pszstr.into_param().abi(), pszset.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCSpnIW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszstr: Param0, pszset: Param1) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCSpnIW(pszstr: super::super::Foundation::PWSTR, pszset: super::super::Foundation::PWSTR) -> i32; } ::core::mem::transmute(StrCSpnIW(pszstr.into_param().abi(), pszset.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCSpnW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszstr: Param0, pszset: Param1) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCSpnW(pszstr: super::super::Foundation::PWSTR, pszset: super::super::Foundation::PWSTR) -> i32; } ::core::mem::transmute(StrCSpnW(pszstr.into_param().abi(), pszset.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCatBuffA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszdest: Param0, pszsrc: Param1, cchdestbuffsize: i32) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCatBuffA(pszdest: super::super::Foundation::PSTR, pszsrc: super::super::Foundation::PSTR, cchdestbuffsize: i32) -> super::super::Foundation::PSTR; } ::core::mem::transmute(StrCatBuffA(pszdest.into_param().abi(), pszsrc.into_param().abi(), ::core::mem::transmute(cchdestbuffsize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCatBuffW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszdest: Param0, pszsrc: Param1, cchdestbuffsize: i32) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCatBuffW(pszdest: super::super::Foundation::PWSTR, pszsrc: super::super::Foundation::PWSTR, cchdestbuffsize: i32) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(StrCatBuffW(pszdest.into_param().abi(), pszsrc.into_param().abi(), ::core::mem::transmute(cchdestbuffsize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCatChainW<'a, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszdst: super::super::Foundation::PWSTR, cchdst: u32, ichat: u32, pszsrc: Param3) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCatChainW(pszdst: super::super::Foundation::PWSTR, cchdst: u32, ichat: u32, pszsrc: super::super::Foundation::PWSTR) -> u32; } ::core::mem::transmute(StrCatChainW(::core::mem::transmute(pszdst), ::core::mem::transmute(cchdst), ::core::mem::transmute(ichat), pszsrc.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCatW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(psz1: Param0, psz2: Param1) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCatW(psz1: super::super::Foundation::PWSTR, psz2: super::super::Foundation::PWSTR) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(StrCatW(psz1.into_param().abi(), psz2.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrChrA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszstart: Param0, wmatch: u16) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrChrA(pszstart: super::super::Foundation::PSTR, wmatch: u16) -> super::super::Foundation::PSTR; } ::core::mem::transmute(StrChrA(pszstart.into_param().abi(), ::core::mem::transmute(wmatch))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrChrIA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszstart: Param0, wmatch: u16) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrChrIA(pszstart: super::super::Foundation::PSTR, wmatch: u16) -> super::super::Foundation::PSTR; } ::core::mem::transmute(StrChrIA(pszstart.into_param().abi(), ::core::mem::transmute(wmatch))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrChrIW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszstart: Param0, wmatch: u16) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrChrIW(pszstart: super::super::Foundation::PWSTR, wmatch: u16) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(StrChrIW(pszstart.into_param().abi(), ::core::mem::transmute(wmatch))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrChrNIW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszstart: Param0, wmatch: u16, cchmax: u32) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrChrNIW(pszstart: super::super::Foundation::PWSTR, wmatch: u16, cchmax: u32) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(StrChrNIW(pszstart.into_param().abi(), ::core::mem::transmute(wmatch), ::core::mem::transmute(cchmax))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrChrNW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszstart: Param0, wmatch: u16, cchmax: u32) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrChrNW(pszstart: super::super::Foundation::PWSTR, wmatch: u16, cchmax: u32) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(StrChrNW(pszstart.into_param().abi(), ::core::mem::transmute(wmatch), ::core::mem::transmute(cchmax))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrChrW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszstart: Param0, wmatch: u16) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrChrW(pszstart: super::super::Foundation::PWSTR, wmatch: u16) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(StrChrW(pszstart.into_param().abi(), ::core::mem::transmute(wmatch))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCmpCA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszstr1: Param0, pszstr2: Param1) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCmpCA(pszstr1: super::super::Foundation::PSTR, pszstr2: super::super::Foundation::PSTR) -> i32; } ::core::mem::transmute(StrCmpCA(pszstr1.into_param().abi(), pszstr2.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCmpCW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszstr1: Param0, pszstr2: Param1) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCmpCW(pszstr1: super::super::Foundation::PWSTR, pszstr2: super::super::Foundation::PWSTR) -> i32; } ::core::mem::transmute(StrCmpCW(pszstr1.into_param().abi(), pszstr2.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCmpICA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszstr1: Param0, pszstr2: Param1) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCmpICA(pszstr1: super::super::Foundation::PSTR, pszstr2: super::super::Foundation::PSTR) -> i32; } ::core::mem::transmute(StrCmpICA(pszstr1.into_param().abi(), pszstr2.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCmpICW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszstr1: Param0, pszstr2: Param1) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCmpICW(pszstr1: super::super::Foundation::PWSTR, pszstr2: super::super::Foundation::PWSTR) -> i32; } ::core::mem::transmute(StrCmpICW(pszstr1.into_param().abi(), pszstr2.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCmpIW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(psz1: Param0, psz2: Param1) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCmpIW(psz1: super::super::Foundation::PWSTR, psz2: super::super::Foundation::PWSTR) -> i32; } ::core::mem::transmute(StrCmpIW(psz1.into_param().abi(), psz2.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCmpLogicalW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(psz1: Param0, psz2: Param1) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCmpLogicalW(psz1: super::super::Foundation::PWSTR, psz2: super::super::Foundation::PWSTR) -> i32; } ::core::mem::transmute(StrCmpLogicalW(psz1.into_param().abi(), psz2.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCmpNA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(psz1: Param0, psz2: Param1, nchar: i32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCmpNA(psz1: super::super::Foundation::PSTR, psz2: super::super::Foundation::PSTR, nchar: i32) -> i32; } ::core::mem::transmute(StrCmpNA(psz1.into_param().abi(), psz2.into_param().abi(), ::core::mem::transmute(nchar))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCmpNCA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszstr1: Param0, pszstr2: Param1, nchar: i32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCmpNCA(pszstr1: super::super::Foundation::PSTR, pszstr2: super::super::Foundation::PSTR, nchar: i32) -> i32; } ::core::mem::transmute(StrCmpNCA(pszstr1.into_param().abi(), pszstr2.into_param().abi(), ::core::mem::transmute(nchar))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCmpNCW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszstr1: Param0, pszstr2: Param1, nchar: i32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCmpNCW(pszstr1: super::super::Foundation::PWSTR, pszstr2: super::super::Foundation::PWSTR, nchar: i32) -> i32; } ::core::mem::transmute(StrCmpNCW(pszstr1.into_param().abi(), pszstr2.into_param().abi(), ::core::mem::transmute(nchar))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCmpNIA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(psz1: Param0, psz2: Param1, nchar: i32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCmpNIA(psz1: super::super::Foundation::PSTR, psz2: super::super::Foundation::PSTR, nchar: i32) -> i32; } ::core::mem::transmute(StrCmpNIA(psz1.into_param().abi(), psz2.into_param().abi(), ::core::mem::transmute(nchar))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCmpNICA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszstr1: Param0, pszstr2: Param1, nchar: i32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCmpNICA(pszstr1: super::super::Foundation::PSTR, pszstr2: super::super::Foundation::PSTR, nchar: i32) -> i32; } ::core::mem::transmute(StrCmpNICA(pszstr1.into_param().abi(), pszstr2.into_param().abi(), ::core::mem::transmute(nchar))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCmpNICW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszstr1: Param0, pszstr2: Param1, nchar: i32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCmpNICW(pszstr1: super::super::Foundation::PWSTR, pszstr2: super::super::Foundation::PWSTR, nchar: i32) -> i32; } ::core::mem::transmute(StrCmpNICW(pszstr1.into_param().abi(), pszstr2.into_param().abi(), ::core::mem::transmute(nchar))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCmpNIW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(psz1: Param0, psz2: Param1, nchar: i32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCmpNIW(psz1: super::super::Foundation::PWSTR, psz2: super::super::Foundation::PWSTR, nchar: i32) -> i32; } ::core::mem::transmute(StrCmpNIW(psz1.into_param().abi(), psz2.into_param().abi(), ::core::mem::transmute(nchar))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCmpNW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(psz1: Param0, psz2: Param1, nchar: i32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCmpNW(psz1: super::super::Foundation::PWSTR, psz2: super::super::Foundation::PWSTR, nchar: i32) -> i32; } ::core::mem::transmute(StrCmpNW(psz1.into_param().abi(), psz2.into_param().abi(), ::core::mem::transmute(nchar))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCmpW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(psz1: Param0, psz2: Param1) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCmpW(psz1: super::super::Foundation::PWSTR, psz2: super::super::Foundation::PWSTR) -> i32; } ::core::mem::transmute(StrCmpW(psz1.into_param().abi(), psz2.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCpyNW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszdst: super::super::Foundation::PWSTR, pszsrc: Param1, cchmax: i32) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCpyNW(pszdst: super::super::Foundation::PWSTR, pszsrc: super::super::Foundation::PWSTR, cchmax: i32) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(StrCpyNW(::core::mem::transmute(pszdst), pszsrc.into_param().abi(), ::core::mem::transmute(cchmax))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrCpyW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(psz1: super::super::Foundation::PWSTR, psz2: Param1) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrCpyW(psz1: super::super::Foundation::PWSTR, psz2: super::super::Foundation::PWSTR) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(StrCpyW(::core::mem::transmute(psz1), psz2.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrDupA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszsrch: Param0) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrDupA(pszsrch: super::super::Foundation::PSTR) -> super::super::Foundation::PSTR; } ::core::mem::transmute(StrDupA(pszsrch.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrDupW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszsrch: Param0) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrDupW(pszsrch: super::super::Foundation::PWSTR) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(StrDupW(pszsrch.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrFormatByteSize64A(qdw: i64, pszbuf: super::super::Foundation::PSTR, cchbuf: u32) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrFormatByteSize64A(qdw: i64, pszbuf: super::super::Foundation::PSTR, cchbuf: u32) -> super::super::Foundation::PSTR; } ::core::mem::transmute(StrFormatByteSize64A(::core::mem::transmute(qdw), ::core::mem::transmute(pszbuf), ::core::mem::transmute(cchbuf))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrFormatByteSizeA(dw: u32, pszbuf: super::super::Foundation::PSTR, cchbuf: u32) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrFormatByteSizeA(dw: u32, pszbuf: super::super::Foundation::PSTR, cchbuf: u32) -> super::super::Foundation::PSTR; } ::core::mem::transmute(StrFormatByteSizeA(::core::mem::transmute(dw), ::core::mem::transmute(pszbuf), ::core::mem::transmute(cchbuf))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrFormatByteSizeEx(ull: u64, flags: SFBS_FLAGS, pszbuf: super::super::Foundation::PWSTR, cchbuf: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrFormatByteSizeEx(ull: u64, flags: SFBS_FLAGS, pszbuf: super::super::Foundation::PWSTR, cchbuf: u32) -> ::windows::core::HRESULT; } StrFormatByteSizeEx(::core::mem::transmute(ull), ::core::mem::transmute(flags), ::core::mem::transmute(pszbuf), ::core::mem::transmute(cchbuf)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrFormatByteSizeW(qdw: i64, pszbuf: super::super::Foundation::PWSTR, cchbuf: u32) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrFormatByteSizeW(qdw: i64, pszbuf: super::super::Foundation::PWSTR, cchbuf: u32) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(StrFormatByteSizeW(::core::mem::transmute(qdw), ::core::mem::transmute(pszbuf), ::core::mem::transmute(cchbuf))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrFormatKBSizeA(qdw: i64, pszbuf: super::super::Foundation::PSTR, cchbuf: u32) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrFormatKBSizeA(qdw: i64, pszbuf: super::super::Foundation::PSTR, cchbuf: u32) -> super::super::Foundation::PSTR; } ::core::mem::transmute(StrFormatKBSizeA(::core::mem::transmute(qdw), ::core::mem::transmute(pszbuf), ::core::mem::transmute(cchbuf))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrFormatKBSizeW(qdw: i64, pszbuf: super::super::Foundation::PWSTR, cchbuf: u32) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrFormatKBSizeW(qdw: i64, pszbuf: super::super::Foundation::PWSTR, cchbuf: u32) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(StrFormatKBSizeW(::core::mem::transmute(qdw), ::core::mem::transmute(pszbuf), ::core::mem::transmute(cchbuf))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrFromTimeIntervalA(pszout: super::super::Foundation::PSTR, cchmax: u32, dwtimems: u32, digits: i32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrFromTimeIntervalA(pszout: super::super::Foundation::PSTR, cchmax: u32, dwtimems: u32, digits: i32) -> i32; } ::core::mem::transmute(StrFromTimeIntervalA(::core::mem::transmute(pszout), ::core::mem::transmute(cchmax), ::core::mem::transmute(dwtimems), ::core::mem::transmute(digits))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrFromTimeIntervalW(pszout: super::super::Foundation::PWSTR, cchmax: u32, dwtimems: u32, digits: i32) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrFromTimeIntervalW(pszout: super::super::Foundation::PWSTR, cchmax: u32, dwtimems: u32, digits: i32) -> i32; } ::core::mem::transmute(StrFromTimeIntervalW(::core::mem::transmute(pszout), ::core::mem::transmute(cchmax), ::core::mem::transmute(dwtimems), ::core::mem::transmute(digits))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrIsIntlEqualA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(fcasesens: Param0, pszstring1: Param1, pszstring2: Param2, nchar: i32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrIsIntlEqualA(fcasesens: super::super::Foundation::BOOL, pszstring1: super::super::Foundation::PSTR, pszstring2: super::super::Foundation::PSTR, nchar: i32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(StrIsIntlEqualA(fcasesens.into_param().abi(), pszstring1.into_param().abi(), pszstring2.into_param().abi(), ::core::mem::transmute(nchar))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrIsIntlEqualW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(fcasesens: Param0, pszstring1: Param1, pszstring2: Param2, nchar: i32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrIsIntlEqualW(fcasesens: super::super::Foundation::BOOL, pszstring1: super::super::Foundation::PWSTR, pszstring2: super::super::Foundation::PWSTR, nchar: i32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(StrIsIntlEqualW(fcasesens.into_param().abi(), pszstring1.into_param().abi(), pszstring2.into_param().abi(), ::core::mem::transmute(nchar))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrNCatA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(psz1: Param0, psz2: Param1, cchmax: i32) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrNCatA(psz1: super::super::Foundation::PSTR, psz2: super::super::Foundation::PSTR, cchmax: i32) -> super::super::Foundation::PSTR; } ::core::mem::transmute(StrNCatA(psz1.into_param().abi(), psz2.into_param().abi(), ::core::mem::transmute(cchmax))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrNCatW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(psz1: Param0, psz2: Param1, cchmax: i32) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrNCatW(psz1: super::super::Foundation::PWSTR, psz2: super::super::Foundation::PWSTR, cchmax: i32) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(StrNCatW(psz1.into_param().abi(), psz2.into_param().abi(), ::core::mem::transmute(cchmax))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrPBrkA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(psz: Param0, pszset: Param1) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrPBrkA(psz: super::super::Foundation::PSTR, pszset: super::super::Foundation::PSTR) -> super::super::Foundation::PSTR; } ::core::mem::transmute(StrPBrkA(psz.into_param().abi(), pszset.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrPBrkW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(psz: Param0, pszset: Param1) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrPBrkW(psz: super::super::Foundation::PWSTR, pszset: super::super::Foundation::PWSTR) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(StrPBrkW(psz.into_param().abi(), pszset.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrRChrA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszstart: Param0, pszend: Param1, wmatch: u16) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrRChrA(pszstart: super::super::Foundation::PSTR, pszend: super::super::Foundation::PSTR, wmatch: u16) -> super::super::Foundation::PSTR; } ::core::mem::transmute(StrRChrA(pszstart.into_param().abi(), pszend.into_param().abi(), ::core::mem::transmute(wmatch))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrRChrIA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszstart: Param0, pszend: Param1, wmatch: u16) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrRChrIA(pszstart: super::super::Foundation::PSTR, pszend: super::super::Foundation::PSTR, wmatch: u16) -> super::super::Foundation::PSTR; } ::core::mem::transmute(StrRChrIA(pszstart.into_param().abi(), pszend.into_param().abi(), ::core::mem::transmute(wmatch))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrRChrIW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszstart: Param0, pszend: Param1, wmatch: u16) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrRChrIW(pszstart: super::super::Foundation::PWSTR, pszend: super::super::Foundation::PWSTR, wmatch: u16) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(StrRChrIW(pszstart.into_param().abi(), pszend.into_param().abi(), ::core::mem::transmute(wmatch))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrRChrW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszstart: Param0, pszend: Param1, wmatch: u16) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrRChrW(pszstart: super::super::Foundation::PWSTR, pszend: super::super::Foundation::PWSTR, wmatch: u16) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(StrRChrW(pszstart.into_param().abi(), pszend.into_param().abi(), ::core::mem::transmute(wmatch))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrRStrIA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszsource: Param0, pszlast: Param1, pszsrch: Param2) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrRStrIA(pszsource: super::super::Foundation::PSTR, pszlast: super::super::Foundation::PSTR, pszsrch: super::super::Foundation::PSTR) -> super::super::Foundation::PSTR; } ::core::mem::transmute(StrRStrIA(pszsource.into_param().abi(), pszlast.into_param().abi(), pszsrch.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrRStrIW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszsource: Param0, pszlast: Param1, pszsrch: Param2) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrRStrIW(pszsource: super::super::Foundation::PWSTR, pszlast: super::super::Foundation::PWSTR, pszsrch: super::super::Foundation::PWSTR) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(StrRStrIW(pszsource.into_param().abi(), pszlast.into_param().abi(), pszsrch.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn StrRetToBSTR(pstr: *mut Common::STRRET, pidl: *const Common::ITEMIDLIST, pbstr: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrRetToBSTR(pstr: *mut Common::STRRET, pidl: *const Common::ITEMIDLIST, pbstr: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT; } StrRetToBSTR(::core::mem::transmute(pstr), ::core::mem::transmute(pidl), ::core::mem::transmute(pbstr)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn StrRetToBufA(pstr: *mut Common::STRRET, pidl: *const Common::ITEMIDLIST, pszbuf: super::super::Foundation::PSTR, cchbuf: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrRetToBufA(pstr: *mut Common::STRRET, pidl: *const Common::ITEMIDLIST, pszbuf: super::super::Foundation::PSTR, cchbuf: u32) -> ::windows::core::HRESULT; } StrRetToBufA(::core::mem::transmute(pstr), ::core::mem::transmute(pidl), ::core::mem::transmute(pszbuf), ::core::mem::transmute(cchbuf)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn StrRetToBufW(pstr: *mut Common::STRRET, pidl: *const Common::ITEMIDLIST, pszbuf: super::super::Foundation::PWSTR, cchbuf: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrRetToBufW(pstr: *mut Common::STRRET, pidl: *const Common::ITEMIDLIST, pszbuf: super::super::Foundation::PWSTR, cchbuf: u32) -> ::windows::core::HRESULT; } StrRetToBufW(::core::mem::transmute(pstr), ::core::mem::transmute(pidl), ::core::mem::transmute(pszbuf), ::core::mem::transmute(cchbuf)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn StrRetToStrA(pstr: *mut Common::STRRET, pidl: *const Common::ITEMIDLIST, ppsz: *mut super::super::Foundation::PSTR) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrRetToStrA(pstr: *mut Common::STRRET, pidl: *const Common::ITEMIDLIST, ppsz: *mut super::super::Foundation::PSTR) -> ::windows::core::HRESULT; } StrRetToStrA(::core::mem::transmute(pstr), ::core::mem::transmute(pidl), ::core::mem::transmute(ppsz)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] #[inline] pub unsafe fn StrRetToStrW(pstr: *mut Common::STRRET, pidl: *const Common::ITEMIDLIST, ppsz: *mut super::super::Foundation::PWSTR) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrRetToStrW(pstr: *mut Common::STRRET, pidl: *const Common::ITEMIDLIST, ppsz: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } StrRetToStrW(::core::mem::transmute(pstr), ::core::mem::transmute(pidl), ::core::mem::transmute(ppsz)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrSpnA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(psz: Param0, pszset: Param1) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrSpnA(psz: super::super::Foundation::PSTR, pszset: super::super::Foundation::PSTR) -> i32; } ::core::mem::transmute(StrSpnA(psz.into_param().abi(), pszset.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrSpnW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(psz: Param0, pszset: Param1) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrSpnW(psz: super::super::Foundation::PWSTR, pszset: super::super::Foundation::PWSTR) -> i32; } ::core::mem::transmute(StrSpnW(psz.into_param().abi(), pszset.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrStrA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszfirst: Param0, pszsrch: Param1) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrStrA(pszfirst: super::super::Foundation::PSTR, pszsrch: super::super::Foundation::PSTR) -> super::super::Foundation::PSTR; } ::core::mem::transmute(StrStrA(pszfirst.into_param().abi(), pszsrch.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrStrIA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszfirst: Param0, pszsrch: Param1) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrStrIA(pszfirst: super::super::Foundation::PSTR, pszsrch: super::super::Foundation::PSTR) -> super::super::Foundation::PSTR; } ::core::mem::transmute(StrStrIA(pszfirst.into_param().abi(), pszsrch.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrStrIW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszfirst: Param0, pszsrch: Param1) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrStrIW(pszfirst: super::super::Foundation::PWSTR, pszsrch: super::super::Foundation::PWSTR) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(StrStrIW(pszfirst.into_param().abi(), pszsrch.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrStrNIW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszfirst: Param0, pszsrch: Param1, cchmax: u32) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrStrNIW(pszfirst: super::super::Foundation::PWSTR, pszsrch: super::super::Foundation::PWSTR, cchmax: u32) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(StrStrNIW(pszfirst.into_param().abi(), pszsrch.into_param().abi(), ::core::mem::transmute(cchmax))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrStrNW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszfirst: Param0, pszsrch: Param1, cchmax: u32) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrStrNW(pszfirst: super::super::Foundation::PWSTR, pszsrch: super::super::Foundation::PWSTR, cchmax: u32) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(StrStrNW(pszfirst.into_param().abi(), pszsrch.into_param().abi(), ::core::mem::transmute(cchmax))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrStrW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszfirst: Param0, pszsrch: Param1) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrStrW(pszfirst: super::super::Foundation::PWSTR, pszsrch: super::super::Foundation::PWSTR) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(StrStrW(pszfirst.into_param().abi(), pszsrch.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrToInt64ExA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszstring: Param0, dwflags: i32, pllret: *mut i64) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrToInt64ExA(pszstring: super::super::Foundation::PSTR, dwflags: i32, pllret: *mut i64) -> super::super::Foundation::BOOL; } ::core::mem::transmute(StrToInt64ExA(pszstring.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(pllret))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrToInt64ExW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszstring: Param0, dwflags: i32, pllret: *mut i64) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrToInt64ExW(pszstring: super::super::Foundation::PWSTR, dwflags: i32, pllret: *mut i64) -> super::super::Foundation::BOOL; } ::core::mem::transmute(StrToInt64ExW(pszstring.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(pllret))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrToIntA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszsrc: Param0) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrToIntA(pszsrc: super::super::Foundation::PSTR) -> i32; } ::core::mem::transmute(StrToIntA(pszsrc.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrToIntExA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszstring: Param0, dwflags: i32, piret: *mut i32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrToIntExA(pszstring: super::super::Foundation::PSTR, dwflags: i32, piret: *mut i32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(StrToIntExA(pszstring.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(piret))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrToIntExW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszstring: Param0, dwflags: i32, piret: *mut i32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrToIntExW(pszstring: super::super::Foundation::PWSTR, dwflags: i32, piret: *mut i32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(StrToIntExW(pszstring.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(piret))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrToIntW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszsrc: Param0) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrToIntW(pszsrc: super::super::Foundation::PWSTR) -> i32; } ::core::mem::transmute(StrToIntW(pszsrc.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrTrimA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(psz: Param0, psztrimchars: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrTrimA(psz: super::super::Foundation::PSTR, psztrimchars: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(StrTrimA(psz.into_param().abi(), psztrimchars.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn StrTrimW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(psz: Param0, psztrimchars: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StrTrimW(psz: super::super::Foundation::PWSTR, psztrimchars: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(StrTrimW(psz.into_param().abi(), psztrimchars.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const SuspensionDependencyManager: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6b273fc5_61fd_4918_95a2_c3b5e9d7f581); pub const SyncMgr: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6295df27_35ee_11d1_8707_00c04fd93327); pub const SyncMgrClient: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1202db60_1dac_42c5_aed5_1abdd432248e); pub const SyncMgrControl: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1a1f4206_0688_4e7f_be03_d82ec69df9a5); pub const SyncMgrFolder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9c73f5e5_7ae7_4e32_a8e8_8d23b85255bf); pub const SyncMgrScheduleWizard: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8d8b8e30_c451_421b_8553_d2976afa648c); pub const SyncResultsFolder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x71d99464_3b6b_475c_b241_e15883207529); pub const SyncSetupFolder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2e9e59c0_b437_4981_a647_9c34b9b90891); pub const TBIF_APPEND: u32 = 0u32; pub const TBIF_DEFAULT: u32 = 0u32; pub const TBIF_INTERNETBAR: u32 = 65536u32; pub const TBIF_NOTOOLBAR: u32 = 196608u32; pub const TBIF_PREPEND: u32 = 1u32; pub const TBIF_REPLACE: u32 = 2u32; pub const TBIF_STANDARDTOOLBAR: u32 = 131072u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct TBINFO { pub cbuttons: u32, pub uFlags: u32, } impl TBINFO {} impl ::core::default::Default for TBINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for TBINFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("TBINFO").field("cbuttons", &self.cbuttons).field("uFlags", &self.uFlags).finish() } } impl ::core::cmp::PartialEq for TBINFO { fn eq(&self, other: &Self) -> bool { self.cbuttons == other.cbuttons && self.uFlags == other.uFlags } } impl ::core::cmp::Eq for TBINFO {} unsafe impl ::windows::core::Abi for TBINFO { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct TBPFLAG(pub i32); pub const TBPF_NOPROGRESS: TBPFLAG = TBPFLAG(0i32); pub const TBPF_INDETERMINATE: TBPFLAG = TBPFLAG(1i32); pub const TBPF_NORMAL: TBPFLAG = TBPFLAG(2i32); pub const TBPF_ERROR: TBPFLAG = TBPFLAG(4i32); pub const TBPF_PAUSED: TBPFLAG = TBPFLAG(8i32); impl ::core::convert::From<i32> for TBPFLAG { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for TBPFLAG { type Abi = Self; } pub const THBN_CLICKED: u32 = 6144u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[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 THUMBBUTTON {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::default::Default for THUMBBUTTON { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::fmt::Debug for THUMBBUTTON { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("THUMBBUTTON").field("dwMask", &self.dwMask).field("iId", &self.iId).field("iBitmap", &self.iBitmap).field("hIcon", &self.hIcon).field("szTip", &self.szTip).field("dwFlags", &self.dwFlags).finish() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::cmp::PartialEq for THUMBBUTTON { fn eq(&self, other: &Self) -> bool { self.dwMask == other.dwMask && self.iId == other.iId && self.iBitmap == other.iBitmap && self.hIcon == other.hIcon && self.szTip == other.szTip && self.dwFlags == other.dwFlags } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::cmp::Eq for THUMBBUTTON {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] unsafe impl ::windows::core::Abi for THUMBBUTTON { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct THUMBBUTTONFLAGS(pub i32); pub const THBF_ENABLED: THUMBBUTTONFLAGS = THUMBBUTTONFLAGS(0i32); pub const THBF_DISABLED: THUMBBUTTONFLAGS = THUMBBUTTONFLAGS(1i32); pub const THBF_DISMISSONCLICK: THUMBBUTTONFLAGS = THUMBBUTTONFLAGS(2i32); pub const THBF_NOBACKGROUND: THUMBBUTTONFLAGS = THUMBBUTTONFLAGS(4i32); pub const THBF_HIDDEN: THUMBBUTTONFLAGS = THUMBBUTTONFLAGS(8i32); pub const THBF_NONINTERACTIVE: THUMBBUTTONFLAGS = THUMBBUTTONFLAGS(16i32); impl ::core::convert::From<i32> for THUMBBUTTONFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for THUMBBUTTONFLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct THUMBBUTTONMASK(pub i32); pub const THB_BITMAP: THUMBBUTTONMASK = THUMBBUTTONMASK(1i32); pub const THB_ICON: THUMBBUTTONMASK = THUMBBUTTONMASK(2i32); pub const THB_TOOLTIP: THUMBBUTTONMASK = THUMBBUTTONMASK(4i32); pub const THB_FLAGS: THUMBBUTTONMASK = THUMBBUTTONMASK(8i32); impl ::core::convert::From<i32> for THUMBBUTTONMASK { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for THUMBBUTTONMASK { type Abi = Self; } pub const TITLEBARNAMELEN: u32 = 40u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct TI_FLAGS(pub i32); pub const TI_BITMAP: TI_FLAGS = TI_FLAGS(1i32); pub const TI_JPEG: TI_FLAGS = TI_FLAGS(2i32); impl ::core::convert::From<i32> for TI_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for TI_FLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct TLENUMF(pub i32); pub const TLEF_RELATIVE_INCLUDE_CURRENT: TLENUMF = TLENUMF(1i32); pub const TLEF_RELATIVE_BACK: TLENUMF = TLENUMF(16i32); pub const TLEF_RELATIVE_FORE: TLENUMF = TLENUMF(32i32); pub const TLEF_INCLUDE_UNINVOKEABLE: TLENUMF = TLENUMF(64i32); pub const TLEF_ABSOLUTE: TLENUMF = TLENUMF(49i32); pub const TLEF_EXCLUDE_SUBFRAME_ENTRIES: TLENUMF = TLENUMF(128i32); pub const TLEF_EXCLUDE_ABOUT_PAGES: TLENUMF = TLENUMF(256i32); impl ::core::convert::From<i32> for TLENUMF { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for TLENUMF { type Abi = Self; } pub const TLMENUF_BACK: u32 = 16u32; pub const TLMENUF_FORE: u32 = 32u32; pub const TLMENUF_INCLUDECURRENT: u32 = 1u32; pub const TLOG_BACK: i32 = -1i32; pub const TLOG_CURRENT: u32 = 0u32; pub const TLOG_FORE: u32 = 1u32; #[derive(:: core :: clone :: Clone)] #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct TOOLBARITEM { pub ptbar: ::core::option::Option<IDockingWindow>, pub rcBorderTool: super::super::Foundation::RECT, pub pwszItem: super::super::Foundation::PWSTR, pub fShow: super::super::Foundation::BOOL, pub hMon: super::super::Graphics::Gdi::HMONITOR, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl TOOLBARITEM {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::default::Default for TOOLBARITEM { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::fmt::Debug for TOOLBARITEM { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("TOOLBARITEM").field("ptbar", &self.ptbar).field("rcBorderTool", &self.rcBorderTool).field("pwszItem", &self.pwszItem).field("fShow", &self.fShow).field("hMon", &self.hMon).finish() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::cmp::PartialEq for TOOLBARITEM { fn eq(&self, other: &Self) -> bool { self.ptbar == other.ptbar && self.rcBorderTool == other.rcBorderTool && self.pwszItem == other.pwszItem && self.fShow == other.fShow && self.hMon == other.hMon } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::cmp::Eq for TOOLBARITEM {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] unsafe impl ::windows::core::Abi for TOOLBARITEM { type Abi = ::core::mem::ManuallyDrop<Self>; } pub const TaskbarList: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x56fdf344_fd6d_11d0_958a_006097c9a090); pub const ThumbnailStreamCache: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcbe0fed3_4b91_4e90_8354_8a8c84ec6872); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct ThumbnailStreamCacheOptions(pub i32); pub const ExtractIfNotCached: ThumbnailStreamCacheOptions = ThumbnailStreamCacheOptions(0i32); pub const ReturnOnlyIfCached: ThumbnailStreamCacheOptions = ThumbnailStreamCacheOptions(1i32); pub const ResizeThumbnail: ThumbnailStreamCacheOptions = ThumbnailStreamCacheOptions(2i32); pub const AllowSmallerSize: ThumbnailStreamCacheOptions = ThumbnailStreamCacheOptions(4i32); impl ::core::convert::From<i32> for ThumbnailStreamCacheOptions { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for ThumbnailStreamCacheOptions { type Abi = Self; } pub const TimeCategorizer: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3bb4118f_ddfd_4d30_a348_9fb5d6bf1afe); pub const TrackShellMenu: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8278f931_2a3e_11d2_838f_00c04fd918d0); pub const TrayBandSiteService: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf60ad0a0_e5e1_45cb_b51a_e15b9f8b2934); pub const TrayDeskBand: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe6442437_6c68_4f52_94dd_2cfed267efb9); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct UNDOCK_REASON(pub i32); pub const UR_RESOLUTION_CHANGE: UNDOCK_REASON = UNDOCK_REASON(0i32); pub const UR_MONITOR_DISCONNECT: UNDOCK_REASON = UNDOCK_REASON(1i32); impl ::core::convert::From<i32> for UNDOCK_REASON { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for UNDOCK_REASON { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct URLIS(pub i32); pub const URLIS_URL: URLIS = URLIS(0i32); pub const URLIS_OPAQUE: URLIS = URLIS(1i32); pub const URLIS_NOHISTORY: URLIS = URLIS(2i32); pub const URLIS_FILEURL: URLIS = URLIS(3i32); pub const URLIS_APPLIABLE: URLIS = URLIS(4i32); pub const URLIS_DIRECTORY: URLIS = URLIS(5i32); pub const URLIS_HASQUERY: URLIS = URLIS(6i32); impl ::core::convert::From<i32> for URLIS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for URLIS { type Abi = Self; } pub const URL_APPLY_DEFAULT: u32 = 1u32; pub const URL_APPLY_FORCEAPPLY: u32 = 8u32; pub const URL_APPLY_GUESSFILE: u32 = 4u32; pub const URL_APPLY_GUESSSCHEME: u32 = 2u32; pub const URL_BROWSER_MODE: u32 = 33554432u32; pub const URL_CONVERT_IF_DOSPATH: u32 = 2097152u32; pub const URL_DONT_ESCAPE_EXTRA_INFO: u32 = 33554432u32; pub const URL_DONT_SIMPLIFY: u32 = 134217728u32; pub const URL_DONT_UNESCAPE: u32 = 131072u32; pub const URL_DONT_UNESCAPE_EXTRA_INFO: u32 = 33554432u32; pub const URL_ESCAPE_ASCII_URI_COMPONENT: u32 = 524288u32; pub const URL_ESCAPE_AS_UTF8: u32 = 262144u32; pub const URL_ESCAPE_PERCENT: u32 = 4096u32; pub const URL_ESCAPE_SEGMENT_ONLY: u32 = 8192u32; pub const URL_ESCAPE_SPACES_ONLY: u32 = 67108864u32; pub const URL_ESCAPE_UNSAFE: u32 = 536870912u32; pub const URL_E_INVALID_SYNTAX: ::windows::core::HRESULT = ::windows::core::HRESULT(-2147217407i32 as _); pub const URL_E_UNREGISTERED_PROTOCOL: ::windows::core::HRESULT = ::windows::core::HRESULT(-2147217406i32 as _); pub const URL_FILE_USE_PATHURL: u32 = 65536u32; pub const URL_INTERNAL_PATH: u32 = 8388608u32; pub const URL_NO_META: u32 = 134217728u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct URL_PART(pub i32); pub const URL_PART_NONE: URL_PART = URL_PART(0i32); pub const URL_PART_SCHEME: URL_PART = URL_PART(1i32); pub const URL_PART_HOSTNAME: URL_PART = URL_PART(2i32); pub const URL_PART_USERNAME: URL_PART = URL_PART(3i32); pub const URL_PART_PASSWORD: URL_PART = URL_PART(4i32); pub const URL_PART_PORT: URL_PART = URL_PART(5i32); pub const URL_PART_QUERY: URL_PART = URL_PART(6i32); impl ::core::convert::From<i32> for URL_PART { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for URL_PART { type Abi = Self; } pub const URL_PARTFLAG_KEEPSCHEME: u32 = 1u32; pub const URL_PLUGGABLE_PROTOCOL: u32 = 1073741824u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct URL_SCHEME(pub i32); pub const URL_SCHEME_INVALID: URL_SCHEME = URL_SCHEME(-1i32); pub const URL_SCHEME_UNKNOWN: URL_SCHEME = URL_SCHEME(0i32); pub const URL_SCHEME_FTP: URL_SCHEME = URL_SCHEME(1i32); pub const URL_SCHEME_HTTP: URL_SCHEME = URL_SCHEME(2i32); pub const URL_SCHEME_GOPHER: URL_SCHEME = URL_SCHEME(3i32); pub const URL_SCHEME_MAILTO: URL_SCHEME = URL_SCHEME(4i32); pub const URL_SCHEME_NEWS: URL_SCHEME = URL_SCHEME(5i32); pub const URL_SCHEME_NNTP: URL_SCHEME = URL_SCHEME(6i32); pub const URL_SCHEME_TELNET: URL_SCHEME = URL_SCHEME(7i32); pub const URL_SCHEME_WAIS: URL_SCHEME = URL_SCHEME(8i32); pub const URL_SCHEME_FILE: URL_SCHEME = URL_SCHEME(9i32); pub const URL_SCHEME_MK: URL_SCHEME = URL_SCHEME(10i32); pub const URL_SCHEME_HTTPS: URL_SCHEME = URL_SCHEME(11i32); pub const URL_SCHEME_SHELL: URL_SCHEME = URL_SCHEME(12i32); pub const URL_SCHEME_SNEWS: URL_SCHEME = URL_SCHEME(13i32); pub const URL_SCHEME_LOCAL: URL_SCHEME = URL_SCHEME(14i32); pub const URL_SCHEME_JAVASCRIPT: URL_SCHEME = URL_SCHEME(15i32); pub const URL_SCHEME_VBSCRIPT: URL_SCHEME = URL_SCHEME(16i32); pub const URL_SCHEME_ABOUT: URL_SCHEME = URL_SCHEME(17i32); pub const URL_SCHEME_RES: URL_SCHEME = URL_SCHEME(18i32); pub const URL_SCHEME_MSSHELLROOTED: URL_SCHEME = URL_SCHEME(19i32); pub const URL_SCHEME_MSSHELLIDLIST: URL_SCHEME = URL_SCHEME(20i32); pub const URL_SCHEME_MSHELP: URL_SCHEME = URL_SCHEME(21i32); pub const URL_SCHEME_MSSHELLDEVICE: URL_SCHEME = URL_SCHEME(22i32); pub const URL_SCHEME_WILDCARD: URL_SCHEME = URL_SCHEME(23i32); pub const URL_SCHEME_SEARCH_MS: URL_SCHEME = URL_SCHEME(24i32); pub const URL_SCHEME_SEARCH: URL_SCHEME = URL_SCHEME(25i32); pub const URL_SCHEME_KNOWNFOLDER: URL_SCHEME = URL_SCHEME(26i32); pub const URL_SCHEME_MAXVALUE: URL_SCHEME = URL_SCHEME(27i32); impl ::core::convert::From<i32> for URL_SCHEME { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for URL_SCHEME { type Abi = Self; } pub const URL_UNESCAPE: u32 = 268435456u32; pub const URL_UNESCAPE_AS_UTF8: u32 = 262144u32; pub const URL_UNESCAPE_HIGH_ANSI_ONLY: u32 = 4194304u32; pub const URL_UNESCAPE_INPLACE: u32 = 1048576u32; pub const URL_UNESCAPE_URI_COMPONENT: u32 = 262144u32; pub const URL_WININET_COMPATIBILITY: u32 = 2147483648u32; #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UnloadUserProfile<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(htoken: Param0, hprofile: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UnloadUserProfile(htoken: super::super::Foundation::HANDLE, hprofile: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(UnloadUserProfile(htoken.into_param().abi(), hprofile.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn UnregisterAppConstrainedChangeNotification(registration: *mut _APPCONSTRAIN_REGISTRATION) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UnregisterAppConstrainedChangeNotification(registration: *mut _APPCONSTRAIN_REGISTRATION); } ::core::mem::transmute(UnregisterAppConstrainedChangeNotification(::core::mem::transmute(registration))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn UnregisterAppStateChangeNotification(registration: *mut _APPSTATE_REGISTRATION) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UnregisterAppStateChangeNotification(registration: *mut _APPSTATE_REGISTRATION); } ::core::mem::transmute(UnregisterAppStateChangeNotification(::core::mem::transmute(registration))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn UnregisterScaleChangeEvent(dwcookie: usize) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UnregisterScaleChangeEvent(dwcookie: usize) -> ::windows::core::HRESULT; } UnregisterScaleChangeEvent(::core::mem::transmute(dwcookie)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlApplySchemeA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszin: Param0, pszout: super::super::Foundation::PSTR, pcchout: *mut u32, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlApplySchemeA(pszin: super::super::Foundation::PSTR, pszout: super::super::Foundation::PSTR, pcchout: *mut u32, dwflags: u32) -> ::windows::core::HRESULT; } UrlApplySchemeA(pszin.into_param().abi(), ::core::mem::transmute(pszout), ::core::mem::transmute(pcchout), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlApplySchemeW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszin: Param0, pszout: super::super::Foundation::PWSTR, pcchout: *mut u32, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlApplySchemeW(pszin: super::super::Foundation::PWSTR, pszout: super::super::Foundation::PWSTR, pcchout: *mut u32, dwflags: u32) -> ::windows::core::HRESULT; } UrlApplySchemeW(pszin.into_param().abi(), ::core::mem::transmute(pszout), ::core::mem::transmute(pcchout), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlCanonicalizeA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszurl: Param0, pszcanonicalized: super::super::Foundation::PSTR, pcchcanonicalized: *mut u32, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlCanonicalizeA(pszurl: super::super::Foundation::PSTR, pszcanonicalized: super::super::Foundation::PSTR, pcchcanonicalized: *mut u32, dwflags: u32) -> ::windows::core::HRESULT; } UrlCanonicalizeA(pszurl.into_param().abi(), ::core::mem::transmute(pszcanonicalized), ::core::mem::transmute(pcchcanonicalized), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlCanonicalizeW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszurl: Param0, pszcanonicalized: super::super::Foundation::PWSTR, pcchcanonicalized: *mut u32, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlCanonicalizeW(pszurl: super::super::Foundation::PWSTR, pszcanonicalized: super::super::Foundation::PWSTR, pcchcanonicalized: *mut u32, dwflags: u32) -> ::windows::core::HRESULT; } UrlCanonicalizeW(pszurl.into_param().abi(), ::core::mem::transmute(pszcanonicalized), ::core::mem::transmute(pcchcanonicalized), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlCombineA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszbase: Param0, pszrelative: Param1, pszcombined: super::super::Foundation::PSTR, pcchcombined: *mut u32, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlCombineA(pszbase: super::super::Foundation::PSTR, pszrelative: super::super::Foundation::PSTR, pszcombined: super::super::Foundation::PSTR, pcchcombined: *mut u32, dwflags: u32) -> ::windows::core::HRESULT; } UrlCombineA(pszbase.into_param().abi(), pszrelative.into_param().abi(), ::core::mem::transmute(pszcombined), ::core::mem::transmute(pcchcombined), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlCombineW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszbase: Param0, pszrelative: Param1, pszcombined: super::super::Foundation::PWSTR, pcchcombined: *mut u32, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlCombineW(pszbase: super::super::Foundation::PWSTR, pszrelative: super::super::Foundation::PWSTR, pszcombined: super::super::Foundation::PWSTR, pcchcombined: *mut u32, dwflags: u32) -> ::windows::core::HRESULT; } UrlCombineW(pszbase.into_param().abi(), pszrelative.into_param().abi(), ::core::mem::transmute(pszcombined), ::core::mem::transmute(pcchcombined), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlCompareA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(psz1: Param0, psz2: Param1, fignoreslash: Param2) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlCompareA(psz1: super::super::Foundation::PSTR, psz2: super::super::Foundation::PSTR, fignoreslash: super::super::Foundation::BOOL) -> i32; } ::core::mem::transmute(UrlCompareA(psz1.into_param().abi(), psz2.into_param().abi(), fignoreslash.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlCompareW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(psz1: Param0, psz2: Param1, fignoreslash: Param2) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlCompareW(psz1: super::super::Foundation::PWSTR, psz2: super::super::Foundation::PWSTR, fignoreslash: super::super::Foundation::BOOL) -> i32; } ::core::mem::transmute(UrlCompareW(psz1.into_param().abi(), psz2.into_param().abi(), fignoreslash.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlCreateFromPathA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszpath: Param0, pszurl: super::super::Foundation::PSTR, pcchurl: *mut u32, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlCreateFromPathA(pszpath: super::super::Foundation::PSTR, pszurl: super::super::Foundation::PSTR, pcchurl: *mut u32, dwflags: u32) -> ::windows::core::HRESULT; } UrlCreateFromPathA(pszpath.into_param().abi(), ::core::mem::transmute(pszurl), ::core::mem::transmute(pcchurl), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlCreateFromPathW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0, pszurl: super::super::Foundation::PWSTR, pcchurl: *mut u32, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlCreateFromPathW(pszpath: super::super::Foundation::PWSTR, pszurl: super::super::Foundation::PWSTR, pcchurl: *mut u32, dwflags: u32) -> ::windows::core::HRESULT; } UrlCreateFromPathW(pszpath.into_param().abi(), ::core::mem::transmute(pszurl), ::core::mem::transmute(pcchurl), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlEscapeA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszurl: Param0, pszescaped: super::super::Foundation::PSTR, pcchescaped: *mut u32, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlEscapeA(pszurl: super::super::Foundation::PSTR, pszescaped: super::super::Foundation::PSTR, pcchescaped: *mut u32, dwflags: u32) -> ::windows::core::HRESULT; } UrlEscapeA(pszurl.into_param().abi(), ::core::mem::transmute(pszescaped), ::core::mem::transmute(pcchescaped), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlEscapeW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszurl: Param0, pszescaped: super::super::Foundation::PWSTR, pcchescaped: *mut u32, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlEscapeW(pszurl: super::super::Foundation::PWSTR, pszescaped: super::super::Foundation::PWSTR, pcchescaped: *mut u32, dwflags: u32) -> ::windows::core::HRESULT; } UrlEscapeW(pszurl.into_param().abi(), ::core::mem::transmute(pszescaped), ::core::mem::transmute(pcchescaped), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlFixupW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pcszurl: Param0, psztranslatedurl: super::super::Foundation::PWSTR, cchmax: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlFixupW(pcszurl: super::super::Foundation::PWSTR, psztranslatedurl: super::super::Foundation::PWSTR, cchmax: u32) -> ::windows::core::HRESULT; } UrlFixupW(pcszurl.into_param().abi(), ::core::mem::transmute(psztranslatedurl), ::core::mem::transmute(cchmax)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlGetLocationA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszurl: Param0) -> super::super::Foundation::PSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlGetLocationA(pszurl: super::super::Foundation::PSTR) -> super::super::Foundation::PSTR; } ::core::mem::transmute(UrlGetLocationA(pszurl.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlGetLocationW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszurl: Param0) -> super::super::Foundation::PWSTR { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlGetLocationW(pszurl: super::super::Foundation::PWSTR) -> super::super::Foundation::PWSTR; } ::core::mem::transmute(UrlGetLocationW(pszurl.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlGetPartA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszin: Param0, pszout: super::super::Foundation::PSTR, pcchout: *mut u32, dwpart: u32, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlGetPartA(pszin: super::super::Foundation::PSTR, pszout: super::super::Foundation::PSTR, pcchout: *mut u32, dwpart: u32, dwflags: u32) -> ::windows::core::HRESULT; } UrlGetPartA(pszin.into_param().abi(), ::core::mem::transmute(pszout), ::core::mem::transmute(pcchout), ::core::mem::transmute(dwpart), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlGetPartW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszin: Param0, pszout: super::super::Foundation::PWSTR, pcchout: *mut u32, dwpart: u32, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlGetPartW(pszin: super::super::Foundation::PWSTR, pszout: super::super::Foundation::PWSTR, pcchout: *mut u32, dwpart: u32, dwflags: u32) -> ::windows::core::HRESULT; } UrlGetPartW(pszin.into_param().abi(), ::core::mem::transmute(pszout), ::core::mem::transmute(pcchout), ::core::mem::transmute(dwpart), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlHashA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszurl: Param0, pbhash: *mut u8, cbhash: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlHashA(pszurl: super::super::Foundation::PSTR, pbhash: *mut u8, cbhash: u32) -> ::windows::core::HRESULT; } UrlHashA(pszurl.into_param().abi(), ::core::mem::transmute(pbhash), ::core::mem::transmute(cbhash)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlHashW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszurl: Param0, pbhash: *mut u8, cbhash: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlHashW(pszurl: super::super::Foundation::PWSTR, pbhash: *mut u8, cbhash: u32) -> ::windows::core::HRESULT; } UrlHashW(pszurl.into_param().abi(), ::core::mem::transmute(pbhash), ::core::mem::transmute(cbhash)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlIsA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszurl: Param0, urlis: URLIS) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlIsA(pszurl: super::super::Foundation::PSTR, urlis: URLIS) -> super::super::Foundation::BOOL; } ::core::mem::transmute(UrlIsA(pszurl.into_param().abi(), ::core::mem::transmute(urlis))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlIsNoHistoryA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszurl: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlIsNoHistoryA(pszurl: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(UrlIsNoHistoryA(pszurl.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlIsNoHistoryW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszurl: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlIsNoHistoryW(pszurl: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(UrlIsNoHistoryW(pszurl.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlIsOpaqueA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszurl: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlIsOpaqueA(pszurl: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(UrlIsOpaqueA(pszurl.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlIsOpaqueW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszurl: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlIsOpaqueW(pszurl: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(UrlIsOpaqueW(pszurl.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlIsW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszurl: Param0, urlis: URLIS) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlIsW(pszurl: super::super::Foundation::PWSTR, urlis: URLIS) -> super::super::Foundation::BOOL; } ::core::mem::transmute(UrlIsW(pszurl.into_param().abi(), ::core::mem::transmute(urlis))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlUnescapeA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszurl: Param0, pszunescaped: super::super::Foundation::PSTR, pcchunescaped: *mut u32, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlUnescapeA(pszurl: super::super::Foundation::PSTR, pszunescaped: super::super::Foundation::PSTR, pcchunescaped: *mut u32, dwflags: u32) -> ::windows::core::HRESULT; } UrlUnescapeA(pszurl.into_param().abi(), ::core::mem::transmute(pszunescaped), ::core::mem::transmute(pcchunescaped), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UrlUnescapeW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszurl: Param0, pszunescaped: super::super::Foundation::PWSTR, pcchunescaped: *mut u32, dwflags: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UrlUnescapeW(pszurl: super::super::Foundation::PWSTR, pszunescaped: super::super::Foundation::PWSTR, pcchunescaped: *mut u32, dwflags: u32) -> ::windows::core::HRESULT; } UrlUnescapeW(pszurl.into_param().abi(), ::core::mem::transmute(pszunescaped), ::core::mem::transmute(pcchunescaped), ::core::mem::transmute(dwflags)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const UserNotification: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0010890e_8789_413c_adbc_48f5b511b3af); pub const V1PasswordCredentialProvider: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6f45dc1e_5384_457a_bc13_2cd81b0d28ed); pub const V1SmartcardCredentialProvider: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8bf9a910_a8ff_457f_999f_a5ca10b4a885); pub const V1WinBioCredentialProvider: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xac3ac249_e820_4343_a65b_377ac634dc09); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct VALIDATEUNC_OPTION(pub i32); pub const VALIDATEUNC_CONNECT: VALIDATEUNC_OPTION = VALIDATEUNC_OPTION(1i32); pub const VALIDATEUNC_NOUI: VALIDATEUNC_OPTION = VALIDATEUNC_OPTION(2i32); pub const VALIDATEUNC_PRINT: VALIDATEUNC_OPTION = VALIDATEUNC_OPTION(4i32); pub const VALIDATEUNC_PERSIST: VALIDATEUNC_OPTION = VALIDATEUNC_OPTION(8i32); pub const VALIDATEUNC_VALID: VALIDATEUNC_OPTION = VALIDATEUNC_OPTION(15i32); impl ::core::convert::From<i32> for VALIDATEUNC_OPTION { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for VALIDATEUNC_OPTION { type Abi = Self; } impl ::core::ops::BitOr for VALIDATEUNC_OPTION { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for VALIDATEUNC_OPTION { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for VALIDATEUNC_OPTION { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for VALIDATEUNC_OPTION { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for VALIDATEUNC_OPTION { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } pub const VID_Content: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x30c2c434_0889_4c8d_985d_a9f71830b0a9); pub const VID_Details: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x137e7700_3573_11cf_ae69_08002b2e1262); pub const VID_LargeIcons: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0057d0e0_3573_11cf_ae69_08002b2e1262); pub const VID_List: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0e1fa5e0_3573_11cf_ae69_08002b2e1262); pub const VID_SmallIcons: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x089000c0_3573_11cf_ae69_08002b2e1262); pub const VID_ThumbStrip: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8eefa624_d1e9_445b_94b7_74fbce2ea11a); pub const VID_Thumbnails: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8bebb290_52d0_11d0_b7f4_00c04fd706ec); pub const VID_Tile: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x65f125e5_7be1_4810_ba9d_d271c8432ce3); pub const VIEW_PRIORITY_CACHEHIT: u32 = 80u32; pub const VIEW_PRIORITY_CACHEMISS: u32 = 48u32; pub const VIEW_PRIORITY_DESPERATE: u32 = 16u32; pub const VIEW_PRIORITY_INHERIT: u32 = 32u32; pub const VIEW_PRIORITY_NONE: u32 = 0u32; pub const VIEW_PRIORITY_RESTRICTED: u32 = 112u32; pub const VIEW_PRIORITY_SHELLEXT: u32 = 64u32; pub const VIEW_PRIORITY_SHELLEXT_ASBACKUP: u32 = 21u32; pub const VIEW_PRIORITY_STALECACHEHIT: u32 = 69u32; pub const VIEW_PRIORITY_USEASDEFAULT: u32 = 67u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct VPCOLORFLAGS(pub i32); pub const VPCF_TEXT: VPCOLORFLAGS = VPCOLORFLAGS(1i32); pub const VPCF_BACKGROUND: VPCOLORFLAGS = VPCOLORFLAGS(2i32); pub const VPCF_SORTCOLUMN: VPCOLORFLAGS = VPCOLORFLAGS(3i32); pub const VPCF_SUBTEXT: VPCOLORFLAGS = VPCOLORFLAGS(4i32); pub const VPCF_TEXTBACKGROUND: VPCOLORFLAGS = VPCOLORFLAGS(5i32); impl ::core::convert::From<i32> for VPCOLORFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for VPCOLORFLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct VPWATERMARKFLAGS(pub i32); pub const VPWF_DEFAULT: VPWATERMARKFLAGS = VPWATERMARKFLAGS(0i32); pub const VPWF_ALPHABLEND: VPWATERMARKFLAGS = VPWATERMARKFLAGS(1i32); impl ::core::convert::From<i32> for VPWATERMARKFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for VPWATERMARKFLAGS { type Abi = Self; } pub const VaultProvider: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x503739d0_4c5e_4cfd_b3ba_d881334f0df2); pub const VirtualDesktopManager: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xaa509086_5ca9_4c25_8f95_589d3c07b48a); #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] pub struct WINDOWDATA { pub dwWindowID: u32, pub uiCP: u32, pub pidl: *mut Common::ITEMIDLIST, pub lpszUrl: super::super::Foundation::PWSTR, pub lpszUrlLocation: super::super::Foundation::PWSTR, pub lpszTitle: super::super::Foundation::PWSTR, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl WINDOWDATA {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::default::Default for WINDOWDATA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::fmt::Debug for WINDOWDATA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("WINDOWDATA").field("dwWindowID", &self.dwWindowID).field("uiCP", &self.uiCP).field("pidl", &self.pidl).field("lpszUrl", &self.lpszUrl).field("lpszUrlLocation", &self.lpszUrlLocation).field("lpszTitle", &self.lpszTitle).finish() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::cmp::PartialEq for WINDOWDATA { fn eq(&self, other: &Self) -> bool { self.dwWindowID == other.dwWindowID && self.uiCP == other.uiCP && self.pidl == other.pidl && self.lpszUrl == other.lpszUrl && self.lpszUrlLocation == other.lpszUrlLocation && self.lpszTitle == other.lpszTitle } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] impl ::core::cmp::Eq for WINDOWDATA {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] unsafe impl ::windows::core::Abi for WINDOWDATA { type Abi = Self; } pub const WM_CPL_LAUNCH: u32 = 2024u32; pub const WM_CPL_LAUNCHED: u32 = 2025u32; pub const WPSTYLE_CENTER: u32 = 0u32; pub const WPSTYLE_CROPTOFIT: u32 = 4u32; pub const WPSTYLE_KEEPASPECT: u32 = 3u32; pub const WPSTYLE_MAX: u32 = 6u32; pub const WPSTYLE_SPAN: u32 = 5u32; pub const WPSTYLE_STRETCH: u32 = 2u32; pub const WPSTYLE_TILE: u32 = 1u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct WTS_ALPHATYPE(pub i32); pub const WTSAT_UNKNOWN: WTS_ALPHATYPE = WTS_ALPHATYPE(0i32); pub const WTSAT_RGB: WTS_ALPHATYPE = WTS_ALPHATYPE(1i32); pub const WTSAT_ARGB: WTS_ALPHATYPE = WTS_ALPHATYPE(2i32); impl ::core::convert::From<i32> for WTS_ALPHATYPE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for WTS_ALPHATYPE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct WTS_CACHEFLAGS(pub i32); pub const WTS_DEFAULT: WTS_CACHEFLAGS = WTS_CACHEFLAGS(0i32); pub const WTS_LOWQUALITY: WTS_CACHEFLAGS = WTS_CACHEFLAGS(1i32); pub const WTS_CACHED: WTS_CACHEFLAGS = WTS_CACHEFLAGS(2i32); impl ::core::convert::From<i32> for WTS_CACHEFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for WTS_CACHEFLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct WTS_CONTEXTFLAGS(pub i32); pub const WTSCF_DEFAULT: WTS_CONTEXTFLAGS = WTS_CONTEXTFLAGS(0i32); pub const WTSCF_APPSTYLE: WTS_CONTEXTFLAGS = WTS_CONTEXTFLAGS(1i32); pub const WTSCF_SQUARE: WTS_CONTEXTFLAGS = WTS_CONTEXTFLAGS(2i32); pub const WTSCF_WIDE: WTS_CONTEXTFLAGS = WTS_CONTEXTFLAGS(4i32); pub const WTSCF_FAST: WTS_CONTEXTFLAGS = WTS_CONTEXTFLAGS(8i32); impl ::core::convert::From<i32> for WTS_CONTEXTFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for WTS_CONTEXTFLAGS { type Abi = Self; } pub const WTS_E_DATAFILEUNAVAILABLE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2147175932i32 as _); pub const WTS_E_EXTRACTIONBLOCKED: ::windows::core::HRESULT = ::windows::core::HRESULT(-2147175930i32 as _); pub const WTS_E_EXTRACTIONPENDING: ::windows::core::HRESULT = ::windows::core::HRESULT(-2147175931i32 as _); pub const WTS_E_EXTRACTIONTIMEDOUT: ::windows::core::HRESULT = ::windows::core::HRESULT(-2147175935i32 as _); pub const WTS_E_FAILEDEXTRACTION: ::windows::core::HRESULT = ::windows::core::HRESULT(-2147175936i32 as _); pub const WTS_E_FASTEXTRACTIONNOTSUPPORTED: ::windows::core::HRESULT = ::windows::core::HRESULT(-2147175933i32 as _); pub const WTS_E_NOSTORAGEPROVIDERTHUMBNAILHANDLER: ::windows::core::HRESULT = ::windows::core::HRESULT(-2147175929i32 as _); pub const WTS_E_SURROGATEUNAVAILABLE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2147175934i32 as _); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct WTS_FLAGS(pub i32); pub const WTS_NONE: WTS_FLAGS = WTS_FLAGS(0i32); pub const WTS_EXTRACT: WTS_FLAGS = WTS_FLAGS(0i32); pub const WTS_INCACHEONLY: WTS_FLAGS = WTS_FLAGS(1i32); pub const WTS_FASTEXTRACT: WTS_FLAGS = WTS_FLAGS(2i32); pub const WTS_FORCEEXTRACTION: WTS_FLAGS = WTS_FLAGS(4i32); pub const WTS_SLOWRECLAIM: WTS_FLAGS = WTS_FLAGS(8i32); pub const WTS_EXTRACTDONOTCACHE: WTS_FLAGS = WTS_FLAGS(32i32); pub const WTS_SCALETOREQUESTEDSIZE: WTS_FLAGS = WTS_FLAGS(64i32); pub const WTS_SKIPFASTEXTRACT: WTS_FLAGS = WTS_FLAGS(128i32); pub const WTS_EXTRACTINPROC: WTS_FLAGS = WTS_FLAGS(256i32); pub const WTS_CROPTOSQUARE: WTS_FLAGS = WTS_FLAGS(512i32); pub const WTS_INSTANCESURROGATE: WTS_FLAGS = WTS_FLAGS(1024i32); pub const WTS_REQUIRESURROGATE: WTS_FLAGS = WTS_FLAGS(2048i32); pub const WTS_APPSTYLE: WTS_FLAGS = WTS_FLAGS(8192i32); pub const WTS_WIDETHUMBNAILS: WTS_FLAGS = WTS_FLAGS(16384i32); pub const WTS_IDEALCACHESIZEONLY: WTS_FLAGS = WTS_FLAGS(32768i32); pub const WTS_SCALEUP: WTS_FLAGS = WTS_FLAGS(65536i32); impl ::core::convert::From<i32> for WTS_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for WTS_FLAGS { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct WTS_THUMBNAILID { pub rgbKey: [u8; 16], } impl WTS_THUMBNAILID {} impl ::core::default::Default for WTS_THUMBNAILID { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for WTS_THUMBNAILID { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("WTS_THUMBNAILID").field("rgbKey", &self.rgbKey).finish() } } impl ::core::cmp::PartialEq for WTS_THUMBNAILID { fn eq(&self, other: &Self) -> bool { self.rgbKey == other.rgbKey } } impl ::core::cmp::Eq for WTS_THUMBNAILID {} unsafe impl ::windows::core::Abi for WTS_THUMBNAILID { type Abi = Self; } pub const WebBrowser: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8856f961_340a_11d0_a96b_00c04fd705a2); pub const WebBrowser_V1: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xeab22ac3_30c1_11cf_a7eb_0000c05bae0b); pub const WebWizardHost: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc827f149_55c1_4d28_935e_57e47caed973); #[inline] pub unsafe fn WhichPlatform() -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn WhichPlatform() -> u32; } ::core::mem::transmute(WhichPlatform()) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn Win32DeleteFile<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszpath: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn Win32DeleteFile(pszpath: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; } ::core::mem::transmute(Win32DeleteFile(pszpath.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const WinBioCredentialProvider: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbec09223_b018_416d_a0ac_523971b639f5); #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn WinHelpA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(hwndmain: Param0, lpszhelp: Param1, ucommand: u32, dwdata: usize) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn WinHelpA(hwndmain: super::super::Foundation::HWND, lpszhelp: super::super::Foundation::PSTR, ucommand: u32, dwdata: usize) -> super::super::Foundation::BOOL; } ::core::mem::transmute(WinHelpA(hwndmain.into_param().abi(), lpszhelp.into_param().abi(), ::core::mem::transmute(ucommand), ::core::mem::transmute(dwdata))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn WinHelpW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HWND>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hwndmain: Param0, lpszhelp: Param1, ucommand: u32, dwdata: usize) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn WinHelpW(hwndmain: super::super::Foundation::HWND, lpszhelp: super::super::Foundation::PWSTR, ucommand: u32, dwdata: usize) -> super::super::Foundation::BOOL; } ::core::mem::transmute(WinHelpW(hwndmain.into_param().abi(), lpszhelp.into_param().abi(), ::core::mem::transmute(ucommand), ::core::mem::transmute(dwdata))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn WriteCabinetState(pcs: *const CABINETSTATE) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn WriteCabinetState(pcs: *const CABINETSTATE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(WriteCabinetState(::core::mem::transmute(pcs))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[repr(C)] #[derive(:: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug, :: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy)] pub struct _APPCONSTRAIN_REGISTRATION(pub u8); #[repr(C)] #[derive(:: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug, :: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy)] pub struct _APPSTATE_REGISTRATION(pub u8); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _BROWSERFRAMEOPTIONS(pub i32); pub const BFO_NONE: _BROWSERFRAMEOPTIONS = _BROWSERFRAMEOPTIONS(0i32); pub const BFO_BROWSER_PERSIST_SETTINGS: _BROWSERFRAMEOPTIONS = _BROWSERFRAMEOPTIONS(1i32); pub const BFO_RENAME_FOLDER_OPTIONS_TOINTERNET: _BROWSERFRAMEOPTIONS = _BROWSERFRAMEOPTIONS(2i32); pub const BFO_BOTH_OPTIONS: _BROWSERFRAMEOPTIONS = _BROWSERFRAMEOPTIONS(4i32); pub const BIF_PREFER_INTERNET_SHORTCUT: _BROWSERFRAMEOPTIONS = _BROWSERFRAMEOPTIONS(8i32); pub const BFO_BROWSE_NO_IN_NEW_PROCESS: _BROWSERFRAMEOPTIONS = _BROWSERFRAMEOPTIONS(16i32); pub const BFO_ENABLE_HYPERLINK_TRACKING: _BROWSERFRAMEOPTIONS = _BROWSERFRAMEOPTIONS(32i32); pub const BFO_USE_IE_OFFLINE_SUPPORT: _BROWSERFRAMEOPTIONS = _BROWSERFRAMEOPTIONS(64i32); pub const BFO_SUBSTITUE_INTERNET_START_PAGE: _BROWSERFRAMEOPTIONS = _BROWSERFRAMEOPTIONS(128i32); pub const BFO_USE_IE_LOGOBANDING: _BROWSERFRAMEOPTIONS = _BROWSERFRAMEOPTIONS(256i32); pub const BFO_ADD_IE_TOCAPTIONBAR: _BROWSERFRAMEOPTIONS = _BROWSERFRAMEOPTIONS(512i32); pub const BFO_USE_DIALUP_REF: _BROWSERFRAMEOPTIONS = _BROWSERFRAMEOPTIONS(1024i32); pub const BFO_USE_IE_TOOLBAR: _BROWSERFRAMEOPTIONS = _BROWSERFRAMEOPTIONS(2048i32); pub const BFO_NO_PARENT_FOLDER_SUPPORT: _BROWSERFRAMEOPTIONS = _BROWSERFRAMEOPTIONS(4096i32); pub const BFO_NO_REOPEN_NEXT_RESTART: _BROWSERFRAMEOPTIONS = _BROWSERFRAMEOPTIONS(8192i32); pub const BFO_GO_HOME_PAGE: _BROWSERFRAMEOPTIONS = _BROWSERFRAMEOPTIONS(16384i32); pub const BFO_PREFER_IEPROCESS: _BROWSERFRAMEOPTIONS = _BROWSERFRAMEOPTIONS(32768i32); pub const BFO_SHOW_NAVIGATION_CANCELLED: _BROWSERFRAMEOPTIONS = _BROWSERFRAMEOPTIONS(65536i32); pub const BFO_USE_IE_STATUSBAR: _BROWSERFRAMEOPTIONS = _BROWSERFRAMEOPTIONS(131072i32); pub const BFO_QUERY_ALL: _BROWSERFRAMEOPTIONS = _BROWSERFRAMEOPTIONS(-1i32); impl ::core::convert::From<i32> for _BROWSERFRAMEOPTIONS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _BROWSERFRAMEOPTIONS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _CDBE_ACTIONS(pub i32); pub const CDBE_TYPE_MUSIC: _CDBE_ACTIONS = _CDBE_ACTIONS(1i32); pub const CDBE_TYPE_DATA: _CDBE_ACTIONS = _CDBE_ACTIONS(2i32); pub const CDBE_TYPE_ALL: _CDBE_ACTIONS = _CDBE_ACTIONS(-1i32); impl ::core::convert::From<i32> for _CDBE_ACTIONS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _CDBE_ACTIONS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _EXPCMDFLAGS(pub i32); pub const ECF_DEFAULT: _EXPCMDFLAGS = _EXPCMDFLAGS(0i32); pub const ECF_HASSUBCOMMANDS: _EXPCMDFLAGS = _EXPCMDFLAGS(1i32); pub const ECF_HASSPLITBUTTON: _EXPCMDFLAGS = _EXPCMDFLAGS(2i32); pub const ECF_HIDELABEL: _EXPCMDFLAGS = _EXPCMDFLAGS(4i32); pub const ECF_ISSEPARATOR: _EXPCMDFLAGS = _EXPCMDFLAGS(8i32); pub const ECF_HASLUASHIELD: _EXPCMDFLAGS = _EXPCMDFLAGS(16i32); pub const ECF_SEPARATORBEFORE: _EXPCMDFLAGS = _EXPCMDFLAGS(32i32); pub const ECF_SEPARATORAFTER: _EXPCMDFLAGS = _EXPCMDFLAGS(64i32); pub const ECF_ISDROPDOWN: _EXPCMDFLAGS = _EXPCMDFLAGS(128i32); pub const ECF_TOGGLEABLE: _EXPCMDFLAGS = _EXPCMDFLAGS(256i32); pub const ECF_AUTOMENUICONS: _EXPCMDFLAGS = _EXPCMDFLAGS(512i32); impl ::core::convert::From<i32> for _EXPCMDFLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _EXPCMDFLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _EXPCMDSTATE(pub i32); pub const ECS_ENABLED: _EXPCMDSTATE = _EXPCMDSTATE(0i32); pub const ECS_DISABLED: _EXPCMDSTATE = _EXPCMDSTATE(1i32); pub const ECS_HIDDEN: _EXPCMDSTATE = _EXPCMDSTATE(2i32); pub const ECS_CHECKBOX: _EXPCMDSTATE = _EXPCMDSTATE(4i32); pub const ECS_CHECKED: _EXPCMDSTATE = _EXPCMDSTATE(8i32); pub const ECS_RADIOCHECK: _EXPCMDSTATE = _EXPCMDSTATE(16i32); impl ::core::convert::From<i32> for _EXPCMDSTATE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _EXPCMDSTATE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _EXPLORERPANESTATE(pub i32); pub const EPS_DONTCARE: _EXPLORERPANESTATE = _EXPLORERPANESTATE(0i32); pub const EPS_DEFAULT_ON: _EXPLORERPANESTATE = _EXPLORERPANESTATE(1i32); pub const EPS_DEFAULT_OFF: _EXPLORERPANESTATE = _EXPLORERPANESTATE(2i32); pub const EPS_STATEMASK: _EXPLORERPANESTATE = _EXPLORERPANESTATE(65535i32); pub const EPS_INITIALSTATE: _EXPLORERPANESTATE = _EXPLORERPANESTATE(65536i32); pub const EPS_FORCE: _EXPLORERPANESTATE = _EXPLORERPANESTATE(131072i32); impl ::core::convert::From<i32> for _EXPLORERPANESTATE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _EXPLORERPANESTATE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _EXPPS(pub i32); pub const EXPPS_FILETYPES: _EXPPS = _EXPPS(1i32); impl ::core::convert::From<i32> for _EXPPS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _EXPPS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _FILEOPENDIALOGOPTIONS(pub i32); pub const FOS_OVERWRITEPROMPT: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(2i32); pub const FOS_STRICTFILETYPES: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(4i32); pub const FOS_NOCHANGEDIR: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(8i32); pub const FOS_PICKFOLDERS: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(32i32); pub const FOS_FORCEFILESYSTEM: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(64i32); pub const FOS_ALLNONSTORAGEITEMS: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(128i32); pub const FOS_NOVALIDATE: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(256i32); pub const FOS_ALLOWMULTISELECT: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(512i32); pub const FOS_PATHMUSTEXIST: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(2048i32); pub const FOS_FILEMUSTEXIST: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(4096i32); pub const FOS_CREATEPROMPT: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(8192i32); pub const FOS_SHAREAWARE: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(16384i32); pub const FOS_NOREADONLYRETURN: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(32768i32); pub const FOS_NOTESTFILECREATE: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(65536i32); pub const FOS_HIDEMRUPLACES: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(131072i32); pub const FOS_HIDEPINNEDPLACES: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(262144i32); pub const FOS_NODEREFERENCELINKS: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(1048576i32); pub const FOS_OKBUTTONNEEDSINTERACTION: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(2097152i32); pub const FOS_DONTADDTORECENT: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(33554432i32); pub const FOS_FORCESHOWHIDDEN: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(268435456i32); pub const FOS_DEFAULTNOMINIMODE: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(536870912i32); pub const FOS_FORCEPREVIEWPANEON: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(1073741824i32); pub const FOS_SUPPORTSTREAMABLEITEMS: _FILEOPENDIALOGOPTIONS = _FILEOPENDIALOGOPTIONS(-2147483648i32); impl ::core::convert::From<i32> for _FILEOPENDIALOGOPTIONS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _FILEOPENDIALOGOPTIONS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _HLSHORTCUTF__NOREDEF10(pub i32); pub const HLSHORTCUTF_DEFAULT: _HLSHORTCUTF__NOREDEF10 = _HLSHORTCUTF__NOREDEF10(0i32); pub const HLSHORTCUTF_DONTACTUALLYCREATE: _HLSHORTCUTF__NOREDEF10 = _HLSHORTCUTF__NOREDEF10(1i32); pub const HLSHORTCUTF_USEFILENAMEFROMFRIENDLYNAME: _HLSHORTCUTF__NOREDEF10 = _HLSHORTCUTF__NOREDEF10(2i32); pub const HLSHORTCUTF_USEUNIQUEFILENAME: _HLSHORTCUTF__NOREDEF10 = _HLSHORTCUTF__NOREDEF10(4i32); pub const HLSHORTCUTF_MAYUSEEXISTINGSHORTCUT: _HLSHORTCUTF__NOREDEF10 = _HLSHORTCUTF__NOREDEF10(8i32); impl ::core::convert::From<i32> for _HLSHORTCUTF__NOREDEF10 { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _HLSHORTCUTF__NOREDEF10 { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _HLSR_NOREDEF10(pub i32); pub const HLSR_HOME: _HLSR_NOREDEF10 = _HLSR_NOREDEF10(0i32); pub const HLSR_SEARCHPAGE: _HLSR_NOREDEF10 = _HLSR_NOREDEF10(1i32); pub const HLSR_HISTORYFOLDER: _HLSR_NOREDEF10 = _HLSR_NOREDEF10(2i32); impl ::core::convert::From<i32> for _HLSR_NOREDEF10 { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _HLSR_NOREDEF10 { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _HLTRANSLATEF_NOREDEF10(pub i32); pub const HLTRANSLATEF_DEFAULT: _HLTRANSLATEF_NOREDEF10 = _HLTRANSLATEF_NOREDEF10(0i32); pub const HLTRANSLATEF_DONTAPPLYDEFAULTPREFIX: _HLTRANSLATEF_NOREDEF10 = _HLTRANSLATEF_NOREDEF10(1i32); impl ::core::convert::From<i32> for _HLTRANSLATEF_NOREDEF10 { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _HLTRANSLATEF_NOREDEF10 { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _KF_DEFINITION_FLAGS(pub i32); pub const KFDF_LOCAL_REDIRECT_ONLY: _KF_DEFINITION_FLAGS = _KF_DEFINITION_FLAGS(2i32); pub const KFDF_ROAMABLE: _KF_DEFINITION_FLAGS = _KF_DEFINITION_FLAGS(4i32); pub const KFDF_PRECREATE: _KF_DEFINITION_FLAGS = _KF_DEFINITION_FLAGS(8i32); pub const KFDF_STREAM: _KF_DEFINITION_FLAGS = _KF_DEFINITION_FLAGS(16i32); pub const KFDF_PUBLISHEXPANDEDPATH: _KF_DEFINITION_FLAGS = _KF_DEFINITION_FLAGS(32i32); pub const KFDF_NO_REDIRECT_UI: _KF_DEFINITION_FLAGS = _KF_DEFINITION_FLAGS(64i32); impl ::core::convert::From<i32> for _KF_DEFINITION_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _KF_DEFINITION_FLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _KF_REDIRECTION_CAPABILITIES(pub i32); pub const KF_REDIRECTION_CAPABILITIES_ALLOW_ALL: _KF_REDIRECTION_CAPABILITIES = _KF_REDIRECTION_CAPABILITIES(255i32); pub const KF_REDIRECTION_CAPABILITIES_REDIRECTABLE: _KF_REDIRECTION_CAPABILITIES = _KF_REDIRECTION_CAPABILITIES(1i32); pub const KF_REDIRECTION_CAPABILITIES_DENY_ALL: _KF_REDIRECTION_CAPABILITIES = _KF_REDIRECTION_CAPABILITIES(1048320i32); pub const KF_REDIRECTION_CAPABILITIES_DENY_POLICY_REDIRECTED: _KF_REDIRECTION_CAPABILITIES = _KF_REDIRECTION_CAPABILITIES(256i32); pub const KF_REDIRECTION_CAPABILITIES_DENY_POLICY: _KF_REDIRECTION_CAPABILITIES = _KF_REDIRECTION_CAPABILITIES(512i32); pub const KF_REDIRECTION_CAPABILITIES_DENY_PERMISSIONS: _KF_REDIRECTION_CAPABILITIES = _KF_REDIRECTION_CAPABILITIES(1024i32); impl ::core::convert::From<i32> for _KF_REDIRECTION_CAPABILITIES { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _KF_REDIRECTION_CAPABILITIES { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _KF_REDIRECT_FLAGS(pub i32); pub const KF_REDIRECT_USER_EXCLUSIVE: _KF_REDIRECT_FLAGS = _KF_REDIRECT_FLAGS(1i32); pub const KF_REDIRECT_COPY_SOURCE_DACL: _KF_REDIRECT_FLAGS = _KF_REDIRECT_FLAGS(2i32); pub const KF_REDIRECT_OWNER_USER: _KF_REDIRECT_FLAGS = _KF_REDIRECT_FLAGS(4i32); pub const KF_REDIRECT_SET_OWNER_EXPLICIT: _KF_REDIRECT_FLAGS = _KF_REDIRECT_FLAGS(8i32); pub const KF_REDIRECT_CHECK_ONLY: _KF_REDIRECT_FLAGS = _KF_REDIRECT_FLAGS(16i32); pub const KF_REDIRECT_WITH_UI: _KF_REDIRECT_FLAGS = _KF_REDIRECT_FLAGS(32i32); pub const KF_REDIRECT_UNPIN: _KF_REDIRECT_FLAGS = _KF_REDIRECT_FLAGS(64i32); pub const KF_REDIRECT_PIN: _KF_REDIRECT_FLAGS = _KF_REDIRECT_FLAGS(128i32); pub const KF_REDIRECT_COPY_CONTENTS: _KF_REDIRECT_FLAGS = _KF_REDIRECT_FLAGS(512i32); pub const KF_REDIRECT_DEL_SOURCE_CONTENTS: _KF_REDIRECT_FLAGS = _KF_REDIRECT_FLAGS(1024i32); pub const KF_REDIRECT_EXCLUDE_ALL_KNOWN_SUBFOLDERS: _KF_REDIRECT_FLAGS = _KF_REDIRECT_FLAGS(2048i32); impl ::core::convert::From<i32> for _KF_REDIRECT_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _KF_REDIRECT_FLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _NMCII_FLAGS(pub i32); pub const NMCII_NONE: _NMCII_FLAGS = _NMCII_FLAGS(0i32); pub const NMCII_ITEMS: _NMCII_FLAGS = _NMCII_FLAGS(1i32); pub const NMCII_FOLDERS: _NMCII_FLAGS = _NMCII_FLAGS(2i32); impl ::core::convert::From<i32> for _NMCII_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _NMCII_FLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _NMCSAEI_FLAGS(pub i32); pub const NMCSAEI_SELECT: _NMCSAEI_FLAGS = _NMCSAEI_FLAGS(0i32); pub const NMCSAEI_EDIT: _NMCSAEI_FLAGS = _NMCSAEI_FLAGS(1i32); impl ::core::convert::From<i32> for _NMCSAEI_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _NMCSAEI_FLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _NSTCECLICKTYPE(pub i32); pub const NSTCECT_LBUTTON: _NSTCECLICKTYPE = _NSTCECLICKTYPE(1i32); pub const NSTCECT_MBUTTON: _NSTCECLICKTYPE = _NSTCECLICKTYPE(2i32); pub const NSTCECT_RBUTTON: _NSTCECLICKTYPE = _NSTCECLICKTYPE(3i32); pub const NSTCECT_BUTTON: _NSTCECLICKTYPE = _NSTCECLICKTYPE(3i32); pub const NSTCECT_DBLCLICK: _NSTCECLICKTYPE = _NSTCECLICKTYPE(4i32); impl ::core::convert::From<i32> for _NSTCECLICKTYPE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _NSTCECLICKTYPE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _NSTCEHITTEST(pub i32); pub const NSTCEHT_NOWHERE: _NSTCEHITTEST = _NSTCEHITTEST(1i32); pub const NSTCEHT_ONITEMICON: _NSTCEHITTEST = _NSTCEHITTEST(2i32); pub const NSTCEHT_ONITEMLABEL: _NSTCEHITTEST = _NSTCEHITTEST(4i32); pub const NSTCEHT_ONITEMINDENT: _NSTCEHITTEST = _NSTCEHITTEST(8i32); pub const NSTCEHT_ONITEMBUTTON: _NSTCEHITTEST = _NSTCEHITTEST(16i32); pub const NSTCEHT_ONITEMRIGHT: _NSTCEHITTEST = _NSTCEHITTEST(32i32); pub const NSTCEHT_ONITEMSTATEICON: _NSTCEHITTEST = _NSTCEHITTEST(64i32); pub const NSTCEHT_ONITEM: _NSTCEHITTEST = _NSTCEHITTEST(70i32); pub const NSTCEHT_ONITEMTABBUTTON: _NSTCEHITTEST = _NSTCEHITTEST(4096i32); impl ::core::convert::From<i32> for _NSTCEHITTEST { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _NSTCEHITTEST { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _NSTCITEMSTATE(pub i32); pub const NSTCIS_NONE: _NSTCITEMSTATE = _NSTCITEMSTATE(0i32); pub const NSTCIS_SELECTED: _NSTCITEMSTATE = _NSTCITEMSTATE(1i32); pub const NSTCIS_EXPANDED: _NSTCITEMSTATE = _NSTCITEMSTATE(2i32); pub const NSTCIS_BOLD: _NSTCITEMSTATE = _NSTCITEMSTATE(4i32); pub const NSTCIS_DISABLED: _NSTCITEMSTATE = _NSTCITEMSTATE(8i32); pub const NSTCIS_SELECTEDNOEXPAND: _NSTCITEMSTATE = _NSTCITEMSTATE(16i32); impl ::core::convert::From<i32> for _NSTCITEMSTATE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _NSTCITEMSTATE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _NSTCROOTSTYLE(pub i32); pub const NSTCRS_VISIBLE: _NSTCROOTSTYLE = _NSTCROOTSTYLE(0i32); pub const NSTCRS_HIDDEN: _NSTCROOTSTYLE = _NSTCROOTSTYLE(1i32); pub const NSTCRS_EXPANDED: _NSTCROOTSTYLE = _NSTCROOTSTYLE(2i32); impl ::core::convert::From<i32> for _NSTCROOTSTYLE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _NSTCROOTSTYLE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _NSTCSTYLE(pub i32); pub const NSTCS_HASEXPANDOS: _NSTCSTYLE = _NSTCSTYLE(1i32); pub const NSTCS_HASLINES: _NSTCSTYLE = _NSTCSTYLE(2i32); pub const NSTCS_SINGLECLICKEXPAND: _NSTCSTYLE = _NSTCSTYLE(4i32); pub const NSTCS_FULLROWSELECT: _NSTCSTYLE = _NSTCSTYLE(8i32); pub const NSTCS_SPRINGEXPAND: _NSTCSTYLE = _NSTCSTYLE(16i32); pub const NSTCS_HORIZONTALSCROLL: _NSTCSTYLE = _NSTCSTYLE(32i32); pub const NSTCS_ROOTHASEXPANDO: _NSTCSTYLE = _NSTCSTYLE(64i32); pub const NSTCS_SHOWSELECTIONALWAYS: _NSTCSTYLE = _NSTCSTYLE(128i32); pub const NSTCS_NOINFOTIP: _NSTCSTYLE = _NSTCSTYLE(512i32); pub const NSTCS_EVENHEIGHT: _NSTCSTYLE = _NSTCSTYLE(1024i32); pub const NSTCS_NOREPLACEOPEN: _NSTCSTYLE = _NSTCSTYLE(2048i32); pub const NSTCS_DISABLEDRAGDROP: _NSTCSTYLE = _NSTCSTYLE(4096i32); pub const NSTCS_NOORDERSTREAM: _NSTCSTYLE = _NSTCSTYLE(8192i32); pub const NSTCS_RICHTOOLTIP: _NSTCSTYLE = _NSTCSTYLE(16384i32); pub const NSTCS_BORDER: _NSTCSTYLE = _NSTCSTYLE(32768i32); pub const NSTCS_NOEDITLABELS: _NSTCSTYLE = _NSTCSTYLE(65536i32); pub const NSTCS_TABSTOP: _NSTCSTYLE = _NSTCSTYLE(131072i32); pub const NSTCS_FAVORITESMODE: _NSTCSTYLE = _NSTCSTYLE(524288i32); pub const NSTCS_AUTOHSCROLL: _NSTCSTYLE = _NSTCSTYLE(1048576i32); pub const NSTCS_FADEINOUTEXPANDOS: _NSTCSTYLE = _NSTCSTYLE(2097152i32); pub const NSTCS_EMPTYTEXT: _NSTCSTYLE = _NSTCSTYLE(4194304i32); pub const NSTCS_CHECKBOXES: _NSTCSTYLE = _NSTCSTYLE(8388608i32); pub const NSTCS_PARTIALCHECKBOXES: _NSTCSTYLE = _NSTCSTYLE(16777216i32); pub const NSTCS_EXCLUSIONCHECKBOXES: _NSTCSTYLE = _NSTCSTYLE(33554432i32); pub const NSTCS_DIMMEDCHECKBOXES: _NSTCSTYLE = _NSTCSTYLE(67108864i32); pub const NSTCS_NOINDENTCHECKS: _NSTCSTYLE = _NSTCSTYLE(134217728i32); pub const NSTCS_ALLOWJUNCTIONS: _NSTCSTYLE = _NSTCSTYLE(268435456i32); pub const NSTCS_SHOWTABSBUTTON: _NSTCSTYLE = _NSTCSTYLE(536870912i32); pub const NSTCS_SHOWDELETEBUTTON: _NSTCSTYLE = _NSTCSTYLE(1073741824i32); pub const NSTCS_SHOWREFRESHBUTTON: _NSTCSTYLE = _NSTCSTYLE(-2147483648i32); impl ::core::convert::From<i32> for _NSTCSTYLE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _NSTCSTYLE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _OPPROGDLGF(pub i32); pub const OPPROGDLG_DEFAULT: _OPPROGDLGF = _OPPROGDLGF(0i32); pub const OPPROGDLG_ENABLEPAUSE: _OPPROGDLGF = _OPPROGDLGF(128i32); pub const OPPROGDLG_ALLOWUNDO: _OPPROGDLGF = _OPPROGDLGF(256i32); pub const OPPROGDLG_DONTDISPLAYSOURCEPATH: _OPPROGDLGF = _OPPROGDLGF(512i32); pub const OPPROGDLG_DONTDISPLAYDESTPATH: _OPPROGDLGF = _OPPROGDLGF(1024i32); pub const OPPROGDLG_NOMULTIDAYESTIMATES: _OPPROGDLGF = _OPPROGDLGF(2048i32); pub const OPPROGDLG_DONTDISPLAYLOCATIONS: _OPPROGDLGF = _OPPROGDLGF(4096i32); impl ::core::convert::From<i32> for _OPPROGDLGF { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _OPPROGDLGF { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _PDMODE(pub i32); pub const PDM_DEFAULT: _PDMODE = _PDMODE(0i32); pub const PDM_RUN: _PDMODE = _PDMODE(1i32); pub const PDM_PREFLIGHT: _PDMODE = _PDMODE(2i32); pub const PDM_UNDOING: _PDMODE = _PDMODE(4i32); pub const PDM_ERRORSBLOCKING: _PDMODE = _PDMODE(8i32); pub const PDM_INDETERMINATE: _PDMODE = _PDMODE(16i32); impl ::core::convert::From<i32> for _PDMODE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _PDMODE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _SHCONTF(pub i32); pub const SHCONTF_CHECKING_FOR_CHILDREN: _SHCONTF = _SHCONTF(16i32); pub const SHCONTF_FOLDERS: _SHCONTF = _SHCONTF(32i32); pub const SHCONTF_NONFOLDERS: _SHCONTF = _SHCONTF(64i32); pub const SHCONTF_INCLUDEHIDDEN: _SHCONTF = _SHCONTF(128i32); pub const SHCONTF_INIT_ON_FIRST_NEXT: _SHCONTF = _SHCONTF(256i32); pub const SHCONTF_NETPRINTERSRCH: _SHCONTF = _SHCONTF(512i32); pub const SHCONTF_SHAREABLE: _SHCONTF = _SHCONTF(1024i32); pub const SHCONTF_STORAGE: _SHCONTF = _SHCONTF(2048i32); pub const SHCONTF_NAVIGATION_ENUM: _SHCONTF = _SHCONTF(4096i32); pub const SHCONTF_FASTITEMS: _SHCONTF = _SHCONTF(8192i32); pub const SHCONTF_FLATLIST: _SHCONTF = _SHCONTF(16384i32); pub const SHCONTF_ENABLE_ASYNC: _SHCONTF = _SHCONTF(32768i32); pub const SHCONTF_INCLUDESUPERHIDDEN: _SHCONTF = _SHCONTF(65536i32); impl ::core::convert::From<i32> for _SHCONTF { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _SHCONTF { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _SHGDNF(pub i32); pub const SHGDN_NORMAL: _SHGDNF = _SHGDNF(0i32); pub const SHGDN_INFOLDER: _SHGDNF = _SHGDNF(1i32); pub const SHGDN_FOREDITING: _SHGDNF = _SHGDNF(4096i32); pub const SHGDN_FORADDRESSBAR: _SHGDNF = _SHGDNF(16384i32); pub const SHGDN_FORPARSING: _SHGDNF = _SHGDNF(32768i32); impl ::core::convert::From<i32> for _SHGDNF { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _SHGDNF { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _SICHINTF(pub i32); pub const SICHINT_DISPLAY: _SICHINTF = _SICHINTF(0i32); pub const SICHINT_ALLFIELDS: _SICHINTF = _SICHINTF(-2147483648i32); pub const SICHINT_CANONICAL: _SICHINTF = _SICHINTF(268435456i32); pub const SICHINT_TEST_FILESYSPATH_IF_NOT_EQUAL: _SICHINTF = _SICHINTF(536870912i32); impl ::core::convert::From<i32> for _SICHINTF { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _SICHINTF { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _SPBEGINF(pub i32); pub const SPBEGINF_NORMAL: _SPBEGINF = _SPBEGINF(0i32); pub const SPBEGINF_AUTOTIME: _SPBEGINF = _SPBEGINF(2i32); pub const SPBEGINF_NOPROGRESSBAR: _SPBEGINF = _SPBEGINF(16i32); pub const SPBEGINF_MARQUEEPROGRESS: _SPBEGINF = _SPBEGINF(32i32); pub const SPBEGINF_NOCANCELBUTTON: _SPBEGINF = _SPBEGINF(64i32); impl ::core::convert::From<i32> for _SPBEGINF { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _SPBEGINF { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _SPINITF(pub i32); pub const SPINITF_NORMAL: _SPINITF = _SPINITF(0i32); pub const SPINITF_MODAL: _SPINITF = _SPINITF(1i32); pub const SPINITF_NOMINIMIZE: _SPINITF = _SPINITF(8i32); impl ::core::convert::From<i32> for _SPINITF { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _SPINITF { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _SV3CVW3_FLAGS(pub i32); pub const SV3CVW3_DEFAULT: _SV3CVW3_FLAGS = _SV3CVW3_FLAGS(0i32); pub const SV3CVW3_NONINTERACTIVE: _SV3CVW3_FLAGS = _SV3CVW3_FLAGS(1i32); pub const SV3CVW3_FORCEVIEWMODE: _SV3CVW3_FLAGS = _SV3CVW3_FLAGS(2i32); pub const SV3CVW3_FORCEFOLDERFLAGS: _SV3CVW3_FLAGS = _SV3CVW3_FLAGS(4i32); impl ::core::convert::From<i32> for _SV3CVW3_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _SV3CVW3_FLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _SVGIO(pub i32); pub const SVGIO_BACKGROUND: _SVGIO = _SVGIO(0i32); pub const SVGIO_SELECTION: _SVGIO = _SVGIO(1i32); pub const SVGIO_ALLVIEW: _SVGIO = _SVGIO(2i32); pub const SVGIO_CHECKED: _SVGIO = _SVGIO(3i32); pub const SVGIO_TYPE_MASK: _SVGIO = _SVGIO(15i32); pub const SVGIO_FLAG_VIEWORDER: _SVGIO = _SVGIO(-2147483648i32); impl ::core::convert::From<i32> for _SVGIO { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _SVGIO { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _SVSIF(pub i32); pub const SVSI_DESELECT: _SVSIF = _SVSIF(0i32); pub const SVSI_SELECT: _SVSIF = _SVSIF(1i32); pub const SVSI_EDIT: _SVSIF = _SVSIF(3i32); pub const SVSI_DESELECTOTHERS: _SVSIF = _SVSIF(4i32); pub const SVSI_ENSUREVISIBLE: _SVSIF = _SVSIF(8i32); pub const SVSI_FOCUSED: _SVSIF = _SVSIF(16i32); pub const SVSI_TRANSLATEPT: _SVSIF = _SVSIF(32i32); pub const SVSI_SELECTIONMARK: _SVSIF = _SVSIF(64i32); pub const SVSI_POSITIONITEM: _SVSIF = _SVSIF(128i32); pub const SVSI_CHECK: _SVSIF = _SVSIF(256i32); pub const SVSI_CHECK2: _SVSIF = _SVSIF(512i32); pub const SVSI_KEYBOARDSELECT: _SVSIF = _SVSIF(1025i32); pub const SVSI_NOTAKEFOCUS: _SVSIF = _SVSIF(1073741824i32); impl ::core::convert::From<i32> for _SVSIF { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _SVSIF { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _TRANSFER_ADVISE_STATE(pub i32); pub const TS_NONE: _TRANSFER_ADVISE_STATE = _TRANSFER_ADVISE_STATE(0i32); pub const TS_PERFORMING: _TRANSFER_ADVISE_STATE = _TRANSFER_ADVISE_STATE(1i32); pub const TS_PREPARING: _TRANSFER_ADVISE_STATE = _TRANSFER_ADVISE_STATE(2i32); pub const TS_INDETERMINATE: _TRANSFER_ADVISE_STATE = _TRANSFER_ADVISE_STATE(4i32); impl ::core::convert::From<i32> for _TRANSFER_ADVISE_STATE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _TRANSFER_ADVISE_STATE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct _TRANSFER_SOURCE_FLAGS(pub i32); pub const TSF_NORMAL: _TRANSFER_SOURCE_FLAGS = _TRANSFER_SOURCE_FLAGS(0i32); pub const TSF_FAIL_EXIST: _TRANSFER_SOURCE_FLAGS = _TRANSFER_SOURCE_FLAGS(0i32); pub const TSF_RENAME_EXIST: _TRANSFER_SOURCE_FLAGS = _TRANSFER_SOURCE_FLAGS(1i32); pub const TSF_OVERWRITE_EXIST: _TRANSFER_SOURCE_FLAGS = _TRANSFER_SOURCE_FLAGS(2i32); pub const TSF_ALLOW_DECRYPTION: _TRANSFER_SOURCE_FLAGS = _TRANSFER_SOURCE_FLAGS(4i32); pub const TSF_NO_SECURITY: _TRANSFER_SOURCE_FLAGS = _TRANSFER_SOURCE_FLAGS(8i32); pub const TSF_COPY_CREATION_TIME: _TRANSFER_SOURCE_FLAGS = _TRANSFER_SOURCE_FLAGS(16i32); pub const TSF_COPY_WRITE_TIME: _TRANSFER_SOURCE_FLAGS = _TRANSFER_SOURCE_FLAGS(32i32); pub const TSF_USE_FULL_ACCESS: _TRANSFER_SOURCE_FLAGS = _TRANSFER_SOURCE_FLAGS(64i32); pub const TSF_DELETE_RECYCLE_IF_POSSIBLE: _TRANSFER_SOURCE_FLAGS = _TRANSFER_SOURCE_FLAGS(128i32); pub const TSF_COPY_HARD_LINK: _TRANSFER_SOURCE_FLAGS = _TRANSFER_SOURCE_FLAGS(256i32); pub const TSF_COPY_LOCALIZED_NAME: _TRANSFER_SOURCE_FLAGS = _TRANSFER_SOURCE_FLAGS(512i32); pub const TSF_MOVE_AS_COPY_DELETE: _TRANSFER_SOURCE_FLAGS = _TRANSFER_SOURCE_FLAGS(1024i32); pub const TSF_SUSPEND_SHELLEVENTS: _TRANSFER_SOURCE_FLAGS = _TRANSFER_SOURCE_FLAGS(2048i32); impl ::core::convert::From<i32> for _TRANSFER_SOURCE_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for _TRANSFER_SOURCE_FLAGS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct iurl_invokecommand_flags(pub i32); pub const IURL_INVOKECOMMAND_FL_ALLOW_UI: iurl_invokecommand_flags = iurl_invokecommand_flags(1i32); pub const IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB: iurl_invokecommand_flags = iurl_invokecommand_flags(2i32); pub const IURL_INVOKECOMMAND_FL_DDEWAIT: iurl_invokecommand_flags = iurl_invokecommand_flags(4i32); pub const IURL_INVOKECOMMAND_FL_ASYNCOK: iurl_invokecommand_flags = iurl_invokecommand_flags(8i32); pub const IURL_INVOKECOMMAND_FL_LOG_USAGE: iurl_invokecommand_flags = iurl_invokecommand_flags(16i32); impl ::core::convert::From<i32> for iurl_invokecommand_flags { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for iurl_invokecommand_flags { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct iurl_seturl_flags(pub i32); pub const IURL_SETURL_FL_GUESS_PROTOCOL: iurl_seturl_flags = iurl_seturl_flags(1i32); pub const IURL_SETURL_FL_USE_DEFAULT_PROTOCOL: iurl_seturl_flags = iurl_seturl_flags(2i32); impl ::core::convert::From<i32> for iurl_seturl_flags { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for iurl_seturl_flags { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct mimeassociationdialog_in_flags(pub i32); pub const MIMEASSOCDLG_FL_REGISTER_ASSOC: mimeassociationdialog_in_flags = mimeassociationdialog_in_flags(1i32); impl ::core::convert::From<i32> for mimeassociationdialog_in_flags { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for mimeassociationdialog_in_flags { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct translateurl_in_flags(pub i32); pub const TRANSLATEURL_FL_GUESS_PROTOCOL: translateurl_in_flags = translateurl_in_flags(1i32); pub const TRANSLATEURL_FL_USE_DEFAULT_PROTOCOL: translateurl_in_flags = translateurl_in_flags(2i32); impl ::core::convert::From<i32> for translateurl_in_flags { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for translateurl_in_flags { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct urlassociationdialog_in_flags(pub i32); pub const URLASSOCDLG_FL_USE_DEFAULT_NAME: urlassociationdialog_in_flags = urlassociationdialog_in_flags(1i32); pub const URLASSOCDLG_FL_REGISTER_ASSOC: urlassociationdialog_in_flags = urlassociationdialog_in_flags(2i32); impl ::core::convert::From<i32> for urlassociationdialog_in_flags { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for urlassociationdialog_in_flags { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct urlinvokecommandinfoA { pub dwcbSize: u32, pub dwFlags: u32, pub hwndParent: super::super::Foundation::HWND, pub pcszVerb: super::super::Foundation::PSTR, } #[cfg(feature = "Win32_Foundation")] impl urlinvokecommandinfoA {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for urlinvokecommandinfoA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for urlinvokecommandinfoA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("urlinvokecommandinfoA").field("dwcbSize", &self.dwcbSize).field("dwFlags", &self.dwFlags).field("hwndParent", &self.hwndParent).field("pcszVerb", &self.pcszVerb).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for urlinvokecommandinfoA { fn eq(&self, other: &Self) -> bool { self.dwcbSize == other.dwcbSize && self.dwFlags == other.dwFlags && self.hwndParent == other.hwndParent && self.pcszVerb == other.pcszVerb } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for urlinvokecommandinfoA {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for urlinvokecommandinfoA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct urlinvokecommandinfoW { pub dwcbSize: u32, pub dwFlags: u32, pub hwndParent: super::super::Foundation::HWND, pub pcszVerb: super::super::Foundation::PWSTR, } #[cfg(feature = "Win32_Foundation")] impl urlinvokecommandinfoW {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for urlinvokecommandinfoW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for urlinvokecommandinfoW { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("urlinvokecommandinfoW").field("dwcbSize", &self.dwcbSize).field("dwFlags", &self.dwFlags).field("hwndParent", &self.hwndParent).field("pcszVerb", &self.pcszVerb).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for urlinvokecommandinfoW { fn eq(&self, other: &Self) -> bool { self.dwcbSize == other.dwcbSize && self.dwFlags == other.dwFlags && self.hwndParent == other.hwndParent && self.pcszVerb == other.pcszVerb } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for urlinvokecommandinfoW {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for urlinvokecommandinfoW { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn wnsprintfA<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszdest: super::super::Foundation::PSTR, cchdest: i32, pszfmt: Param2) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn wnsprintfA(pszdest: super::super::Foundation::PSTR, cchdest: i32, pszfmt: super::super::Foundation::PSTR) -> i32; } ::core::mem::transmute(wnsprintfA(::core::mem::transmute(pszdest), ::core::mem::transmute(cchdest), pszfmt.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn wnsprintfW<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszdest: super::super::Foundation::PWSTR, cchdest: i32, pszfmt: Param2) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn wnsprintfW(pszdest: super::super::Foundation::PWSTR, cchdest: i32, pszfmt: super::super::Foundation::PWSTR) -> i32; } ::core::mem::transmute(wnsprintfW(::core::mem::transmute(pszdest), ::core::mem::transmute(cchdest), pszfmt.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn wvnsprintfA<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(pszdest: super::super::Foundation::PSTR, cchdest: i32, pszfmt: Param2, arglist: *const i8) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn wvnsprintfA(pszdest: super::super::Foundation::PSTR, cchdest: i32, pszfmt: super::super::Foundation::PSTR, arglist: *const i8) -> i32; } ::core::mem::transmute(wvnsprintfA(::core::mem::transmute(pszdest), ::core::mem::transmute(cchdest), pszfmt.into_param().abi(), ::core::mem::transmute(arglist))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn wvnsprintfW<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszdest: super::super::Foundation::PWSTR, cchdest: i32, pszfmt: Param2, arglist: *const i8) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn wvnsprintfW(pszdest: super::super::Foundation::PWSTR, cchdest: i32, pszfmt: super::super::Foundation::PWSTR, arglist: *const i8) -> i32; } ::core::mem::transmute(wvnsprintfW(::core::mem::transmute(pszdest), ::core::mem::transmute(cchdest), pszfmt.into_param().abi(), ::core::mem::transmute(arglist))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); }
use chrono::prelude::*; use chrono::Duration; use serde::{Deserialize, Serialize}; /// An university department #[derive(Debug, Deserialize, Serialize)] pub enum Department { /// 공과대학 기계공학과 MEG, /// 공과대학 항공우주공학과 ASE, /// 공과대학 조선해양공학과 NOE, /// 공과대학 산업경영공학과 IEN, /// 공과대학 화학공학과 CHE, /// 공과대학 생명공학과 BTE, /// 공과대학 고분자공학과 PSE, /// 공과대학 신소재공학과 MSE, /// 공과대학 사회인프라공학과 CIV, /// 공과대학 환경공학과 ENV, /// 공과대학 공간정보학과 GEO, /// 공과대학 건축공학과 ARE, /// 공과대학 건축학과 ARC, /// 공과대학 에너지자원공학과 ENR, /// 공과대학 융합기술경영학부 CEM, /// 공과대학 전기공학과 EEE, /// 공과대학 전자공학과 ECE, /// 공과대학 컴퓨터공학과 CSE, /// 공과대학 정보통신공학과 ICE, /// 자연과학대학 수학과 MTH, /// 자연과학대학 통계학과 STS, /// 자연과학대학 물리학과 PHY, /// 자연과학대학 화학과 CHM, /// 자연과학대학 생명과학과 BIO, /// 자연과학대학 해양과학과 OCN, /// 자연과학대학 식품영양학과 FAN, /// 경영대학 경영학과 BUS, /// 경영대학 글로벌금융학과 GFB, /// 경영대학 아태물류학부 APL, /// 경영대학 국제통상학과 INT, /// 사범대학 국어교육학과 EKR, /// 사범대학 영어교육과 EEG, /// 사범대학 사회교육과 SSE, /// 사범대학 교육학과 EDC, /// 사범대학 체육교육과 PHE, /// 사범대학 수학교육과 EMT, /// 사회과학대학 행정학과 PAD, /// 사회과학대학 정치외교학과 POL, /// 사회과학대학 미디어커뮤니케이션학과(언론정보학과) COM, /// 사회과학대학 경제학과 ECO, /// 사회과학대학 소비자학과 CON, /// 사회과학대학 아동심리학과 CHS, /// 사회과학대학 사회복지학과 SWE, /// 문과대학 한국어문학과 HKO, /// 문과대학 사학과 HIS, /// 문과대학 철학과 PHI, /// 문과대학 중국학과 CHN, /// 문과대학 일본언어문화학과 JPN, /// 문과대학 영어영문학과 ENG, /// 문과대학 프랑스언어문화학과 FLL, /// 문과대학 문화콘텐츠문화경영학과 HUM, /// 의과대학 의예과 PMD, /// 의과대학 간호학과 NUR, /// 미래융합대학 메카트로닉스공학과 MCT, /// 미래융합대학 소프트웨어융합공학과 ITC, /// 미래융합대학 산업경영학과 SIM, /// 미래융합대학 금융세무재테크학과(금융투자학과) BNF, /// 예술체육학부 조형예술학과 FAT, /// 예술체육학부 디자인융합학과 CDN, /// 예술체육학부 스포츠과학과 KIN, /// 예술체육학부 연극영화학과 IPS, /// 예술체육학부 의류디자인학과 FDT, /// 국제학부 IGS, /// Unknown; An user does not reveal the department. UNK, } /// An user gender #[derive(Debug, Deserialize, Serialize)] pub enum Gender { /// Male MALE, /// Female FEMALE, /// Other gender OTHER, /// Hidden; An user does not reveal the gender. HIDDEN, } /// An user profile #[derive(Debug, Deserialize, Serialize)] pub struct User { /// An user ID pub id: String, /// An user email pub email: String, /// A korean user name pub name: String, /// An user gender pub gender: Gender, /// A Department to which the user belongs pub department: Department, } #[derive(Debug, Deserialize, Serialize)] pub struct IdTokenPayload { pub iss: String, pub sub: String, pub aud: String, pub exp: usize, pub iat: usize, pub email: String, pub name: String, pub gender: Gender, pub department: Department, } impl IdTokenPayload { pub fn new(issuer: String, client_id: String, expires_in: usize, user: User) -> Self { let issued_at = Utc::now(); let expiration_time = issued_at + Duration::seconds(expires_in as i64); Self { iss: issuer, sub: user.id, aud: client_id, exp: expiration_time.timestamp() as usize, iat: issued_at.timestamp() as usize, email: user.email, name: user.name, gender: user.gender, department: user.department, } } }
use crate::config::Config; use console::Emoji; use serde::{Deserialize, Serialize}; use solana_account_decoder::parse_token::{UiMint, UiTokenAmount}; use solana_cli_output::{display::writeln_name_value, OutputFormat, QuietDisplay, VerboseDisplay}; use metaplex_token_metadata::state::{Creator, Data, Key, Metadata}; use std::fmt; pub type StringAmount = String; #[allow(dead_code)] static WARNING: Emoji = Emoji("⚠️", "!"); pub(crate) fn println_display(config: &Config, message: String) { match config.output_format { OutputFormat::Display | OutputFormat::DisplayVerbose => { println!("{}", message); } _ => {} } } #[derive(Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub(crate) struct CliTokenAmount { #[serde(flatten)] pub(crate) amount: UiTokenAmount, } impl QuietDisplay for CliTokenAmount {} impl VerboseDisplay for CliTokenAmount { fn write_str(&self, w: &mut dyn fmt::Write) -> fmt::Result { writeln!(w, "ui amount: {}", self.amount.real_number_string_trimmed())?; writeln!(w, "decimals: {}", self.amount.decimals)?; writeln!(w, "amount: {}", self.amount.amount) } } impl fmt::Display for CliTokenAmount { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { writeln!(f, "{}", self.amount.real_number_string_trimmed()) } } #[derive(Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub(crate) struct CliMint { pub(crate) address: String, #[serde(flatten)] pub(crate) mint: UiMint, } impl QuietDisplay for CliMint {} impl VerboseDisplay for CliMint {} impl fmt::Display for CliMint { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { writeln_name_value(f, "Address:", &self.address)?; writeln_name_value( f, "Mint Authority:", &self .mint .mint_authority .as_ref() .unwrap_or(&String::from("")), )?; writeln!(f, "Supply: {}", self.mint.supply)?; writeln!(f, "Decimals: {}", self.mint.decimals)?; writeln_name_value( f, "Freeze Authority:", &self .mint .freeze_authority .as_ref() .unwrap_or(&String::from("")), )?; Ok(()) } } #[derive(Debug, Serialize, Deserialize, PartialEq)] #[serde(rename_all = "camelCase")] pub struct CliMetadata { pub address: String, pub metadata: UiMetadata, } impl QuietDisplay for CliMetadata {} impl VerboseDisplay for CliMetadata {} impl fmt::Display for CliMetadata { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { writeln!(f, "Address: {}", self.address)?; writeln!(f, "{}", self.metadata)?; Ok(()) } } #[derive(Debug, Serialize, Deserialize, PartialEq)] #[serde(rename_all = "camelCase")] pub struct UiMetadata { pub key: String, pub update_authority: String, pub mint: String, #[serde(flatten)] pub data: UiData, pub primary_sale_happened: bool, pub is_mutable: bool, pub edition_nonce: Option<StringAmount>, } // Consider moving this to token-metadata::program::src::state with Key struct fn key_to_string(value: &Key) -> String { match value { Key::EditionMarker => "EditionMarker".to_string(), Key::EditionV1 => "EditionV1".to_string(), Key::MasterEditionV1 => "MasterEditionV1".to_string(), Key::MasterEditionV2 => "MasterEditionV2".to_string(), Key::MetadataV1 => "MetadataV1".to_string(), Key::ReservationListV1 => "ReservationListV1".to_string(), Key::ReservationListV2 => "ReservationListV2".to_string(), Key::Uninitialized => "Uninitialized".to_string(), } } impl From<Metadata> for UiMetadata { fn from(metadata: Metadata) -> Self { Self { key: key_to_string(&metadata.key), update_authority: metadata.update_authority.to_string(), mint: metadata.mint.to_string(), data: UiData::from(metadata.data), primary_sale_happened: metadata.primary_sale_happened, is_mutable: metadata.is_mutable, edition_nonce: metadata.edition_nonce.map(|n| n.to_string()), } } } impl fmt::Display for UiMetadata { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { writeln!(f, "Key: {}", self.key)?; writeln!(f, "Update Authority: {}", self.update_authority)?; writeln!(f, "Mint: {}", self.mint)?; writeln!(f, "Primary Sale Happened: {}", self.primary_sale_happened)?; writeln!(f, "Is Mutable: {}", self.is_mutable)?; writeln_name_value( f, "Edition Nonce:", &self.edition_nonce.as_ref().unwrap_or(&String::from("")), )?; write!(f, "{}", self.data)?; Ok(()) } } #[derive(Debug, Serialize, Deserialize, PartialEq)] #[serde(rename_all = "camelCase")] pub struct UiData { pub name: String, pub symbol: String, pub uri: String, pub seller_fee_basis_points: StringAmount, pub creators: Option<Vec<UiCreator>>, } impl From<Data> for UiData { fn from(data: Data) -> Self { Self { name: data.name.trim_end_matches(char::from(0)).to_string(), symbol: data.symbol.trim_end_matches(char::from(0)).to_string(), uri: data.uri.trim_end_matches(char::from(0)).to_string(), seller_fee_basis_points: data.seller_fee_basis_points.to_string(), creators: data .creators .map(|c_vec| c_vec.iter().map(|c| UiCreator::from(c)).collect()), } } } impl fmt::Display for UiData { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { writeln!(f, "Name: {}", self.name)?; writeln!(f, "Symbol: {}", self.symbol)?; writeln!(f, "Uri: {}", self.uri)?; writeln!( f, "Seller Fee Basis Points: {}", self.seller_fee_basis_points )?; if let Some(creators) = &self.creators { writeln!(f, "Creators: {}", creators.len())?; for (i, c) in creators.iter().enumerate() { writeln!(f, " [{}] {}", i, c)?; } }; Ok(()) } } #[derive(Debug, Serialize, Deserialize, PartialEq)] #[serde(rename_all = "camelCase")] pub struct UiCreator { pub address: String, pub verified: bool, // In percentages, NOT basis points ;) Watch out! pub share: StringAmount, } impl From<&Creator> for UiCreator { fn from(creator: &Creator) -> Self { Self { address: creator.address.to_string(), verified: creator.verified, share: creator.share.to_string(), } } } impl fmt::Display for UiCreator { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { writeln!(f, "Address: {}", self.address)?; writeln!(f, " Verified: {}", self.verified)?; writeln!(f, " Share: {}", self.share)?; Ok(()) } }
pub use macroquad::prelude::Rect as Rectangle; pub use macroquad::prelude::{DVec2, IVec2, Vec2}; use macroquad::prelude::{const_dvec2, const_ivec2, const_vec2}; pub const fn dvec2(x: f64, y: f64) -> DVec2 { const_dvec2!([x, y]) } pub const fn ivec2(x: i32, y: i32) -> IVec2 { const_ivec2!([x, y]) } pub const fn vec2(x: f32, y: f32) -> Vec2 { const_vec2!([x, y]) } // #[repr(transparent)] // pub struct Rectangle(pub(crate) Rect); // impl Rectangle { // pub const fn new(x: f32, y: f32, w: f32, h: f32) -> Self { // Self(Rect { x, y, w, h }) // } // }
fn main() { proconio::input!{a:u64,mut s:[String;a]}; s.sort(); s.dedup(); println!("{}", s.iter().count()) }
use crate::riscv32_core::Riscv32Core; use crate::riscv32_core::Riscv32Env; use crate::riscv64_core::Riscv64Core; use crate::riscv_csr::CsrAddr; use crate::riscv32_core::PrivMode; use crate::riscv32_core::MemResult; use crate::riscv_exception::ExceptCode; use crate::riscv_exception::RiscvException; use crate::riscv_tracer::RiscvTracer; use crate::riscv32_core::AddrT; use crate::riscv32_core::InstT; use crate::riscv32_core::UXlenT; use crate::riscv32_core::XlenT; use crate::riscv_csr_bitdef::SYSREG_MSTATUS_SIE_LSB; use crate::riscv_csr_bitdef::SYSREG_MSTATUS_SIE_MSB; use crate::riscv_csr_bitdef::SYSREG_MSTATUS_SPIE_LSB; use crate::riscv_csr_bitdef::SYSREG_MSTATUS_SPIE_MSB; use crate::riscv_csr_bitdef::SYSREG_MSTATUS_SPP_LSB; use crate::riscv_csr_bitdef::SYSREG_MSTATUS_SPP_MSB; pub enum RiscvInstId { CSRRW, CSRRS, CSRRC, CSRRWI, CSRRSI, CSRRCI, LUI, AUIPC, ADDI, SLTI, SLTIU, XORI, ORI, ANDI, SLLI, SRLI, SRAI, ADD, SUB, SLL, SLT, SLTU, XOR, SRL, SRA, OR, AND, LB, LH, LW, LBU, LHU, SW, SH, SB, JAL, JALR, BEQ, BNE, BLT, BGE, BLTU, BGEU, MUL, MULH, MULHSU, MULHU, DIV, DIVU, REM, REMU, FENCE, FENCEI, ECALL, EBREAK, MRET, SRET, URET, NOP, WFI, LWU, // for RV64 LD, // for RV64 SD, // for RV64 ADDIW, // for RV64 SLLIW, // for RV64 SRLIW, // for RV64 SRAIW, // for RV64 ADDW, // for RV64 SUBW, // for RV64 SLLW, // for RV64 SRLW, // for RV64 SRAW, // for RV64 } pub trait RiscvInsts { fn decode_inst(&mut self, inst: InstT) -> Option<RiscvInstId>; fn execute_inst(&mut self, dec_inst: RiscvInstId, inst: InstT, step: u32); } impl RiscvInsts for Riscv32Env { fn decode_inst(&mut self, inst: InstT) -> Option<RiscvInstId> { let opcode = inst & 0x7f; let funct3 = (inst >> 12) & 0x07; let funct7 = (inst >> 25) & 0x7f; let imm12 = (inst >> 20) & 0xfff; return match opcode { 0x0f => match funct3 { 0b000 => Some(RiscvInstId::FENCE), 0b001 => Some(RiscvInstId::FENCEI), _ => None, }, 0x33 => match funct7 { 0b0000000 => match funct3 { 0b000 => Some(RiscvInstId::ADD), 0b001 => Some(RiscvInstId::SLL), 0b010 => Some(RiscvInstId::SLT), 0b011 => Some(RiscvInstId::SLTU), 0b100 => Some(RiscvInstId::XOR), 0b101 => Some(RiscvInstId::SRL), 0b110 => Some(RiscvInstId::OR), 0b111 => Some(RiscvInstId::AND), _ => None, }, 0b0100000 => match funct3 { 0b000 => Some(RiscvInstId::SUB), 0b101 => Some(RiscvInstId::SRA), _ => None, }, 0b0000001 => match funct3 { 0b000 => Some(RiscvInstId::MUL), 0b001 => Some(RiscvInstId::MULH), 0b010 => Some(RiscvInstId::MULHSU), 0b011 => Some(RiscvInstId::MULHU), 0b100 => Some(RiscvInstId::DIV), 0b101 => Some(RiscvInstId::DIVU), 0b110 => Some(RiscvInstId::REM), 0b111 => Some(RiscvInstId::REMU), _ => None, }, _ => None, }, 0x03 => match funct3 { 0b000 => Some(RiscvInstId::LB), 0b001 => Some(RiscvInstId::LH), 0b010 => Some(RiscvInstId::LW), 0b100 => Some(RiscvInstId::LBU), 0b101 => Some(RiscvInstId::LHU), _ => None, }, 0x23 => match funct3 { 0b000 => Some(RiscvInstId::SB), 0b001 => Some(RiscvInstId::SH), 0b010 => Some(RiscvInstId::SW), _ => None, }, 0x37 => Some(RiscvInstId::LUI), 0x17 => Some(RiscvInstId::AUIPC), 0x63 => match funct3 { 0b000 => Some(RiscvInstId::BEQ), 0b001 => Some(RiscvInstId::BNE), 0b100 => Some(RiscvInstId::BLT), 0b101 => Some(RiscvInstId::BGE), 0b110 => Some(RiscvInstId::BLTU), 0b111 => Some(RiscvInstId::BGEU), _ => None, }, 0x13 => match funct3 { 0b000 => Some(RiscvInstId::ADDI), 0b010 => Some(RiscvInstId::SLTI), 0b011 => Some(RiscvInstId::SLTIU), 0b100 => Some(RiscvInstId::XORI), 0b110 => Some(RiscvInstId::ORI), 0b111 => Some(RiscvInstId::ANDI), 0b001 => Some(RiscvInstId::SLLI), 0b101 => match funct7 { 0b0000000 => Some(RiscvInstId::SRLI), 0b0100000 => Some(RiscvInstId::SRAI), _ => None, }, _ => None, }, 0x6f => Some(RiscvInstId::JAL), 0x67 => Some(RiscvInstId::JALR), 0x73 => match funct3 { 0x000 => match imm12 { 0x000 => Some(RiscvInstId::ECALL), 0x001 => Some(RiscvInstId::EBREAK), 0x002 => Some(RiscvInstId::URET), 0x102 => Some(RiscvInstId::SRET), 0x302 => Some(RiscvInstId::MRET), _ => None, }, 0b001 => Some(RiscvInstId::CSRRW), 0b010 => Some(RiscvInstId::CSRRS), 0b011 => Some(RiscvInstId::CSRRC), 0b101 => Some(RiscvInstId::CSRRWI), 0b110 => Some(RiscvInstId::CSRRSI), 0b111 => Some(RiscvInstId::CSRRCI), _ => None, }, _ => Some(RiscvInstId::WFI), }; } fn execute_inst(&mut self, dec_inst: RiscvInstId, inst: InstT, step: u32) { self.m_trace.m_executed_pc = self.m_pc; self.m_trace.m_inst_hex = inst; self.m_trace.m_step = step; self.m_trace.m_priv = self.m_priv; self.m_trace.m_vmmode = self.get_vm_mode(); let rs1 = Self::get_rs1_addr(inst); let rs2 = Self::get_rs2_addr(inst); let rd = Self::get_rd_addr(inst); let csr_addr = CsrAddr::from_u64(((inst >> 20) & 0x0fff) as u64); self.set_update_pc(false); match dec_inst { RiscvInstId::CSRRW => { let rs1_data = self.read_reg(rs1); let reg_data: XlenT = self.m_csr.csrrw(csr_addr, rs1_data); self.write_reg(rd, reg_data); } RiscvInstId::CSRRS => { let rs1_data = self.read_reg(rs1); let reg_data: XlenT = self.m_csr.csrrs(csr_addr, rs1_data); self.write_reg(rd, reg_data); } RiscvInstId::CSRRC => { let rs1_data = self.read_reg(rs1); let reg_data: XlenT = self.m_csr.csrrc(csr_addr, rs1_data); self.write_reg(rd, reg_data); } RiscvInstId::CSRRWI => { let zimm: XlenT = ((inst >> 15) & 0x1f) as XlenT; let reg_data: XlenT = self.m_csr.csrrw(csr_addr, zimm); self.write_reg(rd, reg_data); } RiscvInstId::CSRRSI => { let zimm: XlenT = ((inst >> 15) & 0x1f) as XlenT; let reg_data: XlenT = self.m_csr.csrrs(csr_addr, zimm); self.write_reg(rd, reg_data); } RiscvInstId::CSRRCI => { let zimm: XlenT = ((inst >> 15) & 0x1f) as XlenT; let reg_data: XlenT = self.m_csr.csrrc(csr_addr, zimm); self.write_reg(rd, reg_data); } RiscvInstId::LUI => { let mut imm: XlenT = Self::extend_sign(Self::extract_bit_field(inst as XlenT, 31, 12), 19); imm = imm << 12; self.write_reg(rd, imm); } RiscvInstId::AUIPC => { let mut imm: XlenT = Self::extend_sign(Self::extract_bit_field(inst as XlenT, 31, 12), 19); imm = (imm << 12).wrapping_add(self.m_pc as XlenT); self.write_reg(rd, imm); } RiscvInstId::LB => { let addr = self.read_reg(rs1) + Self::extract_ifield(inst); let (result, reg_data) = self.read_bus_byte(addr as AddrT); if result == MemResult::NoExcept { let extended_reg_data = Self::extend_sign(reg_data, 7); self.write_reg(rd, extended_reg_data); } } RiscvInstId::LH => { let addr = self.read_reg(rs1) + Self::extract_ifield(inst); let (result, reg_data) = self.read_bus_hword(addr as AddrT); if result == MemResult::NoExcept { let extended_reg_data = Self::extend_sign(reg_data, 15); self.write_reg(rd, extended_reg_data); } } RiscvInstId::LW => { let addr = self.read_reg(rs1) + Self::extract_ifield(inst); let (result, reg_data) = self.read_bus_word(addr as AddrT); if result == MemResult::NoExcept { self.write_reg(rd, reg_data); } } RiscvInstId::LBU => { let addr = self.read_reg(rs1) + Self::extract_ifield(inst); let (result, reg_data) = self.read_bus_byte(addr as AddrT); if result == MemResult::NoExcept { self.write_reg(rd, reg_data as XlenT); } } RiscvInstId::LHU => { let addr = self.read_reg(rs1) + Self::extract_ifield(inst); let (result, reg_data) = self.read_bus_hword(addr as AddrT); if result == MemResult::NoExcept { self.write_reg(rd, reg_data as XlenT); } } RiscvInstId::ADDI => { let rs1_data = self.read_reg(rs1); let imm_data = Self::extract_ifield(inst); let reg_data: XlenT = rs1_data.wrapping_add(imm_data); self.write_reg(rd, reg_data); } RiscvInstId::SLTI => { let reg_data: bool = self.read_reg(rs1) < Self::extract_ifield(inst); self.write_reg(rd, reg_data as XlenT); } RiscvInstId::SLTIU => { let reg_data: bool = (self.read_reg(rs1) as UXlenT) < (Self::extract_ifield(inst) as UXlenT); self.write_reg(rd, reg_data as XlenT); } RiscvInstId::XORI => { let reg_data: XlenT = self.read_reg(rs1) ^ Self::extract_ifield(inst); self.write_reg(rd, reg_data); } RiscvInstId::ORI => { let reg_data: XlenT = self.read_reg(rs1) | Self::extract_ifield(inst); self.write_reg(rd, reg_data); } RiscvInstId::ANDI => { let reg_data: XlenT = self.read_reg(rs1) & Self::extract_ifield(inst); self.write_reg(rd, reg_data); } RiscvInstId::SLLI => { let reg_data: XlenT = self.read_reg(rs1) << Self::extract_shamt_field(inst); self.write_reg(rd, reg_data); } RiscvInstId::SRLI => { let reg_data: UXlenT = (self.read_reg(rs1) as UXlenT) >> Self::extract_shamt_field(inst); self.write_reg(rd, reg_data as XlenT); } RiscvInstId::SRAI => { let reg_data: XlenT = self.read_reg(rs1) >> Self::extract_shamt_field(inst); self.write_reg(rd, reg_data); } RiscvInstId::ADD => { let rs1_data = self.read_reg(rs1); let rs2_data = self.read_reg(rs2); let reg_data: XlenT = rs1_data.wrapping_add(rs2_data); self.write_reg(rd, reg_data); } RiscvInstId::SUB => { let rs1_data = self.read_reg(rs1); let rs2_data = self.read_reg(rs2); let reg_data: XlenT = rs1_data.wrapping_sub(rs2_data); self.write_reg(rd, reg_data); } RiscvInstId::SLL => { let rs1_data = self.read_reg(rs1); let rs2_data: UXlenT = self.read_reg(rs2) as UXlenT; let reg_data: XlenT = rs1_data.wrapping_shl(rs2_data); self.write_reg(rd, reg_data); } RiscvInstId::SLT => { let reg_data: bool = self.read_reg(rs1) < self.read_reg(rs2); self.write_reg(rd, reg_data as XlenT); } RiscvInstId::SLTU => { let reg_data: bool = (self.read_reg(rs1) as UXlenT) < (self.read_reg(rs2) as UXlenT); self.write_reg(rd, reg_data as XlenT); } RiscvInstId::XOR => { let reg_data: XlenT = self.read_reg(rs1) ^ self.read_reg(rs2); self.write_reg(rd, reg_data); } RiscvInstId::SRL => { let rs1_data = self.read_reg(rs1) as UXlenT; let rs2_data = self.read_reg(rs2); let reg_data = rs1_data.wrapping_shr(rs2_data as u32); self.write_reg(rd, reg_data as XlenT); } RiscvInstId::SRA => { let rs1_data = self.read_reg(rs1); let rs2_data: UXlenT = self.read_reg(rs2) as UXlenT; let reg_data: XlenT = rs1_data.wrapping_shr(rs2_data as u32); self.write_reg(rd, reg_data); } RiscvInstId::MUL => { let rs1_data = self.read_reg(rs1); let rs2_data = self.read_reg(rs2); let reg_data: XlenT = rs1_data.wrapping_mul(rs2_data); self.write_reg(rd, reg_data); } RiscvInstId::MULH => { let rs1_data: i64 = self.read_reg(rs1) as i64; let rs2_data: i64 = self.read_reg(rs2) as i64; let mut reg_data: i64 = rs1_data.wrapping_mul(rs2_data); reg_data = (reg_data >> 32) & 0x0ffffffff; self.write_reg(rd, reg_data as XlenT); } RiscvInstId::MULHSU => { let rs1_data: i64 = (self.read_reg(rs1) as i32) as i64; let rs2_data: i64 = (self.read_reg(rs2) as u32) as i64; let mut reg_data: i64 = rs1_data.wrapping_mul(rs2_data); reg_data = (reg_data >> 32) & 0xffffffff; self.write_reg(rd, reg_data as XlenT); } RiscvInstId::MULHU => { let rs1_data: u64 = (self.read_reg(rs1) as u32) as u64; let rs2_data: u64 = (self.read_reg(rs2) as u32) as u64; let mut reg_data: u64 = rs1_data.wrapping_mul(rs2_data); reg_data = (reg_data >> 32) & 0xffffffff; self.write_reg(rd, reg_data as XlenT); } RiscvInstId::REM => { let rs1_data = self.read_reg(rs1); let rs2_data = self.read_reg(rs2); let reg_data: XlenT; if rs2_data == 0 { reg_data = rs1_data; } else if rs2_data == -1 { reg_data = 0; } else { reg_data = rs1_data.wrapping_rem(rs2_data); } self.write_reg(rd, reg_data); } RiscvInstId::REMU => { let rs1_data: UXlenT = self.read_reg(rs1) as UXlenT; let rs2_data: UXlenT = self.read_reg(rs2) as UXlenT; let reg_data: UXlenT; if rs2_data == 0 { reg_data = rs1_data; } else { reg_data = rs1_data.wrapping_rem(rs2_data); } self.write_reg(rd, reg_data as XlenT); } RiscvInstId::DIV => { let rs1_data = self.read_reg(rs1); let rs2_data = self.read_reg(rs2); let reg_data: XlenT; if rs2_data == 0 { reg_data = -1; } else { reg_data = rs1_data.wrapping_div(rs2_data); } self.write_reg(rd, reg_data); } RiscvInstId::DIVU => { let rs1_data: UXlenT = self.read_reg(rs1) as UXlenT; let rs2_data: UXlenT = self.read_reg(rs2) as UXlenT; let reg_data: UXlenT; if rs2_data == 0 { reg_data = 0xffffffff; } else { reg_data = rs1_data.wrapping_div(rs2_data); } self.write_reg(rd, reg_data as XlenT); } RiscvInstId::OR => { let reg_data: XlenT = self.read_reg(rs1) | self.read_reg(rs2); self.write_reg(rd, reg_data); } RiscvInstId::AND => { let reg_data: XlenT = self.read_reg(rs1) & self.read_reg(rs2); self.write_reg(rd, reg_data); } RiscvInstId::SB => { let rs2_data = self.read_reg(rs2); let addr: AddrT = (self.read_reg(rs1) + Self::extract_sfield(inst)) as AddrT; self.write_bus_byte(addr, rs2_data); } RiscvInstId::SH => { let rs2_data = self.read_reg(rs2); let addr: AddrT = (self.read_reg(rs1) + Self::extract_sfield(inst)) as AddrT; self.write_bus_hword(addr, rs2_data); } RiscvInstId::SW => { let rs2_data = self.read_reg(rs2); let addr = self.read_reg(rs1) + Self::extract_sfield(inst); self.write_bus_word(addr as AddrT, rs2_data); } RiscvInstId::JAL => { let addr: AddrT = Self::extract_uj_field(inst) as AddrT; self.write_reg(rd, (self.m_pc + 4) as XlenT); self.m_pc = self.m_pc.wrapping_add(addr); self.set_update_pc(true); } RiscvInstId::BEQ | RiscvInstId::BNE | RiscvInstId::BLT | RiscvInstId::BGE | RiscvInstId::BLTU | RiscvInstId::BGEU => { let rs1_data: XlenT = self.read_reg(rs1); let rs2_data: XlenT = self.read_reg(rs2); let addr: AddrT = Self::extract_sb_field(inst) as AddrT; let jump_en: bool; match dec_inst { RiscvInstId::BEQ => jump_en = rs1_data == rs2_data, RiscvInstId::BNE => jump_en = rs1_data != rs2_data, RiscvInstId::BLT => jump_en = rs1_data < rs2_data, RiscvInstId::BGE => jump_en = rs1_data >= rs2_data, RiscvInstId::BLTU => jump_en = (rs1_data as UXlenT) < (rs2_data as UXlenT), RiscvInstId::BGEU => jump_en = (rs1_data as UXlenT) >= (rs2_data as UXlenT), _ => panic!("Unknown value Branch"), } if jump_en { self.m_pc = self.m_pc.wrapping_add(addr); self.set_update_pc(true); } } RiscvInstId::JALR => { let mut addr: AddrT = Self::extract_ifield(inst) as AddrT; let rs1_data: AddrT = self.read_reg(rs1) as AddrT; addr = rs1_data.wrapping_add(addr); addr = addr & (!0x01); self.write_reg(rd, (self.m_pc + 4) as XlenT); self.m_pc = addr; self.set_update_pc(true); } RiscvInstId::FENCE => {} RiscvInstId::FENCEI => {} RiscvInstId::ECALL => { self.m_csr.csrrw(CsrAddr::Mepc, self.m_pc as XlenT); // MEPC let current_priv: PrivMode = self.m_priv; match current_priv { PrivMode::User => self.generate_exception(ExceptCode::EcallFromUMode, 0), PrivMode::Supervisor => self.generate_exception(ExceptCode::EcallFromSMode, 0), PrivMode::Hypervisor => self.generate_exception(ExceptCode::EcallFromHMode, 0), PrivMode::Machine => self.generate_exception(ExceptCode::EcallFromMMode, 0), } self.set_update_pc(true); } RiscvInstId::EBREAK => {} RiscvInstId::URET => {} RiscvInstId::SRET => { let mstatus: XlenT = self .m_csr .csrrs(CsrAddr::Mstatus, PrivMode::Machine as XlenT); let next_priv_uint: XlenT = Self::extract_bit_field( mstatus, SYSREG_MSTATUS_SPP_MSB, SYSREG_MSTATUS_SPP_LSB, ); let next_priv: PrivMode = PrivMode::from_u8(next_priv_uint as u8); let mut next_mstatus: XlenT = mstatus; next_mstatus = Self::set_bit_field( next_mstatus, Self::extract_bit_field( mstatus, SYSREG_MSTATUS_SPIE_MSB, SYSREG_MSTATUS_SPIE_LSB, ), SYSREG_MSTATUS_SIE_MSB, SYSREG_MSTATUS_SIE_LSB, ); next_mstatus = Self::set_bit_field( next_mstatus, 1, SYSREG_MSTATUS_SPIE_MSB, SYSREG_MSTATUS_SPIE_LSB, ); next_mstatus = Self::set_bit_field( next_mstatus, PrivMode::User as XlenT, SYSREG_MSTATUS_SPP_MSB, SYSREG_MSTATUS_SPP_LSB, ); self.m_csr.csrrw(CsrAddr::Mstatus, next_mstatus); let ret_pc = self.m_csr.csrrs(CsrAddr::Sepc, 0); self.set_priv_mode(next_priv); self.set_pc(ret_pc as AddrT); self.set_update_pc(true); } RiscvInstId::MRET => { let mepc: XlenT = self.m_csr.csrrs(CsrAddr::Mepc, 0); // MEPC self.m_pc = mepc as AddrT; self.set_update_pc(true); } _ => {} } if self.is_update_pc() == false { self.m_pc += 4; } self.m_trace.print_trace(); self.m_trace.clear(); } }
//! Endpoints for account registration and management. pub mod bind_3pid; pub mod change_password; pub mod deactivate; pub mod delete_3pid; pub mod get_username_availability; pub mod register; pub mod request_3pid_management_token_via_email; pub mod request_3pid_management_token_via_msisdn; pub mod request_openid_token; pub mod request_password_change_token_via_email; pub mod request_password_change_token_via_msisdn; pub mod request_registration_token_via_email; pub mod request_registration_token_via_msisdn; pub mod unbind_3pid; pub mod whoami; use std::collections::BTreeMap; use serde::{Deserialize, Serialize}; /// Additional authentication information for the user-interactive authentication API. #[derive(Clone, Debug, Deserialize, Serialize)] pub struct AuthenticationData { /// The login type that the client is attempting to complete. #[serde(rename = "type")] pub kind: String, /// The value of the session key given by the homeserver. pub session: Option<String>, /// Parameters submitted for a particular authentication stage. #[serde(flatten)] pub auth_parameters: BTreeMap<String, serde_json::Value>, } /// Information about available authentication flows and status for /// User-Interactive Authenticiation API. #[derive(Clone, Debug, Deserialize, Serialize)] pub struct UserInteractiveAuthenticationInfo { /// List of authentication flows available for this endpoint. pub flows: Vec<AuthenticationFlow>, /// List of stages in the current flow completed by the client. #[serde(default, skip_serializing_if = "Vec::is_empty")] pub completed: Vec<String>, /// Authentication parameters required for the client to complete authentication. pub params: serde_json::Value, /// Session key for client to use to complete authentication. #[serde(skip_serializing_if = "Option::is_none")] pub session: Option<String>, } /// Description of steps required to authenticate via the User-Interactive /// Authentication API. #[derive(Clone, Debug, Deserialize, Serialize)] pub struct AuthenticationFlow { /// Ordered list of stages required to complete authentication. #[serde(default, skip_serializing_if = "Vec::is_empty")] pub stages: Vec<String>, } /// Additional authentication information for requestToken endpoints. #[derive(Clone, Debug, Deserialize, Serialize)] pub struct IdentityServerInfo { /// The ID server to send the onward request to as a hostname with an /// appended colon and port number if the port is not the default. pub id_server: String, /// Access token previously registered with identity server. pub id_access_token: String, } /// Possible values for deleting or unbinding 3PIDs #[derive(Clone, Copy, Debug, Deserialize, Serialize)] #[serde(rename_all = "kebab-case")] pub enum ThirdPartyIdRemovalStatus { /// Either the homeserver couldn't determine the right identity server to contact, or the /// identity server refused the operation. NoSupport, /// Success. Success, }
use std::convert::{TryFrom, TryInto}; use std::fmt; use itertools::Itertools; use crate::codegen::llir::IntLiteral as _; use crate::codegen::*; use crate::ir::{self, op, Type}; use crate::search_space::*; pub trait IdentDisplay { fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result; fn ident(&self) -> DisplayIdent<'_, Self> { DisplayIdent { inner: self } } } pub struct DisplayIdent<'a, T: ?Sized> { inner: &'a T, } impl<T: fmt::Debug + ?Sized> fmt::Debug for DisplayIdent<'_, T> { fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { fmt::Debug::fmt(self.inner, fmt) } } impl<T: IdentDisplay + ?Sized> fmt::Display for DisplayIdent<'_, T> { fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { IdentDisplay::fmt(self.inner, fmt) } } impl IdentDisplay for Size { fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { if self.factor() != 1 { write!(fmt, "_{}", self.factor())?; } for dividend in self.dividend() { write!(fmt, "_{}", dividend)?; } if self.divisor() != 1 { write!(fmt, "_{}", self.divisor())?; } Ok(()) } } impl IdentDisplay for Type { fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { match self { Type::I(s) => write!(fmt, "i{}", s), Type::F(s) => write!(fmt, "f{}", s), Type::PtrTo(mem) => write!(fmt, "memptr{}", mem.0), } } } // TODO(cleanup): remove this function once values are preprocessed by codegen. If values // are preprocessed, types will be already lowered. fn lower_type(t: ir::Type, fun: &Function) -> ir::Type { fun.space() .ir_instance() .device() .lower_type(t, fun.space()) .unwrap() } pub trait InstPrinter { /// print a label where to jump fn print_label(&mut self, label: llir::Label<'_>); fn print_inst(&mut self, inst: llir::PredicatedInstruction<'_>); } /// Helper struct to provide useful methods wrapping an `InstPrinter` instance. struct InstPrinterHelper<'a> { inst_printer: &'a mut dyn InstPrinter, } impl<'a> InstPrinterHelper<'a> { /// Prints a scalar addition on integers. fn print_add_int( &mut self, result: llir::Register<'_>, lhs: llir::Operand<'_>, rhs: llir::Operand<'_>, ) { self.inst_printer .print_inst(llir::Instruction::iadd(result, lhs, rhs).unwrap().into()) } /// Prints a scalar less-than on integers. fn print_lt_int( &mut self, result: llir::Register<'_>, lhs: llir::Operand<'_>, rhs: llir::Operand<'_>, ) { self.inst_printer .print_inst(llir::Instruction::set_lt(result, lhs, rhs).unwrap().into()) } /// Prints an AND operation. fn print_and( &mut self, result: llir::Register<'_>, lhs: llir::Operand<'_>, rhs: llir::Operand<'_>, ) { self.inst_printer .print_inst(llir::Instruction::and(result, lhs, rhs).unwrap().into()) } /// Prints a move instruction. fn print_move(&mut self, result: llir::Register<'_>, operand: llir::Operand<'_>) { self.inst_printer .print_inst(llir::Instruction::mov(result, operand).unwrap().into()) } /// Prints a scalar equals instruction. fn print_equals( &mut self, result: llir::Register<'_>, lhs: llir::Operand<'_>, rhs: llir::Operand<'_>, ) { self.inst_printer .print_inst(llir::Instruction::set_eq(result, lhs, rhs).unwrap().into()) } } /// High-level printer struct delegating to an `InstPrinter` instance the role of printing actual /// instructions. /// /// The printer's task is to lower high(er) level construct into instructions, which get passed to /// the underlying `InstPrinter`. pub struct Printer<'a, 'b> { helper: InstPrinterHelper<'a>, namer: &'a mut NameMap<'b>, } impl<'a, 'b> Printer<'a, 'b> { pub fn new( inst_printer: &'a mut dyn InstPrinter, namer: &'a mut NameMap<'b>, ) -> Self { Printer { helper: InstPrinterHelper { inst_printer }, namer, } } /// Change the side-effect guards so that the specified threads are disabled. fn disable_threads<'d, I>(&mut self, threads: I) where I: Iterator<Item = &'d Dimension<'d>>, { let mut guard: Option<llir::Register<'_>> = None; for dim in threads { let new_guard = self.namer.gen_name(ir::Type::I(1)); let index = self.namer.name_index(dim.id()); self.helper .print_equals(new_guard, index.into(), 0i32.int_literal()); if let Some(guard) = guard { self.helper.print_and(guard, guard.into(), new_guard.into()); } else { guard = Some(new_guard); }; } self.namer.set_side_effect_guard(guard); } pub fn privatise_global_block(&mut self, block: &MemoryRegion, fun: &Function) { if fun.block_dims().is_empty() { return; } let addr = self.namer.name_addr(block.id()); let size = self.namer.name_size(block.local_size(), Type::I(32)); let d0 = self .namer .name_index(fun.block_dims()[0].id()) .into_operand(); let var = fun.block_dims()[1..].iter().fold(d0, |old_var, dim| { let var = self.namer.gen_name(Type::I(32)); let size = self.namer.name_size(dim.size(), Type::I(32)); let idx = self.namer.name_index(dim.id()).into_operand(); self.helper.inst_printer.print_inst( llir::Instruction::imad_low(var, old_var, size, idx) .unwrap() .into(), ); var.into_operand() }); self.helper.inst_printer.print_inst( llir::Instruction::imad(addr, var, size, addr.into_operand()) .unwrap() .into(), ); } /// Prints a classic loop - that is, a sequential loop with an index and a jump to the beginning /// at the end of the block fn standard_loop( &mut self, fun: &Function, dim: &Dimension<'b>, cfgs: &'b [Cfg<'b>], ) { let idx = self.namer.name_index(dim.id()); self.helper.print_move(idx, 0i32.int_literal()); let mut ind_var_vec = vec![]; let loop_label = self.namer.gen_label("LOOP"); let ind_levels = dim.induction_levels(); for level in ind_levels.iter() { let dim_id = level.increment.as_ref().map(|&(dim, _)| dim); let ind_var = self .namer .name_induction_var(level.ind_var, dim_id) .to_register() .unwrap(); let base_components = level.base.components().map({ let namer = &self.namer; move |v| namer.name(v) }); match base_components.collect_vec()[..] { [ref base] => self.helper.print_move(ind_var, base.clone()), [ref lhs, ref rhs] => { self.helper.print_add_int(ind_var, lhs.clone(), rhs.clone()) } _ => panic!(), }; ind_var_vec.push(ind_var); } self.helper.inst_printer.print_label(loop_label); self.cfg_vec(fun, cfgs); for (level, ind_var) in ind_levels.iter().zip_eq(ind_var_vec) { if let Some((_, ref increment)) = level.increment { let step = self.namer.name_size(increment, level.t()); self.helper.print_add_int(ind_var, ind_var.into(), step); }; } self.helper .print_add_int(idx, idx.into(), 1i32.int_literal()); let lt_cond = self.namer.gen_name(ir::Type::I(1)); let size = self.namer.name_size(dim.size(), Type::I(32)); self.helper.print_lt_int(lt_cond, idx.into(), size); self.helper .inst_printer .print_inst(llir::Instruction::jump(loop_label).predicated(lt_cond)); } /// Prints an unroll loop - loop without jumps fn unroll_loop(&mut self, fun: &Function, dim: &Dimension<'b>, cfgs: &'b [Cfg<'b>]) { let mut incr_levels = Vec::new(); for level in dim.induction_levels() { let dim_id = level.increment.as_ref().map(|&(dim, _)| dim); let ind_var = self .namer .name_induction_var(level.ind_var, dim_id) .to_register() .unwrap(); let base_components = level .base .components() .map(|v| self.namer.name(v)) .collect_vec(); let base = match base_components[..] { [ref base] => base.clone(), [ref lhs, ref rhs] => { let tmp = self.namer.gen_name(level.t()); self.helper.print_add_int(tmp, lhs.clone(), rhs.clone()); tmp.into() } _ => panic!(), }; if let Some((_, ref incr)) = level.increment { incr_levels.push((level, ind_var, incr, base.clone())); } self.helper.print_move(ind_var, base); } for i in 0..dim.size().as_int().unwrap() { self.namer.set_current_index(dim, i); if i > 0 { for &(level, ind_var, ref incr, ref base) in &incr_levels { if let Some(step) = incr.as_int() { let stepxi = i32::try_from(step * i) .unwrap() .typed_int_literal(level.t()) .unwrap(); self.helper.print_add_int(ind_var, stepxi, base.clone()); } else { let step = self.namer.name_size(incr, level.t()); self.helper.print_add_int(ind_var, step, ind_var.into()); }; } } self.cfg_vec(fun, cfgs); } self.namer.unset_current_index(dim); } /// Prints a multiplicative induction var level. pub fn parallel_induction_level(&mut self, level: &InductionLevel<'b>) { let dim_id = level.increment.as_ref().map(|&(dim, _)| dim); let ind_var = self .namer .name_induction_var(level.ind_var, dim_id) .to_register() .unwrap(); let base_components = level .base .components() .map({ let namer = &self.namer; move |v| namer.name(v) }) .collect_vec(); if let Some((dim, ref increment)) = level.increment { let index = self.namer.name_index(dim).into_operand(); let step = self.namer.name_size(increment, Type::I(32)); match base_components[..] { [] => self.helper.inst_printer.print_inst( llir::Instruction::imul(ind_var, index, step) .unwrap() .into(), ), [ref base] => self.helper.inst_printer.print_inst( llir::Instruction::imad(ind_var, index, step, base.clone()) .unwrap() .into(), ), _ => panic!(), } } else { match base_components[..] { [] => self .helper .print_move(ind_var, 0i32.typed_int_literal(ind_var.t()).unwrap()), [ref base] => self.helper.print_move(ind_var, base.clone()), [ref lhs, ref rhs] => { self.helper.print_add_int(ind_var, lhs.clone(), rhs.clone()) } _ => panic!(), } } } /// Prints a Loop fn gen_loop(&mut self, fun: &Function, dim: &Dimension<'b>, cfgs: &'b [Cfg<'b>]) { match dim.kind() { DimKind::LOOP => self.standard_loop(fun, dim, cfgs), DimKind::UNROLL => self.unroll_loop(fun, dim, cfgs), _ => panic!("{:?} loop should not be printed here !", dim.kind()), } } fn cfg_vec(&mut self, fun: &Function, cfgs: &'b [Cfg<'b>]) { for c in cfgs.iter() { self.cfg(fun, c); } } /// Prints a cfg. pub fn cfg(&mut self, fun: &Function, c: &'b Cfg<'b>) { match c { Cfg::Root(cfgs) => self.cfg_vec(fun, cfgs), Cfg::Loop(dim, cfgs) => self.gen_loop(fun, dim, cfgs), Cfg::Threads(dims, ind_levels, inner) => { // Disable inactive threads self.disable_threads( dims.iter().zip_eq(fun.thread_dims().iter()).filter_map( |(&active_dim_id, dim)| { if active_dim_id.is_none() { Some(dim) } else { None } }, ), ); for level in ind_levels { self.parallel_induction_level(level); } self.cfg_vec(fun, inner); self.helper .inst_printer .print_inst(llir::Instruction::sync().into()); } Cfg::Instruction(vec_dims, inst) => self.inst(vec_dims, inst, fun), } } /// Prints an instruction. fn inst( &mut self, vector_levels: &[Vec<Dimension>; 2], inst: &'b Instruction<'b>, fun: &Function, ) { // Multiple dimension can be mapped to the same vectorization level so we combine // them when computing the vectorization factor. let vector_factors = [ vector_levels[0] .iter() .map(|d| d.size().as_int().unwrap()) .product(), vector_levels[1] .iter() .map(|d| d.size().as_int().unwrap()) .product(), ]; let helper = &mut self.helper; match inst.operator() { &op::BinOp(op, ref lhs, ref rhs, round) => helper.inst_printer.print_inst( llir::Instruction::binary( llir::BinOp::from_ir( op, round, lower_type(lhs.t(), fun), lower_type(rhs.t(), fun), ) .unwrap(), self.namer.vector_inst(vector_levels, inst.id()), self.namer.vector_operand(vector_levels, lhs), self.namer.vector_operand(vector_levels, rhs), ) .unwrap() .into(), ), &op::Mul(ref lhs, ref rhs, round, return_type) => { helper.inst_printer.print_inst( llir::Instruction::binary( llir::BinOp::from_ir_mul( round, lower_type(lhs.t(), fun), lower_type(rhs.t(), fun), lower_type(return_type, fun), ) .unwrap(), self.namer.vector_inst(vector_levels, inst.id()), self.namer.vector_operand(vector_levels, lhs), self.namer.vector_operand(vector_levels, rhs), ) .unwrap() .into(), ) } &op::Mad(ref mul_lhs, ref mul_rhs, ref add_rhs, round) => { helper.inst_printer.print_inst( llir::Instruction::ternary( llir::TernOp::from_ir_mad( round, lower_type(mul_lhs.t(), fun), lower_type(mul_rhs.t(), fun), lower_type(add_rhs.t(), fun), ) .unwrap(), self.namer.vector_inst(vector_levels, inst.id()), self.namer.vector_operand(vector_levels, mul_lhs), self.namer.vector_operand(vector_levels, mul_rhs), self.namer.vector_operand(vector_levels, add_rhs), ) .unwrap() .into(), ) } &op::UnaryOp(operator, ref operand) => { // Need to lower inner types let operator = match operator { ir::UnaryOp::Cast(t) => ir::UnaryOp::Cast(lower_type(t, fun)), ir::UnaryOp::Exp(t) => ir::UnaryOp::Exp(lower_type(t, fun)), _ => operator, }; helper.inst_printer.print_inst( llir::Instruction::unary( llir::UnOp::from_ir(operator, lower_type(operand.t(), fun)) .unwrap(), self.namer.vector_inst(vector_levels, inst.id()), self.namer.vector_operand(vector_levels, operand), ) .unwrap() .into(), ) } &op::Ld(ld_type, ref addr, ref pattern) => helper.inst_printer.print_inst( llir::Instruction::load( llir::LoadSpec::from_ir( vector_factors, lower_type(ld_type, fun), access_pattern_space(pattern, fun.space()), inst.mem_flag().unwrap(), ) .unwrap(), self.namer.vector_inst(vector_levels, inst.id()), self.namer.name_op(addr).try_into().unwrap(), ) .unwrap() .into(), ), op::St(addr, val, _, pattern) => { let guard = if inst.has_side_effects() { self.namer.side_effect_guard() } else { None }; helper.inst_printer.print_inst( llir::Instruction::store( llir::StoreSpec::from_ir( vector_factors, lower_type(val.t(), fun), access_pattern_space(pattern, fun.space()), inst.mem_flag().unwrap(), ) .unwrap(), self.namer.name_op(addr).try_into().unwrap(), self.namer.vector_operand(vector_levels, val), ) .unwrap() .predicated(guard), ) } op @ op::TmpLd(..) | op @ op::TmpSt(..) => { panic!("non-printable instruction {:?}", op) } } } }
use crate::algo::population::population::Population; pub trait CrossOver<Mod> { fn cross(&self, m1: &mut Mod, m2: &mut Mod); fn cross_pop(&self, population: &mut Population<Mod>) { let size = population.population.len(); for i in 1..(size / 2) { let (m1, m2) = &mut population.population.split_at_mut(i); self.cross( &mut m1[i-1].adn, &mut m2[m2.len() - 1 - i].adn, ); } } } impl<Mod, Cr: CrossOver<Mod>> CrossOver<Mod> for Population<Cr> { fn cross(&self, m1: &mut Mod, m2: &mut Mod) { for mutator in self.population.iter() { mutator.adn.cross(m1, m2); } } }
// Copyright 2017 Dasein Phaos aka. Luxko // // 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. //! flags for resource usage and access patterns bitflags! { /// resource usage flags #[repr(C)] pub struct Usage: u32 { /// cpu don't have access to this resource const CPU_NONE = 0; /// cpu have write only access to this resource const CPU_DYNAMIC = 1; /// cpu can read or write this resource const CPU_READ_WRITE = 2; /// FIXME: wth? const CPU_SCRATCH = 3; /// resource can be used as shader input const SHADER_INPUT = 1<<(0+4); /// resource can be used as render target output const RENDER_TARGET_OUTPUT = 1<<(1+4); /// resource is used as a back buffer. This flag don't need to be passed when creating a swapchain. const BACK_BUFFER = 1<<(2+4); /// FIXME: resource can be shared across different adapters? const SHARED = 1<<(3+4); /// resource is read only for the gpu const READ_ONLY = 1<<(4+4); /// FIXME: resource content might be discarded after present? const DISCARD_ON_PRESENT = 1<<(5+4); /// resource can be unordered accessed const UNORDERED_ACCESS = 1<<(6+4); } } impl From<Usage> for ::winapi::DXGI_USAGE { fn from(usage: Usage) -> Self { ::winapi::DXGI_USAGE(usage.bits()) } }
pub mod database; pub mod email; pub mod handler;
#[macro_use] extern crate glium; use glium::Surface; use glium::{glutin, index, Display, Program}; use glutin::event::{Event, StartCause, WindowEvent}; use glutin::event_loop::{ControlFlow, EventLoop}; use glutin::window::WindowBuilder; use glutin::ContextBuilder; fn main() { let mut event_loop = EventLoop::new(); let wb = WindowBuilder::new(); let cb = ContextBuilder::new(); let display = Display::new(wb, cb, &event_loop).unwrap(); implement_vertex!(Vertex, position); let vertex1 = Vertex { position: [-0.5, -0.5], }; let vertex2 = Vertex { position: [0.0, 0.5], }; let vertex3 = Vertex { position: [0.5, -0.25], }; let shape = vec![vertex1, vertex2, vertex3]; let vbo = glium::VertexBuffer::new(&display, &shape).unwrap(); let indices = index::NoIndices(index::PrimitiveType::TrianglesList); let vertex_shader_src = r#" #version 140 in vec2 position; uniform float t; void main() { vec2 pos = position; pos.x += t; gl_Position = vec4(pos, 0.0, 1.0); } "#; let fragment_shader_src = r#" #version 140 out vec4 color; void main() { color = vec4(1.0, 0.0, 0.0, 1.0); } "#; let program = Program::from_source(&display, vertex_shader_src, fragment_shader_src, None) .expect("could not create program"); let mut t: f32 = -0.5; event_loop.run(move |ev, _, control_flow| { t += 0.0002; if t > 0.5 { t = -0.5; } let mut target = display.draw(); target.clear_color(0.46, 0.52, 0.64, 1.0); target .draw( &vbo, &indices, &program, &uniform! { t: t }, &Default::default(), ) .unwrap(); target.finish().unwrap(); let next_frame_time = std::time::Instant::now() + std::time::Duration::from_nanos(16_666_667); *control_flow = ControlFlow::WaitUntil(next_frame_time); match ev { Event::WindowEvent { event, .. } => match event { WindowEvent::CloseRequested => { *control_flow = ControlFlow::Exit; return; } _ => (), }, Event::NewEvents(cause) => match cause { StartCause::ResumeTimeReached { .. } => (), StartCause::Init => (), _ => (), }, _ => (), } }) } #[derive(Copy, Clone)] struct Vertex { position: [f32; 2], }
#[macro_use] extern crate rental; pub struct Foo { i: i32, } pub struct Bar<'a> { foo: &'a Foo, } pub struct Baz<'a: 'b, 'b> { bar: &'b Bar<'a> } pub struct Qux<'a: 'b, 'b: 'c, 'c> { baz: &'c Baz<'a, 'b> } pub struct Xyzzy<'a: 'b, 'b: 'c, 'c: 'd, 'd> { qux: &'d Qux<'a, 'b, 'c> } impl Foo { pub fn borrow<'a>(&'a self) -> Bar<'a> { Bar { foo: self } } pub fn try_borrow<'a>(&'a self) -> Result<Bar<'a>, ()> { Ok(Bar { foo: self }) } pub fn fail_borrow<'a>(&'a self) -> Result<Bar<'a>, ()> { Err(()) } } impl<'a> Bar<'a> { pub fn borrow<'b>(&'b self) -> Baz<'a, 'b> { Baz { bar: self } } pub fn try_borrow<'b>(&'b self) -> Result<Baz<'a, 'b>, ()> { Ok(Baz { bar: self }) } pub fn fail_borrow<'b>(&'b self) -> Result<Baz<'a, 'b>, ()> { Err(()) } } impl<'a: 'b, 'b> Baz<'a, 'b> { pub fn borrow<'c>(&'c self) -> Qux<'a, 'b, 'c> { Qux { baz: self } } pub fn try_borrow<'c>(&'c self) -> Result<Qux<'a, 'b, 'c>, ()> { Ok(Qux { baz: self }) } pub fn fail_borrow<'c>(&'c self) -> Result<Qux<'a, 'b, 'c>, ()> { Err(()) } } impl<'a: 'b, 'b: 'c, 'c> Qux<'a, 'b, 'c> { pub fn borrow<'d>(&'d self) -> Xyzzy<'a, 'b, 'c, 'd> { Xyzzy { qux: self } } pub fn try_borrow<'d>(&'d self) -> Result<Xyzzy<'a, 'b, 'c, 'd>, ()> { Ok(Xyzzy { qux: self }) } pub fn fail_borrow<'d>(&'d self) -> Result<Xyzzy<'a, 'b, 'c, 'd>, ()> { Err(()) } } rental! { mod rentals { use super::*; #[rental] pub struct ComplexRent { foo: Box<Foo>, bar: Box<Bar<'foo>>, baz: Box<Baz<'foo, 'bar>>, qux: Box<Qux<'foo, 'bar, 'baz>>, xyzzy: Xyzzy<'foo, 'bar, 'baz, 'qux>, } } } #[test] fn new() { let foo = Foo { i: 5 }; let _ = rentals::ComplexRent::new( Box::new(foo), |foo| Box::new(foo.borrow()), |bar, _| Box::new(bar.borrow()), |baz, _, _| Box::new(baz.borrow()), |qux, _, _, _| qux.borrow() ); let foo = Foo { i: 5 }; let cr = rentals::ComplexRent::try_new( Box::new(foo), |foo| foo.try_borrow().map(|bar| Box::new(bar)), |bar, _| bar.try_borrow().map(|baz| Box::new(baz)), |baz, _, _| baz.try_borrow().map(|qux| Box::new(qux)), |qux, _, _, _| qux.try_borrow() ); assert!(cr.is_ok()); let foo = Foo { i: 5 }; let cr = rentals::ComplexRent::try_new( Box::new(foo), |foo| foo.try_borrow().map(|bar| Box::new(bar)), |bar, _| bar.try_borrow().map(|baz| Box::new(baz)), |baz, _, _| baz.try_borrow().map(|qux| Box::new(qux)), |qux, _, _, _| qux.fail_borrow() ); assert!(cr.is_err()); } #[test] fn read() { let foo = Foo { i: 5 }; let cr = rentals::ComplexRent::new( Box::new(foo), |foo| Box::new(foo.borrow()), |bar, _| Box::new(bar.borrow()), |baz, _, _| Box::new(baz.borrow()), |qux, _, _, _| qux.borrow() ); let i = cr.rent(|xyzzy| xyzzy.qux.baz.bar.foo.i); assert_eq!(i, 5); let iref = cr.ref_rent(|xyzzy| &xyzzy.qux.baz.bar.foo.i); assert_eq!(*iref, 5); }
#[tokio::main] async fn main() { warp::serve(warp::fs::dir("publico")) .run(([0,0,0,0],8080)) .await; }
use fnv::FnvBuildHasher; use rahashmap::HashMap as RaHashMap; use std::rc::Rc; use rand::prelude::{ThreadRng,Rng}; use super::mk_key::MakeKey; use common::SizeOf; use prelude::*; type FnvHashMap<K, V> = RaHashMap<K, V, FnvBuildHasher>; #[derive(Debug)] #[allow(clippy::type_complexity)] pub(super) enum KeyedState<T> { Single(FnvHashMap<DataType, T>), Double(FnvHashMap<(DataType, DataType), T>), Tri(FnvHashMap<(DataType, DataType, DataType), T>), Quad(FnvHashMap<(DataType, DataType, DataType, DataType), T>), Quin(FnvHashMap<(DataType, DataType, DataType, DataType, DataType), T>), Sex(FnvHashMap<(DataType, DataType, DataType, DataType, DataType, DataType), T>), } impl<T> KeyedState<T> { pub(super) fn lookup<'a>(&'a self, key: &KeyType) -> Option<&'a T> where T: std::fmt::Debug, { match (self, key) { (&KeyedState::Single(ref m), &KeyType::Single(k)) => m.get(k), (&KeyedState::Double(ref m), &KeyType::Double(ref k)) => m.get(k), (&KeyedState::Tri(ref m), &KeyType::Tri(ref k)) => m.get(k), (&KeyedState::Quad(ref m), &KeyType::Quad(ref k)) => m.get(k), (&KeyedState::Quin(ref m), &KeyType::Quin(ref k)) => m.get(k), (&KeyedState::Sex(ref m), &KeyType::Sex(ref k)) => m.get(k), (st, kt) => panic!("State: {:?}, key: {:?}", st, kt), (st, kt) => panic!( "Stat: {}, key: {}", match *st { KeyedState::Single(_) => 1, KeyedState::Double(_) => 2, KeyedState::Tri(_) => 3, KeyedState::Quad(_) => 4, KeyedState::Quin(_) => 5, KeyedState::Sex(_) => 6, }, match *kt { KeyType::Single(_) => 1, KeyType::Double(_) => 2, KeyType::Tri(_) => 3, KeyType::Quad(_) => 4, KeyType::Quin(_) => 5, KeyType::Sex(_) => 6, } ), } } pub(super) fn lookup_mut<'a>(&'a mut self, key: &KeyType) -> Option<&'a mut T> where T: std::fmt::Debug, { match (self, key) { (&mut KeyedState::Single(ref mut m), &KeyType::Single(k)) => m.get_mut(k), (&mut KeyedState::Double(ref mut m), &KeyType::Double(ref k)) => m.get_mut(k), (&mut KeyedState::Tri(ref mut m), &KeyType::Tri(ref k)) => m.get_mut(k), (&mut KeyedState::Quad(ref mut m), &KeyType::Quad(ref k)) => m.get_mut(k), (&mut KeyedState::Quin(ref mut m), &KeyType::Quin(ref k)) => m.get_mut(k), (&mut KeyedState::Sex(ref mut m), &KeyType::Sex(ref k)) => m.get_mut(k), (st, kt) => panic!("State: {:?}, key: {:?}", st, kt), (st, kt) => panic!( "Stat: {}, key: {}", match *st { KeyedState::Single(_) => 1, KeyedState::Double(_) => 2, KeyedState::Tri(_) => 3, KeyedState::Quad(_) => 4, KeyedState::Quin(_) => 5, KeyedState::Sex(_) => 6, }, match *kt { KeyType::Single(_) => 1, KeyType::Double(_) => 2, KeyType::Tri(_) => 3, KeyType::Quad(_) => 4, KeyType::Quin(_) => 5, KeyType::Sex(_) => 6, } ), } } /// Remove all rows for the first key at or after `index`, returning that key along with the /// number of bytes freed. Returns None if already empty. pub(super) fn evict_at_index(&mut self, index: usize) -> Option<(u64, Vec<DataType>)> where T: DeallocSize, { let (rs, key) = match *self { KeyedState::Single(ref mut m) => m.remove_at_index(index).map(|(k, rs)| (rs, vec![k])), KeyedState::Double(ref mut m) => { m.remove_at_index(index).map(|(k, rs)| (rs, vec![k.0, k.1])) } KeyedState::Tri(ref mut m) => m .remove_at_index(index) .map(|(k, rs)| (rs, vec![k.0, k.1, k.2])), KeyedState::Quad(ref mut m) => m .remove_at_index(index) .map(|(k, rs)| (rs, vec![k.0, k.1, k.2, k.3])), KeyedState::Quin(ref mut m) => m .remove_at_index(index) .map(|(k, rs)| (rs, vec![k.0, k.1, k.2, k.3, k.4])), KeyedState::Sex(ref mut m) => m .remove_at_index(index) .map(|(k, rs)| (rs, vec![k.0, k.1, k.2, k.3, k.4, k.5])), }?; Some((rs.dealloc_size(), key)) } /// Remove all rows for the given key, returning the number of bytes freed. pub(super) fn evict(&mut self, key: &[DataType]) -> u64 where T: DeallocSize, { match *self { KeyedState::Single(ref mut m) => m.remove(&(key[0])), KeyedState::Double(ref mut m) => m.remove(&MakeKey::from_key(key)), KeyedState::Tri(ref mut m) => m.remove(&MakeKey::from_key(key)), KeyedState::Quad(ref mut m) => m.remove(&MakeKey::from_key(key)), KeyedState::Quin(ref mut m) => m.remove(&MakeKey::from_key(key)), KeyedState::Sex(ref mut m) => m.remove(&MakeKey::from_key(key)), } .map(|r| r.dealloc_size()) .unwrap_or(0) } pub fn clear(&mut self) { match self { KeyedState::Single(ref mut map) => map.clear(), KeyedState::Double(ref mut map) => map.clear(), KeyedState::Tri(ref mut map) => map.clear(), KeyedState::Quad(ref mut map) => map.clear(), KeyedState::Quin(ref mut map) => map.clear(), KeyedState::Sex(ref mut map) => map.clear(), } } pub fn mark_filled(&mut self, key: Vec<DataType>, empty: T) { let mut key = key.into_iter(); let replaced = match self { KeyedState::Single(ref mut map) => map.insert(key.next().unwrap(), empty), KeyedState::Double(ref mut map) => { map.insert((key.next().unwrap(), key.next().unwrap()), empty) } KeyedState::Tri(ref mut map) => map.insert( ( key.next().unwrap(), key.next().unwrap(), key.next().unwrap(), ), empty, ), KeyedState::Quad(ref mut map) => map.insert( ( key.next().unwrap(), key.next().unwrap(), key.next().unwrap(), key.next().unwrap(), ), empty, ), KeyedState::Quin(ref mut map) => map.insert( ( key.next().unwrap(), key.next().unwrap(), key.next().unwrap(), key.next().unwrap(), key.next().unwrap(), ), empty, ), KeyedState::Sex(ref mut map) => map.insert( ( key.next().unwrap(), key.next().unwrap(), key.next().unwrap(), key.next().unwrap(), key.next().unwrap(), key.next().unwrap(), ), empty, ), }; assert!(replaced.is_none()); } pub fn mark_hole(&mut self, key: &[DataType]) -> u64 where T: DeallocSize { let removed = match self { KeyedState::Single(ref mut map) => map.remove(&key[0]), KeyedState::Double(ref mut map) => map.remove(&MakeKey::from_key(key)), KeyedState::Tri(ref mut map) => map.remove(&MakeKey::from_key(key)), KeyedState::Quad(ref mut map) => map.remove(&MakeKey::from_key(key)), KeyedState::Quin(ref mut map) => map.remove(&MakeKey::from_key(key)), KeyedState::Sex(ref mut map) => map.remove(&MakeKey::from_key(key)), }; // mark_hole should only be called on keys we called mark_filled on removed.expect("Hole marked twice").dealloc_size() } pub(super) fn evict_random_keys( &mut self, count: usize, rng: &mut ThreadRng, ) -> (u64, Vec<Vec<DataType>>) where T: DeallocSize { let mut bytes_freed = 0; let mut keys = Vec::with_capacity(count); for _ in 0..count { if let Some((n, key)) = self.evict_at_index(rng.gen()) { bytes_freed += n; keys.push(key); } else { break; } } (bytes_freed, keys) } } /// Real number of bytes freed by deallocating this element. In particular for /// smart references this should 0 unless this is the only existing copy of the /// reference. pub(crate) trait DeallocSize { fn dealloc_size(&self) -> u64; } impl DeallocSize for Row { fn dealloc_size(&self) -> u64 { if Rc::strong_count(&self.0) == 1 { self.deep_size_of() } else { 0 } } } impl<T: DeallocSize> DeallocSize for Vec<T> { fn dealloc_size(&self) -> u64 { self.iter().map(DeallocSize::dealloc_size).sum() } } impl <T:DeallocSize> DeallocSize for Option<T> { fn dealloc_size(&self) -> u64 { self.as_ref().map_or(0,DeallocSize::dealloc_size) } } impl<'a, T> Into<KeyedState<T>> for &'a [usize] { fn into(self) -> KeyedState<T> { match self.len() { 0 => unreachable!(), 1 => KeyedState::Single(FnvHashMap::default()), 2 => KeyedState::Double(FnvHashMap::default()), 3 => KeyedState::Tri(FnvHashMap::default()), 4 => KeyedState::Quad(FnvHashMap::default()), 5 => KeyedState::Quin(FnvHashMap::default()), 6 => KeyedState::Sex(FnvHashMap::default()), x => panic!("invalid compound key of length: {}", x), } } }
use aoc2019::aoc_input::get_input; fn required_fuel(module_mass: u64) -> u64 { (module_mass / 3).saturating_sub(2) } fn total_required_fuel(module_mass: u64) -> u64 { let mut prev_fuel = module_mass; let mut total_fuel = 0u64; while prev_fuel != 0 { prev_fuel = required_fuel(prev_fuel); total_fuel += prev_fuel; } total_fuel } fn main() { let input = get_input(1); let module_masses: Vec<_> = input.lines().map(|n| n.parse::<u64>().unwrap()).collect(); let modules_fuel = module_masses .iter() .cloned() .map(required_fuel) .sum::<u64>(); println!("Module fuel requirements: {}", modules_fuel); let total_fuel = module_masses .iter() .cloned() .map(total_required_fuel) .sum::<u64>(); println!("Total fuel requirements: {}", total_fuel); }
extern crate backtrace; pub mod error; pub mod types; use std::collections::HashMap; use crate::token::token::{Token, TokenType, TokenData}; use crate::token::stream::TokenStream; use error::ParseError; use types::{Object, Array, Value}; pub fn parse(tokens: Vec<Token>) -> Result<Value, ParseError> { let mut stream: TokenStream = TokenStream::new(&tokens); match stream.peek()?.tok_type { TokenType::LBrace => Ok(Value::Object(parse_object(&mut stream)?)), TokenType::LBracket => Ok(Value::Array(parse_array(&mut stream)?)), _ => Ok(parse_value(&mut stream)?) } } fn parse_object(stream: &mut TokenStream) -> Result<Object, ParseError> { stream.consume(TokenType::LBrace)?; let map = parse_key_values(stream)?; stream.consume(TokenType::RBrace)?; Ok(Object { map }) } fn parse_key(stream: &mut TokenStream) -> Result<String, ParseError> { let token: &Token = stream.consume(TokenType::String)?; match &token.data { TokenData::String(string) => Ok(string.clone()), TokenData::Number(float) => Ok(float.to_string()), TokenData::None => Err(ParseError::new(&format!("expected identifier, found {:?}", token), token.line_num)) } } fn parse_value(stream: &mut TokenStream) -> Result<Value, ParseError> { match stream.peek()?.tok_type { TokenType::LBrace => { let object: Object = parse_object(stream)?; return Ok(Value::Object(object)) }, TokenType::LBracket => { return Ok(Value::Array(parse_array(stream)?)) }, _ => { let token: &Token = stream.next()?; match token.tok_type { TokenType::Number | TokenType::String => match &token.data { TokenData::String(string) => Ok(Value::String(string.clone())), TokenData::Number(number) => Ok(Value::Number(number.clone())), TokenData::None => Err(ParseError::new("token is missing token data", token.line_num)) }, TokenType::True => Ok(Value::Keyword("true".to_string())), TokenType::False => Ok(Value::Keyword("false".to_string())), TokenType::Null => Ok(Value::Keyword("null".to_string())), _ => Err(ParseError::new(&format!("unexpected token {:?}", token.tok_type), token.line_num)) } } } } fn parse_array(stream: &mut TokenStream) -> Result<Array, ParseError> { let mut values: Vec<Value> = Vec::new(); stream.consume(TokenType::LBracket)?; loop { match stream.peek()?.tok_type { TokenType::RBracket => break, _ => () }; values.push(parse_value(stream)?); match stream.peek()?.tok_type { TokenType::Comma => { stream.next()?; }, _ => () }; }; stream.consume(TokenType::RBracket)?; Ok(Array { values }) } fn parse_key_values(stream: &mut TokenStream) -> Result<HashMap<String, Value>, ParseError> { let mut map: HashMap<String, Value> = HashMap::new(); loop { match stream.peek()?.tok_type { TokenType::RBrace => break, _ => () }; let key: String = parse_key(stream)?; stream.consume(TokenType::Colon)?; let value: Value = parse_value(stream)?; match stream.peek()?.tok_type { TokenType::Comma => { stream.next()?; }, _ => () }; map.insert(key, value); }; Ok(map) }
use crate::{ domain, interface::{StakeTokenValue, YoctoNear, YoctoStake}, }; use near_sdk::serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Debug, Clone)] #[serde(crate = "near_sdk::serde")] pub struct RedeemStakeBatchReceipt { /// tracks amount of STAKE that has been claimed on the receipt /// - when the amount reaches zero, then the receipt is deleted pub redeemed_stake: YoctoStake, /// the STAKE token value at the point in time when the batch was run /// - is used to compute the amount of STAKE tokens to issue to the account based on the amount /// of NEAR that was staked pub stake_token_value: StakeTokenValue, /// the NEAR value of the redeemed STAKE computed from [stake_token_value](RedeemStakeBatchReceipt::stake_token_value) pub redeemed_stake_value: YoctoNear, } impl From<domain::RedeemStakeBatchReceipt> for RedeemStakeBatchReceipt { fn from(receipt: domain::RedeemStakeBatchReceipt) -> Self { Self { redeemed_stake: receipt.redeemed_stake().into(), stake_token_value: receipt.stake_token_value().into(), redeemed_stake_value: receipt.stake_near_value().into(), } } }
fn func_patterns(x: i32) -> &'static str { match x { 1 => "one", 2 => "two", 3 => "three", _ => "anything", } } #[test] fn test_patterns() { let r = func_patterns(1); assert_eq!("one", r); } #[test] fn test_shadown() { let x = 1; let c = 'c'; match c { // x shadows the outer scoped x value of 1 // prints 'x: c c: c' x => println!("x: {} c: {}", x, c), }; // prints '1' println!("x: {}", x); } #[test] fn test_multiple_patterns() { let x = 1; match x { 1 | 2 => println!("one or two"), 3 => println!("three"), _ => println!("anything"), } } struct Point { x: i32, y: i32, } #[test] fn test_destructuring() { let origin = Point { x: 0, y: 0 }; match origin { Point { x, y } => println!("({}, {})", x, y), } } #[test] fn test_destructuring_rename() { let origin = Point { x: 0, y: 0 }; match origin { Point { x: x1, y: y1 } => println!("({}, {})", x1, y1), } } #[test] fn test_destructuring_partial() { let origin = Point { x: 0, y: 0 }; match origin { Point { y, .. } => println!("y is {}", y), } } // you can use _ in a pattern to disregard the type and value //match some_value { // Ok(value) => println!("got a vlue: {}", value), // Err(_) -> println!("an error occurred"), //} // fn coordinate() -> (i32, i32, i32) { (0, 0, 0) } #[test] fn test_destructure_triple_partial() { let (x, _, z) = coordinate(); } // won't compile. use of partially moved value: 'tuple' //#[test] //fn test_bind_moving() { // let tuple: (u32, String) = (5, String::from("five")); // let (x, _s) = tuple; // println!("Tuple is: {:?}", tuple); //} #[test] fn test_underscore_bind_not_moving() { let tuple = (5, String::from("five")); let (x, _) = tuple; println!("Tuple is: {:?}", tuple); } #[test] fn test_drop_immediate() { let _ = String::from(" hello ").trim(); } enum OptionalTuple { Value(i32, i32, i32), Missing, } #[test] fn test_blah() { let x = OptionalTuple::Value(5, -2, 3); match x { OptionalTuple::Value(..) => println!("Got a tuple!"), OptionalTuple::Missing => println!("No such luck."), } } #[test] fn test_ref() { let x = 5; match x { ref r => println!("Got a reference to {}", r), } } #[test] fn test_mut_ref() { let mut x = 5; match x { ref mut mr => println!("Got a mutable reference to {}", mr), } } #[test] fn test_ranges() { let x = 1; match x { 1 ... 5 => println!("one through five"), _ => println!("anything"), } } #[test] fn test_special_chars() { let x = '💅'; match x { 'a' ... 'j' => println!("early letter"), 'k' ... 'z' => println!("late letter"), _ => println!("something else"), } } #[test] fn test_bind() { let x = 1; match x { e @ 1 ... 5 => println!("got a range element {}", e), _ => println!("anything"), } } #[derive(Debug)] struct Person { name: Option<String>, } #[test] fn test_match_data_structure() { let name = "Steve".to_string(); let x: Option<Person> = Some(Person { name: Some(name) }); match x { Some(Person { name: ref a @ Some(_), .. }) => println!("{:?}", a), _ => {} } } #[test] fn test_bind_2() { let x = 5; match x { e @ 1 ... 5 | e @ 8 ... 18 => println!("got a range element {}", e), _ => println!("anything"), } } enum OptionalInt { Value(i32), Missing, } #[test] fn test_guard() { let x = OptionalInt::Value(5); match x { OptionalInt::Value(i) if i > 5 => println!("Got an int bigger than five!"), OptionalInt::Value(..) => println!("Got an int!"), OptionalInt::Missing => println!("No such luck."), } } #[test] fn test_guard_2() { let x = 4; let y = false; match x { 4 | 5 if y => println!("yes"), _ => println!("no"), } } // mix and match //match x { // Foo { x: Some(ref name), y: None } => ... //}
/// Required functionality for underlying [`std::io::Write`] for adaptation #[cfg(not(any(feature = "auto", all(windows, feature = "wincon"))))] pub trait RawStream: std::io::Write + private::Sealed {} /// Required functionality for underlying [`std::io::Write`] for adaptation #[cfg(all(feature = "auto", not(all(windows, feature = "wincon"))))] pub trait RawStream: std::io::Write + is_terminal::IsTerminal + private::Sealed {} /// Required functionality for underlying [`std::io::Write`] for adaptation #[cfg(all(not(feature = "auto"), all(windows, feature = "wincon")))] pub trait RawStream: std::io::Write + anstyle_wincon::WinconStream + private::Sealed {} /// Required functionality for underlying [`std::io::Write`] for adaptation #[cfg(all(feature = "auto", all(windows, feature = "wincon")))] pub trait RawStream: std::io::Write + is_terminal::IsTerminal + anstyle_wincon::WinconStream + private::Sealed { } impl RawStream for std::io::Stdout {} impl RawStream for std::io::StdoutLock<'static> {} impl RawStream for std::io::Stderr {} impl RawStream for std::io::StderrLock<'static> {} impl RawStream for std::fs::File {} impl RawStream for crate::Buffer {} mod private { pub trait Sealed {} impl Sealed for std::io::Stdout {} impl Sealed for std::io::StdoutLock<'static> {} impl Sealed for std::io::Stderr {} impl Sealed for std::io::StderrLock<'static> {} impl Sealed for std::fs::File {} impl Sealed for crate::Buffer {} }
// 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. use std::path::PathBuf; use compiletest_rs::{common::Mode, Config}; #[test] fn ui() { let mut config = Config { mode: Mode::Ui, src_base: PathBuf::from("tests/ui"), target_rustcflags: Some("-L target/debug -L target/debug/deps".to_string()), build_base: PathBuf::from("target/ui"), ..Default::default() }; config.link_deps(); config.clean_rmeta(); compiletest_rs::run_tests(&config); } // extern crate compiletest_rs as compiletest; // use std::path::PathBuf; // fn run_mode(mode: &'static str) { // let mut config = compiletest::Config::default(); // config.filter = std::env::var("COMPILETEST_FILTER").ok(); // config.mode = mode.parse().expect("Invalid mode"); // config.src_base = PathBuf::from(format!("tests/{}", mode)); // config.target_rustcflags = Some("-L target/debug -L target/debug/deps".to_string()); // config.link_deps(); // Populate config.target_rustcflags with dependencies on the path // config.clean_rmeta(); // If your tests import the parent crate, this helps with E0464 // compiletest::run_tests(&config); // } // #[test] // fn compile_fail() { // run_mode("compile-fail"); // }
#![allow(unused_variables, non_upper_case_globals, non_snake_case, unused_unsafe, non_camel_case_types, dead_code, clippy::all)] #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct APP_MEMORY_INFORMATION { pub AvailableCommit: u64, pub PrivateCommitUsage: u64, pub PeakPrivateCommitUsage: u64, pub TotalCommitUsage: u64, } impl APP_MEMORY_INFORMATION {} impl ::core::default::Default for APP_MEMORY_INFORMATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for APP_MEMORY_INFORMATION { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("APP_MEMORY_INFORMATION").field("AvailableCommit", &self.AvailableCommit).field("PrivateCommitUsage", &self.PrivateCommitUsage).field("PeakPrivateCommitUsage", &self.PeakPrivateCommitUsage).field("TotalCommitUsage", &self.TotalCommitUsage).finish() } } impl ::core::cmp::PartialEq for APP_MEMORY_INFORMATION { fn eq(&self, other: &Self) -> bool { self.AvailableCommit == other.AvailableCommit && self.PrivateCommitUsage == other.PrivateCommitUsage && self.PeakPrivateCommitUsage == other.PeakPrivateCommitUsage && self.TotalCommitUsage == other.TotalCommitUsage } } impl ::core::cmp::Eq for APP_MEMORY_INFORMATION {} unsafe impl ::windows::core::Abi for APP_MEMORY_INFORMATION { type Abi = Self; } #[inline] pub unsafe fn AcquireSRWLockExclusive(srwlock: *mut RTL_SRWLOCK) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn AcquireSRWLockExclusive(srwlock: *mut RTL_SRWLOCK); } ::core::mem::transmute(AcquireSRWLockExclusive(::core::mem::transmute(srwlock))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn AcquireSRWLockShared(srwlock: *mut RTL_SRWLOCK) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn AcquireSRWLockShared(srwlock: *mut RTL_SRWLOCK); } ::core::mem::transmute(AcquireSRWLockShared(::core::mem::transmute(srwlock))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn AddIntegrityLabelToBoundaryDescriptor<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSID>>(boundarydescriptor: *mut super::super::Foundation::HANDLE, integritylabel: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn AddIntegrityLabelToBoundaryDescriptor(boundarydescriptor: *mut super::super::Foundation::HANDLE, integritylabel: super::super::Foundation::PSID) -> super::super::Foundation::BOOL; } ::core::mem::transmute(AddIntegrityLabelToBoundaryDescriptor(::core::mem::transmute(boundarydescriptor), integritylabel.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn AddSIDToBoundaryDescriptor<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSID>>(boundarydescriptor: *mut super::super::Foundation::HANDLE, requiredsid: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn AddSIDToBoundaryDescriptor(boundarydescriptor: *mut super::super::Foundation::HANDLE, requiredsid: super::super::Foundation::PSID) -> super::super::Foundation::BOOL; } ::core::mem::transmute(AddSIDToBoundaryDescriptor(::core::mem::transmute(boundarydescriptor), requiredsid.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn AttachThreadInput<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(idattach: u32, idattachto: u32, fattach: Param2) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn AttachThreadInput(idattach: u32, idattachto: u32, fattach: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; } ::core::mem::transmute(AttachThreadInput(::core::mem::transmute(idattach), ::core::mem::transmute(idattachto), fattach.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy, :: core :: fmt :: Debug, :: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] #[repr(transparent)] pub struct BoundaryDescriptorHandle(pub isize); impl ::core::default::Default for BoundaryDescriptorHandle { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } unsafe impl ::windows::core::Handle for BoundaryDescriptorHandle {} unsafe impl ::windows::core::Abi for BoundaryDescriptorHandle { type Abi = Self; } pub const CONDITION_VARIABLE_LOCKMODE_SHARED: u32 = 1u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct CREATE_EVENT(pub u32); pub const CREATE_EVENT_INITIAL_SET: CREATE_EVENT = CREATE_EVENT(2u32); pub const CREATE_EVENT_MANUAL_RESET: CREATE_EVENT = CREATE_EVENT(1u32); impl ::core::convert::From<u32> for CREATE_EVENT { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for CREATE_EVENT { type Abi = Self; } impl ::core::ops::BitOr for CREATE_EVENT { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for CREATE_EVENT { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for CREATE_EVENT { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for CREATE_EVENT { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for CREATE_EVENT { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } pub const CREATE_MUTEX_INITIAL_OWNER: u32 = 1u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct CREATE_PROCESS_LOGON_FLAGS(pub u32); pub const LOGON_WITH_PROFILE: CREATE_PROCESS_LOGON_FLAGS = CREATE_PROCESS_LOGON_FLAGS(1u32); pub const LOGON_NETCREDENTIALS_ONLY: CREATE_PROCESS_LOGON_FLAGS = CREATE_PROCESS_LOGON_FLAGS(2u32); impl ::core::convert::From<u32> for CREATE_PROCESS_LOGON_FLAGS { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for CREATE_PROCESS_LOGON_FLAGS { type Abi = Self; } impl ::core::ops::BitOr for CREATE_PROCESS_LOGON_FLAGS { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for CREATE_PROCESS_LOGON_FLAGS { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for CREATE_PROCESS_LOGON_FLAGS { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for CREATE_PROCESS_LOGON_FLAGS { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for CREATE_PROCESS_LOGON_FLAGS { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } pub const CREATE_WAITABLE_TIMER_HIGH_RESOLUTION: u32 = 2u32; pub const CREATE_WAITABLE_TIMER_MANUAL_RESET: u32 = 1u32; #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn CallbackMayRunLong(pci: *mut TP_CALLBACK_INSTANCE) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CallbackMayRunLong(pci: *mut TP_CALLBACK_INSTANCE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(CallbackMayRunLong(::core::mem::transmute(pci))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn CancelThreadpoolIo(pio: *mut TP_IO) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CancelThreadpoolIo(pio: *mut TP_IO); } ::core::mem::transmute(CancelThreadpoolIo(::core::mem::transmute(pio))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn CancelWaitableTimer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(htimer: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CancelWaitableTimer(htimer: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(CancelWaitableTimer(htimer.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ChangeTimerQueueTimer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(timerqueue: Param0, timer: Param1, duetime: u32, period: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ChangeTimerQueueTimer(timerqueue: super::super::Foundation::HANDLE, timer: super::super::Foundation::HANDLE, duetime: u32, period: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(ChangeTimerQueueTimer(timerqueue.into_param().abi(), timer.into_param().abi(), ::core::mem::transmute(duetime), ::core::mem::transmute(period))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ClosePrivateNamespace<'a, Param0: ::windows::core::IntoParam<'a, NamespaceHandle>>(handle: Param0, flags: u32) -> super::super::Foundation::BOOLEAN { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ClosePrivateNamespace(handle: NamespaceHandle, flags: u32) -> super::super::Foundation::BOOLEAN; } ::core::mem::transmute(ClosePrivateNamespace(handle.into_param().abi(), ::core::mem::transmute(flags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn CloseThreadpool<'a, Param0: ::windows::core::IntoParam<'a, PTP_POOL>>(ptpp: Param0) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CloseThreadpool(ptpp: PTP_POOL); } ::core::mem::transmute(CloseThreadpool(ptpp.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn CloseThreadpoolCleanupGroup(ptpcg: isize) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CloseThreadpoolCleanupGroup(ptpcg: isize); } ::core::mem::transmute(CloseThreadpoolCleanupGroup(::core::mem::transmute(ptpcg))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn CloseThreadpoolCleanupGroupMembers<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(ptpcg: isize, fcancelpendingcallbacks: Param1, pvcleanupcontext: *mut ::core::ffi::c_void) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CloseThreadpoolCleanupGroupMembers(ptpcg: isize, fcancelpendingcallbacks: super::super::Foundation::BOOL, pvcleanupcontext: *mut ::core::ffi::c_void); } ::core::mem::transmute(CloseThreadpoolCleanupGroupMembers(::core::mem::transmute(ptpcg), fcancelpendingcallbacks.into_param().abi(), ::core::mem::transmute(pvcleanupcontext))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn CloseThreadpoolIo(pio: *mut TP_IO) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CloseThreadpoolIo(pio: *mut TP_IO); } ::core::mem::transmute(CloseThreadpoolIo(::core::mem::transmute(pio))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn CloseThreadpoolTimer(pti: *mut TP_TIMER) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CloseThreadpoolTimer(pti: *mut TP_TIMER); } ::core::mem::transmute(CloseThreadpoolTimer(::core::mem::transmute(pti))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn CloseThreadpoolWait(pwa: *mut TP_WAIT) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CloseThreadpoolWait(pwa: *mut TP_WAIT); } ::core::mem::transmute(CloseThreadpoolWait(::core::mem::transmute(pwa))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn CloseThreadpoolWork(pwk: *mut TP_WORK) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CloseThreadpoolWork(pwk: *mut TP_WORK); } ::core::mem::transmute(CloseThreadpoolWork(::core::mem::transmute(pwk))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ConvertFiberToThread() -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ConvertFiberToThread() -> super::super::Foundation::BOOL; } ::core::mem::transmute(ConvertFiberToThread()) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn ConvertThreadToFiber(lpparameter: *const ::core::ffi::c_void) -> *mut ::core::ffi::c_void { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ConvertThreadToFiber(lpparameter: *const ::core::ffi::c_void) -> *mut ::core::ffi::c_void; } ::core::mem::transmute(ConvertThreadToFiber(::core::mem::transmute(lpparameter))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn ConvertThreadToFiberEx(lpparameter: *const ::core::ffi::c_void, dwflags: u32) -> *mut ::core::ffi::c_void { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ConvertThreadToFiberEx(lpparameter: *const ::core::ffi::c_void, dwflags: u32) -> *mut ::core::ffi::c_void; } ::core::mem::transmute(ConvertThreadToFiberEx(::core::mem::transmute(lpparameter), ::core::mem::transmute(dwflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn CreateBoundaryDescriptorA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(name: Param0, flags: u32) -> BoundaryDescriptorHandle { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateBoundaryDescriptorA(name: super::super::Foundation::PSTR, flags: u32) -> BoundaryDescriptorHandle; } ::core::mem::transmute(CreateBoundaryDescriptorA(name.into_param().abi(), ::core::mem::transmute(flags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn CreateBoundaryDescriptorW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(name: Param0, flags: u32) -> BoundaryDescriptorHandle { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateBoundaryDescriptorW(name: super::super::Foundation::PWSTR, flags: u32) -> BoundaryDescriptorHandle; } ::core::mem::transmute(CreateBoundaryDescriptorW(name.into_param().abi(), ::core::mem::transmute(flags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateEventA<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(lpeventattributes: *const super::super::Security::SECURITY_ATTRIBUTES, bmanualreset: Param1, binitialstate: Param2, lpname: Param3) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateEventA(lpeventattributes: *const super::super::Security::SECURITY_ATTRIBUTES, bmanualreset: super::super::Foundation::BOOL, binitialstate: super::super::Foundation::BOOL, lpname: super::super::Foundation::PSTR) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(CreateEventA(::core::mem::transmute(lpeventattributes), bmanualreset.into_param().abi(), binitialstate.into_param().abi(), lpname.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateEventExA<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(lpeventattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpname: Param1, dwflags: CREATE_EVENT, dwdesiredaccess: u32) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateEventExA(lpeventattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpname: super::super::Foundation::PSTR, dwflags: CREATE_EVENT, dwdesiredaccess: u32) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(CreateEventExA(::core::mem::transmute(lpeventattributes), lpname.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(dwdesiredaccess))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateEventExW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(lpeventattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpname: Param1, dwflags: CREATE_EVENT, dwdesiredaccess: u32) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateEventExW(lpeventattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpname: super::super::Foundation::PWSTR, dwflags: CREATE_EVENT, dwdesiredaccess: u32) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(CreateEventExW(::core::mem::transmute(lpeventattributes), lpname.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(dwdesiredaccess))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateEventW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(lpeventattributes: *const super::super::Security::SECURITY_ATTRIBUTES, bmanualreset: Param1, binitialstate: Param2, lpname: Param3) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateEventW(lpeventattributes: *const super::super::Security::SECURITY_ATTRIBUTES, bmanualreset: super::super::Foundation::BOOL, binitialstate: super::super::Foundation::BOOL, lpname: super::super::Foundation::PWSTR) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(CreateEventW(::core::mem::transmute(lpeventattributes), bmanualreset.into_param().abi(), binitialstate.into_param().abi(), lpname.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn CreateFiber(dwstacksize: usize, lpstartaddress: ::core::option::Option<LPFIBER_START_ROUTINE>, lpparameter: *const ::core::ffi::c_void) -> *mut ::core::ffi::c_void { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateFiber(dwstacksize: usize, lpstartaddress: ::windows::core::RawPtr, lpparameter: *const ::core::ffi::c_void) -> *mut ::core::ffi::c_void; } ::core::mem::transmute(CreateFiber(::core::mem::transmute(dwstacksize), ::core::mem::transmute(lpstartaddress), ::core::mem::transmute(lpparameter))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn CreateFiberEx(dwstackcommitsize: usize, dwstackreservesize: usize, dwflags: u32, lpstartaddress: ::core::option::Option<LPFIBER_START_ROUTINE>, lpparameter: *const ::core::ffi::c_void) -> *mut ::core::ffi::c_void { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateFiberEx(dwstackcommitsize: usize, dwstackreservesize: usize, dwflags: u32, lpstartaddress: ::windows::core::RawPtr, lpparameter: *const ::core::ffi::c_void) -> *mut ::core::ffi::c_void; } ::core::mem::transmute(CreateFiberEx(::core::mem::transmute(dwstackcommitsize), ::core::mem::transmute(dwstackreservesize), ::core::mem::transmute(dwflags), ::core::mem::transmute(lpstartaddress), ::core::mem::transmute(lpparameter))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateMutexA<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(lpmutexattributes: *const super::super::Security::SECURITY_ATTRIBUTES, binitialowner: Param1, lpname: Param2) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateMutexA(lpmutexattributes: *const super::super::Security::SECURITY_ATTRIBUTES, binitialowner: super::super::Foundation::BOOL, lpname: super::super::Foundation::PSTR) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(CreateMutexA(::core::mem::transmute(lpmutexattributes), binitialowner.into_param().abi(), lpname.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateMutexExA<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(lpmutexattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpname: Param1, dwflags: u32, dwdesiredaccess: u32) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateMutexExA(lpmutexattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpname: super::super::Foundation::PSTR, dwflags: u32, dwdesiredaccess: u32) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(CreateMutexExA(::core::mem::transmute(lpmutexattributes), lpname.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(dwdesiredaccess))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateMutexExW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(lpmutexattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpname: Param1, dwflags: u32, dwdesiredaccess: u32) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateMutexExW(lpmutexattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpname: super::super::Foundation::PWSTR, dwflags: u32, dwdesiredaccess: u32) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(CreateMutexExW(::core::mem::transmute(lpmutexattributes), lpname.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(dwdesiredaccess))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateMutexW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(lpmutexattributes: *const super::super::Security::SECURITY_ATTRIBUTES, binitialowner: Param1, lpname: Param2) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateMutexW(lpmutexattributes: *const super::super::Security::SECURITY_ATTRIBUTES, binitialowner: super::super::Foundation::BOOL, lpname: super::super::Foundation::PWSTR) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(CreateMutexW(::core::mem::transmute(lpmutexattributes), binitialowner.into_param().abi(), lpname.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreatePrivateNamespaceA<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(lpprivatenamespaceattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpboundarydescriptor: *const ::core::ffi::c_void, lpaliasprefix: Param2) -> NamespaceHandle { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreatePrivateNamespaceA(lpprivatenamespaceattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpboundarydescriptor: *const ::core::ffi::c_void, lpaliasprefix: super::super::Foundation::PSTR) -> NamespaceHandle; } ::core::mem::transmute(CreatePrivateNamespaceA(::core::mem::transmute(lpprivatenamespaceattributes), ::core::mem::transmute(lpboundarydescriptor), lpaliasprefix.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreatePrivateNamespaceW<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(lpprivatenamespaceattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpboundarydescriptor: *const ::core::ffi::c_void, lpaliasprefix: Param2) -> NamespaceHandle { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreatePrivateNamespaceW(lpprivatenamespaceattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpboundarydescriptor: *const ::core::ffi::c_void, lpaliasprefix: super::super::Foundation::PWSTR) -> NamespaceHandle; } ::core::mem::transmute(CreatePrivateNamespaceW(::core::mem::transmute(lpprivatenamespaceattributes), ::core::mem::transmute(lpboundarydescriptor), lpaliasprefix.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateProcessA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param7: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>( lpapplicationname: Param0, lpcommandline: Param1, lpprocessattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpthreadattributes: *const super::super::Security::SECURITY_ATTRIBUTES, binherithandles: Param4, dwcreationflags: PROCESS_CREATION_FLAGS, lpenvironment: *const ::core::ffi::c_void, lpcurrentdirectory: Param7, lpstartupinfo: *const STARTUPINFOA, lpprocessinformation: *mut PROCESS_INFORMATION, ) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateProcessA( lpapplicationname: super::super::Foundation::PSTR, lpcommandline: super::super::Foundation::PSTR, lpprocessattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpthreadattributes: *const super::super::Security::SECURITY_ATTRIBUTES, binherithandles: super::super::Foundation::BOOL, dwcreationflags: PROCESS_CREATION_FLAGS, lpenvironment: *const ::core::ffi::c_void, lpcurrentdirectory: super::super::Foundation::PSTR, lpstartupinfo: *const STARTUPINFOA, lpprocessinformation: *mut PROCESS_INFORMATION, ) -> super::super::Foundation::BOOL; } ::core::mem::transmute(CreateProcessA( lpapplicationname.into_param().abi(), lpcommandline.into_param().abi(), ::core::mem::transmute(lpprocessattributes), ::core::mem::transmute(lpthreadattributes), binherithandles.into_param().abi(), ::core::mem::transmute(dwcreationflags), ::core::mem::transmute(lpenvironment), lpcurrentdirectory.into_param().abi(), ::core::mem::transmute(lpstartupinfo), ::core::mem::transmute(lpprocessinformation), )) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateProcessAsUserA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param5: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param8: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>( htoken: Param0, lpapplicationname: Param1, lpcommandline: Param2, lpprocessattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpthreadattributes: *const super::super::Security::SECURITY_ATTRIBUTES, binherithandles: Param5, dwcreationflags: u32, lpenvironment: *const ::core::ffi::c_void, lpcurrentdirectory: Param8, lpstartupinfo: *const STARTUPINFOA, lpprocessinformation: *mut PROCESS_INFORMATION, ) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateProcessAsUserA( htoken: super::super::Foundation::HANDLE, lpapplicationname: super::super::Foundation::PSTR, lpcommandline: super::super::Foundation::PSTR, lpprocessattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpthreadattributes: *const super::super::Security::SECURITY_ATTRIBUTES, binherithandles: super::super::Foundation::BOOL, dwcreationflags: u32, lpenvironment: *const ::core::ffi::c_void, lpcurrentdirectory: super::super::Foundation::PSTR, lpstartupinfo: *const STARTUPINFOA, lpprocessinformation: *mut PROCESS_INFORMATION, ) -> super::super::Foundation::BOOL; } ::core::mem::transmute(CreateProcessAsUserA( htoken.into_param().abi(), lpapplicationname.into_param().abi(), lpcommandline.into_param().abi(), ::core::mem::transmute(lpprocessattributes), ::core::mem::transmute(lpthreadattributes), binherithandles.into_param().abi(), ::core::mem::transmute(dwcreationflags), ::core::mem::transmute(lpenvironment), lpcurrentdirectory.into_param().abi(), ::core::mem::transmute(lpstartupinfo), ::core::mem::transmute(lpprocessinformation), )) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateProcessAsUserW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param5: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param8: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>( htoken: Param0, lpapplicationname: Param1, lpcommandline: Param2, lpprocessattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpthreadattributes: *const super::super::Security::SECURITY_ATTRIBUTES, binherithandles: Param5, dwcreationflags: u32, lpenvironment: *const ::core::ffi::c_void, lpcurrentdirectory: Param8, lpstartupinfo: *const STARTUPINFOW, lpprocessinformation: *mut PROCESS_INFORMATION, ) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateProcessAsUserW( htoken: super::super::Foundation::HANDLE, lpapplicationname: super::super::Foundation::PWSTR, lpcommandline: super::super::Foundation::PWSTR, lpprocessattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpthreadattributes: *const super::super::Security::SECURITY_ATTRIBUTES, binherithandles: super::super::Foundation::BOOL, dwcreationflags: u32, lpenvironment: *const ::core::ffi::c_void, lpcurrentdirectory: super::super::Foundation::PWSTR, lpstartupinfo: *const STARTUPINFOW, lpprocessinformation: *mut PROCESS_INFORMATION, ) -> super::super::Foundation::BOOL; } ::core::mem::transmute(CreateProcessAsUserW( htoken.into_param().abi(), lpapplicationname.into_param().abi(), lpcommandline.into_param().abi(), ::core::mem::transmute(lpprocessattributes), ::core::mem::transmute(lpthreadattributes), binherithandles.into_param().abi(), ::core::mem::transmute(dwcreationflags), ::core::mem::transmute(lpenvironment), lpcurrentdirectory.into_param().abi(), ::core::mem::transmute(lpstartupinfo), ::core::mem::transmute(lpprocessinformation), )) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateProcessW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param7: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>( lpapplicationname: Param0, lpcommandline: Param1, lpprocessattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpthreadattributes: *const super::super::Security::SECURITY_ATTRIBUTES, binherithandles: Param4, dwcreationflags: PROCESS_CREATION_FLAGS, lpenvironment: *const ::core::ffi::c_void, lpcurrentdirectory: Param7, lpstartupinfo: *const STARTUPINFOW, lpprocessinformation: *mut PROCESS_INFORMATION, ) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateProcessW( lpapplicationname: super::super::Foundation::PWSTR, lpcommandline: super::super::Foundation::PWSTR, lpprocessattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lpthreadattributes: *const super::super::Security::SECURITY_ATTRIBUTES, binherithandles: super::super::Foundation::BOOL, dwcreationflags: PROCESS_CREATION_FLAGS, lpenvironment: *const ::core::ffi::c_void, lpcurrentdirectory: super::super::Foundation::PWSTR, lpstartupinfo: *const STARTUPINFOW, lpprocessinformation: *mut PROCESS_INFORMATION, ) -> super::super::Foundation::BOOL; } ::core::mem::transmute(CreateProcessW( lpapplicationname.into_param().abi(), lpcommandline.into_param().abi(), ::core::mem::transmute(lpprocessattributes), ::core::mem::transmute(lpthreadattributes), binherithandles.into_param().abi(), ::core::mem::transmute(dwcreationflags), ::core::mem::transmute(lpenvironment), lpcurrentdirectory.into_param().abi(), ::core::mem::transmute(lpstartupinfo), ::core::mem::transmute(lpprocessinformation), )) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn CreateProcessWithLogonW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param5: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param8: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>( lpusername: Param0, lpdomain: Param1, lppassword: Param2, dwlogonflags: CREATE_PROCESS_LOGON_FLAGS, lpapplicationname: Param4, lpcommandline: Param5, dwcreationflags: u32, lpenvironment: *const ::core::ffi::c_void, lpcurrentdirectory: Param8, lpstartupinfo: *const STARTUPINFOW, lpprocessinformation: *mut PROCESS_INFORMATION, ) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateProcessWithLogonW( lpusername: super::super::Foundation::PWSTR, lpdomain: super::super::Foundation::PWSTR, lppassword: super::super::Foundation::PWSTR, dwlogonflags: CREATE_PROCESS_LOGON_FLAGS, lpapplicationname: super::super::Foundation::PWSTR, lpcommandline: super::super::Foundation::PWSTR, dwcreationflags: u32, lpenvironment: *const ::core::ffi::c_void, lpcurrentdirectory: super::super::Foundation::PWSTR, lpstartupinfo: *const STARTUPINFOW, lpprocessinformation: *mut PROCESS_INFORMATION, ) -> super::super::Foundation::BOOL; } ::core::mem::transmute(CreateProcessWithLogonW( lpusername.into_param().abi(), lpdomain.into_param().abi(), lppassword.into_param().abi(), ::core::mem::transmute(dwlogonflags), lpapplicationname.into_param().abi(), lpcommandline.into_param().abi(), ::core::mem::transmute(dwcreationflags), ::core::mem::transmute(lpenvironment), lpcurrentdirectory.into_param().abi(), ::core::mem::transmute(lpstartupinfo), ::core::mem::transmute(lpprocessinformation), )) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn CreateProcessWithTokenW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param6: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>( htoken: Param0, dwlogonflags: CREATE_PROCESS_LOGON_FLAGS, lpapplicationname: Param2, lpcommandline: Param3, dwcreationflags: u32, lpenvironment: *const ::core::ffi::c_void, lpcurrentdirectory: Param6, lpstartupinfo: *const STARTUPINFOW, lpprocessinformation: *mut PROCESS_INFORMATION, ) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateProcessWithTokenW(htoken: super::super::Foundation::HANDLE, dwlogonflags: CREATE_PROCESS_LOGON_FLAGS, lpapplicationname: super::super::Foundation::PWSTR, lpcommandline: super::super::Foundation::PWSTR, dwcreationflags: u32, lpenvironment: *const ::core::ffi::c_void, lpcurrentdirectory: super::super::Foundation::PWSTR, lpstartupinfo: *const STARTUPINFOW, lpprocessinformation: *mut PROCESS_INFORMATION) -> super::super::Foundation::BOOL; } ::core::mem::transmute(CreateProcessWithTokenW( htoken.into_param().abi(), ::core::mem::transmute(dwlogonflags), lpapplicationname.into_param().abi(), lpcommandline.into_param().abi(), ::core::mem::transmute(dwcreationflags), ::core::mem::transmute(lpenvironment), lpcurrentdirectory.into_param().abi(), ::core::mem::transmute(lpstartupinfo), ::core::mem::transmute(lpprocessinformation), )) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateRemoteThread<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, lpthreadattributes: *const super::super::Security::SECURITY_ATTRIBUTES, dwstacksize: usize, lpstartaddress: ::core::option::Option<LPTHREAD_START_ROUTINE>, lpparameter: *const ::core::ffi::c_void, dwcreationflags: u32, lpthreadid: *mut u32) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateRemoteThread(hprocess: super::super::Foundation::HANDLE, lpthreadattributes: *const super::super::Security::SECURITY_ATTRIBUTES, dwstacksize: usize, lpstartaddress: ::windows::core::RawPtr, lpparameter: *const ::core::ffi::c_void, dwcreationflags: u32, lpthreadid: *mut u32) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(CreateRemoteThread(hprocess.into_param().abi(), ::core::mem::transmute(lpthreadattributes), ::core::mem::transmute(dwstacksize), ::core::mem::transmute(lpstartaddress), ::core::mem::transmute(lpparameter), ::core::mem::transmute(dwcreationflags), ::core::mem::transmute(lpthreadid))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateRemoteThreadEx<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param6: ::windows::core::IntoParam<'a, LPPROC_THREAD_ATTRIBUTE_LIST>>( hprocess: Param0, lpthreadattributes: *const super::super::Security::SECURITY_ATTRIBUTES, dwstacksize: usize, lpstartaddress: ::core::option::Option<LPTHREAD_START_ROUTINE>, lpparameter: *const ::core::ffi::c_void, dwcreationflags: u32, lpattributelist: Param6, lpthreadid: *mut u32, ) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateRemoteThreadEx(hprocess: super::super::Foundation::HANDLE, lpthreadattributes: *const super::super::Security::SECURITY_ATTRIBUTES, dwstacksize: usize, lpstartaddress: ::windows::core::RawPtr, lpparameter: *const ::core::ffi::c_void, dwcreationflags: u32, lpattributelist: LPPROC_THREAD_ATTRIBUTE_LIST, lpthreadid: *mut u32) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(CreateRemoteThreadEx( hprocess.into_param().abi(), ::core::mem::transmute(lpthreadattributes), ::core::mem::transmute(dwstacksize), ::core::mem::transmute(lpstartaddress), ::core::mem::transmute(lpparameter), ::core::mem::transmute(dwcreationflags), lpattributelist.into_param().abi(), ::core::mem::transmute(lpthreadid), )) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateSemaphoreA<'a, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(lpsemaphoreattributes: *const super::super::Security::SECURITY_ATTRIBUTES, linitialcount: i32, lmaximumcount: i32, lpname: Param3) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateSemaphoreA(lpsemaphoreattributes: *const super::super::Security::SECURITY_ATTRIBUTES, linitialcount: i32, lmaximumcount: i32, lpname: super::super::Foundation::PSTR) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(CreateSemaphoreA(::core::mem::transmute(lpsemaphoreattributes), ::core::mem::transmute(linitialcount), ::core::mem::transmute(lmaximumcount), lpname.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateSemaphoreExA<'a, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(lpsemaphoreattributes: *const super::super::Security::SECURITY_ATTRIBUTES, linitialcount: i32, lmaximumcount: i32, lpname: Param3, dwflags: u32, dwdesiredaccess: u32) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateSemaphoreExA(lpsemaphoreattributes: *const super::super::Security::SECURITY_ATTRIBUTES, linitialcount: i32, lmaximumcount: i32, lpname: super::super::Foundation::PSTR, dwflags: u32, dwdesiredaccess: u32) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(CreateSemaphoreExA(::core::mem::transmute(lpsemaphoreattributes), ::core::mem::transmute(linitialcount), ::core::mem::transmute(lmaximumcount), lpname.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(dwdesiredaccess))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateSemaphoreExW<'a, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(lpsemaphoreattributes: *const super::super::Security::SECURITY_ATTRIBUTES, linitialcount: i32, lmaximumcount: i32, lpname: Param3, dwflags: u32, dwdesiredaccess: u32) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateSemaphoreExW(lpsemaphoreattributes: *const super::super::Security::SECURITY_ATTRIBUTES, linitialcount: i32, lmaximumcount: i32, lpname: super::super::Foundation::PWSTR, dwflags: u32, dwdesiredaccess: u32) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(CreateSemaphoreExW(::core::mem::transmute(lpsemaphoreattributes), ::core::mem::transmute(linitialcount), ::core::mem::transmute(lmaximumcount), lpname.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(dwdesiredaccess))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateSemaphoreW<'a, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(lpsemaphoreattributes: *const super::super::Security::SECURITY_ATTRIBUTES, linitialcount: i32, lmaximumcount: i32, lpname: Param3) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateSemaphoreW(lpsemaphoreattributes: *const super::super::Security::SECURITY_ATTRIBUTES, linitialcount: i32, lmaximumcount: i32, lpname: super::super::Foundation::PWSTR) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(CreateSemaphoreW(::core::mem::transmute(lpsemaphoreattributes), ::core::mem::transmute(linitialcount), ::core::mem::transmute(lmaximumcount), lpname.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateThread(lpthreadattributes: *const super::super::Security::SECURITY_ATTRIBUTES, dwstacksize: usize, lpstartaddress: ::core::option::Option<LPTHREAD_START_ROUTINE>, lpparameter: *const ::core::ffi::c_void, dwcreationflags: THREAD_CREATION_FLAGS, lpthreadid: *mut u32) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateThread(lpthreadattributes: *const super::super::Security::SECURITY_ATTRIBUTES, dwstacksize: usize, lpstartaddress: ::windows::core::RawPtr, lpparameter: *const ::core::ffi::c_void, dwcreationflags: THREAD_CREATION_FLAGS, lpthreadid: *mut u32) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(CreateThread(::core::mem::transmute(lpthreadattributes), ::core::mem::transmute(dwstacksize), ::core::mem::transmute(lpstartaddress), ::core::mem::transmute(lpparameter), ::core::mem::transmute(dwcreationflags), ::core::mem::transmute(lpthreadid))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn CreateThreadpool(reserved: *mut ::core::ffi::c_void) -> PTP_POOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateThreadpool(reserved: *mut ::core::ffi::c_void) -> PTP_POOL; } ::core::mem::transmute(CreateThreadpool(::core::mem::transmute(reserved))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn CreateThreadpoolCleanupGroup() -> isize { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateThreadpoolCleanupGroup() -> isize; } ::core::mem::transmute(CreateThreadpoolCleanupGroup()) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn CreateThreadpoolIo<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(fl: Param0, pfnio: ::core::option::Option<PTP_WIN32_IO_CALLBACK>, pv: *mut ::core::ffi::c_void, pcbe: *const TP_CALLBACK_ENVIRON_V3) -> *mut TP_IO { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateThreadpoolIo(fl: super::super::Foundation::HANDLE, pfnio: ::windows::core::RawPtr, pv: *mut ::core::ffi::c_void, pcbe: *const ::core::mem::ManuallyDrop<TP_CALLBACK_ENVIRON_V3>) -> *mut TP_IO; } ::core::mem::transmute(CreateThreadpoolIo(fl.into_param().abi(), ::core::mem::transmute(pfnio), ::core::mem::transmute(pv), ::core::mem::transmute(pcbe))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn CreateThreadpoolTimer(pfnti: ::core::option::Option<PTP_TIMER_CALLBACK>, pv: *mut ::core::ffi::c_void, pcbe: *const TP_CALLBACK_ENVIRON_V3) -> *mut TP_TIMER { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateThreadpoolTimer(pfnti: ::windows::core::RawPtr, pv: *mut ::core::ffi::c_void, pcbe: *const ::core::mem::ManuallyDrop<TP_CALLBACK_ENVIRON_V3>) -> *mut TP_TIMER; } ::core::mem::transmute(CreateThreadpoolTimer(::core::mem::transmute(pfnti), ::core::mem::transmute(pv), ::core::mem::transmute(pcbe))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn CreateThreadpoolWait(pfnwa: ::core::option::Option<PTP_WAIT_CALLBACK>, pv: *mut ::core::ffi::c_void, pcbe: *const TP_CALLBACK_ENVIRON_V3) -> *mut TP_WAIT { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateThreadpoolWait(pfnwa: ::windows::core::RawPtr, pv: *mut ::core::ffi::c_void, pcbe: *const ::core::mem::ManuallyDrop<TP_CALLBACK_ENVIRON_V3>) -> *mut TP_WAIT; } ::core::mem::transmute(CreateThreadpoolWait(::core::mem::transmute(pfnwa), ::core::mem::transmute(pv), ::core::mem::transmute(pcbe))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn CreateThreadpoolWork(pfnwk: ::core::option::Option<PTP_WORK_CALLBACK>, pv: *mut ::core::ffi::c_void, pcbe: *const TP_CALLBACK_ENVIRON_V3) -> *mut TP_WORK { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateThreadpoolWork(pfnwk: ::windows::core::RawPtr, pv: *mut ::core::ffi::c_void, pcbe: *const ::core::mem::ManuallyDrop<TP_CALLBACK_ENVIRON_V3>) -> *mut TP_WORK; } ::core::mem::transmute(CreateThreadpoolWork(::core::mem::transmute(pfnwk), ::core::mem::transmute(pv), ::core::mem::transmute(pcbe))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn CreateTimerQueue() -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateTimerQueue() -> super::super::Foundation::HANDLE; } ::core::mem::transmute(CreateTimerQueue()) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn CreateTimerQueueTimer<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(phnewtimer: *mut super::super::Foundation::HANDLE, timerqueue: Param1, callback: ::core::option::Option<WAITORTIMERCALLBACK>, parameter: *const ::core::ffi::c_void, duetime: u32, period: u32, flags: WORKER_THREAD_FLAGS) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateTimerQueueTimer(phnewtimer: *mut super::super::Foundation::HANDLE, timerqueue: super::super::Foundation::HANDLE, callback: ::windows::core::RawPtr, parameter: *const ::core::ffi::c_void, duetime: u32, period: u32, flags: WORKER_THREAD_FLAGS) -> super::super::Foundation::BOOL; } ::core::mem::transmute(CreateTimerQueueTimer(::core::mem::transmute(phnewtimer), timerqueue.into_param().abi(), ::core::mem::transmute(callback), ::core::mem::transmute(parameter), ::core::mem::transmute(duetime), ::core::mem::transmute(period), ::core::mem::transmute(flags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn CreateUmsCompletionList(umscompletionlist: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateUmsCompletionList(umscompletionlist: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; } ::core::mem::transmute(CreateUmsCompletionList(::core::mem::transmute(umscompletionlist))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn CreateUmsThreadContext(lpumsthread: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateUmsThreadContext(lpumsthread: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; } ::core::mem::transmute(CreateUmsThreadContext(::core::mem::transmute(lpumsthread))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateWaitableTimerExW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(lptimerattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lptimername: Param1, dwflags: u32, dwdesiredaccess: u32) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateWaitableTimerExW(lptimerattributes: *const super::super::Security::SECURITY_ATTRIBUTES, lptimername: super::super::Foundation::PWSTR, dwflags: u32, dwdesiredaccess: u32) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(CreateWaitableTimerExW(::core::mem::transmute(lptimerattributes), lptimername.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(dwdesiredaccess))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn CreateWaitableTimerW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(lptimerattributes: *const super::super::Security::SECURITY_ATTRIBUTES, bmanualreset: Param1, lptimername: Param2) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateWaitableTimerW(lptimerattributes: *const super::super::Security::SECURITY_ATTRIBUTES, bmanualreset: super::super::Foundation::BOOL, lptimername: super::super::Foundation::PWSTR) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(CreateWaitableTimerW(::core::mem::transmute(lptimerattributes), bmanualreset.into_param().abi(), lptimername.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn DeleteBoundaryDescriptor<'a, Param0: ::windows::core::IntoParam<'a, BoundaryDescriptorHandle>>(boundarydescriptor: Param0) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DeleteBoundaryDescriptor(boundarydescriptor: BoundaryDescriptorHandle); } ::core::mem::transmute(DeleteBoundaryDescriptor(boundarydescriptor.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn DeleteCriticalSection(lpcriticalsection: *mut RTL_CRITICAL_SECTION) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DeleteCriticalSection(lpcriticalsection: *mut RTL_CRITICAL_SECTION); } ::core::mem::transmute(DeleteCriticalSection(::core::mem::transmute(lpcriticalsection))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn DeleteFiber(lpfiber: *const ::core::ffi::c_void) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DeleteFiber(lpfiber: *const ::core::ffi::c_void); } ::core::mem::transmute(DeleteFiber(::core::mem::transmute(lpfiber))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn DeleteProcThreadAttributeList<'a, Param0: ::windows::core::IntoParam<'a, LPPROC_THREAD_ATTRIBUTE_LIST>>(lpattributelist: Param0) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DeleteProcThreadAttributeList(lpattributelist: LPPROC_THREAD_ATTRIBUTE_LIST); } ::core::mem::transmute(DeleteProcThreadAttributeList(lpattributelist.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DeleteSynchronizationBarrier(lpbarrier: *mut RTL_BARRIER) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DeleteSynchronizationBarrier(lpbarrier: *mut RTL_BARRIER) -> super::super::Foundation::BOOL; } ::core::mem::transmute(DeleteSynchronizationBarrier(::core::mem::transmute(lpbarrier))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DeleteTimerQueue<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(timerqueue: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DeleteTimerQueue(timerqueue: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(DeleteTimerQueue(timerqueue.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DeleteTimerQueueEx<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(timerqueue: Param0, completionevent: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DeleteTimerQueueEx(timerqueue: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(DeleteTimerQueueEx(timerqueue.into_param().abi(), completionevent.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DeleteTimerQueueTimer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(timerqueue: Param0, timer: Param1, completionevent: Param2) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DeleteTimerQueueTimer(timerqueue: super::super::Foundation::HANDLE, timer: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(DeleteTimerQueueTimer(timerqueue.into_param().abi(), timer.into_param().abi(), completionevent.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DeleteUmsCompletionList(umscompletionlist: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DeleteUmsCompletionList(umscompletionlist: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; } ::core::mem::transmute(DeleteUmsCompletionList(::core::mem::transmute(umscompletionlist))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DeleteUmsThreadContext(umsthread: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DeleteUmsThreadContext(umsthread: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; } ::core::mem::transmute(DeleteUmsThreadContext(::core::mem::transmute(umsthread))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DequeueUmsCompletionListItems(umscompletionlist: *const ::core::ffi::c_void, waittimeout: u32, umsthreadlist: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DequeueUmsCompletionListItems(umscompletionlist: *const ::core::ffi::c_void, waittimeout: u32, umsthreadlist: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; } ::core::mem::transmute(DequeueUmsCompletionListItems(::core::mem::transmute(umscompletionlist), ::core::mem::transmute(waittimeout), ::core::mem::transmute(umsthreadlist))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn DisassociateCurrentThreadFromCallback(pci: *mut TP_CALLBACK_INSTANCE) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DisassociateCurrentThreadFromCallback(pci: *mut TP_CALLBACK_INSTANCE); } ::core::mem::transmute(DisassociateCurrentThreadFromCallback(::core::mem::transmute(pci))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn EnterCriticalSection(lpcriticalsection: *mut RTL_CRITICAL_SECTION) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn EnterCriticalSection(lpcriticalsection: *mut RTL_CRITICAL_SECTION); } ::core::mem::transmute(EnterCriticalSection(::core::mem::transmute(lpcriticalsection))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn EnterSynchronizationBarrier(lpbarrier: *mut RTL_BARRIER, dwflags: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn EnterSynchronizationBarrier(lpbarrier: *mut RTL_BARRIER, dwflags: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(EnterSynchronizationBarrier(::core::mem::transmute(lpbarrier), ::core::mem::transmute(dwflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemServices"))] #[inline] pub unsafe fn EnterUmsSchedulingMode(schedulerstartupinfo: *const UMS_SCHEDULER_STARTUP_INFO) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn EnterUmsSchedulingMode(schedulerstartupinfo: *const ::core::mem::ManuallyDrop<UMS_SCHEDULER_STARTUP_INFO>) -> super::super::Foundation::BOOL; } ::core::mem::transmute(EnterUmsSchedulingMode(::core::mem::transmute(schedulerstartupinfo))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ExecuteUmsThread(umsthread: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ExecuteUmsThread(umsthread: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; } ::core::mem::transmute(ExecuteUmsThread(::core::mem::transmute(umsthread))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn ExitProcess(uexitcode: u32) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ExitProcess(uexitcode: u32); } ::core::mem::transmute(ExitProcess(::core::mem::transmute(uexitcode))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn ExitThread(dwexitcode: u32) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ExitThread(dwexitcode: u32); } ::core::mem::transmute(ExitThread(::core::mem::transmute(dwexitcode))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn FlsAlloc(lpcallback: ::core::option::Option<PFLS_CALLBACK_FUNCTION>) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn FlsAlloc(lpcallback: ::windows::core::RawPtr) -> u32; } ::core::mem::transmute(FlsAlloc(::core::mem::transmute(lpcallback))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn FlsFree(dwflsindex: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn FlsFree(dwflsindex: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(FlsFree(::core::mem::transmute(dwflsindex))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn FlsGetValue(dwflsindex: u32) -> *mut ::core::ffi::c_void { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn FlsGetValue(dwflsindex: u32) -> *mut ::core::ffi::c_void; } ::core::mem::transmute(FlsGetValue(::core::mem::transmute(dwflsindex))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn FlsSetValue(dwflsindex: u32, lpflsdata: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn FlsSetValue(dwflsindex: u32, lpflsdata: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; } ::core::mem::transmute(FlsSetValue(::core::mem::transmute(dwflsindex), ::core::mem::transmute(lpflsdata))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn FlushProcessWriteBuffers() { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn FlushProcessWriteBuffers(); } ::core::mem::transmute(FlushProcessWriteBuffers()) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn FreeLibraryWhenCallbackReturns<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HINSTANCE>>(pci: *mut TP_CALLBACK_INSTANCE, r#mod: Param1) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn FreeLibraryWhenCallbackReturns(pci: *mut TP_CALLBACK_INSTANCE, r#mod: super::super::Foundation::HINSTANCE); } ::core::mem::transmute(FreeLibraryWhenCallbackReturns(::core::mem::transmute(pci), r#mod.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct GET_GUI_RESOURCES_FLAGS(pub u32); pub const GR_GDIOBJECTS: GET_GUI_RESOURCES_FLAGS = GET_GUI_RESOURCES_FLAGS(0u32); pub const GR_GDIOBJECTS_PEAK: GET_GUI_RESOURCES_FLAGS = GET_GUI_RESOURCES_FLAGS(2u32); pub const GR_USEROBJECTS: GET_GUI_RESOURCES_FLAGS = GET_GUI_RESOURCES_FLAGS(1u32); pub const GR_USEROBJECTS_PEAK: GET_GUI_RESOURCES_FLAGS = GET_GUI_RESOURCES_FLAGS(4u32); impl ::core::convert::From<u32> for GET_GUI_RESOURCES_FLAGS { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for GET_GUI_RESOURCES_FLAGS { type Abi = Self; } impl ::core::ops::BitOr for GET_GUI_RESOURCES_FLAGS { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for GET_GUI_RESOURCES_FLAGS { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for GET_GUI_RESOURCES_FLAGS { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for GET_GUI_RESOURCES_FLAGS { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for GET_GUI_RESOURCES_FLAGS { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[inline] pub unsafe fn GetActiveProcessorCount(groupnumber: u16) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetActiveProcessorCount(groupnumber: u16) -> u32; } ::core::mem::transmute(GetActiveProcessorCount(::core::mem::transmute(groupnumber))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn GetActiveProcessorGroupCount() -> u16 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetActiveProcessorGroupCount() -> u16; } ::core::mem::transmute(GetActiveProcessorGroupCount()) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetCurrentProcess() -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetCurrentProcess() -> super::super::Foundation::HANDLE; } ::core::mem::transmute(GetCurrentProcess()) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn GetCurrentProcessId() -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetCurrentProcessId() -> u32; } ::core::mem::transmute(GetCurrentProcessId()) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn GetCurrentProcessorNumber() -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetCurrentProcessorNumber() -> u32; } ::core::mem::transmute(GetCurrentProcessorNumber()) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn GetCurrentProcessorNumberEx(procnumber: *mut super::Kernel::PROCESSOR_NUMBER) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetCurrentProcessorNumberEx(procnumber: *mut super::Kernel::PROCESSOR_NUMBER); } ::core::mem::transmute(GetCurrentProcessorNumberEx(::core::mem::transmute(procnumber))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetCurrentThread() -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetCurrentThread() -> super::super::Foundation::HANDLE; } ::core::mem::transmute(GetCurrentThread()) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn GetCurrentThreadId() -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetCurrentThreadId() -> u32; } ::core::mem::transmute(GetCurrentThreadId()) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn GetCurrentThreadStackLimits(lowlimit: *mut usize, highlimit: *mut usize) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetCurrentThreadStackLimits(lowlimit: *mut usize, highlimit: *mut usize); } ::core::mem::transmute(GetCurrentThreadStackLimits(::core::mem::transmute(lowlimit), ::core::mem::transmute(highlimit))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn GetCurrentUmsThread() -> *mut ::core::ffi::c_void { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetCurrentUmsThread() -> *mut ::core::ffi::c_void; } ::core::mem::transmute(GetCurrentUmsThread()) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetExitCodeProcess<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, lpexitcode: *mut u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetExitCodeProcess(hprocess: super::super::Foundation::HANDLE, lpexitcode: *mut u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetExitCodeProcess(hprocess.into_param().abi(), ::core::mem::transmute(lpexitcode))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetExitCodeThread<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hthread: Param0, lpexitcode: *mut u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetExitCodeThread(hthread: super::super::Foundation::HANDLE, lpexitcode: *mut u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetExitCodeThread(hthread.into_param().abi(), ::core::mem::transmute(lpexitcode))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetGuiResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, uiflags: GET_GUI_RESOURCES_FLAGS) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetGuiResources(hprocess: super::super::Foundation::HANDLE, uiflags: GET_GUI_RESOURCES_FLAGS) -> u32; } ::core::mem::transmute(GetGuiResources(hprocess.into_param().abi(), ::core::mem::transmute(uiflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn GetMachineTypeAttributes(machine: u16) -> ::windows::core::Result<MACHINE_ATTRIBUTES> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetMachineTypeAttributes(machine: u16, machinetypeattributes: *mut MACHINE_ATTRIBUTES) -> ::windows::core::HRESULT; } let mut result__: <MACHINE_ATTRIBUTES as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); GetMachineTypeAttributes(::core::mem::transmute(machine), &mut result__).from_abi::<MACHINE_ATTRIBUTES>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn GetMaximumProcessorCount(groupnumber: u16) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetMaximumProcessorCount(groupnumber: u16) -> u32; } ::core::mem::transmute(GetMaximumProcessorCount(::core::mem::transmute(groupnumber))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn GetMaximumProcessorGroupCount() -> u16 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetMaximumProcessorGroupCount() -> u16; } ::core::mem::transmute(GetMaximumProcessorGroupCount()) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn GetNextUmsListItem(umscontext: *mut ::core::ffi::c_void) -> *mut ::core::ffi::c_void { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetNextUmsListItem(umscontext: *mut ::core::ffi::c_void) -> *mut ::core::ffi::c_void; } ::core::mem::transmute(GetNextUmsListItem(::core::mem::transmute(umscontext))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetNumaAvailableMemoryNode(node: u8, availablebytes: *mut u64) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetNumaAvailableMemoryNode(node: u8, availablebytes: *mut u64) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetNumaAvailableMemoryNode(::core::mem::transmute(node), ::core::mem::transmute(availablebytes))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetNumaAvailableMemoryNodeEx(node: u16, availablebytes: *mut u64) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetNumaAvailableMemoryNodeEx(node: u16, availablebytes: *mut u64) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetNumaAvailableMemoryNodeEx(::core::mem::transmute(node), ::core::mem::transmute(availablebytes))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetNumaHighestNodeNumber(highestnodenumber: *mut u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetNumaHighestNodeNumber(highestnodenumber: *mut u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetNumaHighestNodeNumber(::core::mem::transmute(highestnodenumber))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetNumaNodeNumberFromHandle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hfile: Param0, nodenumber: *mut u16) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetNumaNodeNumberFromHandle(hfile: super::super::Foundation::HANDLE, nodenumber: *mut u16) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetNumaNodeNumberFromHandle(hfile.into_param().abi(), ::core::mem::transmute(nodenumber))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetNumaNodeProcessorMask(node: u8, processormask: *mut u64) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetNumaNodeProcessorMask(node: u8, processormask: *mut u64) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetNumaNodeProcessorMask(::core::mem::transmute(node), ::core::mem::transmute(processormask))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn GetNumaNodeProcessorMask2(nodenumber: u16, processormasks: *mut super::SystemInformation::GROUP_AFFINITY, processormaskcount: u16, requiredmaskcount: *mut u16) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetNumaNodeProcessorMask2(nodenumber: u16, processormasks: *mut super::SystemInformation::GROUP_AFFINITY, processormaskcount: u16, requiredmaskcount: *mut u16) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetNumaNodeProcessorMask2(::core::mem::transmute(nodenumber), ::core::mem::transmute(processormasks), ::core::mem::transmute(processormaskcount), ::core::mem::transmute(requiredmaskcount))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn GetNumaNodeProcessorMaskEx(node: u16, processormask: *mut super::SystemInformation::GROUP_AFFINITY) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetNumaNodeProcessorMaskEx(node: u16, processormask: *mut super::SystemInformation::GROUP_AFFINITY) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetNumaNodeProcessorMaskEx(::core::mem::transmute(node), ::core::mem::transmute(processormask))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetNumaProcessorNode(processor: u8, nodenumber: *mut u8) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetNumaProcessorNode(processor: u8, nodenumber: *mut u8) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetNumaProcessorNode(::core::mem::transmute(processor), ::core::mem::transmute(nodenumber))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn GetNumaProcessorNodeEx(processor: *const super::Kernel::PROCESSOR_NUMBER, nodenumber: *mut u16) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetNumaProcessorNodeEx(processor: *const super::Kernel::PROCESSOR_NUMBER, nodenumber: *mut u16) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetNumaProcessorNodeEx(::core::mem::transmute(processor), ::core::mem::transmute(nodenumber))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetNumaProximityNode(proximityid: u32, nodenumber: *mut u8) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetNumaProximityNode(proximityid: u32, nodenumber: *mut u8) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetNumaProximityNode(::core::mem::transmute(proximityid), ::core::mem::transmute(nodenumber))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetNumaProximityNodeEx(proximityid: u32, nodenumber: *mut u16) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetNumaProximityNodeEx(proximityid: u32, nodenumber: *mut u16) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetNumaProximityNodeEx(::core::mem::transmute(proximityid), ::core::mem::transmute(nodenumber))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetPriorityClass<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetPriorityClass(hprocess: super::super::Foundation::HANDLE) -> u32; } ::core::mem::transmute(GetPriorityClass(hprocess.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetProcessAffinityMask<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, lpprocessaffinitymask: *mut usize, lpsystemaffinitymask: *mut usize) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetProcessAffinityMask(hprocess: super::super::Foundation::HANDLE, lpprocessaffinitymask: *mut usize, lpsystemaffinitymask: *mut usize) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetProcessAffinityMask(hprocess.into_param().abi(), ::core::mem::transmute(lpprocessaffinitymask), ::core::mem::transmute(lpsystemaffinitymask))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetProcessDEPPolicy<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, lpflags: *mut u32, lppermanent: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetProcessDEPPolicy(hprocess: super::super::Foundation::HANDLE, lpflags: *mut u32, lppermanent: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetProcessDEPPolicy(hprocess.into_param().abi(), ::core::mem::transmute(lpflags), ::core::mem::transmute(lppermanent))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn GetProcessDefaultCpuSetMasks<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(process: Param0, cpusetmasks: *mut super::SystemInformation::GROUP_AFFINITY, cpusetmaskcount: u16, requiredmaskcount: *mut u16) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetProcessDefaultCpuSetMasks(process: super::super::Foundation::HANDLE, cpusetmasks: *mut super::SystemInformation::GROUP_AFFINITY, cpusetmaskcount: u16, requiredmaskcount: *mut u16) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetProcessDefaultCpuSetMasks(process.into_param().abi(), ::core::mem::transmute(cpusetmasks), ::core::mem::transmute(cpusetmaskcount), ::core::mem::transmute(requiredmaskcount))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetProcessDefaultCpuSets<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(process: Param0, cpusetids: *mut u32, cpusetidcount: u32, requiredidcount: *mut u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetProcessDefaultCpuSets(process: super::super::Foundation::HANDLE, cpusetids: *mut u32, cpusetidcount: u32, requiredidcount: *mut u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetProcessDefaultCpuSets(process.into_param().abi(), ::core::mem::transmute(cpusetids), ::core::mem::transmute(cpusetidcount), ::core::mem::transmute(requiredidcount))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetProcessGroupAffinity<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, groupcount: *mut u16, grouparray: *mut u16) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetProcessGroupAffinity(hprocess: super::super::Foundation::HANDLE, groupcount: *mut u16, grouparray: *mut u16) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetProcessGroupAffinity(hprocess.into_param().abi(), ::core::mem::transmute(groupcount), ::core::mem::transmute(grouparray))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetProcessHandleCount<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, pdwhandlecount: *mut u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetProcessHandleCount(hprocess: super::super::Foundation::HANDLE, pdwhandlecount: *mut u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetProcessHandleCount(hprocess.into_param().abi(), ::core::mem::transmute(pdwhandlecount))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetProcessId<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(process: Param0) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetProcessId(process: super::super::Foundation::HANDLE) -> u32; } ::core::mem::transmute(GetProcessId(process.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetProcessIdOfThread<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(thread: Param0) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetProcessIdOfThread(thread: super::super::Foundation::HANDLE) -> u32; } ::core::mem::transmute(GetProcessIdOfThread(thread.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetProcessInformation<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, processinformationclass: PROCESS_INFORMATION_CLASS, processinformation: *mut ::core::ffi::c_void, processinformationsize: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetProcessInformation(hprocess: super::super::Foundation::HANDLE, processinformationclass: PROCESS_INFORMATION_CLASS, processinformation: *mut ::core::ffi::c_void, processinformationsize: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetProcessInformation(hprocess.into_param().abi(), ::core::mem::transmute(processinformationclass), ::core::mem::transmute(processinformation), ::core::mem::transmute(processinformationsize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetProcessIoCounters<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, lpiocounters: *mut IO_COUNTERS) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetProcessIoCounters(hprocess: super::super::Foundation::HANDLE, lpiocounters: *mut IO_COUNTERS) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetProcessIoCounters(hprocess.into_param().abi(), ::core::mem::transmute(lpiocounters))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetProcessMitigationPolicy<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, mitigationpolicy: PROCESS_MITIGATION_POLICY, lpbuffer: *mut ::core::ffi::c_void, dwlength: usize) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetProcessMitigationPolicy(hprocess: super::super::Foundation::HANDLE, mitigationpolicy: PROCESS_MITIGATION_POLICY, lpbuffer: *mut ::core::ffi::c_void, dwlength: usize) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetProcessMitigationPolicy(hprocess.into_param().abi(), ::core::mem::transmute(mitigationpolicy), ::core::mem::transmute(lpbuffer), ::core::mem::transmute(dwlength))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetProcessPriorityBoost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, pdisablepriorityboost: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetProcessPriorityBoost(hprocess: super::super::Foundation::HANDLE, pdisablepriorityboost: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetProcessPriorityBoost(hprocess.into_param().abi(), ::core::mem::transmute(pdisablepriorityboost))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetProcessShutdownParameters(lpdwlevel: *mut u32, lpdwflags: *mut u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetProcessShutdownParameters(lpdwlevel: *mut u32, lpdwflags: *mut u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetProcessShutdownParameters(::core::mem::transmute(lpdwlevel), ::core::mem::transmute(lpdwflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetProcessTimes<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, lpcreationtime: *mut super::super::Foundation::FILETIME, lpexittime: *mut super::super::Foundation::FILETIME, lpkerneltime: *mut super::super::Foundation::FILETIME, lpusertime: *mut super::super::Foundation::FILETIME) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetProcessTimes(hprocess: super::super::Foundation::HANDLE, lpcreationtime: *mut super::super::Foundation::FILETIME, lpexittime: *mut super::super::Foundation::FILETIME, lpkerneltime: *mut super::super::Foundation::FILETIME, lpusertime: *mut super::super::Foundation::FILETIME) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetProcessTimes(hprocess.into_param().abi(), ::core::mem::transmute(lpcreationtime), ::core::mem::transmute(lpexittime), ::core::mem::transmute(lpkerneltime), ::core::mem::transmute(lpusertime))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn GetProcessVersion(processid: u32) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetProcessVersion(processid: u32) -> u32; } ::core::mem::transmute(GetProcessVersion(::core::mem::transmute(processid))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetProcessWorkingSetSize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, lpminimumworkingsetsize: *mut usize, lpmaximumworkingsetsize: *mut usize) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetProcessWorkingSetSize(hprocess: super::super::Foundation::HANDLE, lpminimumworkingsetsize: *mut usize, lpmaximumworkingsetsize: *mut usize) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetProcessWorkingSetSize(hprocess.into_param().abi(), ::core::mem::transmute(lpminimumworkingsetsize), ::core::mem::transmute(lpmaximumworkingsetsize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetStartupInfoA(lpstartupinfo: *mut STARTUPINFOA) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetStartupInfoA(lpstartupinfo: *mut STARTUPINFOA); } ::core::mem::transmute(GetStartupInfoA(::core::mem::transmute(lpstartupinfo))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetStartupInfoW(lpstartupinfo: *mut STARTUPINFOW) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetStartupInfoW(lpstartupinfo: *mut STARTUPINFOW); } ::core::mem::transmute(GetStartupInfoW(::core::mem::transmute(lpstartupinfo))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetSystemTimes(lpidletime: *mut super::super::Foundation::FILETIME, lpkerneltime: *mut super::super::Foundation::FILETIME, lpusertime: *mut super::super::Foundation::FILETIME) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetSystemTimes(lpidletime: *mut super::super::Foundation::FILETIME, lpkerneltime: *mut super::super::Foundation::FILETIME, lpusertime: *mut super::super::Foundation::FILETIME) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetSystemTimes(::core::mem::transmute(lpidletime), ::core::mem::transmute(lpkerneltime), ::core::mem::transmute(lpusertime))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetThreadDescription<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hthread: Param0) -> ::windows::core::Result<super::super::Foundation::PWSTR> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetThreadDescription(hthread: super::super::Foundation::HANDLE, ppszthreaddescription: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); GetThreadDescription(hthread.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn GetThreadGroupAffinity<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hthread: Param0, groupaffinity: *mut super::SystemInformation::GROUP_AFFINITY) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetThreadGroupAffinity(hthread: super::super::Foundation::HANDLE, groupaffinity: *mut super::SystemInformation::GROUP_AFFINITY) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetThreadGroupAffinity(hthread.into_param().abi(), ::core::mem::transmute(groupaffinity))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetThreadIOPendingFlag<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hthread: Param0, lpioispending: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetThreadIOPendingFlag(hthread: super::super::Foundation::HANDLE, lpioispending: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetThreadIOPendingFlag(hthread.into_param().abi(), ::core::mem::transmute(lpioispending))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetThreadId<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(thread: Param0) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetThreadId(thread: super::super::Foundation::HANDLE) -> u32; } ::core::mem::transmute(GetThreadId(thread.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn GetThreadIdealProcessorEx<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hthread: Param0, lpidealprocessor: *mut super::Kernel::PROCESSOR_NUMBER) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetThreadIdealProcessorEx(hthread: super::super::Foundation::HANDLE, lpidealprocessor: *mut super::Kernel::PROCESSOR_NUMBER) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetThreadIdealProcessorEx(hthread.into_param().abi(), ::core::mem::transmute(lpidealprocessor))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetThreadInformation<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hthread: Param0, threadinformationclass: THREAD_INFORMATION_CLASS, threadinformation: *mut ::core::ffi::c_void, threadinformationsize: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetThreadInformation(hthread: super::super::Foundation::HANDLE, threadinformationclass: THREAD_INFORMATION_CLASS, threadinformation: *mut ::core::ffi::c_void, threadinformationsize: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetThreadInformation(hthread.into_param().abi(), ::core::mem::transmute(threadinformationclass), ::core::mem::transmute(threadinformation), ::core::mem::transmute(threadinformationsize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetThreadPriority<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hthread: Param0) -> i32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetThreadPriority(hthread: super::super::Foundation::HANDLE) -> i32; } ::core::mem::transmute(GetThreadPriority(hthread.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetThreadPriorityBoost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hthread: Param0, pdisablepriorityboost: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetThreadPriorityBoost(hthread: super::super::Foundation::HANDLE, pdisablepriorityboost: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetThreadPriorityBoost(hthread.into_param().abi(), ::core::mem::transmute(pdisablepriorityboost))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn GetThreadSelectedCpuSetMasks<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(thread: Param0, cpusetmasks: *mut super::SystemInformation::GROUP_AFFINITY, cpusetmaskcount: u16, requiredmaskcount: *mut u16) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetThreadSelectedCpuSetMasks(thread: super::super::Foundation::HANDLE, cpusetmasks: *mut super::SystemInformation::GROUP_AFFINITY, cpusetmaskcount: u16, requiredmaskcount: *mut u16) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetThreadSelectedCpuSetMasks(thread.into_param().abi(), ::core::mem::transmute(cpusetmasks), ::core::mem::transmute(cpusetmaskcount), ::core::mem::transmute(requiredmaskcount))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetThreadSelectedCpuSets<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(thread: Param0, cpusetids: *mut u32, cpusetidcount: u32, requiredidcount: *mut u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetThreadSelectedCpuSets(thread: super::super::Foundation::HANDLE, cpusetids: *mut u32, cpusetidcount: u32, requiredidcount: *mut u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetThreadSelectedCpuSets(thread.into_param().abi(), ::core::mem::transmute(cpusetids), ::core::mem::transmute(cpusetidcount), ::core::mem::transmute(requiredidcount))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetThreadTimes<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hthread: Param0, lpcreationtime: *mut super::super::Foundation::FILETIME, lpexittime: *mut super::super::Foundation::FILETIME, lpkerneltime: *mut super::super::Foundation::FILETIME, lpusertime: *mut super::super::Foundation::FILETIME) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetThreadTimes(hthread: super::super::Foundation::HANDLE, lpcreationtime: *mut super::super::Foundation::FILETIME, lpexittime: *mut super::super::Foundation::FILETIME, lpkerneltime: *mut super::super::Foundation::FILETIME, lpusertime: *mut super::super::Foundation::FILETIME) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetThreadTimes(hthread.into_param().abi(), ::core::mem::transmute(lpcreationtime), ::core::mem::transmute(lpexittime), ::core::mem::transmute(lpkerneltime), ::core::mem::transmute(lpusertime))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetUmsCompletionListEvent(umscompletionlist: *const ::core::ffi::c_void, umscompletionevent: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetUmsCompletionListEvent(umscompletionlist: *const ::core::ffi::c_void, umscompletionevent: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetUmsCompletionListEvent(::core::mem::transmute(umscompletionlist), ::core::mem::transmute(umscompletionevent))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetUmsSystemThreadInformation<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(threadhandle: Param0, systemthreadinfo: *mut UMS_SYSTEM_THREAD_INFORMATION) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetUmsSystemThreadInformation(threadhandle: super::super::Foundation::HANDLE, systemthreadinfo: *mut UMS_SYSTEM_THREAD_INFORMATION) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetUmsSystemThreadInformation(threadhandle.into_param().abi(), ::core::mem::transmute(systemthreadinfo))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const INIT_ONCE_ASYNC: u32 = 2u32; pub const INIT_ONCE_CHECK_ONLY: u32 = 1u32; pub const INIT_ONCE_CTX_RESERVED_BITS: u32 = 2u32; pub const INIT_ONCE_INIT_FAILED: u32 = 4u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct IO_COUNTERS { pub ReadOperationCount: u64, pub WriteOperationCount: u64, pub OtherOperationCount: u64, pub ReadTransferCount: u64, pub WriteTransferCount: u64, pub OtherTransferCount: u64, } impl IO_COUNTERS {} impl ::core::default::Default for IO_COUNTERS { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for IO_COUNTERS { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("IO_COUNTERS") .field("ReadOperationCount", &self.ReadOperationCount) .field("WriteOperationCount", &self.WriteOperationCount) .field("OtherOperationCount", &self.OtherOperationCount) .field("ReadTransferCount", &self.ReadTransferCount) .field("WriteTransferCount", &self.WriteTransferCount) .field("OtherTransferCount", &self.OtherTransferCount) .finish() } } impl ::core::cmp::PartialEq for IO_COUNTERS { fn eq(&self, other: &Self) -> bool { self.ReadOperationCount == other.ReadOperationCount && self.WriteOperationCount == other.WriteOperationCount && self.OtherOperationCount == other.OtherOperationCount && self.ReadTransferCount == other.ReadTransferCount && self.WriteTransferCount == other.WriteTransferCount && self.OtherTransferCount == other.OtherTransferCount } } impl ::core::cmp::Eq for IO_COUNTERS {} unsafe impl ::windows::core::Abi for IO_COUNTERS { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn InitOnceBeginInitialize(lpinitonce: *mut RTL_RUN_ONCE, dwflags: u32, fpending: *mut super::super::Foundation::BOOL, lpcontext: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn InitOnceBeginInitialize(lpinitonce: *mut RTL_RUN_ONCE, dwflags: u32, fpending: *mut super::super::Foundation::BOOL, lpcontext: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; } ::core::mem::transmute(InitOnceBeginInitialize(::core::mem::transmute(lpinitonce), ::core::mem::transmute(dwflags), ::core::mem::transmute(fpending), ::core::mem::transmute(lpcontext))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn InitOnceComplete(lpinitonce: *mut RTL_RUN_ONCE, dwflags: u32, lpcontext: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn InitOnceComplete(lpinitonce: *mut RTL_RUN_ONCE, dwflags: u32, lpcontext: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; } ::core::mem::transmute(InitOnceComplete(::core::mem::transmute(lpinitonce), ::core::mem::transmute(dwflags), ::core::mem::transmute(lpcontext))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn InitOnceExecuteOnce(initonce: *mut RTL_RUN_ONCE, initfn: ::core::option::Option<PINIT_ONCE_FN>, parameter: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn InitOnceExecuteOnce(initonce: *mut RTL_RUN_ONCE, initfn: ::windows::core::RawPtr, parameter: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; } ::core::mem::transmute(InitOnceExecuteOnce(::core::mem::transmute(initonce), ::core::mem::transmute(initfn), ::core::mem::transmute(parameter), ::core::mem::transmute(context))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn InitOnceInitialize(initonce: *mut RTL_RUN_ONCE) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn InitOnceInitialize(initonce: *mut RTL_RUN_ONCE); } ::core::mem::transmute(InitOnceInitialize(::core::mem::transmute(initonce))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn InitializeConditionVariable(conditionvariable: *mut RTL_CONDITION_VARIABLE) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn InitializeConditionVariable(conditionvariable: *mut RTL_CONDITION_VARIABLE); } ::core::mem::transmute(InitializeConditionVariable(::core::mem::transmute(conditionvariable))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn InitializeCriticalSection(lpcriticalsection: *mut RTL_CRITICAL_SECTION) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn InitializeCriticalSection(lpcriticalsection: *mut RTL_CRITICAL_SECTION); } ::core::mem::transmute(InitializeCriticalSection(::core::mem::transmute(lpcriticalsection))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn InitializeCriticalSectionAndSpinCount(lpcriticalsection: *mut RTL_CRITICAL_SECTION, dwspincount: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn InitializeCriticalSectionAndSpinCount(lpcriticalsection: *mut RTL_CRITICAL_SECTION, dwspincount: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(InitializeCriticalSectionAndSpinCount(::core::mem::transmute(lpcriticalsection), ::core::mem::transmute(dwspincount))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn InitializeCriticalSectionEx(lpcriticalsection: *mut RTL_CRITICAL_SECTION, dwspincount: u32, flags: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn InitializeCriticalSectionEx(lpcriticalsection: *mut RTL_CRITICAL_SECTION, dwspincount: u32, flags: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(InitializeCriticalSectionEx(::core::mem::transmute(lpcriticalsection), ::core::mem::transmute(dwspincount), ::core::mem::transmute(flags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn InitializeProcThreadAttributeList(lpattributelist: LPPROC_THREAD_ATTRIBUTE_LIST, dwattributecount: u32, dwflags: u32, lpsize: *mut usize) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn InitializeProcThreadAttributeList(lpattributelist: LPPROC_THREAD_ATTRIBUTE_LIST, dwattributecount: u32, dwflags: u32, lpsize: *mut usize) -> super::super::Foundation::BOOL; } ::core::mem::transmute(InitializeProcThreadAttributeList(::core::mem::transmute(lpattributelist), ::core::mem::transmute(dwattributecount), ::core::mem::transmute(dwflags), ::core::mem::transmute(lpsize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn InitializeSListHead(listhead: *mut super::Kernel::SLIST_HEADER) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn InitializeSListHead(listhead: *mut super::Kernel::SLIST_HEADER); } ::core::mem::transmute(InitializeSListHead(::core::mem::transmute(listhead))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn InitializeSRWLock(srwlock: *mut RTL_SRWLOCK) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn InitializeSRWLock(srwlock: *mut RTL_SRWLOCK); } ::core::mem::transmute(InitializeSRWLock(::core::mem::transmute(srwlock))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn InitializeSynchronizationBarrier(lpbarrier: *mut RTL_BARRIER, ltotalthreads: i32, lspincount: i32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn InitializeSynchronizationBarrier(lpbarrier: *mut RTL_BARRIER, ltotalthreads: i32, lspincount: i32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(InitializeSynchronizationBarrier(::core::mem::transmute(lpbarrier), ::core::mem::transmute(ltotalthreads), ::core::mem::transmute(lspincount))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn InterlockedFlushSList(listhead: *mut super::Kernel::SLIST_HEADER) -> *mut super::Kernel::SLIST_ENTRY { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn InterlockedFlushSList(listhead: *mut super::Kernel::SLIST_HEADER) -> *mut super::Kernel::SLIST_ENTRY; } ::core::mem::transmute(InterlockedFlushSList(::core::mem::transmute(listhead))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn InterlockedPopEntrySList(listhead: *mut super::Kernel::SLIST_HEADER) -> *mut super::Kernel::SLIST_ENTRY { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn InterlockedPopEntrySList(listhead: *mut super::Kernel::SLIST_HEADER) -> *mut super::Kernel::SLIST_ENTRY; } ::core::mem::transmute(InterlockedPopEntrySList(::core::mem::transmute(listhead))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn InterlockedPushEntrySList(listhead: *mut super::Kernel::SLIST_HEADER, listentry: *mut super::Kernel::SLIST_ENTRY) -> *mut super::Kernel::SLIST_ENTRY { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn InterlockedPushEntrySList(listhead: *mut super::Kernel::SLIST_HEADER, listentry: *mut super::Kernel::SLIST_ENTRY) -> *mut super::Kernel::SLIST_ENTRY; } ::core::mem::transmute(InterlockedPushEntrySList(::core::mem::transmute(listhead), ::core::mem::transmute(listentry))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn InterlockedPushListSListEx(listhead: *mut super::Kernel::SLIST_HEADER, list: *mut super::Kernel::SLIST_ENTRY, listend: *mut super::Kernel::SLIST_ENTRY, count: u32) -> *mut super::Kernel::SLIST_ENTRY { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn InterlockedPushListSListEx(listhead: *mut super::Kernel::SLIST_HEADER, list: *mut super::Kernel::SLIST_ENTRY, listend: *mut super::Kernel::SLIST_ENTRY, count: u32) -> *mut super::Kernel::SLIST_ENTRY; } ::core::mem::transmute(InterlockedPushListSListEx(::core::mem::transmute(listhead), ::core::mem::transmute(list), ::core::mem::transmute(listend), ::core::mem::transmute(count))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn IsImmersiveProcess<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IsImmersiveProcess(hprocess: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(IsImmersiveProcess(hprocess.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn IsProcessCritical<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, critical: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IsProcessCritical(hprocess: super::super::Foundation::HANDLE, critical: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; } ::core::mem::transmute(IsProcessCritical(hprocess.into_param().abi(), ::core::mem::transmute(critical))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn IsProcessorFeaturePresent(processorfeature: PROCESSOR_FEATURE_ID) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IsProcessorFeaturePresent(processorfeature: PROCESSOR_FEATURE_ID) -> super::super::Foundation::BOOL; } ::core::mem::transmute(IsProcessorFeaturePresent(::core::mem::transmute(processorfeature))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn IsThreadAFiber() -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IsThreadAFiber() -> super::super::Foundation::BOOL; } ::core::mem::transmute(IsThreadAFiber()) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn IsThreadpoolTimerSet(pti: *mut TP_TIMER) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IsThreadpoolTimerSet(pti: *mut TP_TIMER) -> super::super::Foundation::BOOL; } ::core::mem::transmute(IsThreadpoolTimerSet(::core::mem::transmute(pti))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn IsWow64Process<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, wow64process: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IsWow64Process(hprocess: super::super::Foundation::HANDLE, wow64process: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; } ::core::mem::transmute(IsWow64Process(hprocess.into_param().abi(), ::core::mem::transmute(wow64process))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn IsWow64Process2<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, pprocessmachine: *mut u16, pnativemachine: *mut u16) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn IsWow64Process2(hprocess: super::super::Foundation::HANDLE, pprocessmachine: *mut u16, pnativemachine: *mut u16) -> super::super::Foundation::BOOL; } ::core::mem::transmute(IsWow64Process2(hprocess.into_param().abi(), ::core::mem::transmute(pprocessmachine), ::core::mem::transmute(pnativemachine))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub type LPFIBER_START_ROUTINE = unsafe extern "system" fn(lpfiberparameter: *mut ::core::ffi::c_void); #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy, :: core :: fmt :: Debug, :: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] #[repr(transparent)] pub struct LPPROC_THREAD_ATTRIBUTE_LIST(pub *mut ::core::ffi::c_void); impl ::core::default::Default for LPPROC_THREAD_ATTRIBUTE_LIST { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } unsafe impl ::windows::core::Handle for LPPROC_THREAD_ATTRIBUTE_LIST {} unsafe impl ::windows::core::Abi for LPPROC_THREAD_ATTRIBUTE_LIST { type Abi = Self; } pub type LPTHREAD_START_ROUTINE = unsafe extern "system" fn(lpthreadparameter: *mut ::core::ffi::c_void) -> u32; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn LeaveCriticalSection(lpcriticalsection: *mut RTL_CRITICAL_SECTION) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn LeaveCriticalSection(lpcriticalsection: *mut RTL_CRITICAL_SECTION); } ::core::mem::transmute(LeaveCriticalSection(::core::mem::transmute(lpcriticalsection))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn LeaveCriticalSectionWhenCallbackReturns(pci: *mut TP_CALLBACK_INSTANCE, pcs: *mut RTL_CRITICAL_SECTION) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn LeaveCriticalSectionWhenCallbackReturns(pci: *mut TP_CALLBACK_INSTANCE, pcs: *mut RTL_CRITICAL_SECTION); } ::core::mem::transmute(LeaveCriticalSectionWhenCallbackReturns(::core::mem::transmute(pci), ::core::mem::transmute(pcs))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct MACHINE_ATTRIBUTES(pub u32); pub const UserEnabled: MACHINE_ATTRIBUTES = MACHINE_ATTRIBUTES(1u32); pub const KernelEnabled: MACHINE_ATTRIBUTES = MACHINE_ATTRIBUTES(2u32); pub const Wow64Container: MACHINE_ATTRIBUTES = MACHINE_ATTRIBUTES(4u32); impl ::core::convert::From<u32> for MACHINE_ATTRIBUTES { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for MACHINE_ATTRIBUTES { type Abi = Self; } impl ::core::ops::BitOr for MACHINE_ATTRIBUTES { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for MACHINE_ATTRIBUTES { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for MACHINE_ATTRIBUTES { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for MACHINE_ATTRIBUTES { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for MACHINE_ATTRIBUTES { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct MEMORY_PRIORITY(pub u32); pub const MEMORY_PRIORITY_VERY_LOW: MEMORY_PRIORITY = MEMORY_PRIORITY(1u32); pub const MEMORY_PRIORITY_LOW: MEMORY_PRIORITY = MEMORY_PRIORITY(2u32); pub const MEMORY_PRIORITY_MEDIUM: MEMORY_PRIORITY = MEMORY_PRIORITY(3u32); pub const MEMORY_PRIORITY_BELOW_NORMAL: MEMORY_PRIORITY = MEMORY_PRIORITY(4u32); pub const MEMORY_PRIORITY_NORMAL: MEMORY_PRIORITY = MEMORY_PRIORITY(5u32); impl ::core::convert::From<u32> for MEMORY_PRIORITY { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for MEMORY_PRIORITY { type Abi = Self; } impl ::core::ops::BitOr for MEMORY_PRIORITY { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for MEMORY_PRIORITY { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for MEMORY_PRIORITY { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for MEMORY_PRIORITY { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for MEMORY_PRIORITY { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct MEMORY_PRIORITY_INFORMATION { pub MemoryPriority: MEMORY_PRIORITY, } impl MEMORY_PRIORITY_INFORMATION {} impl ::core::default::Default for MEMORY_PRIORITY_INFORMATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for MEMORY_PRIORITY_INFORMATION { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("MEMORY_PRIORITY_INFORMATION").field("MemoryPriority", &self.MemoryPriority).finish() } } impl ::core::cmp::PartialEq for MEMORY_PRIORITY_INFORMATION { fn eq(&self, other: &Self) -> bool { self.MemoryPriority == other.MemoryPriority } } impl ::core::cmp::Eq for MEMORY_PRIORITY_INFORMATION {} unsafe impl ::windows::core::Abi for MEMORY_PRIORITY_INFORMATION { type Abi = Self; } pub const MUTEX_MODIFY_STATE: u32 = 1u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy, :: core :: fmt :: Debug, :: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] #[repr(transparent)] pub struct NamespaceHandle(pub isize); impl ::core::default::Default for NamespaceHandle { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } unsafe impl ::windows::core::Handle for NamespaceHandle {} unsafe impl ::windows::core::Abi for NamespaceHandle { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn NtQueryInformationProcess<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(processhandle: Param0, processinformationclass: PROCESSINFOCLASS, processinformation: *mut ::core::ffi::c_void, processinformationlength: u32, returnlength: *mut u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn NtQueryInformationProcess(processhandle: super::super::Foundation::HANDLE, processinformationclass: PROCESSINFOCLASS, processinformation: *mut ::core::ffi::c_void, processinformationlength: u32, returnlength: *mut u32) -> super::super::Foundation::NTSTATUS; } NtQueryInformationProcess(processhandle.into_param().abi(), ::core::mem::transmute(processinformationclass), ::core::mem::transmute(processinformation), ::core::mem::transmute(processinformationlength), ::core::mem::transmute(returnlength)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn NtQueryInformationThread<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(threadhandle: Param0, threadinformationclass: THREADINFOCLASS, threadinformation: *mut ::core::ffi::c_void, threadinformationlength: u32, returnlength: *mut u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn NtQueryInformationThread(threadhandle: super::super::Foundation::HANDLE, threadinformationclass: THREADINFOCLASS, threadinformation: *mut ::core::ffi::c_void, threadinformationlength: u32, returnlength: *mut u32) -> super::super::Foundation::NTSTATUS; } NtQueryInformationThread(threadhandle.into_param().abi(), ::core::mem::transmute(threadinformationclass), ::core::mem::transmute(threadinformation), ::core::mem::transmute(threadinformationlength), ::core::mem::transmute(returnlength)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn NtSetInformationThread<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(threadhandle: Param0, threadinformationclass: THREADINFOCLASS, threadinformation: *const ::core::ffi::c_void, threadinformationlength: u32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn NtSetInformationThread(threadhandle: super::super::Foundation::HANDLE, threadinformationclass: THREADINFOCLASS, threadinformation: *const ::core::ffi::c_void, threadinformationlength: u32) -> super::super::Foundation::NTSTATUS; } NtSetInformationThread(threadhandle.into_param().abi(), ::core::mem::transmute(threadinformationclass), ::core::mem::transmute(threadinformation), ::core::mem::transmute(threadinformationlength)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn OpenEventA<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(dwdesiredaccess: u32, binherithandle: Param1, lpname: Param2) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn OpenEventA(dwdesiredaccess: u32, binherithandle: super::super::Foundation::BOOL, lpname: super::super::Foundation::PSTR) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(OpenEventA(::core::mem::transmute(dwdesiredaccess), binherithandle.into_param().abi(), lpname.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn OpenEventW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(dwdesiredaccess: u32, binherithandle: Param1, lpname: Param2) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn OpenEventW(dwdesiredaccess: u32, binherithandle: super::super::Foundation::BOOL, lpname: super::super::Foundation::PWSTR) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(OpenEventW(::core::mem::transmute(dwdesiredaccess), binherithandle.into_param().abi(), lpname.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn OpenMutexW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(dwdesiredaccess: u32, binherithandle: Param1, lpname: Param2) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn OpenMutexW(dwdesiredaccess: u32, binherithandle: super::super::Foundation::BOOL, lpname: super::super::Foundation::PWSTR) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(OpenMutexW(::core::mem::transmute(dwdesiredaccess), binherithandle.into_param().abi(), lpname.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn OpenPrivateNamespaceA<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(lpboundarydescriptor: *const ::core::ffi::c_void, lpaliasprefix: Param1) -> NamespaceHandle { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn OpenPrivateNamespaceA(lpboundarydescriptor: *const ::core::ffi::c_void, lpaliasprefix: super::super::Foundation::PSTR) -> NamespaceHandle; } ::core::mem::transmute(OpenPrivateNamespaceA(::core::mem::transmute(lpboundarydescriptor), lpaliasprefix.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn OpenPrivateNamespaceW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(lpboundarydescriptor: *const ::core::ffi::c_void, lpaliasprefix: Param1) -> NamespaceHandle { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn OpenPrivateNamespaceW(lpboundarydescriptor: *const ::core::ffi::c_void, lpaliasprefix: super::super::Foundation::PWSTR) -> NamespaceHandle; } ::core::mem::transmute(OpenPrivateNamespaceW(::core::mem::transmute(lpboundarydescriptor), lpaliasprefix.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn OpenProcess<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(dwdesiredaccess: PROCESS_ACCESS_RIGHTS, binherithandle: Param1, dwprocessid: u32) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn OpenProcess(dwdesiredaccess: PROCESS_ACCESS_RIGHTS, binherithandle: super::super::Foundation::BOOL, dwprocessid: u32) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(OpenProcess(::core::mem::transmute(dwdesiredaccess), binherithandle.into_param().abi(), ::core::mem::transmute(dwprocessid))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn OpenProcessToken<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(processhandle: Param0, desiredaccess: super::super::Security::TOKEN_ACCESS_MASK, tokenhandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn OpenProcessToken(processhandle: super::super::Foundation::HANDLE, desiredaccess: super::super::Security::TOKEN_ACCESS_MASK, tokenhandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(OpenProcessToken(processhandle.into_param().abi(), ::core::mem::transmute(desiredaccess), ::core::mem::transmute(tokenhandle))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn OpenSemaphoreW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(dwdesiredaccess: u32, binherithandle: Param1, lpname: Param2) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn OpenSemaphoreW(dwdesiredaccess: u32, binherithandle: super::super::Foundation::BOOL, lpname: super::super::Foundation::PWSTR) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(OpenSemaphoreW(::core::mem::transmute(dwdesiredaccess), binherithandle.into_param().abi(), lpname.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn OpenThread<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(dwdesiredaccess: THREAD_ACCESS_RIGHTS, binherithandle: Param1, dwthreadid: u32) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn OpenThread(dwdesiredaccess: THREAD_ACCESS_RIGHTS, binherithandle: super::super::Foundation::BOOL, dwthreadid: u32) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(OpenThread(::core::mem::transmute(dwdesiredaccess), binherithandle.into_param().abi(), ::core::mem::transmute(dwthreadid))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn OpenThreadToken<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(threadhandle: Param0, desiredaccess: super::super::Security::TOKEN_ACCESS_MASK, openasself: Param2, tokenhandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn OpenThreadToken(threadhandle: super::super::Foundation::HANDLE, desiredaccess: super::super::Security::TOKEN_ACCESS_MASK, openasself: super::super::Foundation::BOOL, tokenhandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(OpenThreadToken(threadhandle.into_param().abi(), ::core::mem::transmute(desiredaccess), openasself.into_param().abi(), ::core::mem::transmute(tokenhandle))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn OpenWaitableTimerW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(dwdesiredaccess: u32, binherithandle: Param1, lptimername: Param2) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn OpenWaitableTimerW(dwdesiredaccess: u32, binherithandle: super::super::Foundation::BOOL, lptimername: super::super::Foundation::PWSTR) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(OpenWaitableTimerW(::core::mem::transmute(dwdesiredaccess), binherithandle.into_param().abi(), lptimername.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: clone :: Clone)] #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] pub struct PEB { pub Reserved1: [u8; 2], pub BeingDebugged: u8, pub Reserved2: [u8; 1], pub Reserved3: [*mut ::core::ffi::c_void; 2], pub Ldr: *mut PEB_LDR_DATA, pub ProcessParameters: *mut RTL_USER_PROCESS_PARAMETERS, pub Reserved4: [*mut ::core::ffi::c_void; 3], pub AtlThunkSListPtr: *mut ::core::ffi::c_void, pub Reserved5: *mut ::core::ffi::c_void, pub Reserved6: u32, pub Reserved7: *mut ::core::ffi::c_void, pub Reserved8: u32, pub AtlThunkSListPtr32: u32, pub Reserved9: [*mut ::core::ffi::c_void; 45], pub Reserved10: [u8; 96], pub PostProcessInitRoutine: ::core::option::Option<PPS_POST_PROCESS_INIT_ROUTINE>, pub Reserved11: [u8; 128], pub Reserved12: [*mut ::core::ffi::c_void; 1], pub SessionId: u32, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl PEB {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::default::Default for PEB { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::fmt::Debug for PEB { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("PEB") .field("Reserved1", &self.Reserved1) .field("BeingDebugged", &self.BeingDebugged) .field("Reserved2", &self.Reserved2) .field("Reserved3", &self.Reserved3) .field("Ldr", &self.Ldr) .field("ProcessParameters", &self.ProcessParameters) .field("Reserved4", &self.Reserved4) .field("AtlThunkSListPtr", &self.AtlThunkSListPtr) .field("Reserved5", &self.Reserved5) .field("Reserved6", &self.Reserved6) .field("Reserved7", &self.Reserved7) .field("Reserved8", &self.Reserved8) .field("AtlThunkSListPtr32", &self.AtlThunkSListPtr32) .field("Reserved9", &self.Reserved9) .field("Reserved10", &self.Reserved10) .field("Reserved11", &self.Reserved11) .field("Reserved12", &self.Reserved12) .field("SessionId", &self.SessionId) .finish() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::cmp::PartialEq for PEB { fn eq(&self, other: &Self) -> bool { self.Reserved1 == other.Reserved1 && self.BeingDebugged == other.BeingDebugged && self.Reserved2 == other.Reserved2 && self.Reserved3 == other.Reserved3 && self.Ldr == other.Ldr && self.ProcessParameters == other.ProcessParameters && self.Reserved4 == other.Reserved4 && self.AtlThunkSListPtr == other.AtlThunkSListPtr && self.Reserved5 == other.Reserved5 && self.Reserved6 == other.Reserved6 && self.Reserved7 == other.Reserved7 && self.Reserved8 == other.Reserved8 && self.AtlThunkSListPtr32 == other.AtlThunkSListPtr32 && self.Reserved9 == other.Reserved9 && self.Reserved10 == other.Reserved10 && self.PostProcessInitRoutine.map(|f| f as usize) == other.PostProcessInitRoutine.map(|f| f as usize) && self.Reserved11 == other.Reserved11 && self.Reserved12 == other.Reserved12 && self.SessionId == other.SessionId } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::cmp::Eq for PEB {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] unsafe impl ::windows::core::Abi for PEB { type Abi = ::core::mem::ManuallyDrop<Self>; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_System_Kernel")] pub struct PEB_LDR_DATA { pub Reserved1: [u8; 8], pub Reserved2: [*mut ::core::ffi::c_void; 3], pub InMemoryOrderModuleList: super::Kernel::LIST_ENTRY, } #[cfg(feature = "Win32_System_Kernel")] impl PEB_LDR_DATA {} #[cfg(feature = "Win32_System_Kernel")] impl ::core::default::Default for PEB_LDR_DATA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_System_Kernel")] impl ::core::fmt::Debug for PEB_LDR_DATA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("PEB_LDR_DATA").field("Reserved1", &self.Reserved1).field("Reserved2", &self.Reserved2).field("InMemoryOrderModuleList", &self.InMemoryOrderModuleList).finish() } } #[cfg(feature = "Win32_System_Kernel")] impl ::core::cmp::PartialEq for PEB_LDR_DATA { fn eq(&self, other: &Self) -> bool { self.Reserved1 == other.Reserved1 && self.Reserved2 == other.Reserved2 && self.InMemoryOrderModuleList == other.InMemoryOrderModuleList } } #[cfg(feature = "Win32_System_Kernel")] impl ::core::cmp::Eq for PEB_LDR_DATA {} #[cfg(feature = "Win32_System_Kernel")] unsafe impl ::windows::core::Abi for PEB_LDR_DATA { type Abi = Self; } pub type PFLS_CALLBACK_FUNCTION = unsafe extern "system" fn(lpflsdata: *const ::core::ffi::c_void); #[cfg(feature = "Win32_Foundation")] pub type PINIT_ONCE_FN = unsafe extern "system" fn(initonce: *mut RTL_RUN_ONCE, parameter: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; pub const PME_CURRENT_VERSION: u32 = 1u32; pub const PME_FAILFAST_ON_COMMIT_FAIL_DISABLE: u32 = 0u32; pub const PME_FAILFAST_ON_COMMIT_FAIL_ENABLE: u32 = 1u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct POWER_REQUEST_CONTEXT_FLAGS(pub u32); pub const POWER_REQUEST_CONTEXT_DETAILED_STRING: POWER_REQUEST_CONTEXT_FLAGS = POWER_REQUEST_CONTEXT_FLAGS(2u32); pub const POWER_REQUEST_CONTEXT_SIMPLE_STRING: POWER_REQUEST_CONTEXT_FLAGS = POWER_REQUEST_CONTEXT_FLAGS(1u32); impl ::core::convert::From<u32> for POWER_REQUEST_CONTEXT_FLAGS { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for POWER_REQUEST_CONTEXT_FLAGS { type Abi = Self; } impl ::core::ops::BitOr for POWER_REQUEST_CONTEXT_FLAGS { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for POWER_REQUEST_CONTEXT_FLAGS { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for POWER_REQUEST_CONTEXT_FLAGS { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for POWER_REQUEST_CONTEXT_FLAGS { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for POWER_REQUEST_CONTEXT_FLAGS { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } pub type PPS_POST_PROCESS_INIT_ROUTINE = unsafe extern "system" fn(); pub const PRIVATE_NAMESPACE_FLAG_DESTROY: u32 = 1u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct PROCESSINFOCLASS(pub i32); pub const ProcessBasicInformation: PROCESSINFOCLASS = PROCESSINFOCLASS(0i32); pub const ProcessDebugPort: PROCESSINFOCLASS = PROCESSINFOCLASS(7i32); pub const ProcessWow64Information: PROCESSINFOCLASS = PROCESSINFOCLASS(26i32); pub const ProcessImageFileName: PROCESSINFOCLASS = PROCESSINFOCLASS(27i32); pub const ProcessBreakOnTermination: PROCESSINFOCLASS = PROCESSINFOCLASS(29i32); impl ::core::convert::From<i32> for PROCESSINFOCLASS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for PROCESSINFOCLASS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct PROCESSOR_FEATURE_ID(pub u32); pub const PF_ARM_64BIT_LOADSTORE_ATOMIC: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(25u32); pub const PF_ARM_DIVIDE_INSTRUCTION_AVAILABLE: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(24u32); pub const PF_ARM_EXTERNAL_CACHE_AVAILABLE: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(26u32); pub const PF_ARM_FMAC_INSTRUCTIONS_AVAILABLE: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(27u32); pub const PF_ARM_VFP_32_REGISTERS_AVAILABLE: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(18u32); pub const PF_3DNOW_INSTRUCTIONS_AVAILABLE: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(7u32); pub const PF_CHANNELS_ENABLED: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(16u32); pub const PF_COMPARE_EXCHANGE_DOUBLE: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(2u32); pub const PF_COMPARE_EXCHANGE128: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(14u32); pub const PF_COMPARE64_EXCHANGE128: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(15u32); pub const PF_FASTFAIL_AVAILABLE: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(23u32); pub const PF_FLOATING_POINT_EMULATED: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(1u32); pub const PF_FLOATING_POINT_PRECISION_ERRATA: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(0u32); pub const PF_MMX_INSTRUCTIONS_AVAILABLE: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(3u32); pub const PF_NX_ENABLED: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(12u32); pub const PF_PAE_ENABLED: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(9u32); pub const PF_RDTSC_INSTRUCTION_AVAILABLE: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(8u32); pub const PF_RDWRFSGSBASE_AVAILABLE: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(22u32); pub const PF_SECOND_LEVEL_ADDRESS_TRANSLATION: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(20u32); pub const PF_SSE3_INSTRUCTIONS_AVAILABLE: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(13u32); pub const PF_VIRT_FIRMWARE_ENABLED: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(21u32); pub const PF_XMMI_INSTRUCTIONS_AVAILABLE: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(6u32); pub const PF_XMMI64_INSTRUCTIONS_AVAILABLE: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(10u32); pub const PF_XSAVE_ENABLED: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(17u32); pub const PF_ARM_V8_INSTRUCTIONS_AVAILABLE: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(29u32); pub const PF_ARM_V8_CRYPTO_INSTRUCTIONS_AVAILABLE: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(30u32); pub const PF_ARM_V8_CRC32_INSTRUCTIONS_AVAILABLE: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(31u32); pub const PF_ARM_V81_ATOMIC_INSTRUCTIONS_AVAILABLE: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(34u32); impl ::core::convert::From<u32> for PROCESSOR_FEATURE_ID { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for PROCESSOR_FEATURE_ID { type Abi = Self; } impl ::core::ops::BitOr for PROCESSOR_FEATURE_ID { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for PROCESSOR_FEATURE_ID { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for PROCESSOR_FEATURE_ID { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for PROCESSOR_FEATURE_ID { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for PROCESSOR_FEATURE_ID { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct PROCESS_ACCESS_RIGHTS(pub u32); pub const PROCESS_TERMINATE: PROCESS_ACCESS_RIGHTS = PROCESS_ACCESS_RIGHTS(1u32); pub const PROCESS_CREATE_THREAD: PROCESS_ACCESS_RIGHTS = PROCESS_ACCESS_RIGHTS(2u32); pub const PROCESS_SET_SESSIONID: PROCESS_ACCESS_RIGHTS = PROCESS_ACCESS_RIGHTS(4u32); pub const PROCESS_VM_OPERATION: PROCESS_ACCESS_RIGHTS = PROCESS_ACCESS_RIGHTS(8u32); pub const PROCESS_VM_READ: PROCESS_ACCESS_RIGHTS = PROCESS_ACCESS_RIGHTS(16u32); pub const PROCESS_VM_WRITE: PROCESS_ACCESS_RIGHTS = PROCESS_ACCESS_RIGHTS(32u32); pub const PROCESS_DUP_HANDLE: PROCESS_ACCESS_RIGHTS = PROCESS_ACCESS_RIGHTS(64u32); pub const PROCESS_CREATE_PROCESS: PROCESS_ACCESS_RIGHTS = PROCESS_ACCESS_RIGHTS(128u32); pub const PROCESS_SET_QUOTA: PROCESS_ACCESS_RIGHTS = PROCESS_ACCESS_RIGHTS(256u32); pub const PROCESS_SET_INFORMATION: PROCESS_ACCESS_RIGHTS = PROCESS_ACCESS_RIGHTS(512u32); pub const PROCESS_QUERY_INFORMATION: PROCESS_ACCESS_RIGHTS = PROCESS_ACCESS_RIGHTS(1024u32); pub const PROCESS_SUSPEND_RESUME: PROCESS_ACCESS_RIGHTS = PROCESS_ACCESS_RIGHTS(2048u32); pub const PROCESS_QUERY_LIMITED_INFORMATION: PROCESS_ACCESS_RIGHTS = PROCESS_ACCESS_RIGHTS(4096u32); pub const PROCESS_SET_LIMITED_INFORMATION: PROCESS_ACCESS_RIGHTS = PROCESS_ACCESS_RIGHTS(8192u32); pub const PROCESS_ALL_ACCESS: PROCESS_ACCESS_RIGHTS = PROCESS_ACCESS_RIGHTS(2097151u32); pub const PROCESS_DELETE: PROCESS_ACCESS_RIGHTS = PROCESS_ACCESS_RIGHTS(65536u32); pub const PROCESS_READ_CONTROL: PROCESS_ACCESS_RIGHTS = PROCESS_ACCESS_RIGHTS(131072u32); pub const PROCESS_WRITE_DAC: PROCESS_ACCESS_RIGHTS = PROCESS_ACCESS_RIGHTS(262144u32); pub const PROCESS_WRITE_OWNER: PROCESS_ACCESS_RIGHTS = PROCESS_ACCESS_RIGHTS(524288u32); pub const PROCESS_SYNCHRONIZE: PROCESS_ACCESS_RIGHTS = PROCESS_ACCESS_RIGHTS(1048576u32); pub const PROCESS_STANDARD_RIGHTS_REQUIRED: PROCESS_ACCESS_RIGHTS = PROCESS_ACCESS_RIGHTS(983040u32); impl ::core::convert::From<u32> for PROCESS_ACCESS_RIGHTS { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for PROCESS_ACCESS_RIGHTS { type Abi = Self; } impl ::core::ops::BitOr for PROCESS_ACCESS_RIGHTS { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for PROCESS_ACCESS_RIGHTS { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for PROCESS_ACCESS_RIGHTS { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for PROCESS_ACCESS_RIGHTS { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for PROCESS_ACCESS_RIGHTS { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct PROCESS_AFFINITY_AUTO_UPDATE_FLAGS(pub u32); pub const PROCESS_AFFINITY_DISABLE_AUTO_UPDATE: PROCESS_AFFINITY_AUTO_UPDATE_FLAGS = PROCESS_AFFINITY_AUTO_UPDATE_FLAGS(0u32); pub const PROCESS_AFFINITY_ENABLE_AUTO_UPDATE: PROCESS_AFFINITY_AUTO_UPDATE_FLAGS = PROCESS_AFFINITY_AUTO_UPDATE_FLAGS(1u32); impl ::core::convert::From<u32> for PROCESS_AFFINITY_AUTO_UPDATE_FLAGS { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for PROCESS_AFFINITY_AUTO_UPDATE_FLAGS { type Abi = Self; } impl ::core::ops::BitOr for PROCESS_AFFINITY_AUTO_UPDATE_FLAGS { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for PROCESS_AFFINITY_AUTO_UPDATE_FLAGS { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for PROCESS_AFFINITY_AUTO_UPDATE_FLAGS { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for PROCESS_AFFINITY_AUTO_UPDATE_FLAGS { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for PROCESS_AFFINITY_AUTO_UPDATE_FLAGS { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] pub struct PROCESS_BASIC_INFORMATION { pub Reserved1: *mut ::core::ffi::c_void, pub PebBaseAddress: *mut PEB, pub Reserved2: [*mut ::core::ffi::c_void; 2], pub UniqueProcessId: usize, pub Reserved3: *mut ::core::ffi::c_void, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl PROCESS_BASIC_INFORMATION {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::default::Default for PROCESS_BASIC_INFORMATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::fmt::Debug for PROCESS_BASIC_INFORMATION { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("PROCESS_BASIC_INFORMATION").field("Reserved1", &self.Reserved1).field("PebBaseAddress", &self.PebBaseAddress).field("Reserved2", &self.Reserved2).field("UniqueProcessId", &self.UniqueProcessId).field("Reserved3", &self.Reserved3).finish() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::cmp::PartialEq for PROCESS_BASIC_INFORMATION { fn eq(&self, other: &Self) -> bool { self.Reserved1 == other.Reserved1 && self.PebBaseAddress == other.PebBaseAddress && self.Reserved2 == other.Reserved2 && self.UniqueProcessId == other.UniqueProcessId && self.Reserved3 == other.Reserved3 } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::cmp::Eq for PROCESS_BASIC_INFORMATION {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] unsafe impl ::windows::core::Abi for PROCESS_BASIC_INFORMATION { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct PROCESS_CREATION_FLAGS(pub u32); pub const DEBUG_PROCESS: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(1u32); pub const DEBUG_ONLY_THIS_PROCESS: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(2u32); pub const CREATE_SUSPENDED: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(4u32); pub const DETACHED_PROCESS: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(8u32); pub const CREATE_NEW_CONSOLE: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(16u32); pub const NORMAL_PRIORITY_CLASS: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(32u32); pub const IDLE_PRIORITY_CLASS: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(64u32); pub const HIGH_PRIORITY_CLASS: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(128u32); pub const REALTIME_PRIORITY_CLASS: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(256u32); pub const CREATE_NEW_PROCESS_GROUP: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(512u32); pub const CREATE_UNICODE_ENVIRONMENT: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(1024u32); pub const CREATE_SEPARATE_WOW_VDM: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(2048u32); pub const CREATE_SHARED_WOW_VDM: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(4096u32); pub const CREATE_FORCEDOS: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(8192u32); pub const BELOW_NORMAL_PRIORITY_CLASS: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(16384u32); pub const ABOVE_NORMAL_PRIORITY_CLASS: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(32768u32); pub const INHERIT_PARENT_AFFINITY: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(65536u32); pub const INHERIT_CALLER_PRIORITY: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(131072u32); pub const CREATE_PROTECTED_PROCESS: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(262144u32); pub const EXTENDED_STARTUPINFO_PRESENT: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(524288u32); pub const PROCESS_MODE_BACKGROUND_BEGIN: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(1048576u32); pub const PROCESS_MODE_BACKGROUND_END: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(2097152u32); pub const CREATE_SECURE_PROCESS: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(4194304u32); pub const CREATE_BREAKAWAY_FROM_JOB: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(16777216u32); pub const CREATE_PRESERVE_CODE_AUTHZ_LEVEL: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(33554432u32); pub const CREATE_DEFAULT_ERROR_MODE: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(67108864u32); pub const CREATE_NO_WINDOW: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(134217728u32); pub const PROFILE_USER: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(268435456u32); pub const PROFILE_KERNEL: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(536870912u32); pub const PROFILE_SERVER: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(1073741824u32); pub const CREATE_IGNORE_SYSTEM_DEFAULT: PROCESS_CREATION_FLAGS = PROCESS_CREATION_FLAGS(2147483648u32); impl ::core::convert::From<u32> for PROCESS_CREATION_FLAGS { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for PROCESS_CREATION_FLAGS { type Abi = Self; } impl ::core::ops::BitOr for PROCESS_CREATION_FLAGS { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for PROCESS_CREATION_FLAGS { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for PROCESS_CREATION_FLAGS { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for PROCESS_CREATION_FLAGS { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for PROCESS_CREATION_FLAGS { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct PROCESS_DEP_FLAGS(pub u32); pub const PROCESS_DEP_ENABLE: PROCESS_DEP_FLAGS = PROCESS_DEP_FLAGS(1u32); pub const PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION: PROCESS_DEP_FLAGS = PROCESS_DEP_FLAGS(2u32); pub const PROCESS_DEP_NONE: PROCESS_DEP_FLAGS = PROCESS_DEP_FLAGS(0u32); impl ::core::convert::From<u32> for PROCESS_DEP_FLAGS { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for PROCESS_DEP_FLAGS { type Abi = Self; } impl ::core::ops::BitOr for PROCESS_DEP_FLAGS { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for PROCESS_DEP_FLAGS { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for PROCESS_DEP_FLAGS { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for PROCESS_DEP_FLAGS { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for PROCESS_DEP_FLAGS { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct PROCESS_DYNAMIC_EH_CONTINUATION_TARGET { pub TargetAddress: usize, pub Flags: usize, } impl PROCESS_DYNAMIC_EH_CONTINUATION_TARGET {} impl ::core::default::Default for PROCESS_DYNAMIC_EH_CONTINUATION_TARGET { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for PROCESS_DYNAMIC_EH_CONTINUATION_TARGET { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("PROCESS_DYNAMIC_EH_CONTINUATION_TARGET").field("TargetAddress", &self.TargetAddress).field("Flags", &self.Flags).finish() } } impl ::core::cmp::PartialEq for PROCESS_DYNAMIC_EH_CONTINUATION_TARGET { fn eq(&self, other: &Self) -> bool { self.TargetAddress == other.TargetAddress && self.Flags == other.Flags } } impl ::core::cmp::Eq for PROCESS_DYNAMIC_EH_CONTINUATION_TARGET {} unsafe impl ::windows::core::Abi for PROCESS_DYNAMIC_EH_CONTINUATION_TARGET { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION { pub NumberOfTargets: u16, pub Reserved: u16, pub Reserved2: u32, pub Targets: *mut PROCESS_DYNAMIC_EH_CONTINUATION_TARGET, } impl PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION {} impl ::core::default::Default for PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION").field("NumberOfTargets", &self.NumberOfTargets).field("Reserved", &self.Reserved).field("Reserved2", &self.Reserved2).field("Targets", &self.Targets).finish() } } impl ::core::cmp::PartialEq for PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION { fn eq(&self, other: &Self) -> bool { self.NumberOfTargets == other.NumberOfTargets && self.Reserved == other.Reserved && self.Reserved2 == other.Reserved2 && self.Targets == other.Targets } } impl ::core::cmp::Eq for PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION {} unsafe impl ::windows::core::Abi for PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE { pub BaseAddress: usize, pub Size: usize, pub Flags: u32, } impl PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE {} impl ::core::default::Default for PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE").field("BaseAddress", &self.BaseAddress).field("Size", &self.Size).field("Flags", &self.Flags).finish() } } impl ::core::cmp::PartialEq for PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE { fn eq(&self, other: &Self) -> bool { self.BaseAddress == other.BaseAddress && self.Size == other.Size && self.Flags == other.Flags } } impl ::core::cmp::Eq for PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE {} unsafe impl ::windows::core::Abi for PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION { pub NumberOfRanges: u16, pub Reserved: u16, pub Reserved2: u32, pub Ranges: *mut PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE, } impl PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION {} impl ::core::default::Default for PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION").field("NumberOfRanges", &self.NumberOfRanges).field("Reserved", &self.Reserved).field("Reserved2", &self.Reserved2).field("Ranges", &self.Ranges).finish() } } impl ::core::cmp::PartialEq for PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION { fn eq(&self, other: &Self) -> bool { self.NumberOfRanges == other.NumberOfRanges && self.Reserved == other.Reserved && self.Reserved2 == other.Reserved2 && self.Ranges == other.Ranges } } impl ::core::cmp::Eq for PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION {} unsafe impl ::windows::core::Abi for PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct PROCESS_INFORMATION { pub hProcess: super::super::Foundation::HANDLE, pub hThread: super::super::Foundation::HANDLE, pub dwProcessId: u32, pub dwThreadId: u32, } #[cfg(feature = "Win32_Foundation")] impl PROCESS_INFORMATION {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for PROCESS_INFORMATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for PROCESS_INFORMATION { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("PROCESS_INFORMATION").field("hProcess", &self.hProcess).field("hThread", &self.hThread).field("dwProcessId", &self.dwProcessId).field("dwThreadId", &self.dwThreadId).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for PROCESS_INFORMATION { fn eq(&self, other: &Self) -> bool { self.hProcess == other.hProcess && self.hThread == other.hThread && self.dwProcessId == other.dwProcessId && self.dwThreadId == other.dwThreadId } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for PROCESS_INFORMATION {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for PROCESS_INFORMATION { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct PROCESS_INFORMATION_CLASS(pub i32); pub const ProcessMemoryPriority: PROCESS_INFORMATION_CLASS = PROCESS_INFORMATION_CLASS(0i32); pub const ProcessMemoryExhaustionInfo: PROCESS_INFORMATION_CLASS = PROCESS_INFORMATION_CLASS(1i32); pub const ProcessAppMemoryInfo: PROCESS_INFORMATION_CLASS = PROCESS_INFORMATION_CLASS(2i32); pub const ProcessInPrivateInfo: PROCESS_INFORMATION_CLASS = PROCESS_INFORMATION_CLASS(3i32); pub const ProcessPowerThrottling: PROCESS_INFORMATION_CLASS = PROCESS_INFORMATION_CLASS(4i32); pub const ProcessReservedValue1: PROCESS_INFORMATION_CLASS = PROCESS_INFORMATION_CLASS(5i32); pub const ProcessTelemetryCoverageInfo: PROCESS_INFORMATION_CLASS = PROCESS_INFORMATION_CLASS(6i32); pub const ProcessProtectionLevelInfo: PROCESS_INFORMATION_CLASS = PROCESS_INFORMATION_CLASS(7i32); pub const ProcessLeapSecondInfo: PROCESS_INFORMATION_CLASS = PROCESS_INFORMATION_CLASS(8i32); pub const ProcessMachineTypeInfo: PROCESS_INFORMATION_CLASS = PROCESS_INFORMATION_CLASS(9i32); pub const ProcessInformationClassMax: PROCESS_INFORMATION_CLASS = PROCESS_INFORMATION_CLASS(10i32); impl ::core::convert::From<i32> for PROCESS_INFORMATION_CLASS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for PROCESS_INFORMATION_CLASS { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct PROCESS_LEAP_SECOND_INFO { pub Flags: u32, pub Reserved: u32, } impl PROCESS_LEAP_SECOND_INFO {} impl ::core::default::Default for PROCESS_LEAP_SECOND_INFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for PROCESS_LEAP_SECOND_INFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("PROCESS_LEAP_SECOND_INFO").field("Flags", &self.Flags).field("Reserved", &self.Reserved).finish() } } impl ::core::cmp::PartialEq for PROCESS_LEAP_SECOND_INFO { fn eq(&self, other: &Self) -> bool { self.Flags == other.Flags && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for PROCESS_LEAP_SECOND_INFO {} unsafe impl ::windows::core::Abi for PROCESS_LEAP_SECOND_INFO { type Abi = Self; } pub const PROCESS_LEAP_SECOND_INFO_FLAG_ENABLE_SIXTY_SECOND: u32 = 1u32; pub const PROCESS_LEAP_SECOND_INFO_VALID_FLAGS: u32 = 1u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct PROCESS_MACHINE_INFORMATION { pub ProcessMachine: u16, pub Res0: u16, pub MachineAttributes: MACHINE_ATTRIBUTES, } impl PROCESS_MACHINE_INFORMATION {} impl ::core::default::Default for PROCESS_MACHINE_INFORMATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for PROCESS_MACHINE_INFORMATION { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("PROCESS_MACHINE_INFORMATION").field("ProcessMachine", &self.ProcessMachine).field("Res0", &self.Res0).field("MachineAttributes", &self.MachineAttributes).finish() } } impl ::core::cmp::PartialEq for PROCESS_MACHINE_INFORMATION { fn eq(&self, other: &Self) -> bool { self.ProcessMachine == other.ProcessMachine && self.Res0 == other.Res0 && self.MachineAttributes == other.MachineAttributes } } impl ::core::cmp::Eq for PROCESS_MACHINE_INFORMATION {} unsafe impl ::windows::core::Abi for PROCESS_MACHINE_INFORMATION { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct PROCESS_MEMORY_EXHAUSTION_INFO { pub Version: u16, pub Reserved: u16, pub Type: PROCESS_MEMORY_EXHAUSTION_TYPE, pub Value: usize, } impl PROCESS_MEMORY_EXHAUSTION_INFO {} impl ::core::default::Default for PROCESS_MEMORY_EXHAUSTION_INFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for PROCESS_MEMORY_EXHAUSTION_INFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("PROCESS_MEMORY_EXHAUSTION_INFO").field("Version", &self.Version).field("Reserved", &self.Reserved).field("Type", &self.Type).field("Value", &self.Value).finish() } } impl ::core::cmp::PartialEq for PROCESS_MEMORY_EXHAUSTION_INFO { fn eq(&self, other: &Self) -> bool { self.Version == other.Version && self.Reserved == other.Reserved && self.Type == other.Type && self.Value == other.Value } } impl ::core::cmp::Eq for PROCESS_MEMORY_EXHAUSTION_INFO {} unsafe impl ::windows::core::Abi for PROCESS_MEMORY_EXHAUSTION_INFO { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct PROCESS_MEMORY_EXHAUSTION_TYPE(pub i32); pub const PMETypeFailFastOnCommitFailure: PROCESS_MEMORY_EXHAUSTION_TYPE = PROCESS_MEMORY_EXHAUSTION_TYPE(0i32); pub const PMETypeMax: PROCESS_MEMORY_EXHAUSTION_TYPE = PROCESS_MEMORY_EXHAUSTION_TYPE(1i32); impl ::core::convert::From<i32> for PROCESS_MEMORY_EXHAUSTION_TYPE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for PROCESS_MEMORY_EXHAUSTION_TYPE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct PROCESS_MITIGATION_POLICY(pub i32); pub const ProcessDEPPolicy: PROCESS_MITIGATION_POLICY = PROCESS_MITIGATION_POLICY(0i32); pub const ProcessASLRPolicy: PROCESS_MITIGATION_POLICY = PROCESS_MITIGATION_POLICY(1i32); pub const ProcessDynamicCodePolicy: PROCESS_MITIGATION_POLICY = PROCESS_MITIGATION_POLICY(2i32); pub const ProcessStrictHandleCheckPolicy: PROCESS_MITIGATION_POLICY = PROCESS_MITIGATION_POLICY(3i32); pub const ProcessSystemCallDisablePolicy: PROCESS_MITIGATION_POLICY = PROCESS_MITIGATION_POLICY(4i32); pub const ProcessMitigationOptionsMask: PROCESS_MITIGATION_POLICY = PROCESS_MITIGATION_POLICY(5i32); pub const ProcessExtensionPointDisablePolicy: PROCESS_MITIGATION_POLICY = PROCESS_MITIGATION_POLICY(6i32); pub const ProcessControlFlowGuardPolicy: PROCESS_MITIGATION_POLICY = PROCESS_MITIGATION_POLICY(7i32); pub const ProcessSignaturePolicy: PROCESS_MITIGATION_POLICY = PROCESS_MITIGATION_POLICY(8i32); pub const ProcessFontDisablePolicy: PROCESS_MITIGATION_POLICY = PROCESS_MITIGATION_POLICY(9i32); pub const ProcessImageLoadPolicy: PROCESS_MITIGATION_POLICY = PROCESS_MITIGATION_POLICY(10i32); pub const ProcessSystemCallFilterPolicy: PROCESS_MITIGATION_POLICY = PROCESS_MITIGATION_POLICY(11i32); pub const ProcessPayloadRestrictionPolicy: PROCESS_MITIGATION_POLICY = PROCESS_MITIGATION_POLICY(12i32); pub const ProcessChildProcessPolicy: PROCESS_MITIGATION_POLICY = PROCESS_MITIGATION_POLICY(13i32); pub const ProcessSideChannelIsolationPolicy: PROCESS_MITIGATION_POLICY = PROCESS_MITIGATION_POLICY(14i32); pub const ProcessUserShadowStackPolicy: PROCESS_MITIGATION_POLICY = PROCESS_MITIGATION_POLICY(15i32); pub const ProcessRedirectionTrustPolicy: PROCESS_MITIGATION_POLICY = PROCESS_MITIGATION_POLICY(16i32); pub const MaxProcessMitigationPolicy: PROCESS_MITIGATION_POLICY = PROCESS_MITIGATION_POLICY(17i32); impl ::core::convert::From<i32> for PROCESS_MITIGATION_POLICY { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for PROCESS_MITIGATION_POLICY { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct PROCESS_NAME_FORMAT(pub u32); pub const PROCESS_NAME_WIN32: PROCESS_NAME_FORMAT = PROCESS_NAME_FORMAT(0u32); pub const PROCESS_NAME_NATIVE: PROCESS_NAME_FORMAT = PROCESS_NAME_FORMAT(1u32); impl ::core::convert::From<u32> for PROCESS_NAME_FORMAT { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for PROCESS_NAME_FORMAT { type Abi = Self; } impl ::core::ops::BitOr for PROCESS_NAME_FORMAT { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for PROCESS_NAME_FORMAT { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for PROCESS_NAME_FORMAT { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for PROCESS_NAME_FORMAT { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for PROCESS_NAME_FORMAT { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } pub const PROCESS_POWER_THROTTLING_CURRENT_VERSION: u32 = 1u32; pub const PROCESS_POWER_THROTTLING_EXECUTION_SPEED: u32 = 1u32; pub const PROCESS_POWER_THROTTLING_IGNORE_TIMER_RESOLUTION: u32 = 4u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct PROCESS_POWER_THROTTLING_STATE { pub Version: u32, pub ControlMask: u32, pub StateMask: u32, } impl PROCESS_POWER_THROTTLING_STATE {} impl ::core::default::Default for PROCESS_POWER_THROTTLING_STATE { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for PROCESS_POWER_THROTTLING_STATE { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("PROCESS_POWER_THROTTLING_STATE").field("Version", &self.Version).field("ControlMask", &self.ControlMask).field("StateMask", &self.StateMask).finish() } } impl ::core::cmp::PartialEq for PROCESS_POWER_THROTTLING_STATE { fn eq(&self, other: &Self) -> bool { self.Version == other.Version && self.ControlMask == other.ControlMask && self.StateMask == other.StateMask } } impl ::core::cmp::Eq for PROCESS_POWER_THROTTLING_STATE {} unsafe impl ::windows::core::Abi for PROCESS_POWER_THROTTLING_STATE { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct PROCESS_PROTECTION_LEVEL(pub u32); pub const PROTECTION_LEVEL_WINTCB_LIGHT: PROCESS_PROTECTION_LEVEL = PROCESS_PROTECTION_LEVEL(0u32); pub const PROTECTION_LEVEL_WINDOWS: PROCESS_PROTECTION_LEVEL = PROCESS_PROTECTION_LEVEL(1u32); pub const PROTECTION_LEVEL_WINDOWS_LIGHT: PROCESS_PROTECTION_LEVEL = PROCESS_PROTECTION_LEVEL(2u32); pub const PROTECTION_LEVEL_ANTIMALWARE_LIGHT: PROCESS_PROTECTION_LEVEL = PROCESS_PROTECTION_LEVEL(3u32); pub const PROTECTION_LEVEL_LSA_LIGHT: PROCESS_PROTECTION_LEVEL = PROCESS_PROTECTION_LEVEL(4u32); pub const PROTECTION_LEVEL_WINTCB: PROCESS_PROTECTION_LEVEL = PROCESS_PROTECTION_LEVEL(5u32); pub const PROTECTION_LEVEL_CODEGEN_LIGHT: PROCESS_PROTECTION_LEVEL = PROCESS_PROTECTION_LEVEL(6u32); pub const PROTECTION_LEVEL_AUTHENTICODE: PROCESS_PROTECTION_LEVEL = PROCESS_PROTECTION_LEVEL(7u32); pub const PROTECTION_LEVEL_PPL_APP: PROCESS_PROTECTION_LEVEL = PROCESS_PROTECTION_LEVEL(8u32); pub const PROTECTION_LEVEL_NONE: PROCESS_PROTECTION_LEVEL = PROCESS_PROTECTION_LEVEL(4294967294u32); impl ::core::convert::From<u32> for PROCESS_PROTECTION_LEVEL { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for PROCESS_PROTECTION_LEVEL { type Abi = Self; } impl ::core::ops::BitOr for PROCESS_PROTECTION_LEVEL { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for PROCESS_PROTECTION_LEVEL { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for PROCESS_PROTECTION_LEVEL { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for PROCESS_PROTECTION_LEVEL { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for PROCESS_PROTECTION_LEVEL { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct PROCESS_PROTECTION_LEVEL_INFORMATION { pub ProtectionLevel: PROCESS_PROTECTION_LEVEL, } impl PROCESS_PROTECTION_LEVEL_INFORMATION {} impl ::core::default::Default for PROCESS_PROTECTION_LEVEL_INFORMATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for PROCESS_PROTECTION_LEVEL_INFORMATION { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("PROCESS_PROTECTION_LEVEL_INFORMATION").field("ProtectionLevel", &self.ProtectionLevel).finish() } } impl ::core::cmp::PartialEq for PROCESS_PROTECTION_LEVEL_INFORMATION { fn eq(&self, other: &Self) -> bool { self.ProtectionLevel == other.ProtectionLevel } } impl ::core::cmp::Eq for PROCESS_PROTECTION_LEVEL_INFORMATION {} unsafe impl ::windows::core::Abi for PROCESS_PROTECTION_LEVEL_INFORMATION { type Abi = Self; } pub const PROC_THREAD_ATTRIBUTE_REPLACE_VALUE: u32 = 1u32; #[cfg(feature = "Win32_System_SystemServices")] pub type PRTL_UMS_SCHEDULER_ENTRY_POINT = unsafe extern "system" fn(reason: super::SystemServices::RTL_UMS_SCHEDULER_REASON, activationpayload: usize, schedulerparam: *const ::core::ffi::c_void); pub type PTIMERAPCROUTINE = unsafe extern "system" fn(lpargtocompletionroutine: *const ::core::ffi::c_void, dwtimerlowvalue: u32, dwtimerhighvalue: u32); pub type PTP_CLEANUP_GROUP_CANCEL_CALLBACK = unsafe extern "system" fn(objectcontext: *mut ::core::ffi::c_void, cleanupcontext: *mut ::core::ffi::c_void); #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy, :: core :: fmt :: Debug, :: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] #[repr(transparent)] pub struct PTP_POOL(pub isize); impl ::core::default::Default for PTP_POOL { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } unsafe impl ::windows::core::Handle for PTP_POOL {} unsafe impl ::windows::core::Abi for PTP_POOL { type Abi = Self; } pub type PTP_SIMPLE_CALLBACK = unsafe extern "system" fn(instance: *mut TP_CALLBACK_INSTANCE, context: *mut ::core::ffi::c_void); pub type PTP_TIMER_CALLBACK = unsafe extern "system" fn(instance: *mut TP_CALLBACK_INSTANCE, context: *mut ::core::ffi::c_void, timer: *mut TP_TIMER); pub type PTP_WAIT_CALLBACK = unsafe extern "system" fn(instance: *mut TP_CALLBACK_INSTANCE, context: *mut ::core::ffi::c_void, wait: *mut TP_WAIT, waitresult: u32); pub type PTP_WIN32_IO_CALLBACK = unsafe extern "system" fn(instance: *mut TP_CALLBACK_INSTANCE, context: *mut ::core::ffi::c_void, overlapped: *mut ::core::ffi::c_void, ioresult: u32, numberofbytestransferred: usize, io: *mut TP_IO); pub type PTP_WORK_CALLBACK = unsafe extern "system" fn(instance: *mut TP_CALLBACK_INSTANCE, context: *mut ::core::ffi::c_void, work: *mut TP_WORK); #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn PulseEvent<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hevent: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn PulseEvent(hevent: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(PulseEvent(hevent.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct QUEUE_USER_APC_FLAGS(pub i32); pub const QUEUE_USER_APC_FLAGS_NONE: QUEUE_USER_APC_FLAGS = QUEUE_USER_APC_FLAGS(0i32); pub const QUEUE_USER_APC_FLAGS_SPECIAL_USER_APC: QUEUE_USER_APC_FLAGS = QUEUE_USER_APC_FLAGS(1i32); impl ::core::convert::From<i32> for QUEUE_USER_APC_FLAGS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for QUEUE_USER_APC_FLAGS { type Abi = Self; } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn QueryDepthSList(listhead: *const super::Kernel::SLIST_HEADER) -> u16 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn QueryDepthSList(listhead: *const super::Kernel::SLIST_HEADER) -> u16; } ::core::mem::transmute(QueryDepthSList(::core::mem::transmute(listhead))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn QueryFullProcessImageNameA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, dwflags: PROCESS_NAME_FORMAT, lpexename: super::super::Foundation::PSTR, lpdwsize: *mut u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn QueryFullProcessImageNameA(hprocess: super::super::Foundation::HANDLE, dwflags: PROCESS_NAME_FORMAT, lpexename: super::super::Foundation::PSTR, lpdwsize: *mut u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(QueryFullProcessImageNameA(hprocess.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(lpexename), ::core::mem::transmute(lpdwsize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn QueryFullProcessImageNameW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, dwflags: PROCESS_NAME_FORMAT, lpexename: super::super::Foundation::PWSTR, lpdwsize: *mut u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn QueryFullProcessImageNameW(hprocess: super::super::Foundation::HANDLE, dwflags: PROCESS_NAME_FORMAT, lpexename: super::super::Foundation::PWSTR, lpdwsize: *mut u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(QueryFullProcessImageNameW(hprocess.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(lpexename), ::core::mem::transmute(lpdwsize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn QueryProcessAffinityUpdateMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, lpdwflags: *mut PROCESS_AFFINITY_AUTO_UPDATE_FLAGS) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn QueryProcessAffinityUpdateMode(hprocess: super::super::Foundation::HANDLE, lpdwflags: *mut PROCESS_AFFINITY_AUTO_UPDATE_FLAGS) -> super::super::Foundation::BOOL; } ::core::mem::transmute(QueryProcessAffinityUpdateMode(hprocess.into_param().abi(), ::core::mem::transmute(lpdwflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn QueryProtectedPolicy(policyguid: *const ::windows::core::GUID, policyvalue: *mut usize) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn QueryProtectedPolicy(policyguid: *const ::windows::core::GUID, policyvalue: *mut usize) -> super::super::Foundation::BOOL; } ::core::mem::transmute(QueryProtectedPolicy(::core::mem::transmute(policyguid), ::core::mem::transmute(policyvalue))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn QueryThreadpoolStackInformation<'a, Param0: ::windows::core::IntoParam<'a, PTP_POOL>>(ptpp: Param0, ptpsi: *mut TP_POOL_STACK_INFORMATION) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn QueryThreadpoolStackInformation(ptpp: PTP_POOL, ptpsi: *mut TP_POOL_STACK_INFORMATION) -> super::super::Foundation::BOOL; } ::core::mem::transmute(QueryThreadpoolStackInformation(ptpp.into_param().abi(), ::core::mem::transmute(ptpsi))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn QueryUmsThreadInformation(umsthread: *const ::core::ffi::c_void, umsthreadinfoclass: RTL_UMS_THREAD_INFO_CLASS, umsthreadinformation: *mut ::core::ffi::c_void, umsthreadinformationlength: u32, returnlength: *mut u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn QueryUmsThreadInformation(umsthread: *const ::core::ffi::c_void, umsthreadinfoclass: RTL_UMS_THREAD_INFO_CLASS, umsthreadinformation: *mut ::core::ffi::c_void, umsthreadinformationlength: u32, returnlength: *mut u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(QueryUmsThreadInformation(::core::mem::transmute(umsthread), ::core::mem::transmute(umsthreadinfoclass), ::core::mem::transmute(umsthreadinformation), ::core::mem::transmute(umsthreadinformationlength), ::core::mem::transmute(returnlength))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn QueueUserAPC<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(pfnapc: ::core::option::Option<super::super::Foundation::PAPCFUNC>, hthread: Param1, dwdata: usize) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn QueueUserAPC(pfnapc: ::windows::core::RawPtr, hthread: super::super::Foundation::HANDLE, dwdata: usize) -> u32; } ::core::mem::transmute(QueueUserAPC(::core::mem::transmute(pfnapc), hthread.into_param().abi(), ::core::mem::transmute(dwdata))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn QueueUserAPC2<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(apcroutine: ::core::option::Option<super::super::Foundation::PAPCFUNC>, thread: Param1, data: usize, flags: QUEUE_USER_APC_FLAGS) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn QueueUserAPC2(apcroutine: ::windows::core::RawPtr, thread: super::super::Foundation::HANDLE, data: usize, flags: QUEUE_USER_APC_FLAGS) -> super::super::Foundation::BOOL; } ::core::mem::transmute(QueueUserAPC2(::core::mem::transmute(apcroutine), thread.into_param().abi(), ::core::mem::transmute(data), ::core::mem::transmute(flags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn QueueUserWorkItem(function: ::core::option::Option<LPTHREAD_START_ROUTINE>, context: *const ::core::ffi::c_void, flags: WORKER_THREAD_FLAGS) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn QueueUserWorkItem(function: ::windows::core::RawPtr, context: *const ::core::ffi::c_void, flags: WORKER_THREAD_FLAGS) -> super::super::Foundation::BOOL; } ::core::mem::transmute(QueueUserWorkItem(::core::mem::transmute(function), ::core::mem::transmute(context), ::core::mem::transmute(flags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct REASON_CONTEXT { pub Version: u32, pub Flags: POWER_REQUEST_CONTEXT_FLAGS, pub Reason: REASON_CONTEXT_0, } #[cfg(feature = "Win32_Foundation")] impl REASON_CONTEXT {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for REASON_CONTEXT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for REASON_CONTEXT { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for REASON_CONTEXT {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for REASON_CONTEXT { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub union REASON_CONTEXT_0 { pub Detailed: REASON_CONTEXT_0_0, pub SimpleReasonString: super::super::Foundation::PWSTR, } #[cfg(feature = "Win32_Foundation")] impl REASON_CONTEXT_0 {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for REASON_CONTEXT_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for REASON_CONTEXT_0 { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for REASON_CONTEXT_0 {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for REASON_CONTEXT_0 { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct REASON_CONTEXT_0_0 { pub LocalizedReasonModule: super::super::Foundation::HINSTANCE, pub LocalizedReasonId: u32, pub ReasonStringCount: u32, pub ReasonStrings: *mut super::super::Foundation::PWSTR, } #[cfg(feature = "Win32_Foundation")] impl REASON_CONTEXT_0_0 {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for REASON_CONTEXT_0_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for REASON_CONTEXT_0_0 { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("_Detailed_e__Struct").field("LocalizedReasonModule", &self.LocalizedReasonModule).field("LocalizedReasonId", &self.LocalizedReasonId).field("ReasonStringCount", &self.ReasonStringCount).field("ReasonStrings", &self.ReasonStrings).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for REASON_CONTEXT_0_0 { fn eq(&self, other: &Self) -> bool { self.LocalizedReasonModule == other.LocalizedReasonModule && self.LocalizedReasonId == other.LocalizedReasonId && self.ReasonStringCount == other.ReasonStringCount && self.ReasonStrings == other.ReasonStrings } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for REASON_CONTEXT_0_0 {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for REASON_CONTEXT_0_0 { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct RTL_BARRIER { pub Reserved1: u32, pub Reserved2: u32, pub Reserved3: [usize; 2], pub Reserved4: u32, pub Reserved5: u32, } impl RTL_BARRIER {} impl ::core::default::Default for RTL_BARRIER { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for RTL_BARRIER { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("RTL_BARRIER").field("Reserved1", &self.Reserved1).field("Reserved2", &self.Reserved2).field("Reserved3", &self.Reserved3).field("Reserved4", &self.Reserved4).field("Reserved5", &self.Reserved5).finish() } } impl ::core::cmp::PartialEq for RTL_BARRIER { fn eq(&self, other: &Self) -> bool { self.Reserved1 == other.Reserved1 && self.Reserved2 == other.Reserved2 && self.Reserved3 == other.Reserved3 && self.Reserved4 == other.Reserved4 && self.Reserved5 == other.Reserved5 } } impl ::core::cmp::Eq for RTL_BARRIER {} unsafe impl ::windows::core::Abi for RTL_BARRIER { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct RTL_CONDITION_VARIABLE { pub Ptr: *mut ::core::ffi::c_void, } impl RTL_CONDITION_VARIABLE {} impl ::core::default::Default for RTL_CONDITION_VARIABLE { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for RTL_CONDITION_VARIABLE { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("RTL_CONDITION_VARIABLE").field("Ptr", &self.Ptr).finish() } } impl ::core::cmp::PartialEq for RTL_CONDITION_VARIABLE { fn eq(&self, other: &Self) -> bool { self.Ptr == other.Ptr } } impl ::core::cmp::Eq for RTL_CONDITION_VARIABLE {} unsafe impl ::windows::core::Abi for RTL_CONDITION_VARIABLE { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] pub struct RTL_CRITICAL_SECTION { pub DebugInfo: *mut RTL_CRITICAL_SECTION_DEBUG, pub LockCount: i32, pub RecursionCount: i32, pub OwningThread: super::super::Foundation::HANDLE, pub LockSemaphore: super::super::Foundation::HANDLE, pub SpinCount: usize, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl RTL_CRITICAL_SECTION {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::default::Default for RTL_CRITICAL_SECTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::fmt::Debug for RTL_CRITICAL_SECTION { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("RTL_CRITICAL_SECTION").field("DebugInfo", &self.DebugInfo).field("LockCount", &self.LockCount).field("RecursionCount", &self.RecursionCount).field("OwningThread", &self.OwningThread).field("LockSemaphore", &self.LockSemaphore).field("SpinCount", &self.SpinCount).finish() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::cmp::PartialEq for RTL_CRITICAL_SECTION { fn eq(&self, other: &Self) -> bool { self.DebugInfo == other.DebugInfo && self.LockCount == other.LockCount && self.RecursionCount == other.RecursionCount && self.OwningThread == other.OwningThread && self.LockSemaphore == other.LockSemaphore && self.SpinCount == other.SpinCount } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::cmp::Eq for RTL_CRITICAL_SECTION {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] unsafe impl ::windows::core::Abi for RTL_CRITICAL_SECTION { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] pub struct RTL_CRITICAL_SECTION_DEBUG { pub Type: u16, pub CreatorBackTraceIndex: u16, pub CriticalSection: *mut RTL_CRITICAL_SECTION, pub ProcessLocksList: super::Kernel::LIST_ENTRY, pub EntryCount: u32, pub ContentionCount: u32, pub Flags: u32, pub CreatorBackTraceIndexHigh: u16, pub SpareWORD: u16, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl RTL_CRITICAL_SECTION_DEBUG {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::default::Default for RTL_CRITICAL_SECTION_DEBUG { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::fmt::Debug for RTL_CRITICAL_SECTION_DEBUG { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("RTL_CRITICAL_SECTION_DEBUG") .field("Type", &self.Type) .field("CreatorBackTraceIndex", &self.CreatorBackTraceIndex) .field("CriticalSection", &self.CriticalSection) .field("ProcessLocksList", &self.ProcessLocksList) .field("EntryCount", &self.EntryCount) .field("ContentionCount", &self.ContentionCount) .field("Flags", &self.Flags) .field("CreatorBackTraceIndexHigh", &self.CreatorBackTraceIndexHigh) .field("SpareWORD", &self.SpareWORD) .finish() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::cmp::PartialEq for RTL_CRITICAL_SECTION_DEBUG { fn eq(&self, other: &Self) -> bool { self.Type == other.Type && self.CreatorBackTraceIndex == other.CreatorBackTraceIndex && self.CriticalSection == other.CriticalSection && self.ProcessLocksList == other.ProcessLocksList && self.EntryCount == other.EntryCount && self.ContentionCount == other.ContentionCount && self.Flags == other.Flags && self.CreatorBackTraceIndexHigh == other.CreatorBackTraceIndexHigh && self.SpareWORD == other.SpareWORD } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::cmp::Eq for RTL_CRITICAL_SECTION_DEBUG {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] unsafe impl ::windows::core::Abi for RTL_CRITICAL_SECTION_DEBUG { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub union RTL_RUN_ONCE { pub Ptr: *mut ::core::ffi::c_void, } impl RTL_RUN_ONCE {} impl ::core::default::Default for RTL_RUN_ONCE { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::cmp::PartialEq for RTL_RUN_ONCE { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } impl ::core::cmp::Eq for RTL_RUN_ONCE {} unsafe impl ::windows::core::Abi for RTL_RUN_ONCE { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct RTL_SRWLOCK { pub Ptr: *mut ::core::ffi::c_void, } impl RTL_SRWLOCK {} impl ::core::default::Default for RTL_SRWLOCK { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for RTL_SRWLOCK { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("RTL_SRWLOCK").field("Ptr", &self.Ptr).finish() } } impl ::core::cmp::PartialEq for RTL_SRWLOCK { fn eq(&self, other: &Self) -> bool { self.Ptr == other.Ptr } } impl ::core::cmp::Eq for RTL_SRWLOCK {} unsafe impl ::windows::core::Abi for RTL_SRWLOCK { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct RTL_UMS_THREAD_INFO_CLASS(pub i32); pub const UmsThreadInvalidInfoClass: RTL_UMS_THREAD_INFO_CLASS = RTL_UMS_THREAD_INFO_CLASS(0i32); pub const UmsThreadUserContext: RTL_UMS_THREAD_INFO_CLASS = RTL_UMS_THREAD_INFO_CLASS(1i32); pub const UmsThreadPriority: RTL_UMS_THREAD_INFO_CLASS = RTL_UMS_THREAD_INFO_CLASS(2i32); pub const UmsThreadAffinity: RTL_UMS_THREAD_INFO_CLASS = RTL_UMS_THREAD_INFO_CLASS(3i32); pub const UmsThreadTeb: RTL_UMS_THREAD_INFO_CLASS = RTL_UMS_THREAD_INFO_CLASS(4i32); pub const UmsThreadIsSuspended: RTL_UMS_THREAD_INFO_CLASS = RTL_UMS_THREAD_INFO_CLASS(5i32); pub const UmsThreadIsTerminated: RTL_UMS_THREAD_INFO_CLASS = RTL_UMS_THREAD_INFO_CLASS(6i32); pub const UmsThreadMaxInfoClass: RTL_UMS_THREAD_INFO_CLASS = RTL_UMS_THREAD_INFO_CLASS(7i32); impl ::core::convert::From<i32> for RTL_UMS_THREAD_INFO_CLASS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for RTL_UMS_THREAD_INFO_CLASS { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct RTL_USER_PROCESS_PARAMETERS { pub Reserved1: [u8; 16], pub Reserved2: [*mut ::core::ffi::c_void; 10], pub ImagePathName: super::super::Foundation::UNICODE_STRING, pub CommandLine: super::super::Foundation::UNICODE_STRING, } #[cfg(feature = "Win32_Foundation")] impl RTL_USER_PROCESS_PARAMETERS {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for RTL_USER_PROCESS_PARAMETERS { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for RTL_USER_PROCESS_PARAMETERS { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("RTL_USER_PROCESS_PARAMETERS").field("Reserved1", &self.Reserved1).field("Reserved2", &self.Reserved2).field("ImagePathName", &self.ImagePathName).field("CommandLine", &self.CommandLine).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for RTL_USER_PROCESS_PARAMETERS { fn eq(&self, other: &Self) -> bool { self.Reserved1 == other.Reserved1 && self.Reserved2 == other.Reserved2 && self.ImagePathName == other.ImagePathName && self.CommandLine == other.CommandLine } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for RTL_USER_PROCESS_PARAMETERS {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for RTL_USER_PROCESS_PARAMETERS { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn RegisterWaitForSingleObject<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(phnewwaitobject: *mut super::super::Foundation::HANDLE, hobject: Param1, callback: ::core::option::Option<WAITORTIMERCALLBACK>, context: *const ::core::ffi::c_void, dwmilliseconds: u32, dwflags: WORKER_THREAD_FLAGS) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn RegisterWaitForSingleObject(phnewwaitobject: *mut super::super::Foundation::HANDLE, hobject: super::super::Foundation::HANDLE, callback: ::windows::core::RawPtr, context: *const ::core::ffi::c_void, dwmilliseconds: u32, dwflags: WORKER_THREAD_FLAGS) -> super::super::Foundation::BOOL; } ::core::mem::transmute(RegisterWaitForSingleObject(::core::mem::transmute(phnewwaitobject), hobject.into_param().abi(), ::core::mem::transmute(callback), ::core::mem::transmute(context), ::core::mem::transmute(dwmilliseconds), ::core::mem::transmute(dwflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ReleaseMutex<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hmutex: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ReleaseMutex(hmutex: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(ReleaseMutex(hmutex.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ReleaseMutexWhenCallbackReturns<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(pci: *mut TP_CALLBACK_INSTANCE, r#mut: Param1) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ReleaseMutexWhenCallbackReturns(pci: *mut TP_CALLBACK_INSTANCE, r#mut: super::super::Foundation::HANDLE); } ::core::mem::transmute(ReleaseMutexWhenCallbackReturns(::core::mem::transmute(pci), r#mut.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn ReleaseSRWLockExclusive(srwlock: *mut RTL_SRWLOCK) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ReleaseSRWLockExclusive(srwlock: *mut RTL_SRWLOCK); } ::core::mem::transmute(ReleaseSRWLockExclusive(::core::mem::transmute(srwlock))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn ReleaseSRWLockShared(srwlock: *mut RTL_SRWLOCK) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ReleaseSRWLockShared(srwlock: *mut RTL_SRWLOCK); } ::core::mem::transmute(ReleaseSRWLockShared(::core::mem::transmute(srwlock))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ReleaseSemaphore<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hsemaphore: Param0, lreleasecount: i32, lppreviouscount: *mut i32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ReleaseSemaphore(hsemaphore: super::super::Foundation::HANDLE, lreleasecount: i32, lppreviouscount: *mut i32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(ReleaseSemaphore(hsemaphore.into_param().abi(), ::core::mem::transmute(lreleasecount), ::core::mem::transmute(lppreviouscount))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ReleaseSemaphoreWhenCallbackReturns<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(pci: *mut TP_CALLBACK_INSTANCE, sem: Param1, crel: u32) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ReleaseSemaphoreWhenCallbackReturns(pci: *mut TP_CALLBACK_INSTANCE, sem: super::super::Foundation::HANDLE, crel: u32); } ::core::mem::transmute(ReleaseSemaphoreWhenCallbackReturns(::core::mem::transmute(pci), sem.into_param().abi(), ::core::mem::transmute(crel))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ResetEvent<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hevent: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ResetEvent(hevent: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(ResetEvent(hevent.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ResumeThread<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hthread: Param0) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ResumeThread(hthread: super::super::Foundation::HANDLE) -> u32; } ::core::mem::transmute(ResumeThread(hthread.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct STARTUPINFOA { pub cb: u32, pub lpReserved: super::super::Foundation::PSTR, pub lpDesktop: super::super::Foundation::PSTR, pub lpTitle: super::super::Foundation::PSTR, pub dwX: u32, pub dwY: u32, pub dwXSize: u32, pub dwYSize: u32, pub dwXCountChars: u32, pub dwYCountChars: u32, pub dwFillAttribute: u32, pub dwFlags: STARTUPINFOW_FLAGS, pub wShowWindow: u16, pub cbReserved2: u16, pub lpReserved2: *mut u8, pub hStdInput: super::super::Foundation::HANDLE, pub hStdOutput: super::super::Foundation::HANDLE, pub hStdError: super::super::Foundation::HANDLE, } #[cfg(feature = "Win32_Foundation")] impl STARTUPINFOA {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for STARTUPINFOA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for STARTUPINFOA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("STARTUPINFOA") .field("cb", &self.cb) .field("lpReserved", &self.lpReserved) .field("lpDesktop", &self.lpDesktop) .field("lpTitle", &self.lpTitle) .field("dwX", &self.dwX) .field("dwY", &self.dwY) .field("dwXSize", &self.dwXSize) .field("dwYSize", &self.dwYSize) .field("dwXCountChars", &self.dwXCountChars) .field("dwYCountChars", &self.dwYCountChars) .field("dwFillAttribute", &self.dwFillAttribute) .field("dwFlags", &self.dwFlags) .field("wShowWindow", &self.wShowWindow) .field("cbReserved2", &self.cbReserved2) .field("lpReserved2", &self.lpReserved2) .field("hStdInput", &self.hStdInput) .field("hStdOutput", &self.hStdOutput) .field("hStdError", &self.hStdError) .finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for STARTUPINFOA { fn eq(&self, other: &Self) -> bool { self.cb == other.cb && self.lpReserved == other.lpReserved && self.lpDesktop == other.lpDesktop && self.lpTitle == other.lpTitle && self.dwX == other.dwX && self.dwY == other.dwY && self.dwXSize == other.dwXSize && self.dwYSize == other.dwYSize && self.dwXCountChars == other.dwXCountChars && self.dwYCountChars == other.dwYCountChars && self.dwFillAttribute == other.dwFillAttribute && self.dwFlags == other.dwFlags && self.wShowWindow == other.wShowWindow && self.cbReserved2 == other.cbReserved2 && self.lpReserved2 == other.lpReserved2 && self.hStdInput == other.hStdInput && self.hStdOutput == other.hStdOutput && self.hStdError == other.hStdError } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for STARTUPINFOA {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for STARTUPINFOA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct STARTUPINFOEXA { pub StartupInfo: STARTUPINFOA, pub lpAttributeList: LPPROC_THREAD_ATTRIBUTE_LIST, } #[cfg(feature = "Win32_Foundation")] impl STARTUPINFOEXA {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for STARTUPINFOEXA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for STARTUPINFOEXA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("STARTUPINFOEXA").field("StartupInfo", &self.StartupInfo).field("lpAttributeList", &self.lpAttributeList).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for STARTUPINFOEXA { fn eq(&self, other: &Self) -> bool { self.StartupInfo == other.StartupInfo && self.lpAttributeList == other.lpAttributeList } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for STARTUPINFOEXA {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for STARTUPINFOEXA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct STARTUPINFOEXW { pub StartupInfo: STARTUPINFOW, pub lpAttributeList: LPPROC_THREAD_ATTRIBUTE_LIST, } #[cfg(feature = "Win32_Foundation")] impl STARTUPINFOEXW {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for STARTUPINFOEXW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for STARTUPINFOEXW { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("STARTUPINFOEXW").field("StartupInfo", &self.StartupInfo).field("lpAttributeList", &self.lpAttributeList).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for STARTUPINFOEXW { fn eq(&self, other: &Self) -> bool { self.StartupInfo == other.StartupInfo && self.lpAttributeList == other.lpAttributeList } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for STARTUPINFOEXW {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for STARTUPINFOEXW { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct STARTUPINFOW { pub cb: u32, pub lpReserved: super::super::Foundation::PWSTR, pub lpDesktop: super::super::Foundation::PWSTR, pub lpTitle: super::super::Foundation::PWSTR, pub dwX: u32, pub dwY: u32, pub dwXSize: u32, pub dwYSize: u32, pub dwXCountChars: u32, pub dwYCountChars: u32, pub dwFillAttribute: u32, pub dwFlags: STARTUPINFOW_FLAGS, pub wShowWindow: u16, pub cbReserved2: u16, pub lpReserved2: *mut u8, pub hStdInput: super::super::Foundation::HANDLE, pub hStdOutput: super::super::Foundation::HANDLE, pub hStdError: super::super::Foundation::HANDLE, } #[cfg(feature = "Win32_Foundation")] impl STARTUPINFOW {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for STARTUPINFOW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for STARTUPINFOW { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("STARTUPINFOW") .field("cb", &self.cb) .field("lpReserved", &self.lpReserved) .field("lpDesktop", &self.lpDesktop) .field("lpTitle", &self.lpTitle) .field("dwX", &self.dwX) .field("dwY", &self.dwY) .field("dwXSize", &self.dwXSize) .field("dwYSize", &self.dwYSize) .field("dwXCountChars", &self.dwXCountChars) .field("dwYCountChars", &self.dwYCountChars) .field("dwFillAttribute", &self.dwFillAttribute) .field("dwFlags", &self.dwFlags) .field("wShowWindow", &self.wShowWindow) .field("cbReserved2", &self.cbReserved2) .field("lpReserved2", &self.lpReserved2) .field("hStdInput", &self.hStdInput) .field("hStdOutput", &self.hStdOutput) .field("hStdError", &self.hStdError) .finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for STARTUPINFOW { fn eq(&self, other: &Self) -> bool { self.cb == other.cb && self.lpReserved == other.lpReserved && self.lpDesktop == other.lpDesktop && self.lpTitle == other.lpTitle && self.dwX == other.dwX && self.dwY == other.dwY && self.dwXSize == other.dwXSize && self.dwYSize == other.dwYSize && self.dwXCountChars == other.dwXCountChars && self.dwYCountChars == other.dwYCountChars && self.dwFillAttribute == other.dwFillAttribute && self.dwFlags == other.dwFlags && self.wShowWindow == other.wShowWindow && self.cbReserved2 == other.cbReserved2 && self.lpReserved2 == other.lpReserved2 && self.hStdInput == other.hStdInput && self.hStdOutput == other.hStdOutput && self.hStdError == other.hStdError } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for STARTUPINFOW {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for STARTUPINFOW { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct STARTUPINFOW_FLAGS(pub u32); pub const STARTF_FORCEONFEEDBACK: STARTUPINFOW_FLAGS = STARTUPINFOW_FLAGS(64u32); pub const STARTF_FORCEOFFFEEDBACK: STARTUPINFOW_FLAGS = STARTUPINFOW_FLAGS(128u32); pub const STARTF_PREVENTPINNING: STARTUPINFOW_FLAGS = STARTUPINFOW_FLAGS(8192u32); pub const STARTF_RUNFULLSCREEN: STARTUPINFOW_FLAGS = STARTUPINFOW_FLAGS(32u32); pub const STARTF_TITLEISAPPID: STARTUPINFOW_FLAGS = STARTUPINFOW_FLAGS(4096u32); pub const STARTF_TITLEISLINKNAME: STARTUPINFOW_FLAGS = STARTUPINFOW_FLAGS(2048u32); pub const STARTF_UNTRUSTEDSOURCE: STARTUPINFOW_FLAGS = STARTUPINFOW_FLAGS(32768u32); pub const STARTF_USECOUNTCHARS: STARTUPINFOW_FLAGS = STARTUPINFOW_FLAGS(8u32); pub const STARTF_USEFILLATTRIBUTE: STARTUPINFOW_FLAGS = STARTUPINFOW_FLAGS(16u32); pub const STARTF_USEHOTKEY: STARTUPINFOW_FLAGS = STARTUPINFOW_FLAGS(512u32); pub const STARTF_USEPOSITION: STARTUPINFOW_FLAGS = STARTUPINFOW_FLAGS(4u32); pub const STARTF_USESHOWWINDOW: STARTUPINFOW_FLAGS = STARTUPINFOW_FLAGS(1u32); pub const STARTF_USESIZE: STARTUPINFOW_FLAGS = STARTUPINFOW_FLAGS(2u32); pub const STARTF_USESTDHANDLES: STARTUPINFOW_FLAGS = STARTUPINFOW_FLAGS(256u32); impl ::core::convert::From<u32> for STARTUPINFOW_FLAGS { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for STARTUPINFOW_FLAGS { type Abi = Self; } impl ::core::ops::BitOr for STARTUPINFOW_FLAGS { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for STARTUPINFOW_FLAGS { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for STARTUPINFOW_FLAGS { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for STARTUPINFOW_FLAGS { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for STARTUPINFOW_FLAGS { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } pub const SYNCHRONIZATION_BARRIER_FLAGS_BLOCK_ONLY: u32 = 2u32; pub const SYNCHRONIZATION_BARRIER_FLAGS_NO_DELETE: u32 = 4u32; pub const SYNCHRONIZATION_BARRIER_FLAGS_SPIN_ONLY: u32 = 1u32; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn SetCriticalSectionSpinCount(lpcriticalsection: *mut RTL_CRITICAL_SECTION, dwspincount: u32) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetCriticalSectionSpinCount(lpcriticalsection: *mut RTL_CRITICAL_SECTION, dwspincount: u32) -> u32; } ::core::mem::transmute(SetCriticalSectionSpinCount(::core::mem::transmute(lpcriticalsection), ::core::mem::transmute(dwspincount))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetEvent<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hevent: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetEvent(hevent: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetEvent(hevent.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetEventWhenCallbackReturns<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(pci: *mut TP_CALLBACK_INSTANCE, evt: Param1) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetEventWhenCallbackReturns(pci: *mut TP_CALLBACK_INSTANCE, evt: super::super::Foundation::HANDLE); } ::core::mem::transmute(SetEventWhenCallbackReturns(::core::mem::transmute(pci), evt.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetPriorityClass<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, dwpriorityclass: PROCESS_CREATION_FLAGS) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetPriorityClass(hprocess: super::super::Foundation::HANDLE, dwpriorityclass: PROCESS_CREATION_FLAGS) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetPriorityClass(hprocess.into_param().abi(), ::core::mem::transmute(dwpriorityclass))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetProcessAffinityMask<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, dwprocessaffinitymask: usize) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetProcessAffinityMask(hprocess: super::super::Foundation::HANDLE, dwprocessaffinitymask: usize) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetProcessAffinityMask(hprocess.into_param().abi(), ::core::mem::transmute(dwprocessaffinitymask))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetProcessAffinityUpdateMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, dwflags: PROCESS_AFFINITY_AUTO_UPDATE_FLAGS) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetProcessAffinityUpdateMode(hprocess: super::super::Foundation::HANDLE, dwflags: PROCESS_AFFINITY_AUTO_UPDATE_FLAGS) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetProcessAffinityUpdateMode(hprocess.into_param().abi(), ::core::mem::transmute(dwflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetProcessDEPPolicy(dwflags: PROCESS_DEP_FLAGS) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetProcessDEPPolicy(dwflags: PROCESS_DEP_FLAGS) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetProcessDEPPolicy(::core::mem::transmute(dwflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn SetProcessDefaultCpuSetMasks<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(process: Param0, cpusetmasks: *const super::SystemInformation::GROUP_AFFINITY, cpusetmaskcount: u16) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetProcessDefaultCpuSetMasks(process: super::super::Foundation::HANDLE, cpusetmasks: *const super::SystemInformation::GROUP_AFFINITY, cpusetmaskcount: u16) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetProcessDefaultCpuSetMasks(process.into_param().abi(), ::core::mem::transmute(cpusetmasks), ::core::mem::transmute(cpusetmaskcount))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetProcessDefaultCpuSets<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(process: Param0, cpusetids: *const u32, cpusetidcount: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetProcessDefaultCpuSets(process: super::super::Foundation::HANDLE, cpusetids: *const u32, cpusetidcount: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetProcessDefaultCpuSets(process.into_param().abi(), ::core::mem::transmute(cpusetids), ::core::mem::transmute(cpusetidcount))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetProcessDynamicEHContinuationTargets<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(process: Param0, numberoftargets: u16, targets: *mut PROCESS_DYNAMIC_EH_CONTINUATION_TARGET) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetProcessDynamicEHContinuationTargets(process: super::super::Foundation::HANDLE, numberoftargets: u16, targets: *mut PROCESS_DYNAMIC_EH_CONTINUATION_TARGET) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetProcessDynamicEHContinuationTargets(process.into_param().abi(), ::core::mem::transmute(numberoftargets), ::core::mem::transmute(targets))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetProcessDynamicEnforcedCetCompatibleRanges<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(process: Param0, numberofranges: u16, ranges: *mut PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetProcessDynamicEnforcedCetCompatibleRanges(process: super::super::Foundation::HANDLE, numberofranges: u16, ranges: *mut PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetProcessDynamicEnforcedCetCompatibleRanges(process.into_param().abi(), ::core::mem::transmute(numberofranges), ::core::mem::transmute(ranges))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetProcessInformation<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, processinformationclass: PROCESS_INFORMATION_CLASS, processinformation: *const ::core::ffi::c_void, processinformationsize: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetProcessInformation(hprocess: super::super::Foundation::HANDLE, processinformationclass: PROCESS_INFORMATION_CLASS, processinformation: *const ::core::ffi::c_void, processinformationsize: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetProcessInformation(hprocess.into_param().abi(), ::core::mem::transmute(processinformationclass), ::core::mem::transmute(processinformation), ::core::mem::transmute(processinformationsize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetProcessMitigationPolicy(mitigationpolicy: PROCESS_MITIGATION_POLICY, lpbuffer: *const ::core::ffi::c_void, dwlength: usize) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetProcessMitigationPolicy(mitigationpolicy: PROCESS_MITIGATION_POLICY, lpbuffer: *const ::core::ffi::c_void, dwlength: usize) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetProcessMitigationPolicy(::core::mem::transmute(mitigationpolicy), ::core::mem::transmute(lpbuffer), ::core::mem::transmute(dwlength))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetProcessPriorityBoost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(hprocess: Param0, bdisablepriorityboost: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetProcessPriorityBoost(hprocess: super::super::Foundation::HANDLE, bdisablepriorityboost: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetProcessPriorityBoost(hprocess.into_param().abi(), bdisablepriorityboost.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetProcessRestrictionExemption<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(fenableexemption: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetProcessRestrictionExemption(fenableexemption: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetProcessRestrictionExemption(fenableexemption.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetProcessShutdownParameters(dwlevel: u32, dwflags: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetProcessShutdownParameters(dwlevel: u32, dwflags: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetProcessShutdownParameters(::core::mem::transmute(dwlevel), ::core::mem::transmute(dwflags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetProcessWorkingSetSize<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, dwminimumworkingsetsize: usize, dwmaximumworkingsetsize: usize) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetProcessWorkingSetSize(hprocess: super::super::Foundation::HANDLE, dwminimumworkingsetsize: usize, dwmaximumworkingsetsize: usize) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetProcessWorkingSetSize(hprocess.into_param().abi(), ::core::mem::transmute(dwminimumworkingsetsize), ::core::mem::transmute(dwmaximumworkingsetsize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetProtectedPolicy(policyguid: *const ::windows::core::GUID, policyvalue: usize, oldpolicyvalue: *mut usize) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetProtectedPolicy(policyguid: *const ::windows::core::GUID, policyvalue: usize, oldpolicyvalue: *mut usize) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetProtectedPolicy(::core::mem::transmute(policyguid), ::core::mem::transmute(policyvalue), ::core::mem::transmute(oldpolicyvalue))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetThreadAffinityMask<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hthread: Param0, dwthreadaffinitymask: usize) -> usize { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetThreadAffinityMask(hthread: super::super::Foundation::HANDLE, dwthreadaffinitymask: usize) -> usize; } ::core::mem::transmute(SetThreadAffinityMask(hthread.into_param().abi(), ::core::mem::transmute(dwthreadaffinitymask))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetThreadDescription<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(hthread: Param0, lpthreaddescription: Param1) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetThreadDescription(hthread: super::super::Foundation::HANDLE, lpthreaddescription: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } SetThreadDescription(hthread.into_param().abi(), lpthreaddescription.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn SetThreadGroupAffinity<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hthread: Param0, groupaffinity: *const super::SystemInformation::GROUP_AFFINITY, previousgroupaffinity: *mut super::SystemInformation::GROUP_AFFINITY) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetThreadGroupAffinity(hthread: super::super::Foundation::HANDLE, groupaffinity: *const super::SystemInformation::GROUP_AFFINITY, previousgroupaffinity: *mut super::SystemInformation::GROUP_AFFINITY) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetThreadGroupAffinity(hthread.into_param().abi(), ::core::mem::transmute(groupaffinity), ::core::mem::transmute(previousgroupaffinity))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetThreadIdealProcessor<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hthread: Param0, dwidealprocessor: u32) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetThreadIdealProcessor(hthread: super::super::Foundation::HANDLE, dwidealprocessor: u32) -> u32; } ::core::mem::transmute(SetThreadIdealProcessor(hthread.into_param().abi(), ::core::mem::transmute(dwidealprocessor))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn SetThreadIdealProcessorEx<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hthread: Param0, lpidealprocessor: *const super::Kernel::PROCESSOR_NUMBER, lppreviousidealprocessor: *mut super::Kernel::PROCESSOR_NUMBER) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetThreadIdealProcessorEx(hthread: super::super::Foundation::HANDLE, lpidealprocessor: *const super::Kernel::PROCESSOR_NUMBER, lppreviousidealprocessor: *mut super::Kernel::PROCESSOR_NUMBER) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetThreadIdealProcessorEx(hthread.into_param().abi(), ::core::mem::transmute(lpidealprocessor), ::core::mem::transmute(lppreviousidealprocessor))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetThreadInformation<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hthread: Param0, threadinformationclass: THREAD_INFORMATION_CLASS, threadinformation: *const ::core::ffi::c_void, threadinformationsize: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetThreadInformation(hthread: super::super::Foundation::HANDLE, threadinformationclass: THREAD_INFORMATION_CLASS, threadinformation: *const ::core::ffi::c_void, threadinformationsize: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetThreadInformation(hthread.into_param().abi(), ::core::mem::transmute(threadinformationclass), ::core::mem::transmute(threadinformation), ::core::mem::transmute(threadinformationsize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetThreadPriority<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hthread: Param0, npriority: THREAD_PRIORITY) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetThreadPriority(hthread: super::super::Foundation::HANDLE, npriority: THREAD_PRIORITY) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetThreadPriority(hthread.into_param().abi(), ::core::mem::transmute(npriority))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetThreadPriorityBoost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(hthread: Param0, bdisablepriorityboost: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetThreadPriorityBoost(hthread: super::super::Foundation::HANDLE, bdisablepriorityboost: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetThreadPriorityBoost(hthread.into_param().abi(), bdisablepriorityboost.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn SetThreadSelectedCpuSetMasks<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(thread: Param0, cpusetmasks: *const super::SystemInformation::GROUP_AFFINITY, cpusetmaskcount: u16) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetThreadSelectedCpuSetMasks(thread: super::super::Foundation::HANDLE, cpusetmasks: *const super::SystemInformation::GROUP_AFFINITY, cpusetmaskcount: u16) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetThreadSelectedCpuSetMasks(thread.into_param().abi(), ::core::mem::transmute(cpusetmasks), ::core::mem::transmute(cpusetmaskcount))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetThreadSelectedCpuSets<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(thread: Param0, cpusetids: *const u32, cpusetidcount: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetThreadSelectedCpuSets(thread: super::super::Foundation::HANDLE, cpusetids: *const u32, cpusetidcount: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetThreadSelectedCpuSets(thread.into_param().abi(), ::core::mem::transmute(cpusetids), ::core::mem::transmute(cpusetidcount))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetThreadStackGuarantee(stacksizeinbytes: *mut u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetThreadStackGuarantee(stacksizeinbytes: *mut u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetThreadStackGuarantee(::core::mem::transmute(stacksizeinbytes))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetThreadToken<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(thread: *const super::super::Foundation::HANDLE, token: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetThreadToken(thread: *const super::super::Foundation::HANDLE, token: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetThreadToken(::core::mem::transmute(thread), token.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetThreadpoolStackInformation<'a, Param0: ::windows::core::IntoParam<'a, PTP_POOL>>(ptpp: Param0, ptpsi: *const TP_POOL_STACK_INFORMATION) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetThreadpoolStackInformation(ptpp: PTP_POOL, ptpsi: *const TP_POOL_STACK_INFORMATION) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetThreadpoolStackInformation(ptpp.into_param().abi(), ::core::mem::transmute(ptpsi))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SetThreadpoolThreadMaximum<'a, Param0: ::windows::core::IntoParam<'a, PTP_POOL>>(ptpp: Param0, cthrdmost: u32) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetThreadpoolThreadMaximum(ptpp: PTP_POOL, cthrdmost: u32); } ::core::mem::transmute(SetThreadpoolThreadMaximum(ptpp.into_param().abi(), ::core::mem::transmute(cthrdmost))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetThreadpoolThreadMinimum<'a, Param0: ::windows::core::IntoParam<'a, PTP_POOL>>(ptpp: Param0, cthrdmic: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetThreadpoolThreadMinimum(ptpp: PTP_POOL, cthrdmic: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetThreadpoolThreadMinimum(ptpp.into_param().abi(), ::core::mem::transmute(cthrdmic))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetThreadpoolTimer(pti: *mut TP_TIMER, pftduetime: *const super::super::Foundation::FILETIME, msperiod: u32, mswindowlength: u32) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetThreadpoolTimer(pti: *mut TP_TIMER, pftduetime: *const super::super::Foundation::FILETIME, msperiod: u32, mswindowlength: u32); } ::core::mem::transmute(SetThreadpoolTimer(::core::mem::transmute(pti), ::core::mem::transmute(pftduetime), ::core::mem::transmute(msperiod), ::core::mem::transmute(mswindowlength))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetThreadpoolTimerEx(pti: *mut TP_TIMER, pftduetime: *const super::super::Foundation::FILETIME, msperiod: u32, mswindowlength: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetThreadpoolTimerEx(pti: *mut TP_TIMER, pftduetime: *const super::super::Foundation::FILETIME, msperiod: u32, mswindowlength: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetThreadpoolTimerEx(::core::mem::transmute(pti), ::core::mem::transmute(pftduetime), ::core::mem::transmute(msperiod), ::core::mem::transmute(mswindowlength))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetThreadpoolWait<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(pwa: *mut TP_WAIT, h: Param1, pfttimeout: *const super::super::Foundation::FILETIME) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetThreadpoolWait(pwa: *mut TP_WAIT, h: super::super::Foundation::HANDLE, pfttimeout: *const super::super::Foundation::FILETIME); } ::core::mem::transmute(SetThreadpoolWait(::core::mem::transmute(pwa), h.into_param().abi(), ::core::mem::transmute(pfttimeout))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetThreadpoolWaitEx<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(pwa: *mut TP_WAIT, h: Param1, pfttimeout: *const super::super::Foundation::FILETIME, reserved: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetThreadpoolWaitEx(pwa: *mut TP_WAIT, h: super::super::Foundation::HANDLE, pfttimeout: *const super::super::Foundation::FILETIME, reserved: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetThreadpoolWaitEx(::core::mem::transmute(pwa), h.into_param().abi(), ::core::mem::transmute(pfttimeout), ::core::mem::transmute(reserved))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetTimerQueueTimer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param5: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(timerqueue: Param0, callback: ::core::option::Option<WAITORTIMERCALLBACK>, parameter: *const ::core::ffi::c_void, duetime: u32, period: u32, preferio: Param5) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetTimerQueueTimer(timerqueue: super::super::Foundation::HANDLE, callback: ::windows::core::RawPtr, parameter: *const ::core::ffi::c_void, duetime: u32, period: u32, preferio: super::super::Foundation::BOOL) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(SetTimerQueueTimer(timerqueue.into_param().abi(), ::core::mem::transmute(callback), ::core::mem::transmute(parameter), ::core::mem::transmute(duetime), ::core::mem::transmute(period), preferio.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetUmsThreadInformation(umsthread: *const ::core::ffi::c_void, umsthreadinfoclass: RTL_UMS_THREAD_INFO_CLASS, umsthreadinformation: *const ::core::ffi::c_void, umsthreadinformationlength: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetUmsThreadInformation(umsthread: *const ::core::ffi::c_void, umsthreadinfoclass: RTL_UMS_THREAD_INFO_CLASS, umsthreadinformation: *const ::core::ffi::c_void, umsthreadinformationlength: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetUmsThreadInformation(::core::mem::transmute(umsthread), ::core::mem::transmute(umsthreadinfoclass), ::core::mem::transmute(umsthreadinformation), ::core::mem::transmute(umsthreadinformationlength))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetWaitableTimer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param5: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(htimer: Param0, lpduetime: *const i64, lperiod: i32, pfncompletionroutine: ::core::option::Option<PTIMERAPCROUTINE>, lpargtocompletionroutine: *const ::core::ffi::c_void, fresume: Param5) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetWaitableTimer(htimer: super::super::Foundation::HANDLE, lpduetime: *const i64, lperiod: i32, pfncompletionroutine: ::windows::core::RawPtr, lpargtocompletionroutine: *const ::core::ffi::c_void, fresume: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetWaitableTimer(htimer.into_param().abi(), ::core::mem::transmute(lpduetime), ::core::mem::transmute(lperiod), ::core::mem::transmute(pfncompletionroutine), ::core::mem::transmute(lpargtocompletionroutine), fresume.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SetWaitableTimerEx<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(htimer: Param0, lpduetime: *const i64, lperiod: i32, pfncompletionroutine: ::core::option::Option<PTIMERAPCROUTINE>, lpargtocompletionroutine: *const ::core::ffi::c_void, wakecontext: *const REASON_CONTEXT, tolerabledelay: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SetWaitableTimerEx(htimer: super::super::Foundation::HANDLE, lpduetime: *const i64, lperiod: i32, pfncompletionroutine: ::windows::core::RawPtr, lpargtocompletionroutine: *const ::core::ffi::c_void, wakecontext: *const REASON_CONTEXT, tolerabledelay: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SetWaitableTimerEx(htimer.into_param().abi(), ::core::mem::transmute(lpduetime), ::core::mem::transmute(lperiod), ::core::mem::transmute(pfncompletionroutine), ::core::mem::transmute(lpargtocompletionroutine), ::core::mem::transmute(wakecontext), ::core::mem::transmute(tolerabledelay))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn Sleep(dwmilliseconds: u32) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn Sleep(dwmilliseconds: u32); } ::core::mem::transmute(Sleep(::core::mem::transmute(dwmilliseconds))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn SleepConditionVariableCS(conditionvariable: *mut RTL_CONDITION_VARIABLE, criticalsection: *mut RTL_CRITICAL_SECTION, dwmilliseconds: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SleepConditionVariableCS(conditionvariable: *mut RTL_CONDITION_VARIABLE, criticalsection: *mut RTL_CRITICAL_SECTION, dwmilliseconds: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SleepConditionVariableCS(::core::mem::transmute(conditionvariable), ::core::mem::transmute(criticalsection), ::core::mem::transmute(dwmilliseconds))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SleepConditionVariableSRW(conditionvariable: *mut RTL_CONDITION_VARIABLE, srwlock: *mut RTL_SRWLOCK, dwmilliseconds: u32, flags: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SleepConditionVariableSRW(conditionvariable: *mut RTL_CONDITION_VARIABLE, srwlock: *mut RTL_SRWLOCK, dwmilliseconds: u32, flags: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(SleepConditionVariableSRW(::core::mem::transmute(conditionvariable), ::core::mem::transmute(srwlock), ::core::mem::transmute(dwmilliseconds), ::core::mem::transmute(flags))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SleepEx<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(dwmilliseconds: u32, balertable: Param1) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SleepEx(dwmilliseconds: u32, balertable: super::super::Foundation::BOOL) -> u32; } ::core::mem::transmute(SleepEx(::core::mem::transmute(dwmilliseconds), balertable.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn StartThreadpoolIo(pio: *mut TP_IO) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn StartThreadpoolIo(pio: *mut TP_IO); } ::core::mem::transmute(StartThreadpoolIo(::core::mem::transmute(pio))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SubmitThreadpoolWork(pwk: *mut TP_WORK) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SubmitThreadpoolWork(pwk: *mut TP_WORK); } ::core::mem::transmute(SubmitThreadpoolWork(::core::mem::transmute(pwk))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SuspendThread<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hthread: Param0) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SuspendThread(hthread: super::super::Foundation::HANDLE) -> u32; } ::core::mem::transmute(SuspendThread(hthread.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn SwitchToFiber(lpfiber: *const ::core::ffi::c_void) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SwitchToFiber(lpfiber: *const ::core::ffi::c_void); } ::core::mem::transmute(SwitchToFiber(::core::mem::transmute(lpfiber))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn SwitchToThread() -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn SwitchToThread() -> super::super::Foundation::BOOL; } ::core::mem::transmute(SwitchToThread()) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct THREADINFOCLASS(pub i32); pub const ThreadIsIoPending: THREADINFOCLASS = THREADINFOCLASS(16i32); pub const ThreadNameInformation: THREADINFOCLASS = THREADINFOCLASS(38i32); impl ::core::convert::From<i32> for THREADINFOCLASS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for THREADINFOCLASS { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct THREAD_ACCESS_RIGHTS(pub u32); pub const THREAD_TERMINATE: THREAD_ACCESS_RIGHTS = THREAD_ACCESS_RIGHTS(1u32); pub const THREAD_SUSPEND_RESUME: THREAD_ACCESS_RIGHTS = THREAD_ACCESS_RIGHTS(2u32); pub const THREAD_GET_CONTEXT: THREAD_ACCESS_RIGHTS = THREAD_ACCESS_RIGHTS(8u32); pub const THREAD_SET_CONTEXT: THREAD_ACCESS_RIGHTS = THREAD_ACCESS_RIGHTS(16u32); pub const THREAD_SET_INFORMATION: THREAD_ACCESS_RIGHTS = THREAD_ACCESS_RIGHTS(32u32); pub const THREAD_QUERY_INFORMATION: THREAD_ACCESS_RIGHTS = THREAD_ACCESS_RIGHTS(64u32); pub const THREAD_SET_THREAD_TOKEN: THREAD_ACCESS_RIGHTS = THREAD_ACCESS_RIGHTS(128u32); pub const THREAD_IMPERSONATE: THREAD_ACCESS_RIGHTS = THREAD_ACCESS_RIGHTS(256u32); pub const THREAD_DIRECT_IMPERSONATION: THREAD_ACCESS_RIGHTS = THREAD_ACCESS_RIGHTS(512u32); pub const THREAD_SET_LIMITED_INFORMATION: THREAD_ACCESS_RIGHTS = THREAD_ACCESS_RIGHTS(1024u32); pub const THREAD_QUERY_LIMITED_INFORMATION: THREAD_ACCESS_RIGHTS = THREAD_ACCESS_RIGHTS(2048u32); pub const THREAD_RESUME: THREAD_ACCESS_RIGHTS = THREAD_ACCESS_RIGHTS(4096u32); pub const THREAD_ALL_ACCESS: THREAD_ACCESS_RIGHTS = THREAD_ACCESS_RIGHTS(2097151u32); pub const THREAD_DELETE: THREAD_ACCESS_RIGHTS = THREAD_ACCESS_RIGHTS(65536u32); pub const THREAD_READ_CONTROL: THREAD_ACCESS_RIGHTS = THREAD_ACCESS_RIGHTS(131072u32); pub const THREAD_WRITE_DAC: THREAD_ACCESS_RIGHTS = THREAD_ACCESS_RIGHTS(262144u32); pub const THREAD_WRITE_OWNER: THREAD_ACCESS_RIGHTS = THREAD_ACCESS_RIGHTS(524288u32); pub const THREAD_SYNCHRONIZE: THREAD_ACCESS_RIGHTS = THREAD_ACCESS_RIGHTS(1048576u32); pub const THREAD_STANDARD_RIGHTS_REQUIRED: THREAD_ACCESS_RIGHTS = THREAD_ACCESS_RIGHTS(983040u32); impl ::core::convert::From<u32> for THREAD_ACCESS_RIGHTS { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for THREAD_ACCESS_RIGHTS { type Abi = Self; } impl ::core::ops::BitOr for THREAD_ACCESS_RIGHTS { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for THREAD_ACCESS_RIGHTS { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for THREAD_ACCESS_RIGHTS { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for THREAD_ACCESS_RIGHTS { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for THREAD_ACCESS_RIGHTS { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct THREAD_CREATION_FLAGS(pub u32); pub const THREAD_CREATE_RUN_IMMEDIATELY: THREAD_CREATION_FLAGS = THREAD_CREATION_FLAGS(0u32); pub const THREAD_CREATE_SUSPENDED: THREAD_CREATION_FLAGS = THREAD_CREATION_FLAGS(4u32); pub const STACK_SIZE_PARAM_IS_A_RESERVATION: THREAD_CREATION_FLAGS = THREAD_CREATION_FLAGS(65536u32); impl ::core::convert::From<u32> for THREAD_CREATION_FLAGS { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for THREAD_CREATION_FLAGS { type Abi = Self; } impl ::core::ops::BitOr for THREAD_CREATION_FLAGS { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for THREAD_CREATION_FLAGS { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for THREAD_CREATION_FLAGS { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for THREAD_CREATION_FLAGS { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for THREAD_CREATION_FLAGS { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct THREAD_INFORMATION_CLASS(pub i32); pub const ThreadMemoryPriority: THREAD_INFORMATION_CLASS = THREAD_INFORMATION_CLASS(0i32); pub const ThreadAbsoluteCpuPriority: THREAD_INFORMATION_CLASS = THREAD_INFORMATION_CLASS(1i32); pub const ThreadDynamicCodePolicy: THREAD_INFORMATION_CLASS = THREAD_INFORMATION_CLASS(2i32); pub const ThreadPowerThrottling: THREAD_INFORMATION_CLASS = THREAD_INFORMATION_CLASS(3i32); pub const ThreadInformationClassMax: THREAD_INFORMATION_CLASS = THREAD_INFORMATION_CLASS(4i32); impl ::core::convert::From<i32> for THREAD_INFORMATION_CLASS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for THREAD_INFORMATION_CLASS { type Abi = Self; } pub const THREAD_POWER_THROTTLING_CURRENT_VERSION: u32 = 1u32; pub const THREAD_POWER_THROTTLING_EXECUTION_SPEED: u32 = 1u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct THREAD_POWER_THROTTLING_STATE { pub Version: u32, pub ControlMask: u32, pub StateMask: u32, } impl THREAD_POWER_THROTTLING_STATE {} impl ::core::default::Default for THREAD_POWER_THROTTLING_STATE { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for THREAD_POWER_THROTTLING_STATE { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("THREAD_POWER_THROTTLING_STATE").field("Version", &self.Version).field("ControlMask", &self.ControlMask).field("StateMask", &self.StateMask).finish() } } impl ::core::cmp::PartialEq for THREAD_POWER_THROTTLING_STATE { fn eq(&self, other: &Self) -> bool { self.Version == other.Version && self.ControlMask == other.ControlMask && self.StateMask == other.StateMask } } impl ::core::cmp::Eq for THREAD_POWER_THROTTLING_STATE {} unsafe impl ::windows::core::Abi for THREAD_POWER_THROTTLING_STATE { type Abi = Self; } pub const THREAD_POWER_THROTTLING_VALID_FLAGS: u32 = 1u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct THREAD_PRIORITY(pub i32); pub const THREAD_MODE_BACKGROUND_BEGIN: THREAD_PRIORITY = THREAD_PRIORITY(65536i32); pub const THREAD_MODE_BACKGROUND_END: THREAD_PRIORITY = THREAD_PRIORITY(131072i32); pub const THREAD_PRIORITY_ABOVE_NORMAL: THREAD_PRIORITY = THREAD_PRIORITY(1i32); pub const THREAD_PRIORITY_BELOW_NORMAL: THREAD_PRIORITY = THREAD_PRIORITY(-1i32); pub const THREAD_PRIORITY_HIGHEST: THREAD_PRIORITY = THREAD_PRIORITY(2i32); pub const THREAD_PRIORITY_IDLE: THREAD_PRIORITY = THREAD_PRIORITY(-15i32); pub const THREAD_PRIORITY_MIN: THREAD_PRIORITY = THREAD_PRIORITY(-2i32); pub const THREAD_PRIORITY_LOWEST: THREAD_PRIORITY = THREAD_PRIORITY(-2i32); pub const THREAD_PRIORITY_NORMAL: THREAD_PRIORITY = THREAD_PRIORITY(0i32); pub const THREAD_PRIORITY_TIME_CRITICAL: THREAD_PRIORITY = THREAD_PRIORITY(15i32); impl ::core::convert::From<i32> for THREAD_PRIORITY { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for THREAD_PRIORITY { type Abi = Self; } impl ::core::clone::Clone for TP_CALLBACK_ENVIRON_V3 { fn clone(&self) -> Self { unimplemented!() } } #[repr(C)] pub struct TP_CALLBACK_ENVIRON_V3 { pub Version: u32, pub Pool: PTP_POOL, pub CleanupGroup: isize, pub CleanupGroupCancelCallback: ::core::option::Option<PTP_CLEANUP_GROUP_CANCEL_CALLBACK>, pub RaceDll: *mut ::core::ffi::c_void, pub ActivationContext: isize, pub FinalizationCallback: ::core::option::Option<PTP_SIMPLE_CALLBACK>, pub u: TP_CALLBACK_ENVIRON_V3_1, pub CallbackPriority: TP_CALLBACK_PRIORITY, pub Size: u32, } impl TP_CALLBACK_ENVIRON_V3 {} impl ::core::default::Default for TP_CALLBACK_ENVIRON_V3 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::cmp::PartialEq for TP_CALLBACK_ENVIRON_V3 { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } impl ::core::cmp::Eq for TP_CALLBACK_ENVIRON_V3 {} unsafe impl ::windows::core::Abi for TP_CALLBACK_ENVIRON_V3 { type Abi = ::core::mem::ManuallyDrop<Self>; } #[repr(C)] #[derive(:: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug, :: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy)] pub struct TP_CALLBACK_ENVIRON_V3_0(pub u8); #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub union TP_CALLBACK_ENVIRON_V3_1 { pub Flags: u32, pub s: TP_CALLBACK_ENVIRON_V3_1_0, } impl TP_CALLBACK_ENVIRON_V3_1 {} impl ::core::default::Default for TP_CALLBACK_ENVIRON_V3_1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::cmp::PartialEq for TP_CALLBACK_ENVIRON_V3_1 { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } impl ::core::cmp::Eq for TP_CALLBACK_ENVIRON_V3_1 {} unsafe impl ::windows::core::Abi for TP_CALLBACK_ENVIRON_V3_1 { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct TP_CALLBACK_ENVIRON_V3_1_0 { pub _bitfield: u32, } impl TP_CALLBACK_ENVIRON_V3_1_0 {} impl ::core::default::Default for TP_CALLBACK_ENVIRON_V3_1_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for TP_CALLBACK_ENVIRON_V3_1_0 { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("_s_e__Struct").field("_bitfield", &self._bitfield).finish() } } impl ::core::cmp::PartialEq for TP_CALLBACK_ENVIRON_V3_1_0 { fn eq(&self, other: &Self) -> bool { self._bitfield == other._bitfield } } impl ::core::cmp::Eq for TP_CALLBACK_ENVIRON_V3_1_0 {} unsafe impl ::windows::core::Abi for TP_CALLBACK_ENVIRON_V3_1_0 { type Abi = Self; } #[repr(C)] #[derive(:: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug, :: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy)] pub struct TP_CALLBACK_INSTANCE(pub u8); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct TP_CALLBACK_PRIORITY(pub i32); pub const TP_CALLBACK_PRIORITY_HIGH: TP_CALLBACK_PRIORITY = TP_CALLBACK_PRIORITY(0i32); pub const TP_CALLBACK_PRIORITY_NORMAL: TP_CALLBACK_PRIORITY = TP_CALLBACK_PRIORITY(1i32); pub const TP_CALLBACK_PRIORITY_LOW: TP_CALLBACK_PRIORITY = TP_CALLBACK_PRIORITY(2i32); pub const TP_CALLBACK_PRIORITY_INVALID: TP_CALLBACK_PRIORITY = TP_CALLBACK_PRIORITY(3i32); pub const TP_CALLBACK_PRIORITY_COUNT: TP_CALLBACK_PRIORITY = TP_CALLBACK_PRIORITY(3i32); impl ::core::convert::From<i32> for TP_CALLBACK_PRIORITY { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for TP_CALLBACK_PRIORITY { type Abi = Self; } #[repr(C)] #[derive(:: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug, :: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy)] pub struct TP_IO(pub u8); #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct TP_POOL_STACK_INFORMATION { pub StackReserve: usize, pub StackCommit: usize, } impl TP_POOL_STACK_INFORMATION {} impl ::core::default::Default for TP_POOL_STACK_INFORMATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for TP_POOL_STACK_INFORMATION { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("TP_POOL_STACK_INFORMATION").field("StackReserve", &self.StackReserve).field("StackCommit", &self.StackCommit).finish() } } impl ::core::cmp::PartialEq for TP_POOL_STACK_INFORMATION { fn eq(&self, other: &Self) -> bool { self.StackReserve == other.StackReserve && self.StackCommit == other.StackCommit } } impl ::core::cmp::Eq for TP_POOL_STACK_INFORMATION {} unsafe impl ::windows::core::Abi for TP_POOL_STACK_INFORMATION { type Abi = Self; } #[repr(C)] #[derive(:: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug, :: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy)] pub struct TP_TIMER(pub u8); #[repr(C)] #[derive(:: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug, :: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy)] pub struct TP_WAIT(pub u8); #[repr(C)] #[derive(:: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug, :: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy)] pub struct TP_WORK(pub u8); #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn TerminateProcess<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, uexitcode: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn TerminateProcess(hprocess: super::super::Foundation::HANDLE, uexitcode: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(TerminateProcess(hprocess.into_param().abi(), ::core::mem::transmute(uexitcode))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn TerminateThread<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hthread: Param0, dwexitcode: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn TerminateThread(hthread: super::super::Foundation::HANDLE, dwexitcode: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(TerminateThread(hthread.into_param().abi(), ::core::mem::transmute(dwexitcode))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy, :: core :: fmt :: Debug, :: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] #[repr(transparent)] pub struct TimerQueueHandle(pub isize); impl ::core::default::Default for TimerQueueHandle { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } unsafe impl ::windows::core::Handle for TimerQueueHandle {} unsafe impl ::windows::core::Abi for TimerQueueHandle { type Abi = Self; } #[inline] pub unsafe fn TlsAlloc() -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn TlsAlloc() -> u32; } ::core::mem::transmute(TlsAlloc()) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn TlsFree(dwtlsindex: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn TlsFree(dwtlsindex: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(TlsFree(::core::mem::transmute(dwtlsindex))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn TlsGetValue(dwtlsindex: u32) -> *mut ::core::ffi::c_void { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn TlsGetValue(dwtlsindex: u32) -> *mut ::core::ffi::c_void; } ::core::mem::transmute(TlsGetValue(::core::mem::transmute(dwtlsindex))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn TlsSetValue(dwtlsindex: u32, lptlsvalue: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn TlsSetValue(dwtlsindex: u32, lptlsvalue: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; } ::core::mem::transmute(TlsSetValue(::core::mem::transmute(dwtlsindex), ::core::mem::transmute(lptlsvalue))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn TryAcquireSRWLockExclusive(srwlock: *mut RTL_SRWLOCK) -> super::super::Foundation::BOOLEAN { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn TryAcquireSRWLockExclusive(srwlock: *mut RTL_SRWLOCK) -> super::super::Foundation::BOOLEAN; } ::core::mem::transmute(TryAcquireSRWLockExclusive(::core::mem::transmute(srwlock))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn TryAcquireSRWLockShared(srwlock: *mut RTL_SRWLOCK) -> super::super::Foundation::BOOLEAN { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn TryAcquireSRWLockShared(srwlock: *mut RTL_SRWLOCK) -> super::super::Foundation::BOOLEAN; } ::core::mem::transmute(TryAcquireSRWLockShared(::core::mem::transmute(srwlock))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn TryEnterCriticalSection(lpcriticalsection: *mut RTL_CRITICAL_SECTION) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn TryEnterCriticalSection(lpcriticalsection: *mut RTL_CRITICAL_SECTION) -> super::super::Foundation::BOOL; } ::core::mem::transmute(TryEnterCriticalSection(::core::mem::transmute(lpcriticalsection))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn TrySubmitThreadpoolCallback(pfns: ::core::option::Option<PTP_SIMPLE_CALLBACK>, pv: *mut ::core::ffi::c_void, pcbe: *const TP_CALLBACK_ENVIRON_V3) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn TrySubmitThreadpoolCallback(pfns: ::windows::core::RawPtr, pv: *mut ::core::ffi::c_void, pcbe: *const ::core::mem::ManuallyDrop<TP_CALLBACK_ENVIRON_V3>) -> super::super::Foundation::BOOL; } ::core::mem::transmute(TrySubmitThreadpoolCallback(::core::mem::transmute(pfns), ::core::mem::transmute(pv), ::core::mem::transmute(pcbe))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: clone :: Clone)] #[repr(C)] #[cfg(feature = "Win32_System_SystemServices")] pub struct UMS_SCHEDULER_STARTUP_INFO { pub UmsVersion: u32, pub CompletionList: *mut ::core::ffi::c_void, pub SchedulerProc: ::core::option::Option<PRTL_UMS_SCHEDULER_ENTRY_POINT>, pub SchedulerParam: *mut ::core::ffi::c_void, } #[cfg(feature = "Win32_System_SystemServices")] impl UMS_SCHEDULER_STARTUP_INFO {} #[cfg(feature = "Win32_System_SystemServices")] impl ::core::default::Default for UMS_SCHEDULER_STARTUP_INFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_System_SystemServices")] impl ::core::fmt::Debug for UMS_SCHEDULER_STARTUP_INFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("UMS_SCHEDULER_STARTUP_INFO").field("UmsVersion", &self.UmsVersion).field("CompletionList", &self.CompletionList).field("SchedulerParam", &self.SchedulerParam).finish() } } #[cfg(feature = "Win32_System_SystemServices")] impl ::core::cmp::PartialEq for UMS_SCHEDULER_STARTUP_INFO { fn eq(&self, other: &Self) -> bool { self.UmsVersion == other.UmsVersion && self.CompletionList == other.CompletionList && self.SchedulerProc.map(|f| f as usize) == other.SchedulerProc.map(|f| f as usize) && self.SchedulerParam == other.SchedulerParam } } #[cfg(feature = "Win32_System_SystemServices")] impl ::core::cmp::Eq for UMS_SCHEDULER_STARTUP_INFO {} #[cfg(feature = "Win32_System_SystemServices")] unsafe impl ::windows::core::Abi for UMS_SCHEDULER_STARTUP_INFO { type Abi = ::core::mem::ManuallyDrop<Self>; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct UMS_SYSTEM_THREAD_INFORMATION { pub UmsVersion: u32, pub Anonymous: UMS_SYSTEM_THREAD_INFORMATION_0, } impl UMS_SYSTEM_THREAD_INFORMATION {} impl ::core::default::Default for UMS_SYSTEM_THREAD_INFORMATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::cmp::PartialEq for UMS_SYSTEM_THREAD_INFORMATION { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } impl ::core::cmp::Eq for UMS_SYSTEM_THREAD_INFORMATION {} unsafe impl ::windows::core::Abi for UMS_SYSTEM_THREAD_INFORMATION { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub union UMS_SYSTEM_THREAD_INFORMATION_0 { pub Anonymous: UMS_SYSTEM_THREAD_INFORMATION_0_0, pub ThreadUmsFlags: u32, } impl UMS_SYSTEM_THREAD_INFORMATION_0 {} impl ::core::default::Default for UMS_SYSTEM_THREAD_INFORMATION_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::cmp::PartialEq for UMS_SYSTEM_THREAD_INFORMATION_0 { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } impl ::core::cmp::Eq for UMS_SYSTEM_THREAD_INFORMATION_0 {} unsafe impl ::windows::core::Abi for UMS_SYSTEM_THREAD_INFORMATION_0 { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] pub struct UMS_SYSTEM_THREAD_INFORMATION_0_0 { pub _bitfield: u32, } impl UMS_SYSTEM_THREAD_INFORMATION_0_0 {} impl ::core::default::Default for UMS_SYSTEM_THREAD_INFORMATION_0_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } impl ::core::fmt::Debug for UMS_SYSTEM_THREAD_INFORMATION_0_0 { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("_Anonymous_e__Struct").field("_bitfield", &self._bitfield).finish() } } impl ::core::cmp::PartialEq for UMS_SYSTEM_THREAD_INFORMATION_0_0 { fn eq(&self, other: &Self) -> bool { self._bitfield == other._bitfield } } impl ::core::cmp::Eq for UMS_SYSTEM_THREAD_INFORMATION_0_0 {} unsafe impl ::windows::core::Abi for UMS_SYSTEM_THREAD_INFORMATION_0_0 { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UmsThreadYield(schedulerparam: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UmsThreadYield(schedulerparam: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; } ::core::mem::transmute(UmsThreadYield(::core::mem::transmute(schedulerparam))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UnregisterWait<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(waithandle: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UnregisterWait(waithandle: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(UnregisterWait(waithandle.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UnregisterWaitEx<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(waithandle: Param0, completionevent: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UnregisterWaitEx(waithandle: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(UnregisterWaitEx(waithandle.into_param().abi(), completionevent.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UpdateProcThreadAttribute<'a, Param0: ::windows::core::IntoParam<'a, LPPROC_THREAD_ATTRIBUTE_LIST>>(lpattributelist: Param0, dwflags: u32, attribute: usize, lpvalue: *const ::core::ffi::c_void, cbsize: usize, lppreviousvalue: *mut ::core::ffi::c_void, lpreturnsize: *const usize) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UpdateProcThreadAttribute(lpattributelist: LPPROC_THREAD_ATTRIBUTE_LIST, dwflags: u32, attribute: usize, lpvalue: *const ::core::ffi::c_void, cbsize: usize, lppreviousvalue: *mut ::core::ffi::c_void, lpreturnsize: *const usize) -> super::super::Foundation::BOOL; } ::core::mem::transmute(UpdateProcThreadAttribute(lpattributelist.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(attribute), ::core::mem::transmute(lpvalue), ::core::mem::transmute(cbsize), ::core::mem::transmute(lppreviousvalue), ::core::mem::transmute(lpreturnsize))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] pub type WAITORTIMERCALLBACK = unsafe extern "system" fn(param0: *mut ::core::ffi::c_void, param1: super::super::Foundation::BOOLEAN); pub const WAIT_ABANDONED: u32 = 128u32; pub const WAIT_ABANDONED_0: u32 = 128u32; pub const WAIT_IO_COMPLETION: u32 = 192u32; pub const WAIT_OBJECT_0: u32 = 0u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct WORKER_THREAD_FLAGS(pub u32); pub const WT_EXECUTEDEFAULT: WORKER_THREAD_FLAGS = WORKER_THREAD_FLAGS(0u32); pub const WT_EXECUTEINIOTHREAD: WORKER_THREAD_FLAGS = WORKER_THREAD_FLAGS(1u32); pub const WT_EXECUTEINPERSISTENTTHREAD: WORKER_THREAD_FLAGS = WORKER_THREAD_FLAGS(128u32); pub const WT_EXECUTEINWAITTHREAD: WORKER_THREAD_FLAGS = WORKER_THREAD_FLAGS(4u32); pub const WT_EXECUTELONGFUNCTION: WORKER_THREAD_FLAGS = WORKER_THREAD_FLAGS(16u32); pub const WT_EXECUTEONLYONCE: WORKER_THREAD_FLAGS = WORKER_THREAD_FLAGS(8u32); pub const WT_TRANSFER_IMPERSONATION: WORKER_THREAD_FLAGS = WORKER_THREAD_FLAGS(256u32); pub const WT_EXECUTEINTIMERTHREAD: WORKER_THREAD_FLAGS = WORKER_THREAD_FLAGS(32u32); impl ::core::convert::From<u32> for WORKER_THREAD_FLAGS { fn from(value: u32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for WORKER_THREAD_FLAGS { type Abi = Self; } impl ::core::ops::BitOr for WORKER_THREAD_FLAGS { type Output = Self; fn bitor(self, rhs: Self) -> Self { Self(self.0 | rhs.0) } } impl ::core::ops::BitAnd for WORKER_THREAD_FLAGS { type Output = Self; fn bitand(self, rhs: Self) -> Self { Self(self.0 & rhs.0) } } impl ::core::ops::BitOrAssign for WORKER_THREAD_FLAGS { fn bitor_assign(&mut self, rhs: Self) { self.0.bitor_assign(rhs.0) } } impl ::core::ops::BitAndAssign for WORKER_THREAD_FLAGS { fn bitand_assign(&mut self, rhs: Self) { self.0.bitand_assign(rhs.0) } } impl ::core::ops::Not for WORKER_THREAD_FLAGS { type Output = Self; fn not(self) -> Self { Self(self.0.not()) } } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn WaitForInputIdle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hprocess: Param0, dwmilliseconds: u32) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn WaitForInputIdle(hprocess: super::super::Foundation::HANDLE, dwmilliseconds: u32) -> u32; } ::core::mem::transmute(WaitForInputIdle(hprocess.into_param().abi(), ::core::mem::transmute(dwmilliseconds))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn WaitForMultipleObjects<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(ncount: u32, lphandles: *const super::super::Foundation::HANDLE, bwaitall: Param2, dwmilliseconds: u32) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn WaitForMultipleObjects(ncount: u32, lphandles: *const super::super::Foundation::HANDLE, bwaitall: super::super::Foundation::BOOL, dwmilliseconds: u32) -> u32; } ::core::mem::transmute(WaitForMultipleObjects(::core::mem::transmute(ncount), ::core::mem::transmute(lphandles), bwaitall.into_param().abi(), ::core::mem::transmute(dwmilliseconds))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn WaitForMultipleObjectsEx<'a, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param4: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(ncount: u32, lphandles: *const super::super::Foundation::HANDLE, bwaitall: Param2, dwmilliseconds: u32, balertable: Param4) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn WaitForMultipleObjectsEx(ncount: u32, lphandles: *const super::super::Foundation::HANDLE, bwaitall: super::super::Foundation::BOOL, dwmilliseconds: u32, balertable: super::super::Foundation::BOOL) -> u32; } ::core::mem::transmute(WaitForMultipleObjectsEx(::core::mem::transmute(ncount), ::core::mem::transmute(lphandles), bwaitall.into_param().abi(), ::core::mem::transmute(dwmilliseconds), balertable.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn WaitForSingleObject<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hhandle: Param0, dwmilliseconds: u32) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn WaitForSingleObject(hhandle: super::super::Foundation::HANDLE, dwmilliseconds: u32) -> u32; } ::core::mem::transmute(WaitForSingleObject(hhandle.into_param().abi(), ::core::mem::transmute(dwmilliseconds))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn WaitForSingleObjectEx<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(hhandle: Param0, dwmilliseconds: u32, balertable: Param2) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn WaitForSingleObjectEx(hhandle: super::super::Foundation::HANDLE, dwmilliseconds: u32, balertable: super::super::Foundation::BOOL) -> u32; } ::core::mem::transmute(WaitForSingleObjectEx(hhandle.into_param().abi(), ::core::mem::transmute(dwmilliseconds), balertable.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn WaitForThreadpoolIoCallbacks<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(pio: *mut TP_IO, fcancelpendingcallbacks: Param1) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn WaitForThreadpoolIoCallbacks(pio: *mut TP_IO, fcancelpendingcallbacks: super::super::Foundation::BOOL); } ::core::mem::transmute(WaitForThreadpoolIoCallbacks(::core::mem::transmute(pio), fcancelpendingcallbacks.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn WaitForThreadpoolTimerCallbacks<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(pti: *mut TP_TIMER, fcancelpendingcallbacks: Param1) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn WaitForThreadpoolTimerCallbacks(pti: *mut TP_TIMER, fcancelpendingcallbacks: super::super::Foundation::BOOL); } ::core::mem::transmute(WaitForThreadpoolTimerCallbacks(::core::mem::transmute(pti), fcancelpendingcallbacks.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn WaitForThreadpoolWaitCallbacks<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(pwa: *mut TP_WAIT, fcancelpendingcallbacks: Param1) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn WaitForThreadpoolWaitCallbacks(pwa: *mut TP_WAIT, fcancelpendingcallbacks: super::super::Foundation::BOOL); } ::core::mem::transmute(WaitForThreadpoolWaitCallbacks(::core::mem::transmute(pwa), fcancelpendingcallbacks.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn WaitForThreadpoolWorkCallbacks<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(pwk: *mut TP_WORK, fcancelpendingcallbacks: Param1) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn WaitForThreadpoolWorkCallbacks(pwk: *mut TP_WORK, fcancelpendingcallbacks: super::super::Foundation::BOOL); } ::core::mem::transmute(WaitForThreadpoolWorkCallbacks(::core::mem::transmute(pwk), fcancelpendingcallbacks.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn WaitOnAddress(address: *const ::core::ffi::c_void, compareaddress: *const ::core::ffi::c_void, addresssize: usize, dwmilliseconds: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn WaitOnAddress(address: *const ::core::ffi::c_void, compareaddress: *const ::core::ffi::c_void, addresssize: usize, dwmilliseconds: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(WaitOnAddress(::core::mem::transmute(address), ::core::mem::transmute(compareaddress), ::core::mem::transmute(addresssize), ::core::mem::transmute(dwmilliseconds))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn WakeAllConditionVariable(conditionvariable: *mut RTL_CONDITION_VARIABLE) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn WakeAllConditionVariable(conditionvariable: *mut RTL_CONDITION_VARIABLE); } ::core::mem::transmute(WakeAllConditionVariable(::core::mem::transmute(conditionvariable))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn WakeByAddressAll(address: *const ::core::ffi::c_void) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn WakeByAddressAll(address: *const ::core::ffi::c_void); } ::core::mem::transmute(WakeByAddressAll(::core::mem::transmute(address))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn WakeByAddressSingle(address: *const ::core::ffi::c_void) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn WakeByAddressSingle(address: *const ::core::ffi::c_void); } ::core::mem::transmute(WakeByAddressSingle(::core::mem::transmute(address))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn WakeConditionVariable(conditionvariable: *mut RTL_CONDITION_VARIABLE) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn WakeConditionVariable(conditionvariable: *mut RTL_CONDITION_VARIABLE); } ::core::mem::transmute(WakeConditionVariable(::core::mem::transmute(conditionvariable))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn WinExec<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(lpcmdline: Param0, ucmdshow: u32) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn WinExec(lpcmdline: super::super::Foundation::PSTR, ucmdshow: u32) -> u32; } ::core::mem::transmute(WinExec(lpcmdline.into_param().abi(), ::core::mem::transmute(ucmdshow))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn Wow64SetThreadDefaultGuestMachine(machine: u16) -> u16 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn Wow64SetThreadDefaultGuestMachine(machine: u16) -> u16; } ::core::mem::transmute(Wow64SetThreadDefaultGuestMachine(::core::mem::transmute(machine))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn Wow64SuspendThread<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hthread: Param0) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn Wow64SuspendThread(hthread: super::super::Foundation::HANDLE) -> u32; } ::core::mem::transmute(Wow64SuspendThread(hthread.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); }
// auto generated, do not modify. // created: Mon Feb 22 23:57:02 2016 // src-file: /QtWidgets/qgraphicsproxywidget.h // dst-file: /src/widgets/qgraphicsproxywidget.rs // // header block begin => #![feature(libc)] #![feature(core)] #![feature(collections)] extern crate libc; use self::libc::*; // <= header block end // main block begin => // <= main block end // use block begin => use super::qgraphicswidget::*; // 773 use std::ops::Deref; use super::qwidget::*; // 773 use super::super::core::qrect::*; // 771 use super::super::core::qobjectdefs::*; // 771 use super::super::gui::qpainter::*; // 771 use super::qstyleoption::*; // 773 use super::qgraphicsitem::*; // 773 // <= use block end // ext block begin => // #[link(name = "Qt5Core")] // #[link(name = "Qt5Gui")] // #[link(name = "Qt5Widgets")] // #[link(name = "QtInline")] extern { fn QGraphicsProxyWidget_Class_Size() -> c_int; // proto: void QGraphicsProxyWidget::~QGraphicsProxyWidget(); fn C_ZN20QGraphicsProxyWidgetD2Ev(qthis: u64 /* *mut c_void*/); // proto: QGraphicsProxyWidget * QGraphicsProxyWidget::createProxyForChildWidget(QWidget * child); fn C_ZN20QGraphicsProxyWidget25createProxyForChildWidgetEP7QWidget(qthis: u64 /* *mut c_void*/, arg0: *mut c_void) -> *mut c_void; // proto: void QGraphicsProxyWidget::setWidget(QWidget * widget); fn C_ZN20QGraphicsProxyWidget9setWidgetEP7QWidget(qthis: u64 /* *mut c_void*/, arg0: *mut c_void); // proto: QRectF QGraphicsProxyWidget::subWidgetRect(const QWidget * widget); fn C_ZNK20QGraphicsProxyWidget13subWidgetRectEPK7QWidget(qthis: u64 /* *mut c_void*/, arg0: *mut c_void) -> *mut c_void; // proto: const QMetaObject * QGraphicsProxyWidget::metaObject(); fn C_ZNK20QGraphicsProxyWidget10metaObjectEv(qthis: u64 /* *mut c_void*/) -> *mut c_void; // proto: void QGraphicsProxyWidget::paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget); fn C_ZN20QGraphicsProxyWidget5paintEP8QPainterPK24QStyleOptionGraphicsItemP7QWidget(qthis: u64 /* *mut c_void*/, arg0: *mut c_void, arg1: *mut c_void, arg2: *mut c_void); // proto: void QGraphicsProxyWidget::setGeometry(const QRectF & rect); fn C_ZN20QGraphicsProxyWidget11setGeometryERK6QRectF(qthis: u64 /* *mut c_void*/, arg0: *mut c_void); // proto: QWidget * QGraphicsProxyWidget::widget(); fn C_ZNK20QGraphicsProxyWidget6widgetEv(qthis: u64 /* *mut c_void*/) -> *mut c_void; // proto: int QGraphicsProxyWidget::type(); fn C_ZNK20QGraphicsProxyWidget4typeEv(qthis: u64 /* *mut c_void*/) -> c_int; } // <= ext block end // body block begin => // class sizeof(QGraphicsProxyWidget)=1 #[derive(Default)] pub struct QGraphicsProxyWidget { qbase: QGraphicsWidget, pub qclsinst: u64 /* *mut c_void*/, } impl /*struct*/ QGraphicsProxyWidget { pub fn inheritFrom(qthis: u64 /* *mut c_void*/) -> QGraphicsProxyWidget { return QGraphicsProxyWidget{qbase: QGraphicsWidget::inheritFrom(qthis), qclsinst: qthis, ..Default::default()}; } } impl Deref for QGraphicsProxyWidget { type Target = QGraphicsWidget; fn deref(&self) -> &QGraphicsWidget { return & self.qbase; } } impl AsRef<QGraphicsWidget> for QGraphicsProxyWidget { fn as_ref(& self) -> & QGraphicsWidget { return & self.qbase; } } // proto: void QGraphicsProxyWidget::~QGraphicsProxyWidget(); impl /*struct*/ QGraphicsProxyWidget { pub fn free<RetType, T: QGraphicsProxyWidget_free<RetType>>(& self, overload_args: T) -> RetType { return overload_args.free(self); // return 1; } } pub trait QGraphicsProxyWidget_free<RetType> { fn free(self , rsthis: & QGraphicsProxyWidget) -> RetType; } // proto: void QGraphicsProxyWidget::~QGraphicsProxyWidget(); impl<'a> /*trait*/ QGraphicsProxyWidget_free<()> for () { fn free(self , rsthis: & QGraphicsProxyWidget) -> () { // let qthis: *mut c_void = unsafe{calloc(1, 32)}; // unsafe{_ZN20QGraphicsProxyWidgetD2Ev()}; unsafe {C_ZN20QGraphicsProxyWidgetD2Ev(rsthis.qclsinst)}; // return 1; } } // proto: QGraphicsProxyWidget * QGraphicsProxyWidget::createProxyForChildWidget(QWidget * child); impl /*struct*/ QGraphicsProxyWidget { pub fn createProxyForChildWidget<RetType, T: QGraphicsProxyWidget_createProxyForChildWidget<RetType>>(& self, overload_args: T) -> RetType { return overload_args.createProxyForChildWidget(self); // return 1; } } pub trait QGraphicsProxyWidget_createProxyForChildWidget<RetType> { fn createProxyForChildWidget(self , rsthis: & QGraphicsProxyWidget) -> RetType; } // proto: QGraphicsProxyWidget * QGraphicsProxyWidget::createProxyForChildWidget(QWidget * child); impl<'a> /*trait*/ QGraphicsProxyWidget_createProxyForChildWidget<QGraphicsProxyWidget> for (&'a QWidget) { fn createProxyForChildWidget(self , rsthis: & QGraphicsProxyWidget) -> QGraphicsProxyWidget { // let qthis: *mut c_void = unsafe{calloc(1, 32)}; // unsafe{_ZN20QGraphicsProxyWidget25createProxyForChildWidgetEP7QWidget()}; let arg0 = self.qclsinst as *mut c_void; let mut ret = unsafe {C_ZN20QGraphicsProxyWidget25createProxyForChildWidgetEP7QWidget(rsthis.qclsinst, arg0)}; let mut ret1 = QGraphicsProxyWidget::inheritFrom(ret as u64); return ret1; // return 1; } } // proto: void QGraphicsProxyWidget::setWidget(QWidget * widget); impl /*struct*/ QGraphicsProxyWidget { pub fn setWidget<RetType, T: QGraphicsProxyWidget_setWidget<RetType>>(& self, overload_args: T) -> RetType { return overload_args.setWidget(self); // return 1; } } pub trait QGraphicsProxyWidget_setWidget<RetType> { fn setWidget(self , rsthis: & QGraphicsProxyWidget) -> RetType; } // proto: void QGraphicsProxyWidget::setWidget(QWidget * widget); impl<'a> /*trait*/ QGraphicsProxyWidget_setWidget<()> for (&'a QWidget) { fn setWidget(self , rsthis: & QGraphicsProxyWidget) -> () { // let qthis: *mut c_void = unsafe{calloc(1, 32)}; // unsafe{_ZN20QGraphicsProxyWidget9setWidgetEP7QWidget()}; let arg0 = self.qclsinst as *mut c_void; unsafe {C_ZN20QGraphicsProxyWidget9setWidgetEP7QWidget(rsthis.qclsinst, arg0)}; // return 1; } } // proto: QRectF QGraphicsProxyWidget::subWidgetRect(const QWidget * widget); impl /*struct*/ QGraphicsProxyWidget { pub fn subWidgetRect<RetType, T: QGraphicsProxyWidget_subWidgetRect<RetType>>(& self, overload_args: T) -> RetType { return overload_args.subWidgetRect(self); // return 1; } } pub trait QGraphicsProxyWidget_subWidgetRect<RetType> { fn subWidgetRect(self , rsthis: & QGraphicsProxyWidget) -> RetType; } // proto: QRectF QGraphicsProxyWidget::subWidgetRect(const QWidget * widget); impl<'a> /*trait*/ QGraphicsProxyWidget_subWidgetRect<QRectF> for (&'a QWidget) { fn subWidgetRect(self , rsthis: & QGraphicsProxyWidget) -> QRectF { // let qthis: *mut c_void = unsafe{calloc(1, 32)}; // unsafe{_ZNK20QGraphicsProxyWidget13subWidgetRectEPK7QWidget()}; let arg0 = self.qclsinst as *mut c_void; let mut ret = unsafe {C_ZNK20QGraphicsProxyWidget13subWidgetRectEPK7QWidget(rsthis.qclsinst, arg0)}; let mut ret1 = QRectF::inheritFrom(ret as u64); return ret1; // return 1; } } // proto: const QMetaObject * QGraphicsProxyWidget::metaObject(); impl /*struct*/ QGraphicsProxyWidget { pub fn metaObject<RetType, T: QGraphicsProxyWidget_metaObject<RetType>>(& self, overload_args: T) -> RetType { return overload_args.metaObject(self); // return 1; } } pub trait QGraphicsProxyWidget_metaObject<RetType> { fn metaObject(self , rsthis: & QGraphicsProxyWidget) -> RetType; } // proto: const QMetaObject * QGraphicsProxyWidget::metaObject(); impl<'a> /*trait*/ QGraphicsProxyWidget_metaObject<QMetaObject> for () { fn metaObject(self , rsthis: & QGraphicsProxyWidget) -> QMetaObject { // let qthis: *mut c_void = unsafe{calloc(1, 32)}; // unsafe{_ZNK20QGraphicsProxyWidget10metaObjectEv()}; let mut ret = unsafe {C_ZNK20QGraphicsProxyWidget10metaObjectEv(rsthis.qclsinst)}; let mut ret1 = QMetaObject::inheritFrom(ret as u64); return ret1; // return 1; } } // proto: void QGraphicsProxyWidget::paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget); impl /*struct*/ QGraphicsProxyWidget { pub fn paint<RetType, T: QGraphicsProxyWidget_paint<RetType>>(& self, overload_args: T) -> RetType { return overload_args.paint(self); // return 1; } } pub trait QGraphicsProxyWidget_paint<RetType> { fn paint(self , rsthis: & QGraphicsProxyWidget) -> RetType; } // proto: void QGraphicsProxyWidget::paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget); impl<'a> /*trait*/ QGraphicsProxyWidget_paint<()> for (&'a QPainter, &'a QStyleOptionGraphicsItem, &'a QWidget) { fn paint(self , rsthis: & QGraphicsProxyWidget) -> () { // let qthis: *mut c_void = unsafe{calloc(1, 32)}; // unsafe{_ZN20QGraphicsProxyWidget5paintEP8QPainterPK24QStyleOptionGraphicsItemP7QWidget()}; let arg0 = self.0.qclsinst as *mut c_void; let arg1 = self.1.qclsinst as *mut c_void; let arg2 = self.2.qclsinst as *mut c_void; unsafe {C_ZN20QGraphicsProxyWidget5paintEP8QPainterPK24QStyleOptionGraphicsItemP7QWidget(rsthis.qclsinst, arg0, arg1, arg2)}; // return 1; } } // proto: void QGraphicsProxyWidget::setGeometry(const QRectF & rect); impl /*struct*/ QGraphicsProxyWidget { pub fn setGeometry<RetType, T: QGraphicsProxyWidget_setGeometry<RetType>>(& self, overload_args: T) -> RetType { return overload_args.setGeometry(self); // return 1; } } pub trait QGraphicsProxyWidget_setGeometry<RetType> { fn setGeometry(self , rsthis: & QGraphicsProxyWidget) -> RetType; } // proto: void QGraphicsProxyWidget::setGeometry(const QRectF & rect); impl<'a> /*trait*/ QGraphicsProxyWidget_setGeometry<()> for (&'a QRectF) { fn setGeometry(self , rsthis: & QGraphicsProxyWidget) -> () { // let qthis: *mut c_void = unsafe{calloc(1, 32)}; // unsafe{_ZN20QGraphicsProxyWidget11setGeometryERK6QRectF()}; let arg0 = self.qclsinst as *mut c_void; unsafe {C_ZN20QGraphicsProxyWidget11setGeometryERK6QRectF(rsthis.qclsinst, arg0)}; // return 1; } } // proto: QWidget * QGraphicsProxyWidget::widget(); impl /*struct*/ QGraphicsProxyWidget { pub fn widget<RetType, T: QGraphicsProxyWidget_widget<RetType>>(& self, overload_args: T) -> RetType { return overload_args.widget(self); // return 1; } } pub trait QGraphicsProxyWidget_widget<RetType> { fn widget(self , rsthis: & QGraphicsProxyWidget) -> RetType; } // proto: QWidget * QGraphicsProxyWidget::widget(); impl<'a> /*trait*/ QGraphicsProxyWidget_widget<QWidget> for () { fn widget(self , rsthis: & QGraphicsProxyWidget) -> QWidget { // let qthis: *mut c_void = unsafe{calloc(1, 32)}; // unsafe{_ZNK20QGraphicsProxyWidget6widgetEv()}; let mut ret = unsafe {C_ZNK20QGraphicsProxyWidget6widgetEv(rsthis.qclsinst)}; let mut ret1 = QWidget::inheritFrom(ret as u64); return ret1; // return 1; } } // proto: int QGraphicsProxyWidget::type(); impl /*struct*/ QGraphicsProxyWidget { pub fn type_<RetType, T: QGraphicsProxyWidget_type_<RetType>>(& self, overload_args: T) -> RetType { return overload_args.type_(self); // return 1; } } pub trait QGraphicsProxyWidget_type_<RetType> { fn type_(self , rsthis: & QGraphicsProxyWidget) -> RetType; } // proto: int QGraphicsProxyWidget::type(); impl<'a> /*trait*/ QGraphicsProxyWidget_type_<i32> for () { fn type_(self , rsthis: & QGraphicsProxyWidget) -> i32 { // let qthis: *mut c_void = unsafe{calloc(1, 32)}; // unsafe{_ZNK20QGraphicsProxyWidget4typeEv()}; let mut ret = unsafe {C_ZNK20QGraphicsProxyWidget4typeEv(rsthis.qclsinst)}; return ret as i32; // 1 // return 1; } } // <= body block end
use input_i_scanner::{scan_with, InputIScanner}; fn main() { let stdin = std::io::stdin(); let mut _i_i = InputIScanner::from(stdin.lock()); let n = scan_with!(_i_i, usize); let a = scan_with!(_i_i, u64; n); let x = scan_with!(_i_i, u64); let s = a.iter().copied().sum::<u64>(); let c = x / s; let mut s = c * s; for i in 0..n { s += a[i]; if s > x { println!("{}", (c as usize * n) + (i + 1)); return; } } unreachable!(); }
use hyper::{Chunk, Error}; use futures::{future::{self, FutureResult}}; use serde::Deserialize; use crate::consts::ErrorCode; pub fn parse_form<'de, T>(form_chunk: &'de Chunk) -> FutureResult<Result<T, ErrorCode>, Error> where T: Deserialize<'de> + std::fmt::Debug, { let parsedData = if let Ok(data) = serde_json::from_slice::<T>(form_chunk.as_ref()) { info!("Parsed data: {:?}", data); Ok(data) } else { error!("Failed to parse data"); Err(ErrorCode::BAD_REQUEST) }; future::ok(parsedData) }
use std::io; use std::io::Read; struct Tile { enabled: bool, enabled_neighbors: u8, enabled_check_cycle: usize, } fn main() { let mut input = String::new(); io::stdin().read_to_string(&mut input).unwrap(); const CYCLES: usize = 6; let lines = input.lines().count(); let columns = input.lines().next().unwrap().chars().count(); // 3D Grid for looking up whether a tile is enabled. The grid can can grow one position per cycle, so keep headroom // in each direction equal to the number of cycles. let mut tile_lookup: Vec<Vec<Vec<_>>> = (0..CYCLES * 2 + columns).map(|_| { (0..CYCLES * 2 + lines).map(|_| { // Inwards and outwards are mirror images, so no point in keeping both directions around (0..1 + CYCLES).map(|_| Tile { enabled: false, enabled_neighbors: 0, enabled_check_cycle: usize::MAX, }).collect() }).collect() }).collect(); let mut enabled_tiles = Vec::new(); // Enable tiles marked with # for (y, line) in input.lines().enumerate() { for (x, character) in line.chars().enumerate() { if character == '#' { let pos = (x + CYCLES, y + CYCLES, 0); tile_lookup[pos.0][pos.1][pos.2].enabled = true; enabled_tiles.push(pos); } } } for cycle in 0..CYCLES { // List of enabled tiles and their neighbors let mut touched_tiles = Vec::new(); for &tile_pos in &enabled_tiles { // Iterate 0-2 and later subtract one. for x in 0..3 { for y in 0..3 { // Don't try to go downward into the mirror if we're at the bottom layer for z in if tile_pos.2 == 0 { 1 } else { 0 }..3 { let neigh_pos = (tile_pos.0 + x - 1, tile_pos.1 + y - 1, tile_pos.2 + z - 1); let tile = &mut tile_lookup[neigh_pos.0][neigh_pos.1][neigh_pos.2]; if tile.enabled_check_cycle != cycle { tile.enabled_check_cycle = cycle; // Count is from a previous cycle, and need to be reset tile.enabled_neighbors = 0; // Pushing position when resetting makes sure we don't add duplicates touched_tiles.push(neigh_pos); } // Tile is not neighbor of itself if neigh_pos != tile_pos { tile.enabled_neighbors += if neigh_pos.2 == 0 && tile_pos.2 == 1 { // If the current tile is above z-axis origin, and we are incrementing a tile at origin, // we should increment it twice, since it should also be incremented by our mirror below // origin, which is not included in the simulation. 2 } else { 1 }; } } } } } enabled_tiles = touched_tiles.into_iter().filter(|&tile_pos| { let tile = &mut tile_lookup[tile_pos.0][tile_pos.1][tile_pos.2]; let enabled = if tile.enabled { [2, 3].contains(&tile.enabled_neighbors) } else { tile.enabled_neighbors == 3 }; tile.enabled = enabled; enabled }).collect(); } println!("{}", enabled_tiles.iter().map(|&(_, _, z)| { if z != 0 { // If this is above z-axis origin, we also need to count its mirror 2 } else { 1 } }).sum::<usize>()); }
#![allow(non_snake_case)] #![doc(include = "../docs/range-proof-protocol.md")] use rand::{CryptoRng, Rng}; use std::iter; use curve25519_dalek::ristretto::RistrettoPoint; use curve25519_dalek::scalar::Scalar; use curve25519_dalek::traits::{IsIdentity, VartimeMultiscalarMul}; use generators::Generators; use inner_product_proof::InnerProductProof; use proof_transcript::ProofTranscript; use util; // Modules for MPC protocol pub mod dealer; pub mod messages; pub mod party; /// The `RangeProof` struct represents a single range proof. #[derive(Serialize, Deserialize, Clone, Debug)] pub struct RangeProof { /// Commitment to the bits of the value A: RistrettoPoint, /// Commitment to the blinding factors S: RistrettoPoint, /// Commitment to the \\(t_1\\) coefficient of \\( t(x) \\) T_1: RistrettoPoint, /// Commitment to the \\(t_2\\) coefficient of \\( t(x) \\) T_2: RistrettoPoint, /// Evaluation of the polynomial \\(t(x)\\) at the challenge point \\(x\\) t_x: Scalar, /// Blinding factor for the synthetic commitment to \\(t(x)\\) t_x_blinding: Scalar, /// Blinding factor for the synthetic commitment to the inner-product arguments e_blinding: Scalar, /// Proof data for the inner-product argument. ipp_proof: InnerProductProof, } impl RangeProof { /// Create a rangeproof for a given pair of value `v` and /// blinding scalar `v_blinding`. /// /// XXX add doctests pub fn prove_single<R: Rng + CryptoRng>( generators: &Generators, transcript: &mut ProofTranscript, rng: &mut R, v: u64, v_blinding: &Scalar, n: usize, ) -> Result<RangeProof, &'static str> { RangeProof::prove_multiple(generators, transcript, rng, &[v], &[*v_blinding], n) } /// Create a rangeproof for a set of values. /// /// XXX add doctests pub fn prove_multiple<R: Rng + CryptoRng>( generators: &Generators, transcript: &mut ProofTranscript, rng: &mut R, values: &[u64], blindings: &[Scalar], n: usize, ) -> Result<RangeProof, &'static str> { use self::dealer::*; use self::party::*; if values.len() != blindings.len() { return Err("mismatched values and blindings len"); } let dealer = Dealer::new(generators, n, values.len(), transcript)?; let parties: Vec<_> = values .iter() .zip(blindings.iter()) .map(|(&v, &v_blinding)| { Party::new(v, v_blinding, n, &generators) }) // Collect the iterator of Results into a Result<Vec>, then unwrap it .collect::<Result<Vec<_>,_>>()?; let (parties, value_commitments): (Vec<_>, Vec<_>) = parties .into_iter() .enumerate() .map(|(j, p)| p.assign_position(j, rng)) .unzip(); let (dealer, value_challenge) = dealer.receive_value_commitments(value_commitments)?; let (parties, poly_commitments): (Vec<_>, Vec<_>) = parties .into_iter() .map(|p| p.apply_challenge(&value_challenge, rng)) .unzip(); let (dealer, poly_challenge) = dealer.receive_poly_commitments(poly_commitments)?; let proof_shares: Vec<_> = parties .into_iter() .map(|p| p.apply_challenge(&poly_challenge)) // Collect the iterator of Results into a Result<Vec>, then unwrap it .collect::<Result<Vec<_>,_>>()?; dealer.receive_trusted_shares(&proof_shares) } /// Verifies a rangeproof for a given value commitment \\(V\\). /// /// This is a convenience wrapper around `verify` for the `m=1` case. /// /// XXX add doctests pub fn verify_single<R: Rng + CryptoRng>( &self, V: &RistrettoPoint, gens: &Generators, transcript: &mut ProofTranscript, rng: &mut R, n: usize, ) -> Result<(), ()> { self.verify(&[*V], gens, transcript, rng, n) } /// Verifies an aggregated rangeproof for the given value commitments. /// /// XXX add doctests pub fn verify<R: Rng + CryptoRng>( &self, value_commitments: &[RistrettoPoint], gens: &Generators, transcript: &mut ProofTranscript, rng: &mut R, n: usize, ) -> Result<(), ()> { // First, replay the "interactive" protocol using the proof // data to recompute all challenges. let m = value_commitments.len(); transcript.commit_u64(n as u64); transcript.commit_u64(m as u64); for V in value_commitments.iter() { transcript.commit(V.compress().as_bytes()); } transcript.commit(self.A.compress().as_bytes()); transcript.commit(self.S.compress().as_bytes()); let y = transcript.challenge_scalar(); let z = transcript.challenge_scalar(); let zz = z * z; let minus_z = -z; transcript.commit(self.T_1.compress().as_bytes()); transcript.commit(self.T_2.compress().as_bytes()); let x = transcript.challenge_scalar(); transcript.commit(self.t_x.as_bytes()); transcript.commit(self.t_x_blinding.as_bytes()); transcript.commit(self.e_blinding.as_bytes()); let w = transcript.challenge_scalar(); // Challenge value for batching statements to be verified let c = Scalar::random(rng); let (x_sq, x_inv_sq, s) = self.ipp_proof.verification_scalars(transcript); let s_inv = s.iter().rev(); let a = self.ipp_proof.a; let b = self.ipp_proof.b; // Construct concat_z_and_2, an iterator of the values of // z^0 * \vec(2)^n || z^1 * \vec(2)^n || ... || z^(m-1) * \vec(2)^n let powers_of_2: Vec<Scalar> = util::exp_iter(Scalar::from_u64(2)).take(n).collect(); let powers_of_z = util::exp_iter(z).take(m); let concat_z_and_2 = powers_of_z.flat_map(|exp_z| powers_of_2.iter().map(move |exp_2| exp_2 * exp_z)); let g = s.iter().map(|s_i| minus_z - a * s_i); let h = s_inv .zip(util::exp_iter(y.invert())) .zip(concat_z_and_2) .map(|((s_i_inv, exp_y_inv), z_and_2)| z + exp_y_inv * (zz * z_and_2 - b * s_i_inv)); let value_commitment_scalars = util::exp_iter(z).take(m).map(|z_exp| c * zz * z_exp); let basepoint_scalar = w * (self.t_x - a * b) + c * (delta(n, m, &y, &z) - self.t_x); let mega_check = RistrettoPoint::vartime_multiscalar_mul( iter::once(Scalar::one()) .chain(iter::once(x)) .chain(value_commitment_scalars) .chain(iter::once(c * x)) .chain(iter::once(c * x * x)) .chain(iter::once(-self.e_blinding - c * self.t_x_blinding)) .chain(iter::once(basepoint_scalar)) .chain(g) .chain(h) .chain(x_sq.iter().cloned()) .chain(x_inv_sq.iter().cloned()), iter::once(&self.A) .chain(iter::once(&self.S)) .chain(value_commitments.iter()) .chain(iter::once(&self.T_1)) .chain(iter::once(&self.T_2)) .chain(iter::once(&gens.pedersen_generators.B_blinding)) .chain(iter::once(&gens.pedersen_generators.B)) .chain(gens.G.iter()) .chain(gens.H.iter()) .chain(self.ipp_proof.L_vec.iter()) .chain(self.ipp_proof.R_vec.iter()), ); if mega_check.is_identity() { Ok(()) } else { Err(()) } } } /// Compute /// \\[ /// \delta(y,z) = (z - z^{2}) \langle \mathbf{1}, {\mathbf{y}}^{n \cdot m} \rangle - \sum_{j=0}^{m-1} z^{j+3} \cdot \langle \mathbf{1}, {\mathbf{2}}^{n \cdot m} \rangle /// \\] fn delta(n: usize, m: usize, y: &Scalar, z: &Scalar) -> Scalar { let sum_y = util::sum_of_powers(y, n * m); let sum_2 = util::sum_of_powers(&Scalar::from_u64(2), n); let sum_z = util::sum_of_powers(z, m); (z - z * z) * sum_y - z * z * z * sum_2 * sum_z } #[cfg(test)] mod tests { use super::*; use rand::rngs::OsRng; use generators::PedersenGenerators; #[test] fn test_delta() { let mut rng = OsRng::new().unwrap(); let y = Scalar::random(&mut rng); let z = Scalar::random(&mut rng); // Choose n = 256 to ensure we overflow the group order during // the computation, to check that that's done correctly let n = 256; // code copied from previous implementation let z2 = z * z; let z3 = z2 * z; let mut power_g = Scalar::zero(); let mut exp_y = Scalar::one(); // start at y^0 = 1 let mut exp_2 = Scalar::one(); // start at 2^0 = 1 for _ in 0..n { power_g += (z - z2) * exp_y - z3 * exp_2; exp_y = exp_y * y; // y^i -> y^(i+1) exp_2 = exp_2 + exp_2; // 2^i -> 2^(i+1) } assert_eq!(power_g, delta(n, 1, &y, &z),); } /// Given a bitsize `n`, test the following: /// /// 1. Generate `m` random values and create a proof they are all in range; /// 2. Serialize to wire format; /// 3. Deserialize from wire format; /// 4. Verify the proof. fn singleparty_create_and_verify_helper(n: usize, m: usize) { // Split the test into two scopes, so that it's explicit what // data is shared between the prover and the verifier. // Use bincode for serialization use bincode; // Both prover and verifier have access to the generators and the proof let generators = Generators::new(PedersenGenerators::default(), n, m); // Serialized proof data let proof_bytes: Vec<u8>; let value_commitments: Vec<RistrettoPoint>; // Prover's scope { // 1. Generate the proof let mut rng = OsRng::new().unwrap(); let mut transcript = ProofTranscript::new(b"AggregatedRangeProofTest"); let (min, max) = (0u64, ((1u128 << n) - 1) as u64); let values: Vec<u64> = (0..m).map(|_| rng.gen_range(min, max)).collect(); let blindings: Vec<Scalar> = (0..m).map(|_| Scalar::random(&mut rng)).collect(); let proof = RangeProof::prove_multiple( &generators, &mut transcript, &mut rng, &values, &blindings, n, ).unwrap(); // 2. Serialize proof_bytes = bincode::serialize(&proof).unwrap(); let pg = &generators.pedersen_generators; // XXX would be nice to have some convenience API for this value_commitments = values .iter() .zip(blindings.iter()) .map(|(&v, &v_blinding)| pg.commit(Scalar::from_u64(v), v_blinding)) .collect(); } println!( "Aggregated rangeproof of m={} proofs of n={} bits has size {} bytes", m, n, proof_bytes.len(), ); // Verifier's scope { // 3. Deserialize let proof: RangeProof = bincode::deserialize(&proof_bytes).unwrap(); // 4. Verify with the same customization label as above let mut rng = OsRng::new().unwrap(); let mut transcript = ProofTranscript::new(b"AggregatedRangeProofTest"); assert!( proof .verify( &value_commitments, &generators, &mut transcript, &mut rng, n ) .is_ok() ); } } #[test] fn create_and_verify_n_32_m_1() { singleparty_create_and_verify_helper(32, 1); } #[test] fn create_and_verify_n_32_m_2() { singleparty_create_and_verify_helper(32, 2); } #[test] fn create_and_verify_n_32_m_4() { singleparty_create_and_verify_helper(32, 4); } #[test] fn create_and_verify_n_32_m_8() { singleparty_create_and_verify_helper(32, 8); } #[test] fn create_and_verify_n_64_m_1() { singleparty_create_and_verify_helper(64, 1); } #[test] fn create_and_verify_n_64_m_2() { singleparty_create_and_verify_helper(64, 2); } #[test] fn create_and_verify_n_64_m_4() { singleparty_create_and_verify_helper(64, 4); } #[test] fn create_and_verify_n_64_m_8() { singleparty_create_and_verify_helper(64, 8); } #[test] fn detect_dishonest_party_during_aggregation() { use self::dealer::*; use self::party::*; // Simulate four parties, two of which will be dishonest and use a 64-bit value. let m = 4; let n = 32; let generators = Generators::new(PedersenGenerators::default(), n, m); let mut rng = OsRng::new().unwrap(); let mut transcript = ProofTranscript::new(b"AggregatedRangeProofTest"); // Parties 0, 2 are honest and use a 32-bit value let v0 = rng.gen::<u32>() as u64; let v0_blinding = Scalar::random(&mut rng); let party0 = Party::new(v0, v0_blinding, n, &generators).unwrap(); let v2 = rng.gen::<u32>() as u64; let v2_blinding = Scalar::random(&mut rng); let party2 = Party::new(v2, v2_blinding, n, &generators).unwrap(); // Parties 1, 3 are dishonest and use a 64-bit value let v1 = rng.gen::<u64>(); let v1_blinding = Scalar::random(&mut rng); let party1 = Party::new(v1, v1_blinding, n, &generators).unwrap(); let v3 = rng.gen::<u64>(); let v3_blinding = Scalar::random(&mut rng); let party3 = Party::new(v3, v3_blinding, n, &generators).unwrap(); let dealer = Dealer::new(&generators, n, m, &mut transcript).unwrap(); let (party0, value_com0) = party0.assign_position(0, &mut rng); let (party1, value_com1) = party1.assign_position(1, &mut rng); let (party2, value_com2) = party2.assign_position(2, &mut rng); let (party3, value_com3) = party3.assign_position(3, &mut rng); let (dealer, value_challenge) = dealer .receive_value_commitments(vec![value_com0, value_com1, value_com2, value_com3]) .unwrap(); let (party0, poly_com0) = party0.apply_challenge(&value_challenge, &mut rng); let (party1, poly_com1) = party1.apply_challenge(&value_challenge, &mut rng); let (party2, poly_com2) = party2.apply_challenge(&value_challenge, &mut rng); let (party3, poly_com3) = party3.apply_challenge(&value_challenge, &mut rng); let (dealer, poly_challenge) = dealer .receive_poly_commitments(vec![poly_com0, poly_com1, poly_com2, poly_com3]) .unwrap(); let share0 = party0.apply_challenge(&poly_challenge).unwrap(); let share1 = party1.apply_challenge(&poly_challenge).unwrap(); let share2 = party2.apply_challenge(&poly_challenge).unwrap(); let share3 = party3.apply_challenge(&poly_challenge).unwrap(); match dealer.receive_shares(&mut rng, &[share0, share1, share2, share3]) { Ok(_proof) => { panic!("The proof was malformed, but it was not detected"); } Err(e) => { // XXX when we have error types, check that it was party 1 that did it assert_eq!(e, "proof failed to verify"); } } } #[test] fn detect_dishonest_dealer_during_aggregation() { use self::dealer::*; use self::party::*; // Simulate one party let m = 1; let n = 32; let generators = Generators::new(PedersenGenerators::default(), n, m); let mut rng = OsRng::new().unwrap(); let mut transcript = ProofTranscript::new(b"AggregatedRangeProofTest"); let v0 = rng.gen::<u32>() as u64; let v0_blinding = Scalar::random(&mut rng); let party0 = Party::new(v0, v0_blinding, n, &generators).unwrap(); let dealer = Dealer::new(&generators, n, m, &mut transcript).unwrap(); // Now do the protocol flow as normal.... let (party0, value_com0) = party0.assign_position(0, &mut rng); let (dealer, value_challenge) = dealer.receive_value_commitments(vec![value_com0]).unwrap(); let (party0, poly_com0) = party0.apply_challenge(&value_challenge, &mut rng); let (_dealer, mut poly_challenge) = dealer.receive_poly_commitments(vec![poly_com0]).unwrap(); // But now simulate a malicious dealer choosing x = 0 poly_challenge.x = Scalar::zero(); let maybe_share0 = party0.apply_challenge(&poly_challenge); // XXX when we have error types, check finer info than "was error" assert!(maybe_share0.is_err()); } }
use output::OutputCollection; use sensor::SensorCollection; use std::thread; use std::time::Duration; use app::Config; pub struct App { sensors : SensorCollection, outputs : OutputCollection, } impl App { pub fn from_config(config: Config) -> App { App { sensors : config.sensors, outputs : config.outputs, } } pub fn run(&mut self) -> Result<(), String> { try!(self.outputs.enable_all(true)); loop { try!(self.sensors.update_all()); try!(self.outputs.update_all()); thread::sleep(Duration::from_secs(1)); } } }
#[derive(Debug)] enum Shape { Circle(i32), Square(i32), Rectangle(i32, i32), } use Shape::*; fn main() { let s = Rectangle(10, 20); println!("{:?}", s); }
use aoc; use std::collections::HashMap; use std::error::Error; use std::fs::File; use std::io::prelude::*; use std::io::BufReader; #[derive(Debug, Clone)] struct GameInfo { players: usize, last_marble_points: usize, } fn main() -> Result<(), Box<dyn Error>> { let arg = aoc::get_cmdline_arg()?; let game_info = BufReader::new(File::open(arg)?) .lines() .next() .unwrap() .map(|line| { let players = line[..line.find(" ").unwrap()].parse::<usize>().unwrap(); let points = line[line.find("worth").unwrap() + 6..line.find("points").unwrap() - 1] .parse::<usize>() .unwrap(); GameInfo { players, last_marble_points: points, } })?; println!("part 1: {}", part1(&game_info)); println!("part 2: {}", part2(&game_info)); Ok(()) } fn part1(game_info: &GameInfo) -> usize { let mut players = HashMap::new(); for i in 1..=game_info.players { players.insert(i, 0); } let mut circle = vec![0]; circle.reserve(game_info.last_marble_points); let mut current_marble_index = 0; let mut current_player = 1; for marble in 1..=game_info.last_marble_points { if marble % 23 == 0 { *players.get_mut(&current_player).unwrap() += marble; let mut remove_index = (current_marble_index as isize - 7) % circle.len() as isize; if remove_index < 0 { remove_index = circle.len() as isize + remove_index; } let remove_index = remove_index as usize; *players.get_mut(&current_player).unwrap() += circle.remove(remove_index); current_marble_index = remove_index % circle.len(); } else { let one = (current_marble_index + 1) % circle.len(); let two = (current_marble_index + 2) % circle.len(); if one == circle.len() - 1 && two == 0 { circle.push(marble); current_marble_index = one + 1; } else { circle.insert(two, marble); current_marble_index = two; } } // print!("[{}]: ", current_player); // circle.iter().enumerate().for_each(|(i, v)| { // if i == current_marble_index { // print!("({}) ", v); // } else { // print!("{} ", v); // } // }); // println!(); current_player += 1; if current_player > players.len() { current_player = 1; } } let (_, highest_score) = players .iter() .max_by(|(_, v1), (_, v2)| v1.cmp(v2)) .unwrap(); *highest_score } fn part2(game_info: &GameInfo) -> usize { let mut game_info_large = game_info.clone(); game_info_large.last_marble_points = game_info.last_marble_points * 10; part1(&game_info_large) }
use std::fmt; use crate::calculation::{Frequency, RedundancyExt}; mod calculation; mod filter; fn print_info<T: fmt::Display>(frequency: Frequency<T>, n_gram: f32, letters_num: f32) { println!( "Frequency:\n\ {}", frequency ); let entropy = frequency.calc_entropy(n_gram); println!("Entropy: {}", entropy); println!("Redundancy: {}", entropy.calc_redundancy(letters_num)); } fn main() { let spaces_text = filter::filter_file("text.txt").unwrap(); let no_spaces_text: String = spaces_text.chars().filter(|c| !c.is_whitespace()).collect(); println!("Text monograms with spaces: "); print_info( calculation::count_monogram_frequency(&spaces_text), 1f32, 32f32, ); println!("Text bigrams with spaces: "); print_info( calculation::count_bigram_frequency(&spaces_text), 2f32, 32f32, ); println!("Text intersection bigrams with spaces: "); print_info( calculation::count_bigram_intersection_frequency(&spaces_text), 2f32, 32f32, ); println!("Text monograms without spaces: "); print_info( calculation::count_monogram_frequency(&no_spaces_text), 1f32, 31f32, ); println!("Text bigrams without spaces: "); print_info( calculation::count_bigram_frequency(&no_spaces_text), 2f32, 31f32, ); println!("Text intersection bigrams without spaces: "); print_info( calculation::count_bigram_intersection_frequency(&no_spaces_text), 2f32, 31f32, ); }
#![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 APPSTATE(pub i32); pub const ABSENT: APPSTATE = APPSTATE(0i32); pub const ASSIGNED: APPSTATE = APPSTATE(1i32); pub const PUBLISHED: APPSTATE = APPSTATE(2i32); impl ::core::convert::From<i32> for APPSTATE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for APPSTATE { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn BrowseForGPO(lpbrowseinfo: *mut GPOBROWSEINFO) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn BrowseForGPO(lpbrowseinfo: *mut GPOBROWSEINFO) -> ::windows::core::HRESULT; } BrowseForGPO(::core::mem::transmute(lpbrowseinfo)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const CLSID_GPESnapIn: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8fc0b734_a0e1_11d1_a7d3_0000f87571e3); pub const CLSID_GroupPolicyObject: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xea502722_a23d_11d1_a7d3_0000f87571e3); pub const CLSID_RSOPSnapIn: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6dc3804b_7212_458d_adb0_9a07e2ae1fa2); #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn CommandLineFromMsiDescriptor<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(descriptor: Param0, commandline: super::super::Foundation::PWSTR, commandlinelength: *mut u32) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CommandLineFromMsiDescriptor(descriptor: super::super::Foundation::PWSTR, commandline: super::super::Foundation::PWSTR, commandlinelength: *mut u32) -> u32; } ::core::mem::transmute(CommandLineFromMsiDescriptor(descriptor.into_param().abi(), ::core::mem::transmute(commandline), ::core::mem::transmute(commandlinelength))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn CreateGPOLink<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(lpgpo: Param0, lpcontainer: Param1, fhighpriority: Param2) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn CreateGPOLink(lpgpo: super::super::Foundation::PWSTR, lpcontainer: super::super::Foundation::PWSTR, fhighpriority: super::super::Foundation::BOOL) -> ::windows::core::HRESULT; } CreateGPOLink(lpgpo.into_param().abi(), lpcontainer.into_param().abi(), fhighpriority.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy, :: core :: fmt :: Debug, :: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] #[repr(transparent)] pub struct CriticalPolicySectionHandle(pub isize); impl ::core::default::Default for CriticalPolicySectionHandle { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } unsafe impl ::windows::core::Handle for CriticalPolicySectionHandle {} unsafe impl ::windows::core::Abi for CriticalPolicySectionHandle { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DeleteAllGPOLinks<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(lpcontainer: Param0) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DeleteAllGPOLinks(lpcontainer: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } DeleteAllGPOLinks(lpcontainer.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn DeleteGPOLink<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(lpgpo: Param0, lpcontainer: Param1) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn DeleteGPOLink(lpgpo: super::super::Foundation::PWSTR, lpcontainer: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } DeleteGPOLink(lpgpo.into_param().abi(), lpcontainer.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn EnterCriticalPolicySection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(bmachine: Param0) -> super::super::Foundation::HANDLE { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn EnterCriticalPolicySection(bmachine: super::super::Foundation::BOOL) -> super::super::Foundation::HANDLE; } ::core::mem::transmute(EnterCriticalPolicySection(bmachine.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ExportRSoPData<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(lpnamespace: Param0, lpfilename: Param1) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ExportRSoPData(lpnamespace: super::super::Foundation::PWSTR, lpfilename: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } ExportRSoPData(lpnamespace.into_param().abi(), lpfilename.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const FLAG_ASSUME_COMP_WQLFILTER_TRUE: u32 = 33554432u32; pub const FLAG_ASSUME_SLOW_LINK: u32 = 536870912u32; pub const FLAG_ASSUME_USER_WQLFILTER_TRUE: u32 = 67108864u32; pub const FLAG_FORCE_CREATENAMESPACE: u32 = 4u32; pub const FLAG_LOOPBACK_MERGE: u32 = 268435456u32; pub const FLAG_LOOPBACK_REPLACE: u32 = 134217728u32; pub const FLAG_NO_COMPUTER: u32 = 2u32; pub const FLAG_NO_CSE_INVOKE: u32 = 1073741824u32; pub const FLAG_NO_GPO_FILTER: u32 = 2147483648u32; pub const FLAG_NO_USER: u32 = 1u32; pub const FLAG_PLANNING_MODE: u32 = 16777216u32; #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn FreeGPOListA(pgpolist: *const GROUP_POLICY_OBJECTA) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn FreeGPOListA(pgpolist: *const GROUP_POLICY_OBJECTA) -> super::super::Foundation::BOOL; } ::core::mem::transmute(FreeGPOListA(::core::mem::transmute(pgpolist))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn FreeGPOListW(pgpolist: *const GROUP_POLICY_OBJECTW) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn FreeGPOListW(pgpolist: *const GROUP_POLICY_OBJECTW) -> super::super::Foundation::BOOL; } ::core::mem::transmute(FreeGPOListW(::core::mem::transmute(pgpolist))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const GPC_BLOCK_POLICY: u32 = 1u32; pub const GPM: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf5694708_88fe_4b35_babf_e56162d5fbc8); pub const GPMAsyncCancel: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x372796a9_76ec_479d_ad6c_556318ed5f9d); pub const GPMBackup: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xed1a54b8_5efa_482a_93c0_8ad86f0d68c3); pub const GPMBackupCollection: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xeb8f035b_70db_4a9f_9676_37c25994e9dc); pub const GPMBackupDir: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfce4a59d_0f21_4afa_b859_e6d0c62cd10c); pub const GPMBackupDirEx: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe8c0988a_cf03_4c5b_8be2_2aa9ad32aada); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct GPMBackupType(pub i32); pub const typeGPO: GPMBackupType = GPMBackupType(0i32); pub const typeStarterGPO: GPMBackupType = GPMBackupType(1i32); impl ::core::convert::From<i32> for GPMBackupType { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for GPMBackupType { type Abi = Self; } pub const GPMCSECollection: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcf92b828_2d44_4b61_b10a_b327afd42da8); pub const GPMClientSideExtension: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc1a2e70e_659c_4b1a_940b_f88b0af9c8a4); pub const GPMConstants: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3855e880_cd9e_4d0c_9eaf_1579283a1888); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct GPMDestinationOption(pub i32); pub const opDestinationSameAsSource: GPMDestinationOption = GPMDestinationOption(0i32); pub const opDestinationNone: GPMDestinationOption = GPMDestinationOption(1i32); pub const opDestinationByRelativeName: GPMDestinationOption = GPMDestinationOption(2i32); pub const opDestinationSet: GPMDestinationOption = GPMDestinationOption(3i32); impl ::core::convert::From<i32> for GPMDestinationOption { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for GPMDestinationOption { type Abi = Self; } pub const GPMDomain: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x710901be_1050_4cb1_838a_c5cff259e183); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct GPMEntryType(pub i32); pub const typeUser: GPMEntryType = GPMEntryType(0i32); pub const typeComputer: GPMEntryType = GPMEntryType(1i32); pub const typeLocalGroup: GPMEntryType = GPMEntryType(2i32); pub const typeGlobalGroup: GPMEntryType = GPMEntryType(3i32); pub const typeUniversalGroup: GPMEntryType = GPMEntryType(4i32); pub const typeUNCPath: GPMEntryType = GPMEntryType(5i32); pub const typeUnknown: GPMEntryType = GPMEntryType(6i32); impl ::core::convert::From<i32> for GPMEntryType { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for GPMEntryType { type Abi = Self; } pub const GPMGPO: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd2ce2994_59b5_4064_b581_4d68486a16c4); pub const GPMGPOCollection: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7a057325_832d_4de3_a41f_c780436a4e09); pub const GPMGPOLink: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc1df9880_5303_42c6_8a3c_0488e1bf7364); pub const GPMGPOLinksCollection: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf6ed581a_49a5_47e2_b771_fd8dc02b6259); pub const GPMMapEntry: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8c975253_5431_4471_b35d_0626c928258a); pub const GPMMapEntryCollection: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0cf75d5b_a3a1_4c55_b4fe_9e149c41f66d); pub const GPMMigrationTable: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x55af4043_2a06_4f72_abef_631b44079c76); pub const GPMPermission: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5871a40a_e9c0_46ec_913e_944ef9225a94); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct GPMPermissionType(pub i32); pub const permGPOApply: GPMPermissionType = GPMPermissionType(65536i32); pub const permGPORead: GPMPermissionType = GPMPermissionType(65792i32); pub const permGPOEdit: GPMPermissionType = GPMPermissionType(65793i32); pub const permGPOEditSecurityAndDelete: GPMPermissionType = GPMPermissionType(65794i32); pub const permGPOCustom: GPMPermissionType = GPMPermissionType(65795i32); pub const permWMIFilterEdit: GPMPermissionType = GPMPermissionType(131072i32); pub const permWMIFilterFullControl: GPMPermissionType = GPMPermissionType(131073i32); pub const permWMIFilterCustom: GPMPermissionType = GPMPermissionType(131074i32); pub const permSOMLink: GPMPermissionType = GPMPermissionType(1835008i32); pub const permSOMLogging: GPMPermissionType = GPMPermissionType(1573120i32); pub const permSOMPlanning: GPMPermissionType = GPMPermissionType(1573376i32); pub const permSOMWMICreate: GPMPermissionType = GPMPermissionType(1049344i32); pub const permSOMWMIFullControl: GPMPermissionType = GPMPermissionType(1049345i32); pub const permSOMGPOCreate: GPMPermissionType = GPMPermissionType(1049600i32); pub const permStarterGPORead: GPMPermissionType = GPMPermissionType(197888i32); pub const permStarterGPOEdit: GPMPermissionType = GPMPermissionType(197889i32); pub const permStarterGPOFullControl: GPMPermissionType = GPMPermissionType(197890i32); pub const permStarterGPOCustom: GPMPermissionType = GPMPermissionType(197891i32); pub const permSOMStarterGPOCreate: GPMPermissionType = GPMPermissionType(1049856i32); impl ::core::convert::From<i32> for GPMPermissionType { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for GPMPermissionType { type Abi = Self; } pub const GPMRSOP: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x489b0caf_9ec2_4eb7_91f5_b6f71d43da8c); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct GPMRSOPMode(pub i32); pub const rsopUnknown: GPMRSOPMode = GPMRSOPMode(0i32); pub const rsopPlanning: GPMRSOPMode = GPMRSOPMode(1i32); pub const rsopLogging: GPMRSOPMode = GPMRSOPMode(2i32); impl ::core::convert::From<i32> for GPMRSOPMode { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for GPMRSOPMode { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct GPMReportType(pub i32); pub const repXML: GPMReportType = GPMReportType(0i32); pub const repHTML: GPMReportType = GPMReportType(1i32); pub const repInfraXML: GPMReportType = GPMReportType(2i32); pub const repInfraRefreshXML: GPMReportType = GPMReportType(3i32); pub const repClientHealthXML: GPMReportType = GPMReportType(4i32); pub const repClientHealthRefreshXML: GPMReportType = GPMReportType(5i32); impl ::core::convert::From<i32> for GPMReportType { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for GPMReportType { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct GPMReportingOptions(pub i32); pub const opReportLegacy: GPMReportingOptions = GPMReportingOptions(0i32); pub const opReportComments: GPMReportingOptions = GPMReportingOptions(1i32); impl ::core::convert::From<i32> for GPMReportingOptions { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for GPMReportingOptions { type Abi = Self; } pub const GPMResult: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x92101ac0_9287_4206_a3b2_4bdb73d225f6); pub const GPMSOM: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x32d93fac_450e_44cf_829c_8b22ff6bdae1); pub const GPMSOMCollection: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x24c1f147_3720_4f5b_a9c3_06b4e4f931d2); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct GPMSOMType(pub i32); pub const somSite: GPMSOMType = GPMSOMType(0i32); pub const somDomain: GPMSOMType = GPMSOMType(1i32); pub const somOU: GPMSOMType = GPMSOMType(2i32); impl ::core::convert::From<i32> for GPMSOMType { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for GPMSOMType { type Abi = Self; } pub const GPMSearchCriteria: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x17aaca26_5ce0_44fa_8cc0_5259e6483566); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct GPMSearchOperation(pub i32); pub const opEquals: GPMSearchOperation = GPMSearchOperation(0i32); pub const opContains: GPMSearchOperation = GPMSearchOperation(1i32); pub const opNotContains: GPMSearchOperation = GPMSearchOperation(2i32); pub const opNotEquals: GPMSearchOperation = GPMSearchOperation(3i32); impl ::core::convert::From<i32> for GPMSearchOperation { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for GPMSearchOperation { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct GPMSearchProperty(pub i32); pub const gpoPermissions: GPMSearchProperty = GPMSearchProperty(0i32); pub const gpoEffectivePermissions: GPMSearchProperty = GPMSearchProperty(1i32); pub const gpoDisplayName: GPMSearchProperty = GPMSearchProperty(2i32); pub const gpoWMIFilter: GPMSearchProperty = GPMSearchProperty(3i32); pub const gpoID: GPMSearchProperty = GPMSearchProperty(4i32); pub const gpoComputerExtensions: GPMSearchProperty = GPMSearchProperty(5i32); pub const gpoUserExtensions: GPMSearchProperty = GPMSearchProperty(6i32); pub const somLinks: GPMSearchProperty = GPMSearchProperty(7i32); pub const gpoDomain: GPMSearchProperty = GPMSearchProperty(8i32); pub const backupMostRecent: GPMSearchProperty = GPMSearchProperty(9i32); pub const starterGPOPermissions: GPMSearchProperty = GPMSearchProperty(10i32); pub const starterGPOEffectivePermissions: GPMSearchProperty = GPMSearchProperty(11i32); pub const starterGPODisplayName: GPMSearchProperty = GPMSearchProperty(12i32); pub const starterGPOID: GPMSearchProperty = GPMSearchProperty(13i32); pub const starterGPODomain: GPMSearchProperty = GPMSearchProperty(14i32); impl ::core::convert::From<i32> for GPMSearchProperty { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for GPMSearchProperty { type Abi = Self; } pub const GPMSecurityInfo: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x547a5e8f_9162_4516_a4df_9ddb9686d846); pub const GPMSitesContainer: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x229f5c42_852c_4b30_945f_c522be9bd386); pub const GPMStarterGPOBackup: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x389e400a_d8ef_455b_a861_5f9ca34a6a02); pub const GPMStarterGPOBackupCollection: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe75ea59d_1aeb_4cb5_a78a_281daa582406); pub const GPMStarterGPOCollection: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x82f8aa8b_49ba_43b2_956e_3397f9b94c3a); #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct GPMStarterGPOType(pub i32); pub const typeSystem: GPMStarterGPOType = GPMStarterGPOType(0i32); pub const typeCustom: GPMStarterGPOType = GPMStarterGPOType(1i32); impl ::core::convert::From<i32> for GPMStarterGPOType { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for GPMStarterGPOType { type Abi = Self; } pub const GPMStatusMessage: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4b77cc94_d255_409b_bc62_370881715a19); pub const GPMStatusMsgCollection: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2824e4be_4bcc_4cac_9e60_0e3ed7f12496); pub const GPMTemplate: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xecf1d454_71da_4e2f_a8c0_8185465911d9); pub const GPMTrustee: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc54a700d_19b6_4211_bcb0_e8e2475e471e); pub const GPMWMIFilter: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x626745d8_0dea_4062_bf60_cfc5b1ca1286); pub const GPMWMIFilterCollection: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x74dc6d28_e820_47d6_a0b8_f08d93d7fa33); pub const GPM_DONOTUSE_W2KDC: u32 = 2u32; pub const GPM_DONOT_VALIDATEDC: u32 = 1u32; pub const GPM_MIGRATIONTABLE_ONLY: u32 = 1u32; pub const GPM_PROCESS_SECURITY: u32 = 2u32; pub const GPM_USE_ANYDC: u32 = 1u32; pub const GPM_USE_PDC: u32 = 0u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct GPOBROWSEINFO { pub dwSize: u32, pub dwFlags: u32, pub hwndOwner: super::super::Foundation::HWND, pub lpTitle: super::super::Foundation::PWSTR, pub lpInitialOU: super::super::Foundation::PWSTR, pub lpDSPath: super::super::Foundation::PWSTR, pub dwDSPathSize: u32, pub lpName: super::super::Foundation::PWSTR, pub dwNameSize: u32, pub gpoType: GROUP_POLICY_OBJECT_TYPE, pub gpoHint: GROUP_POLICY_HINT_TYPE, } #[cfg(feature = "Win32_Foundation")] impl GPOBROWSEINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for GPOBROWSEINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for GPOBROWSEINFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("GPOBROWSEINFO") .field("dwSize", &self.dwSize) .field("dwFlags", &self.dwFlags) .field("hwndOwner", &self.hwndOwner) .field("lpTitle", &self.lpTitle) .field("lpInitialOU", &self.lpInitialOU) .field("lpDSPath", &self.lpDSPath) .field("dwDSPathSize", &self.dwDSPathSize) .field("lpName", &self.lpName) .field("dwNameSize", &self.dwNameSize) .field("gpoType", &self.gpoType) .field("gpoHint", &self.gpoHint) .finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for GPOBROWSEINFO { fn eq(&self, other: &Self) -> bool { self.dwSize == other.dwSize && self.dwFlags == other.dwFlags && self.hwndOwner == other.hwndOwner && self.lpTitle == other.lpTitle && self.lpInitialOU == other.lpInitialOU && self.lpDSPath == other.lpDSPath && self.dwDSPathSize == other.dwDSPathSize && self.lpName == other.lpName && self.dwNameSize == other.dwNameSize && self.gpoType == other.gpoType && self.gpoHint == other.gpoHint } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for GPOBROWSEINFO {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for GPOBROWSEINFO { type Abi = Self; } pub const GPO_BROWSE_DISABLENEW: u32 = 1u32; pub const GPO_BROWSE_INITTOALL: u32 = 16u32; pub const GPO_BROWSE_NOCOMPUTERS: u32 = 2u32; pub const GPO_BROWSE_NODSGPOS: u32 = 4u32; pub const GPO_BROWSE_NOUSERGPOS: u32 = 32u32; pub const GPO_BROWSE_OPENBUTTON: u32 = 8u32; pub const GPO_BROWSE_SENDAPPLYONEDIT: u32 = 64u32; pub const GPO_FLAG_DISABLE: u32 = 1u32; pub const GPO_FLAG_FORCE: u32 = 2u32; pub const GPO_INFO_FLAG_ASYNC_FOREGROUND: u32 = 4096u32; pub const GPO_INFO_FLAG_BACKGROUND: u32 = 16u32; pub const GPO_INFO_FLAG_FORCED_REFRESH: u32 = 1024u32; pub const GPO_INFO_FLAG_LINKTRANSITION: u32 = 256u32; pub const GPO_INFO_FLAG_LOGRSOP_TRANSITION: u32 = 512u32; pub const GPO_INFO_FLAG_MACHINE: u32 = 1u32; pub const GPO_INFO_FLAG_NOCHANGES: u32 = 128u32; pub const GPO_INFO_FLAG_SAFEMODE_BOOT: u32 = 2048u32; pub const GPO_INFO_FLAG_SLOWLINK: u32 = 32u32; pub const GPO_INFO_FLAG_VERBOSE: u32 = 64u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct GPO_LINK(pub i32); pub const GPLinkUnknown: GPO_LINK = GPO_LINK(0i32); pub const GPLinkMachine: GPO_LINK = GPO_LINK(1i32); pub const GPLinkSite: GPO_LINK = GPO_LINK(2i32); pub const GPLinkDomain: GPO_LINK = GPO_LINK(3i32); pub const GPLinkOrganizationalUnit: GPO_LINK = GPO_LINK(4i32); impl ::core::convert::From<i32> for GPO_LINK { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for GPO_LINK { type Abi = Self; } pub const GPO_LIST_FLAG_MACHINE: u32 = 1u32; pub const GPO_LIST_FLAG_NO_SECURITYFILTERS: u32 = 8u32; pub const GPO_LIST_FLAG_NO_WMIFILTERS: u32 = 4u32; pub const GPO_LIST_FLAG_SITEONLY: u32 = 2u32; pub const GPO_OPEN_LOAD_REGISTRY: u32 = 1u32; pub const GPO_OPEN_READ_ONLY: u32 = 2u32; pub const GPO_OPTION_DISABLE_MACHINE: u32 = 2u32; pub const GPO_OPTION_DISABLE_USER: u32 = 1u32; pub const GPO_SECTION_MACHINE: u32 = 2u32; pub const GPO_SECTION_ROOT: u32 = 0u32; pub const GPO_SECTION_USER: u32 = 1u32; #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct GROUP_POLICY_HINT_TYPE(pub i32); pub const GPHintUnknown: GROUP_POLICY_HINT_TYPE = GROUP_POLICY_HINT_TYPE(0i32); pub const GPHintMachine: GROUP_POLICY_HINT_TYPE = GROUP_POLICY_HINT_TYPE(1i32); pub const GPHintSite: GROUP_POLICY_HINT_TYPE = GROUP_POLICY_HINT_TYPE(2i32); pub const GPHintDomain: GROUP_POLICY_HINT_TYPE = GROUP_POLICY_HINT_TYPE(3i32); pub const GPHintOrganizationalUnit: GROUP_POLICY_HINT_TYPE = GROUP_POLICY_HINT_TYPE(4i32); impl ::core::convert::From<i32> for GROUP_POLICY_HINT_TYPE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for GROUP_POLICY_HINT_TYPE { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct GROUP_POLICY_OBJECTA { pub dwOptions: u32, pub dwVersion: u32, pub lpDSPath: super::super::Foundation::PSTR, pub lpFileSysPath: super::super::Foundation::PSTR, pub lpDisplayName: super::super::Foundation::PSTR, pub szGPOName: [super::super::Foundation::CHAR; 50], pub GPOLink: GPO_LINK, pub lParam: super::super::Foundation::LPARAM, pub pNext: *mut GROUP_POLICY_OBJECTA, pub pPrev: *mut GROUP_POLICY_OBJECTA, pub lpExtensions: super::super::Foundation::PSTR, pub lParam2: super::super::Foundation::LPARAM, pub lpLink: super::super::Foundation::PSTR, } #[cfg(feature = "Win32_Foundation")] impl GROUP_POLICY_OBJECTA {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for GROUP_POLICY_OBJECTA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for GROUP_POLICY_OBJECTA { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("GROUP_POLICY_OBJECTA") .field("dwOptions", &self.dwOptions) .field("dwVersion", &self.dwVersion) .field("lpDSPath", &self.lpDSPath) .field("lpFileSysPath", &self.lpFileSysPath) .field("lpDisplayName", &self.lpDisplayName) .field("szGPOName", &self.szGPOName) .field("GPOLink", &self.GPOLink) .field("lParam", &self.lParam) .field("pNext", &self.pNext) .field("pPrev", &self.pPrev) .field("lpExtensions", &self.lpExtensions) .field("lParam2", &self.lParam2) .field("lpLink", &self.lpLink) .finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for GROUP_POLICY_OBJECTA { fn eq(&self, other: &Self) -> bool { self.dwOptions == other.dwOptions && self.dwVersion == other.dwVersion && self.lpDSPath == other.lpDSPath && self.lpFileSysPath == other.lpFileSysPath && self.lpDisplayName == other.lpDisplayName && self.szGPOName == other.szGPOName && self.GPOLink == other.GPOLink && self.lParam == other.lParam && self.pNext == other.pNext && self.pPrev == other.pPrev && self.lpExtensions == other.lpExtensions && self.lParam2 == other.lParam2 && self.lpLink == other.lpLink } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for GROUP_POLICY_OBJECTA {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for GROUP_POLICY_OBJECTA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct GROUP_POLICY_OBJECTW { pub dwOptions: u32, pub dwVersion: u32, pub lpDSPath: super::super::Foundation::PWSTR, pub lpFileSysPath: super::super::Foundation::PWSTR, pub lpDisplayName: super::super::Foundation::PWSTR, pub szGPOName: [u16; 50], pub GPOLink: GPO_LINK, pub lParam: super::super::Foundation::LPARAM, pub pNext: *mut GROUP_POLICY_OBJECTW, pub pPrev: *mut GROUP_POLICY_OBJECTW, pub lpExtensions: super::super::Foundation::PWSTR, pub lParam2: super::super::Foundation::LPARAM, pub lpLink: super::super::Foundation::PWSTR, } #[cfg(feature = "Win32_Foundation")] impl GROUP_POLICY_OBJECTW {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for GROUP_POLICY_OBJECTW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for GROUP_POLICY_OBJECTW { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("GROUP_POLICY_OBJECTW") .field("dwOptions", &self.dwOptions) .field("dwVersion", &self.dwVersion) .field("lpDSPath", &self.lpDSPath) .field("lpFileSysPath", &self.lpFileSysPath) .field("lpDisplayName", &self.lpDisplayName) .field("szGPOName", &self.szGPOName) .field("GPOLink", &self.GPOLink) .field("lParam", &self.lParam) .field("pNext", &self.pNext) .field("pPrev", &self.pPrev) .field("lpExtensions", &self.lpExtensions) .field("lParam2", &self.lParam2) .field("lpLink", &self.lpLink) .finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for GROUP_POLICY_OBJECTW { fn eq(&self, other: &Self) -> bool { self.dwOptions == other.dwOptions && self.dwVersion == other.dwVersion && self.lpDSPath == other.lpDSPath && self.lpFileSysPath == other.lpFileSysPath && self.lpDisplayName == other.lpDisplayName && self.szGPOName == other.szGPOName && self.GPOLink == other.GPOLink && self.lParam == other.lParam && self.pNext == other.pNext && self.pPrev == other.pPrev && self.lpExtensions == other.lpExtensions && self.lParam2 == other.lParam2 && self.lpLink == other.lpLink } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for GROUP_POLICY_OBJECTW {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for GROUP_POLICY_OBJECTW { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct GROUP_POLICY_OBJECT_TYPE(pub i32); pub const GPOTypeLocal: GROUP_POLICY_OBJECT_TYPE = GROUP_POLICY_OBJECT_TYPE(0i32); pub const GPOTypeRemote: GROUP_POLICY_OBJECT_TYPE = GROUP_POLICY_OBJECT_TYPE(1i32); pub const GPOTypeDS: GROUP_POLICY_OBJECT_TYPE = GROUP_POLICY_OBJECT_TYPE(2i32); pub const GPOTypeLocalUser: GROUP_POLICY_OBJECT_TYPE = GROUP_POLICY_OBJECT_TYPE(3i32); pub const GPOTypeLocalGroup: GROUP_POLICY_OBJECT_TYPE = GROUP_POLICY_OBJECT_TYPE(4i32); impl ::core::convert::From<i32> for GROUP_POLICY_OBJECT_TYPE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for GROUP_POLICY_OBJECT_TYPE { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GenerateGPNotification<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(bmachine: Param0, lpwszmgmtproduct: Param1, dwmgmtproductoptions: u32) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GenerateGPNotification(bmachine: super::super::Foundation::BOOL, lpwszmgmtproduct: super::super::Foundation::PWSTR, dwmgmtproductoptions: u32) -> u32; } ::core::mem::transmute(GenerateGPNotification(bmachine.into_param().abi(), lpwszmgmtproduct.into_param().abi(), ::core::mem::transmute(dwmgmtproductoptions))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetAppliedGPOListA<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSID>>(dwflags: u32, pmachinename: Param1, psiduser: Param2, pguidextension: *const ::windows::core::GUID, ppgpolist: *mut *mut GROUP_POLICY_OBJECTA) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetAppliedGPOListA(dwflags: u32, pmachinename: super::super::Foundation::PSTR, psiduser: super::super::Foundation::PSID, pguidextension: *const ::windows::core::GUID, ppgpolist: *mut *mut GROUP_POLICY_OBJECTA) -> u32; } ::core::mem::transmute(GetAppliedGPOListA(::core::mem::transmute(dwflags), pmachinename.into_param().abi(), psiduser.into_param().abi(), ::core::mem::transmute(pguidextension), ::core::mem::transmute(ppgpolist))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetAppliedGPOListW<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSID>>(dwflags: u32, pmachinename: Param1, psiduser: Param2, pguidextension: *const ::windows::core::GUID, ppgpolist: *mut *mut GROUP_POLICY_OBJECTW) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetAppliedGPOListW(dwflags: u32, pmachinename: super::super::Foundation::PWSTR, psiduser: super::super::Foundation::PSID, pguidextension: *const ::windows::core::GUID, ppgpolist: *mut *mut GROUP_POLICY_OBJECTW) -> u32; } ::core::mem::transmute(GetAppliedGPOListW(::core::mem::transmute(dwflags), pmachinename.into_param().abi(), psiduser.into_param().abi(), ::core::mem::transmute(pguidextension), ::core::mem::transmute(ppgpolist))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetGPOListA<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PSTR>>(htoken: Param0, lpname: Param1, lphostname: Param2, lpcomputername: Param3, dwflags: u32, pgpolist: *mut *mut GROUP_POLICY_OBJECTA) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetGPOListA(htoken: super::super::Foundation::HANDLE, lpname: super::super::Foundation::PSTR, lphostname: super::super::Foundation::PSTR, lpcomputername: super::super::Foundation::PSTR, dwflags: u32, pgpolist: *mut *mut GROUP_POLICY_OBJECTA) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetGPOListA(htoken.into_param().abi(), lpname.into_param().abi(), lphostname.into_param().abi(), lpcomputername.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(pgpolist))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetGPOListW<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(htoken: Param0, lpname: Param1, lphostname: Param2, lpcomputername: Param3, dwflags: u32, pgpolist: *mut *mut GROUP_POLICY_OBJECTW) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetGPOListW(htoken: super::super::Foundation::HANDLE, lpname: super::super::Foundation::PWSTR, lphostname: super::super::Foundation::PWSTR, lpcomputername: super::super::Foundation::PWSTR, dwflags: u32, pgpolist: *mut *mut GROUP_POLICY_OBJECTW) -> super::super::Foundation::BOOL; } ::core::mem::transmute(GetGPOListW(htoken.into_param().abi(), lpname.into_param().abi(), lphostname.into_param().abi(), lpcomputername.into_param().abi(), ::core::mem::transmute(dwflags), ::core::mem::transmute(pgpolist))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetLocalManagedApplicationData<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(productcode: Param0, displayname: *mut super::super::Foundation::PWSTR, supporturl: *mut super::super::Foundation::PWSTR) { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetLocalManagedApplicationData(productcode: super::super::Foundation::PWSTR, displayname: *mut super::super::Foundation::PWSTR, supporturl: *mut super::super::Foundation::PWSTR); } ::core::mem::transmute(GetLocalManagedApplicationData(productcode.into_param().abi(), ::core::mem::transmute(displayname), ::core::mem::transmute(supporturl))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetLocalManagedApplications<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(buserapps: Param0, pdwapps: *mut u32, prglocalapps: *mut *mut LOCALMANAGEDAPPLICATION) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetLocalManagedApplications(buserapps: super::super::Foundation::BOOL, pdwapps: *mut u32, prglocalapps: *mut *mut LOCALMANAGEDAPPLICATION) -> u32; } ::core::mem::transmute(GetLocalManagedApplications(buserapps.into_param().abi(), ::core::mem::transmute(pdwapps), ::core::mem::transmute(prglocalapps))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell"))] #[inline] pub unsafe fn GetManagedApplicationCategories(dwreserved: u32, pappcategory: *mut super::super::UI::Shell::APPCATEGORYINFOLIST) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetManagedApplicationCategories(dwreserved: u32, pappcategory: *mut super::super::UI::Shell::APPCATEGORYINFOLIST) -> u32; } ::core::mem::transmute(GetManagedApplicationCategories(::core::mem::transmute(dwreserved), ::core::mem::transmute(pappcategory))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn GetManagedApplications(pcategory: *const ::windows::core::GUID, dwqueryflags: u32, dwinfolevel: u32, pdwapps: *mut u32, prgmanagedapps: *mut *mut MANAGEDAPPLICATION) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn GetManagedApplications(pcategory: *const ::windows::core::GUID, dwqueryflags: u32, dwinfolevel: u32, pdwapps: *mut u32, prgmanagedapps: *mut *mut MANAGEDAPPLICATION) -> u32; } ::core::mem::transmute(GetManagedApplications(::core::mem::transmute(pcategory), ::core::mem::transmute(dwqueryflags), ::core::mem::transmute(dwinfolevel), ::core::mem::transmute(pdwapps), ::core::mem::transmute(prgmanagedapps))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPEInformation(pub ::windows::core::IUnknown); impl IGPEInformation { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetName(&self, pszname: super::super::Foundation::PWSTR, cchmaxlength: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszname), ::core::mem::transmute(cchmaxlength)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDisplayName(&self, pszname: super::super::Foundation::PWSTR, cchmaxlength: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszname), ::core::mem::transmute(cchmaxlength)).ok() } #[cfg(feature = "Win32_System_Registry")] pub unsafe fn GetRegistryKey(&self, dwsection: u32, hkey: *mut super::Registry::HKEY) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwsection), ::core::mem::transmute(hkey)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDSPath(&self, dwsection: u32, pszpath: super::super::Foundation::PWSTR, cchmaxpath: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwsection), ::core::mem::transmute(pszpath), ::core::mem::transmute(cchmaxpath)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetFileSysPath(&self, dwsection: u32, pszpath: super::super::Foundation::PWSTR, cchmaxpath: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwsection), ::core::mem::transmute(pszpath), ::core::mem::transmute(cchmaxpath)).ok() } pub unsafe fn GetOptions(&self, dwoptions: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwoptions)).ok() } pub unsafe fn GetType(&self, gpotype: *mut GROUP_POLICY_OBJECT_TYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(gpotype)).ok() } pub unsafe fn GetHint(&self, gphint: *mut GROUP_POLICY_HINT_TYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(gphint)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn PolicyChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, bmachine: Param0, badd: Param1, pguidextension: *mut ::windows::core::GUID, pguidsnapin: *mut ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), bmachine.into_param().abi(), badd.into_param().abi(), ::core::mem::transmute(pguidextension), ::core::mem::transmute(pguidsnapin)).ok() } } unsafe impl ::windows::core::Interface for IGPEInformation { type Vtable = IGPEInformation_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8fc0b735_a0e1_11d1_a7d3_0000f87571e3); } impl ::core::convert::From<IGPEInformation> for ::windows::core::IUnknown { fn from(value: IGPEInformation) -> Self { value.0 } } impl ::core::convert::From<&IGPEInformation> for ::windows::core::IUnknown { fn from(value: &IGPEInformation) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPEInformation { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPEInformation { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IGPEInformation_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR, cchmaxlength: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR, cchmaxlength: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_System_Registry")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwsection: u32, hkey: *mut super::Registry::HKEY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Registry"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwsection: u32, pszpath: super::super::Foundation::PWSTR, cchmaxpath: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwsection: u32, pszpath: super::super::Foundation::PWSTR, cchmaxpath: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwoptions: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, gpotype: *mut GROUP_POLICY_OBJECT_TYPE) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, gphint: *mut GROUP_POLICY_HINT_TYPE) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bmachine: super::super::Foundation::BOOL, badd: super::super::Foundation::BOOL, pguidextension: *mut ::windows::core::GUID, pguidsnapin: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPM(pub ::windows::core::IUnknown); impl IGPM { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDomain<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrdomain: Param0, bstrdomaincontroller: Param1, ldcflags: i32) -> ::windows::core::Result<IGPMDomain> { let mut result__: <IGPMDomain as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), bstrdomain.into_param().abi(), bstrdomaincontroller.into_param().abi(), ::core::mem::transmute(ldcflags), &mut result__).from_abi::<IGPMDomain>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetBackupDir<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrbackupdir: Param0) -> ::windows::core::Result<IGPMBackupDir> { let mut result__: <IGPMBackupDir as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), bstrbackupdir.into_param().abi(), &mut result__).from_abi::<IGPMBackupDir>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSitesContainer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrforest: Param0, bstrdomain: Param1, bstrdomaincontroller: Param2, ldcflags: i32) -> ::windows::core::Result<IGPMSitesContainer> { let mut result__: <IGPMSitesContainer as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), bstrforest.into_param().abi(), bstrdomain.into_param().abi(), bstrdomaincontroller.into_param().abi(), ::core::mem::transmute(ldcflags), &mut result__).from_abi::<IGPMSitesContainer>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetRSOP<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, gpmrsopmode: GPMRSOPMode, bstrnamespace: Param1, lflags: i32) -> ::windows::core::Result<IGPMRSOP> { let mut result__: <IGPMRSOP as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(gpmrsopmode), bstrnamespace.into_param().abi(), ::core::mem::transmute(lflags), &mut result__).from_abi::<IGPMRSOP>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CreatePermission<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrtrustee: Param0, perm: GPMPermissionType, binheritable: i16) -> ::windows::core::Result<IGPMPermission> { let mut result__: <IGPMPermission as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), bstrtrustee.into_param().abi(), ::core::mem::transmute(perm), ::core::mem::transmute(binheritable), &mut result__).from_abi::<IGPMPermission>(result__) } pub unsafe fn CreateSearchCriteria(&self) -> ::windows::core::Result<IGPMSearchCriteria> { let mut result__: <IGPMSearchCriteria as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMSearchCriteria>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CreateTrustee<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrtrustee: Param0) -> ::windows::core::Result<IGPMTrustee> { let mut result__: <IGPMTrustee as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), bstrtrustee.into_param().abi(), &mut result__).from_abi::<IGPMTrustee>(result__) } pub unsafe fn GetClientSideExtensions(&self) -> ::windows::core::Result<IGPMCSECollection> { let mut result__: <IGPMCSECollection as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMCSECollection>(result__) } pub unsafe fn GetConstants(&self) -> ::windows::core::Result<IGPMConstants> { let mut result__: <IGPMConstants as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMConstants>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetMigrationTable<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrmigrationtablepath: Param0) -> ::windows::core::Result<IGPMMigrationTable> { let mut result__: <IGPMMigrationTable as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), bstrmigrationtablepath.into_param().abi(), &mut result__).from_abi::<IGPMMigrationTable>(result__) } pub unsafe fn CreateMigrationTable(&self) -> ::windows::core::Result<IGPMMigrationTable> { let mut result__: <IGPMMigrationTable as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMMigrationTable>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn InitializeReporting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstradmpath: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), bstradmpath.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IGPM { type Vtable = IGPM_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf5fae809_3bd6_4da9_a65e_17665b41d763); } impl ::core::convert::From<IGPM> for ::windows::core::IUnknown { fn from(value: IGPM) -> Self { value.0 } } impl ::core::convert::From<&IGPM> for ::windows::core::IUnknown { fn from(value: &IGPM) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPM { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPM { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPM> for super::Com::IDispatch { fn from(value: IGPM) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPM> for super::Com::IDispatch { fn from(value: &IGPM) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPM { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPM { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPM_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrdomain: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrdomaincontroller: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ldcflags: i32, pigpmdomain: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrbackupdir: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pigpmbackupdir: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrforest: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrdomain: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrdomaincontroller: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ldcflags: i32, ppigpmsitescontainer: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, gpmrsopmode: GPMRSOPMode, bstrnamespace: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, lflags: i32, ppigpmrsop: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrtrustee: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, perm: GPMPermissionType, binheritable: i16, ppperm: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppigpmsearchcriteria: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrtrustee: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppigpmtrustee: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppigpmcsecollection: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppigpmconstants: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrmigrationtablepath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppmigrationtable: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppmigrationtable: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstradmpath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPM2(pub ::windows::core::IUnknown); impl IGPM2 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::Com::ITypeInfo> { let mut result__: <super::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDomain<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrdomain: Param0, bstrdomaincontroller: Param1, ldcflags: i32) -> ::windows::core::Result<IGPMDomain> { let mut result__: <IGPMDomain as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), bstrdomain.into_param().abi(), bstrdomaincontroller.into_param().abi(), ::core::mem::transmute(ldcflags), &mut result__).from_abi::<IGPMDomain>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetBackupDir<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrbackupdir: Param0) -> ::windows::core::Result<IGPMBackupDir> { let mut result__: <IGPMBackupDir as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), bstrbackupdir.into_param().abi(), &mut result__).from_abi::<IGPMBackupDir>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSitesContainer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrforest: Param0, bstrdomain: Param1, bstrdomaincontroller: Param2, ldcflags: i32) -> ::windows::core::Result<IGPMSitesContainer> { let mut result__: <IGPMSitesContainer as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), bstrforest.into_param().abi(), bstrdomain.into_param().abi(), bstrdomaincontroller.into_param().abi(), ::core::mem::transmute(ldcflags), &mut result__).from_abi::<IGPMSitesContainer>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetRSOP<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, gpmrsopmode: GPMRSOPMode, bstrnamespace: Param1, lflags: i32) -> ::windows::core::Result<IGPMRSOP> { let mut result__: <IGPMRSOP as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(gpmrsopmode), bstrnamespace.into_param().abi(), ::core::mem::transmute(lflags), &mut result__).from_abi::<IGPMRSOP>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CreatePermission<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrtrustee: Param0, perm: GPMPermissionType, binheritable: i16) -> ::windows::core::Result<IGPMPermission> { let mut result__: <IGPMPermission as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), bstrtrustee.into_param().abi(), ::core::mem::transmute(perm), ::core::mem::transmute(binheritable), &mut result__).from_abi::<IGPMPermission>(result__) } pub unsafe fn CreateSearchCriteria(&self) -> ::windows::core::Result<IGPMSearchCriteria> { let mut result__: <IGPMSearchCriteria as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMSearchCriteria>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn CreateTrustee<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrtrustee: Param0) -> ::windows::core::Result<IGPMTrustee> { let mut result__: <IGPMTrustee as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), bstrtrustee.into_param().abi(), &mut result__).from_abi::<IGPMTrustee>(result__) } pub unsafe fn GetClientSideExtensions(&self) -> ::windows::core::Result<IGPMCSECollection> { let mut result__: <IGPMCSECollection as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMCSECollection>(result__) } pub unsafe fn GetConstants(&self) -> ::windows::core::Result<IGPMConstants> { let mut result__: <IGPMConstants as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMConstants>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetMigrationTable<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrmigrationtablepath: Param0) -> ::windows::core::Result<IGPMMigrationTable> { let mut result__: <IGPMMigrationTable as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), bstrmigrationtablepath.into_param().abi(), &mut result__).from_abi::<IGPMMigrationTable>(result__) } pub unsafe fn CreateMigrationTable(&self) -> ::windows::core::Result<IGPMMigrationTable> { let mut result__: <IGPMMigrationTable as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMMigrationTable>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn InitializeReporting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstradmpath: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), bstradmpath.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetBackupDirEx<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrbackupdir: Param0, backupdirtype: GPMBackupType) -> ::windows::core::Result<IGPMBackupDirEx> { let mut result__: <IGPMBackupDirEx as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), bstrbackupdir.into_param().abi(), ::core::mem::transmute(backupdirtype), &mut result__).from_abi::<IGPMBackupDirEx>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn InitializeReportingEx<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstradmpath: Param0, reportingoptions: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), bstradmpath.into_param().abi(), ::core::mem::transmute(reportingoptions)).ok() } } unsafe impl ::windows::core::Interface for IGPM2 { type Vtable = IGPM2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00238f8a_3d86_41ac_8f5e_06a6638a634a); } impl ::core::convert::From<IGPM2> for ::windows::core::IUnknown { fn from(value: IGPM2) -> Self { value.0 } } impl ::core::convert::From<&IGPM2> for ::windows::core::IUnknown { fn from(value: &IGPM2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPM2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPM2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IGPM2> for IGPM { fn from(value: IGPM2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IGPM2> for IGPM { fn from(value: &IGPM2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IGPM> for IGPM2 { fn into_param(self) -> ::windows::core::Param<'a, IGPM> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IGPM> for &IGPM2 { fn into_param(self) -> ::windows::core::Param<'a, IGPM> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPM2> for super::Com::IDispatch { fn from(value: IGPM2) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPM2> for super::Com::IDispatch { fn from(value: &IGPM2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPM2 { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPM2 { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPM2_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrdomain: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrdomaincontroller: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ldcflags: i32, pigpmdomain: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrbackupdir: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pigpmbackupdir: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrforest: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrdomain: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrdomaincontroller: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ldcflags: i32, ppigpmsitescontainer: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, gpmrsopmode: GPMRSOPMode, bstrnamespace: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, lflags: i32, ppigpmrsop: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrtrustee: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, perm: GPMPermissionType, binheritable: i16, ppperm: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppigpmsearchcriteria: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrtrustee: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppigpmtrustee: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppigpmcsecollection: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppigpmconstants: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrmigrationtablepath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppmigrationtable: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppmigrationtable: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstradmpath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrbackupdir: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, backupdirtype: GPMBackupType, ppigpmbackupdirex: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstradmpath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, reportingoptions: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMAsyncCancel(pub ::windows::core::IUnknown); impl IGPMAsyncCancel { pub unsafe fn Cancel(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IGPMAsyncCancel { type Vtable = IGPMAsyncCancel_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xddc67754_be67_4541_8166_f48166868c9c); } impl ::core::convert::From<IGPMAsyncCancel> for ::windows::core::IUnknown { fn from(value: IGPMAsyncCancel) -> Self { value.0 } } impl ::core::convert::From<&IGPMAsyncCancel> for ::windows::core::IUnknown { fn from(value: &IGPMAsyncCancel) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMAsyncCancel { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMAsyncCancel { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMAsyncCancel> for super::Com::IDispatch { fn from(value: IGPMAsyncCancel) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMAsyncCancel> for super::Com::IDispatch { fn from(value: &IGPMAsyncCancel) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMAsyncCancel { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMAsyncCancel { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMAsyncCancel_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMAsyncProgress(pub ::windows::core::IUnknown); impl IGPMAsyncProgress { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Status<'a, Param4: ::windows::core::IntoParam<'a, IGPMStatusMsgCollection>>(&self, lprogressnumerator: i32, lprogressdenominator: i32, hrstatus: ::windows::core::HRESULT, presult: *const super::Com::VARIANT, ppigpmstatusmsgcollection: Param4) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(lprogressnumerator), ::core::mem::transmute(lprogressdenominator), ::core::mem::transmute(hrstatus), ::core::mem::transmute(presult), ppigpmstatusmsgcollection.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IGPMAsyncProgress { type Vtable = IGPMAsyncProgress_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6aac29f8_5948_4324_bf70_423818942dbc); } impl ::core::convert::From<IGPMAsyncProgress> for ::windows::core::IUnknown { fn from(value: IGPMAsyncProgress) -> Self { value.0 } } impl ::core::convert::From<&IGPMAsyncProgress> for ::windows::core::IUnknown { fn from(value: &IGPMAsyncProgress) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMAsyncProgress { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMAsyncProgress { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMAsyncProgress> for super::Com::IDispatch { fn from(value: IGPMAsyncProgress) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMAsyncProgress> for super::Com::IDispatch { fn from(value: &IGPMAsyncProgress) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMAsyncProgress { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMAsyncProgress { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMAsyncProgress_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lprogressnumerator: i32, lprogressdenominator: i32, hrstatus: ::windows::core::HRESULT, presult: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmstatusmsgcollection: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMBackup(pub ::windows::core::IUnknown); impl IGPMBackup { #[cfg(feature = "Win32_Foundation")] pub unsafe fn ID(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GPOID(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GPODomain(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GPODisplayName(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn Timestamp(&self) -> ::windows::core::Result<f64> { let mut result__: <f64 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<f64>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Comment(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn BackupDir(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(gpmreporttype), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GenerateReportToFile<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: Param1) -> ::windows::core::Result<IGPMResult> { let mut result__: <IGPMResult as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(gpmreporttype), bstrtargetfilepath.into_param().abi(), &mut result__).from_abi::<IGPMResult>(result__) } } unsafe impl ::windows::core::Interface for IGPMBackup { type Vtable = IGPMBackup_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd8a16a35_3b0d_416b_8d02_4df6f95a7119); } impl ::core::convert::From<IGPMBackup> for ::windows::core::IUnknown { fn from(value: IGPMBackup) -> Self { value.0 } } impl ::core::convert::From<&IGPMBackup> for ::windows::core::IUnknown { fn from(value: &IGPMBackup) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMBackup { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMBackup { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMBackup> for super::Com::IDispatch { fn from(value: IGPMBackup) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMBackup> for super::Com::IDispatch { fn from(value: &IGPMBackup) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMBackup { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMBackup { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMBackup_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut f64) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, gpmreporttype: GPMReportType, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMBackupCollection(pub ::windows::core::IUnknown); impl IGPMBackupCollection { pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Item(&self, lindex: i32) -> ::windows::core::Result<super::Com::VARIANT> { let mut result__: <super::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(lindex), &mut result__).from_abi::<super::Com::VARIANT>(result__) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<super::Ole::IEnumVARIANT> { let mut result__: <super::Ole::IEnumVARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Ole::IEnumVARIANT>(result__) } } unsafe impl ::windows::core::Interface for IGPMBackupCollection { type Vtable = IGPMBackupCollection_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc786fc0f_26d8_4bab_a745_39ca7e800cac); } impl ::core::convert::From<IGPMBackupCollection> for ::windows::core::IUnknown { fn from(value: IGPMBackupCollection) -> Self { value.0 } } impl ::core::convert::From<&IGPMBackupCollection> for ::windows::core::IUnknown { fn from(value: &IGPMBackupCollection) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMBackupCollection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMBackupCollection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMBackupCollection> for super::Com::IDispatch { fn from(value: IGPMBackupCollection) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMBackupCollection> for super::Com::IDispatch { fn from(value: &IGPMBackupCollection) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMBackupCollection { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMBackupCollection { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMBackupCollection_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lindex: i32, pval: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppigpmbackup: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMBackupDir(pub ::windows::core::IUnknown); impl IGPMBackupDir { #[cfg(feature = "Win32_Foundation")] pub unsafe fn BackupDirectory(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetBackup<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrid: Param0) -> ::windows::core::Result<IGPMBackup> { let mut result__: <IGPMBackup as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), bstrid.into_param().abi(), &mut result__).from_abi::<IGPMBackup>(result__) } pub unsafe fn SearchBackups<'a, Param0: ::windows::core::IntoParam<'a, IGPMSearchCriteria>>(&self, pigpmsearchcriteria: Param0) -> ::windows::core::Result<IGPMBackupCollection> { let mut result__: <IGPMBackupCollection as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), pigpmsearchcriteria.into_param().abi(), &mut result__).from_abi::<IGPMBackupCollection>(result__) } } unsafe impl ::windows::core::Interface for IGPMBackupDir { type Vtable = IGPMBackupDir_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb1568bed_0a93_4acc_810f_afe7081019b9); } impl ::core::convert::From<IGPMBackupDir> for ::windows::core::IUnknown { fn from(value: IGPMBackupDir) -> Self { value.0 } } impl ::core::convert::From<&IGPMBackupDir> for ::windows::core::IUnknown { fn from(value: &IGPMBackupDir) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMBackupDir { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMBackupDir { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMBackupDir> for super::Com::IDispatch { fn from(value: IGPMBackupDir) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMBackupDir> for super::Com::IDispatch { fn from(value: &IGPMBackupDir) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMBackupDir { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMBackupDir { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMBackupDir_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrid: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppbackup: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pigpmsearchcriteria: ::windows::core::RawPtr, ppigpmbackupcollection: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMBackupDirEx(pub ::windows::core::IUnknown); impl IGPMBackupDirEx { #[cfg(feature = "Win32_Foundation")] pub unsafe fn BackupDir(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn BackupType(&self) -> ::windows::core::Result<GPMBackupType> { let mut result__: <GPMBackupType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMBackupType>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GetBackup<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrid: Param0) -> ::windows::core::Result<super::Com::VARIANT> { let mut result__: <super::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), bstrid.into_param().abi(), &mut result__).from_abi::<super::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SearchBackups<'a, Param0: ::windows::core::IntoParam<'a, IGPMSearchCriteria>>(&self, pigpmsearchcriteria: Param0) -> ::windows::core::Result<super::Com::VARIANT> { let mut result__: <super::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), pigpmsearchcriteria.into_param().abi(), &mut result__).from_abi::<super::Com::VARIANT>(result__) } } unsafe impl ::windows::core::Interface for IGPMBackupDirEx { type Vtable = IGPMBackupDirEx_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf8dc55ed_3ba0_4864_aad4_d365189ee1d5); } impl ::core::convert::From<IGPMBackupDirEx> for ::windows::core::IUnknown { fn from(value: IGPMBackupDirEx) -> Self { value.0 } } impl ::core::convert::From<&IGPMBackupDirEx> for ::windows::core::IUnknown { fn from(value: &IGPMBackupDirEx) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMBackupDirEx { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMBackupDirEx { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMBackupDirEx> for super::Com::IDispatch { fn from(value: IGPMBackupDirEx) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMBackupDirEx> for super::Com::IDispatch { fn from(value: &IGPMBackupDirEx) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMBackupDirEx { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMBackupDirEx { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMBackupDirEx_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrbackupdir: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pgpmbackuptype: *mut GPMBackupType) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrid: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvarbackup: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pigpmsearchcriteria: ::windows::core::RawPtr, pvarbackupcollection: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMCSECollection(pub ::windows::core::IUnknown); impl IGPMCSECollection { pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Item(&self, lindex: i32) -> ::windows::core::Result<super::Com::VARIANT> { let mut result__: <super::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(lindex), &mut result__).from_abi::<super::Com::VARIANT>(result__) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<super::Ole::IEnumVARIANT> { let mut result__: <super::Ole::IEnumVARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Ole::IEnumVARIANT>(result__) } } unsafe impl ::windows::core::Interface for IGPMCSECollection { type Vtable = IGPMCSECollection_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2e52a97d_0a4a_4a6f_85db_201622455da0); } impl ::core::convert::From<IGPMCSECollection> for ::windows::core::IUnknown { fn from(value: IGPMCSECollection) -> Self { value.0 } } impl ::core::convert::From<&IGPMCSECollection> for ::windows::core::IUnknown { fn from(value: &IGPMCSECollection) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMCSECollection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMCSECollection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMCSECollection> for super::Com::IDispatch { fn from(value: IGPMCSECollection) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMCSECollection> for super::Com::IDispatch { fn from(value: &IGPMCSECollection) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMCSECollection { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMCSECollection { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMCSECollection_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lindex: i32, pval: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppigpmcses: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMClientSideExtension(pub ::windows::core::IUnknown); impl IGPMClientSideExtension { #[cfg(feature = "Win32_Foundation")] pub unsafe fn ID(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DisplayName(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn IsUserEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn IsComputerEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } } unsafe impl ::windows::core::Interface for IGPMClientSideExtension { type Vtable = IGPMClientSideExtension_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x69da7488_b8db_415e_9266_901be4d49928); } impl ::core::convert::From<IGPMClientSideExtension> for ::windows::core::IUnknown { fn from(value: IGPMClientSideExtension) -> Self { value.0 } } impl ::core::convert::From<&IGPMClientSideExtension> for ::windows::core::IUnknown { fn from(value: &IGPMClientSideExtension) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMClientSideExtension { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMClientSideExtension { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMClientSideExtension> for super::Com::IDispatch { fn from(value: IGPMClientSideExtension) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMClientSideExtension> for super::Com::IDispatch { fn from(value: &IGPMClientSideExtension) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMClientSideExtension { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMClientSideExtension { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMClientSideExtension_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvbenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvbenabled: *mut i16) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMConstants(pub ::windows::core::IUnknown); impl IGPMConstants { pub unsafe fn PermGPOApply(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermGPORead(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermGPOEdit(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermGPOEditSecurityAndDelete(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermGPOCustom(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermWMIFilterEdit(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermWMIFilterFullControl(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermWMIFilterCustom(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermSOMLink(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermSOMLogging(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermSOMPlanning(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermSOMGPOCreate(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermSOMWMICreate(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermSOMWMIFullControl(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn SearchPropertyGPOPermissions(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchPropertyGPOEffectivePermissions(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchPropertyGPODisplayName(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchPropertyGPOWMIFilter(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchPropertyGPOID(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchPropertyGPOComputerExtensions(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchPropertyGPOUserExtensions(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchPropertySOMLinks(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchPropertyGPODomain(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchPropertyBackupMostRecent(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchOpEquals(&self) -> ::windows::core::Result<GPMSearchOperation> { let mut result__: <GPMSearchOperation as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchOperation>(result__) } pub unsafe fn SearchOpContains(&self) -> ::windows::core::Result<GPMSearchOperation> { let mut result__: <GPMSearchOperation as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchOperation>(result__) } pub unsafe fn SearchOpNotContains(&self) -> ::windows::core::Result<GPMSearchOperation> { let mut result__: <GPMSearchOperation as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchOperation>(result__) } pub unsafe fn SearchOpNotEquals(&self) -> ::windows::core::Result<GPMSearchOperation> { let mut result__: <GPMSearchOperation as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchOperation>(result__) } pub unsafe fn UsePDC(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn UseAnyDC(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn DoNotUseW2KDC(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SOMSite(&self) -> ::windows::core::Result<GPMSOMType> { let mut result__: <GPMSOMType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSOMType>(result__) } pub unsafe fn SOMDomain(&self) -> ::windows::core::Result<GPMSOMType> { let mut result__: <GPMSOMType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).39)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSOMType>(result__) } pub unsafe fn SOMOU(&self) -> ::windows::core::Result<GPMSOMType> { let mut result__: <GPMSOMType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).40)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSOMType>(result__) } pub unsafe fn SecurityFlags(&self, vbowner: i16, vbgroup: i16, vbdacl: i16, vbsacl: i16) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).41)(::core::mem::transmute_copy(self), ::core::mem::transmute(vbowner), ::core::mem::transmute(vbgroup), ::core::mem::transmute(vbdacl), ::core::mem::transmute(vbsacl), &mut result__).from_abi::<i32>(result__) } pub unsafe fn DoNotValidateDC(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).42)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn ReportHTML(&self) -> ::windows::core::Result<GPMReportType> { let mut result__: <GPMReportType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).43)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMReportType>(result__) } pub unsafe fn ReportXML(&self) -> ::windows::core::Result<GPMReportType> { let mut result__: <GPMReportType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).44)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMReportType>(result__) } pub unsafe fn RSOPModeUnknown(&self) -> ::windows::core::Result<GPMRSOPMode> { let mut result__: <GPMRSOPMode as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).45)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMRSOPMode>(result__) } pub unsafe fn RSOPModePlanning(&self) -> ::windows::core::Result<GPMRSOPMode> { let mut result__: <GPMRSOPMode as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).46)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMRSOPMode>(result__) } pub unsafe fn RSOPModeLogging(&self) -> ::windows::core::Result<GPMRSOPMode> { let mut result__: <GPMRSOPMode as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).47)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMRSOPMode>(result__) } pub unsafe fn EntryTypeUser(&self) -> ::windows::core::Result<GPMEntryType> { let mut result__: <GPMEntryType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).48)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMEntryType>(result__) } pub unsafe fn EntryTypeComputer(&self) -> ::windows::core::Result<GPMEntryType> { let mut result__: <GPMEntryType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).49)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMEntryType>(result__) } pub unsafe fn EntryTypeLocalGroup(&self) -> ::windows::core::Result<GPMEntryType> { let mut result__: <GPMEntryType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).50)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMEntryType>(result__) } pub unsafe fn EntryTypeGlobalGroup(&self) -> ::windows::core::Result<GPMEntryType> { let mut result__: <GPMEntryType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).51)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMEntryType>(result__) } pub unsafe fn EntryTypeUniversalGroup(&self) -> ::windows::core::Result<GPMEntryType> { let mut result__: <GPMEntryType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).52)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMEntryType>(result__) } pub unsafe fn EntryTypeUNCPath(&self) -> ::windows::core::Result<GPMEntryType> { let mut result__: <GPMEntryType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).53)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMEntryType>(result__) } pub unsafe fn EntryTypeUnknown(&self) -> ::windows::core::Result<GPMEntryType> { let mut result__: <GPMEntryType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).54)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMEntryType>(result__) } pub unsafe fn DestinationOptionSameAsSource(&self) -> ::windows::core::Result<GPMDestinationOption> { let mut result__: <GPMDestinationOption as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).55)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMDestinationOption>(result__) } pub unsafe fn DestinationOptionNone(&self) -> ::windows::core::Result<GPMDestinationOption> { let mut result__: <GPMDestinationOption as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).56)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMDestinationOption>(result__) } pub unsafe fn DestinationOptionByRelativeName(&self) -> ::windows::core::Result<GPMDestinationOption> { let mut result__: <GPMDestinationOption as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).57)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMDestinationOption>(result__) } pub unsafe fn DestinationOptionSet(&self) -> ::windows::core::Result<GPMDestinationOption> { let mut result__: <GPMDestinationOption as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).58)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMDestinationOption>(result__) } pub unsafe fn MigrationTableOnly(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).59)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn ProcessSecurity(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).60)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn RsopLoggingNoComputer(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).61)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn RsopLoggingNoUser(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).62)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn RsopPlanningAssumeSlowLink(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).63)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn RsopPlanningLoopbackOption(&self, vbmerge: i16) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).64)(::core::mem::transmute_copy(self), ::core::mem::transmute(vbmerge), &mut result__).from_abi::<i32>(result__) } pub unsafe fn RsopPlanningAssumeUserWQLFilterTrue(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).65)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn RsopPlanningAssumeCompWQLFilterTrue(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).66)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } } unsafe impl ::windows::core::Interface for IGPMConstants { type Vtable = IGPMConstants_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x50ef73e6_d35c_4c8d_be63_7ea5d2aac5c4); } impl ::core::convert::From<IGPMConstants> for ::windows::core::IUnknown { fn from(value: IGPMConstants) -> Self { value.0 } } impl ::core::convert::From<&IGPMConstants> for ::windows::core::IUnknown { fn from(value: &IGPMConstants) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMConstants { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMConstants { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMConstants> for super::Com::IDispatch { fn from(value: IGPMConstants) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMConstants> for super::Com::IDispatch { fn from(value: &IGPMConstants) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMConstants { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMConstants { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMConstants_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchOperation) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchOperation) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchOperation) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchOperation) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSOMType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSOMType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSOMType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vbowner: i16, vbgroup: i16, vbdacl: i16, vbsacl: i16, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMReportType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMReportType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMRSOPMode) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMRSOPMode) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMRSOPMode) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMEntryType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMEntryType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMEntryType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMEntryType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMEntryType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMEntryType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMEntryType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMDestinationOption) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMDestinationOption) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMDestinationOption) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMDestinationOption) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vbmerge: i16, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMConstants2(pub ::windows::core::IUnknown); impl IGPMConstants2 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::Com::ITypeInfo> { let mut result__: <super::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } pub unsafe fn PermGPOApply(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermGPORead(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermGPOEdit(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermGPOEditSecurityAndDelete(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermGPOCustom(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermWMIFilterEdit(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermWMIFilterFullControl(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermWMIFilterCustom(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermSOMLink(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermSOMLogging(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermSOMPlanning(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermSOMGPOCreate(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermSOMWMICreate(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermSOMWMIFullControl(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn SearchPropertyGPOPermissions(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchPropertyGPOEffectivePermissions(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchPropertyGPODisplayName(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchPropertyGPOWMIFilter(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchPropertyGPOID(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchPropertyGPOComputerExtensions(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchPropertyGPOUserExtensions(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchPropertySOMLinks(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchPropertyGPODomain(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchPropertyBackupMostRecent(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchOpEquals(&self) -> ::windows::core::Result<GPMSearchOperation> { let mut result__: <GPMSearchOperation as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchOperation>(result__) } pub unsafe fn SearchOpContains(&self) -> ::windows::core::Result<GPMSearchOperation> { let mut result__: <GPMSearchOperation as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchOperation>(result__) } pub unsafe fn SearchOpNotContains(&self) -> ::windows::core::Result<GPMSearchOperation> { let mut result__: <GPMSearchOperation as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchOperation>(result__) } pub unsafe fn SearchOpNotEquals(&self) -> ::windows::core::Result<GPMSearchOperation> { let mut result__: <GPMSearchOperation as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchOperation>(result__) } pub unsafe fn UsePDC(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn UseAnyDC(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn DoNotUseW2KDC(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SOMSite(&self) -> ::windows::core::Result<GPMSOMType> { let mut result__: <GPMSOMType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSOMType>(result__) } pub unsafe fn SOMDomain(&self) -> ::windows::core::Result<GPMSOMType> { let mut result__: <GPMSOMType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).39)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSOMType>(result__) } pub unsafe fn SOMOU(&self) -> ::windows::core::Result<GPMSOMType> { let mut result__: <GPMSOMType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).40)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSOMType>(result__) } pub unsafe fn SecurityFlags(&self, vbowner: i16, vbgroup: i16, vbdacl: i16, vbsacl: i16) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).41)(::core::mem::transmute_copy(self), ::core::mem::transmute(vbowner), ::core::mem::transmute(vbgroup), ::core::mem::transmute(vbdacl), ::core::mem::transmute(vbsacl), &mut result__).from_abi::<i32>(result__) } pub unsafe fn DoNotValidateDC(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).42)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn ReportHTML(&self) -> ::windows::core::Result<GPMReportType> { let mut result__: <GPMReportType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).43)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMReportType>(result__) } pub unsafe fn ReportXML(&self) -> ::windows::core::Result<GPMReportType> { let mut result__: <GPMReportType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).44)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMReportType>(result__) } pub unsafe fn RSOPModeUnknown(&self) -> ::windows::core::Result<GPMRSOPMode> { let mut result__: <GPMRSOPMode as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).45)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMRSOPMode>(result__) } pub unsafe fn RSOPModePlanning(&self) -> ::windows::core::Result<GPMRSOPMode> { let mut result__: <GPMRSOPMode as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).46)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMRSOPMode>(result__) } pub unsafe fn RSOPModeLogging(&self) -> ::windows::core::Result<GPMRSOPMode> { let mut result__: <GPMRSOPMode as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).47)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMRSOPMode>(result__) } pub unsafe fn EntryTypeUser(&self) -> ::windows::core::Result<GPMEntryType> { let mut result__: <GPMEntryType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).48)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMEntryType>(result__) } pub unsafe fn EntryTypeComputer(&self) -> ::windows::core::Result<GPMEntryType> { let mut result__: <GPMEntryType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).49)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMEntryType>(result__) } pub unsafe fn EntryTypeLocalGroup(&self) -> ::windows::core::Result<GPMEntryType> { let mut result__: <GPMEntryType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).50)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMEntryType>(result__) } pub unsafe fn EntryTypeGlobalGroup(&self) -> ::windows::core::Result<GPMEntryType> { let mut result__: <GPMEntryType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).51)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMEntryType>(result__) } pub unsafe fn EntryTypeUniversalGroup(&self) -> ::windows::core::Result<GPMEntryType> { let mut result__: <GPMEntryType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).52)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMEntryType>(result__) } pub unsafe fn EntryTypeUNCPath(&self) -> ::windows::core::Result<GPMEntryType> { let mut result__: <GPMEntryType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).53)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMEntryType>(result__) } pub unsafe fn EntryTypeUnknown(&self) -> ::windows::core::Result<GPMEntryType> { let mut result__: <GPMEntryType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).54)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMEntryType>(result__) } pub unsafe fn DestinationOptionSameAsSource(&self) -> ::windows::core::Result<GPMDestinationOption> { let mut result__: <GPMDestinationOption as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).55)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMDestinationOption>(result__) } pub unsafe fn DestinationOptionNone(&self) -> ::windows::core::Result<GPMDestinationOption> { let mut result__: <GPMDestinationOption as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).56)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMDestinationOption>(result__) } pub unsafe fn DestinationOptionByRelativeName(&self) -> ::windows::core::Result<GPMDestinationOption> { let mut result__: <GPMDestinationOption as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).57)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMDestinationOption>(result__) } pub unsafe fn DestinationOptionSet(&self) -> ::windows::core::Result<GPMDestinationOption> { let mut result__: <GPMDestinationOption as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).58)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMDestinationOption>(result__) } pub unsafe fn MigrationTableOnly(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).59)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn ProcessSecurity(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).60)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn RsopLoggingNoComputer(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).61)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn RsopLoggingNoUser(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).62)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn RsopPlanningAssumeSlowLink(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).63)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn RsopPlanningLoopbackOption(&self, vbmerge: i16) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).64)(::core::mem::transmute_copy(self), ::core::mem::transmute(vbmerge), &mut result__).from_abi::<i32>(result__) } pub unsafe fn RsopPlanningAssumeUserWQLFilterTrue(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).65)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn RsopPlanningAssumeCompWQLFilterTrue(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).66)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn BackupTypeGPO(&self) -> ::windows::core::Result<GPMBackupType> { let mut result__: <GPMBackupType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).67)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMBackupType>(result__) } pub unsafe fn BackupTypeStarterGPO(&self) -> ::windows::core::Result<GPMBackupType> { let mut result__: <GPMBackupType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).68)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMBackupType>(result__) } pub unsafe fn StarterGPOTypeSystem(&self) -> ::windows::core::Result<GPMStarterGPOType> { let mut result__: <GPMStarterGPOType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).69)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMStarterGPOType>(result__) } pub unsafe fn StarterGPOTypeCustom(&self) -> ::windows::core::Result<GPMStarterGPOType> { let mut result__: <GPMStarterGPOType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).70)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMStarterGPOType>(result__) } pub unsafe fn SearchPropertyStarterGPOPermissions(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).71)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchPropertyStarterGPOEffectivePermissions(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).72)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchPropertyStarterGPODisplayName(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).73)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchPropertyStarterGPOID(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).74)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn SearchPropertyStarterGPODomain(&self) -> ::windows::core::Result<GPMSearchProperty> { let mut result__: <GPMSearchProperty as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).75)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSearchProperty>(result__) } pub unsafe fn PermStarterGPORead(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).76)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermStarterGPOEdit(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).77)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermStarterGPOFullControl(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).78)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn PermStarterGPOCustom(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).79)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn ReportLegacy(&self) -> ::windows::core::Result<GPMReportingOptions> { let mut result__: <GPMReportingOptions as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).80)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMReportingOptions>(result__) } pub unsafe fn ReportComments(&self) -> ::windows::core::Result<GPMReportingOptions> { let mut result__: <GPMReportingOptions as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).81)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMReportingOptions>(result__) } } unsafe impl ::windows::core::Interface for IGPMConstants2 { type Vtable = IGPMConstants2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x05ae21b0_ac09_4032_a26f_9e7da786dc19); } impl ::core::convert::From<IGPMConstants2> for ::windows::core::IUnknown { fn from(value: IGPMConstants2) -> Self { value.0 } } impl ::core::convert::From<&IGPMConstants2> for ::windows::core::IUnknown { fn from(value: &IGPMConstants2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMConstants2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMConstants2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IGPMConstants2> for IGPMConstants { fn from(value: IGPMConstants2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IGPMConstants2> for IGPMConstants { fn from(value: &IGPMConstants2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IGPMConstants> for IGPMConstants2 { fn into_param(self) -> ::windows::core::Param<'a, IGPMConstants> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IGPMConstants> for &IGPMConstants2 { fn into_param(self) -> ::windows::core::Param<'a, IGPMConstants> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMConstants2> for super::Com::IDispatch { fn from(value: IGPMConstants2) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMConstants2> for super::Com::IDispatch { fn from(value: &IGPMConstants2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMConstants2 { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMConstants2 { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMConstants2_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchOperation) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchOperation) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchOperation) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchOperation) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSOMType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSOMType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSOMType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vbowner: i16, vbgroup: i16, vbdacl: i16, vbsacl: i16, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMReportType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMReportType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMRSOPMode) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMRSOPMode) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMRSOPMode) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMEntryType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMEntryType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMEntryType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMEntryType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMEntryType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMEntryType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMEntryType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMDestinationOption) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMDestinationOption) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMDestinationOption) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMDestinationOption) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vbmerge: i16, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMBackupType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMBackupType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMStarterGPOType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMStarterGPOType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSearchProperty) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMReportingOptions) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMReportingOptions) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMDomain(pub ::windows::core::IUnknown); impl IGPMDomain { #[cfg(feature = "Win32_Foundation")] pub unsafe fn DomainController(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Domain(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn CreateGPO(&self) -> ::windows::core::Result<IGPMGPO> { let mut result__: <IGPMGPO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMGPO>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetGPO<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrguid: Param0) -> ::windows::core::Result<IGPMGPO> { let mut result__: <IGPMGPO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), bstrguid.into_param().abi(), &mut result__).from_abi::<IGPMGPO>(result__) } pub unsafe fn SearchGPOs<'a, Param0: ::windows::core::IntoParam<'a, IGPMSearchCriteria>>(&self, pigpmsearchcriteria: Param0) -> ::windows::core::Result<IGPMGPOCollection> { let mut result__: <IGPMGPOCollection as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), pigpmsearchcriteria.into_param().abi(), &mut result__).from_abi::<IGPMGPOCollection>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn RestoreGPO<'a, Param0: ::windows::core::IntoParam<'a, IGPMBackup>>(&self, pigpmbackup: Param0, ldcflags: i32, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), pigpmbackup.into_param().abi(), ::core::mem::transmute(ldcflags), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSOM<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrpath: Param0) -> ::windows::core::Result<IGPMSOM> { let mut result__: <IGPMSOM as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), bstrpath.into_param().abi(), &mut result__).from_abi::<IGPMSOM>(result__) } pub unsafe fn SearchSOMs<'a, Param0: ::windows::core::IntoParam<'a, IGPMSearchCriteria>>(&self, pigpmsearchcriteria: Param0) -> ::windows::core::Result<IGPMSOMCollection> { let mut result__: <IGPMSOMCollection as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), pigpmsearchcriteria.into_param().abi(), &mut result__).from_abi::<IGPMSOMCollection>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetWMIFilter<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrpath: Param0) -> ::windows::core::Result<IGPMWMIFilter> { let mut result__: <IGPMWMIFilter as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), bstrpath.into_param().abi(), &mut result__).from_abi::<IGPMWMIFilter>(result__) } pub unsafe fn SearchWMIFilters<'a, Param0: ::windows::core::IntoParam<'a, IGPMSearchCriteria>>(&self, pigpmsearchcriteria: Param0) -> ::windows::core::Result<IGPMWMIFilterCollection> { let mut result__: <IGPMWMIFilterCollection as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), pigpmsearchcriteria.into_param().abi(), &mut result__).from_abi::<IGPMWMIFilterCollection>(result__) } } unsafe impl ::windows::core::Interface for IGPMDomain { type Vtable = IGPMDomain_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6b21cc14_5a00_4f44_a738_feec8a94c7e3); } impl ::core::convert::From<IGPMDomain> for ::windows::core::IUnknown { fn from(value: IGPMDomain) -> Self { value.0 } } impl ::core::convert::From<&IGPMDomain> for ::windows::core::IUnknown { fn from(value: &IGPMDomain) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMDomain { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMDomain { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMDomain> for super::Com::IDispatch { fn from(value: IGPMDomain) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMDomain> for super::Com::IDispatch { fn from(value: &IGPMDomain) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMDomain { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMDomain { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMDomain_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppnewgpo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrguid: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppgpo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pigpmsearchcriteria: ::windows::core::RawPtr, ppigpmgpocollection: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pigpmbackup: ::windows::core::RawPtr, ldcflags: i32, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrpath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppsom: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pigpmsearchcriteria: ::windows::core::RawPtr, ppigpmsomcollection: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrpath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppwmifilter: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pigpmsearchcriteria: ::windows::core::RawPtr, ppigpmwmifiltercollection: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMDomain2(pub ::windows::core::IUnknown); impl IGPMDomain2 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::Com::ITypeInfo> { let mut result__: <super::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DomainController(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Domain(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn CreateGPO(&self) -> ::windows::core::Result<IGPMGPO> { let mut result__: <IGPMGPO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMGPO>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetGPO<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrguid: Param0) -> ::windows::core::Result<IGPMGPO> { let mut result__: <IGPMGPO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), bstrguid.into_param().abi(), &mut result__).from_abi::<IGPMGPO>(result__) } pub unsafe fn SearchGPOs<'a, Param0: ::windows::core::IntoParam<'a, IGPMSearchCriteria>>(&self, pigpmsearchcriteria: Param0) -> ::windows::core::Result<IGPMGPOCollection> { let mut result__: <IGPMGPOCollection as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), pigpmsearchcriteria.into_param().abi(), &mut result__).from_abi::<IGPMGPOCollection>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn RestoreGPO<'a, Param0: ::windows::core::IntoParam<'a, IGPMBackup>>(&self, pigpmbackup: Param0, ldcflags: i32, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), pigpmbackup.into_param().abi(), ::core::mem::transmute(ldcflags), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSOM<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrpath: Param0) -> ::windows::core::Result<IGPMSOM> { let mut result__: <IGPMSOM as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), bstrpath.into_param().abi(), &mut result__).from_abi::<IGPMSOM>(result__) } pub unsafe fn SearchSOMs<'a, Param0: ::windows::core::IntoParam<'a, IGPMSearchCriteria>>(&self, pigpmsearchcriteria: Param0) -> ::windows::core::Result<IGPMSOMCollection> { let mut result__: <IGPMSOMCollection as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), pigpmsearchcriteria.into_param().abi(), &mut result__).from_abi::<IGPMSOMCollection>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetWMIFilter<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrpath: Param0) -> ::windows::core::Result<IGPMWMIFilter> { let mut result__: <IGPMWMIFilter as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), bstrpath.into_param().abi(), &mut result__).from_abi::<IGPMWMIFilter>(result__) } pub unsafe fn SearchWMIFilters<'a, Param0: ::windows::core::IntoParam<'a, IGPMSearchCriteria>>(&self, pigpmsearchcriteria: Param0) -> ::windows::core::Result<IGPMWMIFilterCollection> { let mut result__: <IGPMWMIFilterCollection as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), pigpmsearchcriteria.into_param().abi(), &mut result__).from_abi::<IGPMWMIFilterCollection>(result__) } pub unsafe fn CreateStarterGPO(&self) -> ::windows::core::Result<IGPMStarterGPO> { let mut result__: <IGPMStarterGPO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMStarterGPO>(result__) } pub unsafe fn CreateGPOFromStarterGPO<'a, Param0: ::windows::core::IntoParam<'a, IGPMStarterGPO>>(&self, pgpotemplate: Param0) -> ::windows::core::Result<IGPMGPO> { let mut result__: <IGPMGPO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), pgpotemplate.into_param().abi(), &mut result__).from_abi::<IGPMGPO>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetStarterGPO<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrguid: Param0) -> ::windows::core::Result<IGPMStarterGPO> { let mut result__: <IGPMStarterGPO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), bstrguid.into_param().abi(), &mut result__).from_abi::<IGPMStarterGPO>(result__) } pub unsafe fn SearchStarterGPOs<'a, Param0: ::windows::core::IntoParam<'a, IGPMSearchCriteria>>(&self, pigpmsearchcriteria: Param0) -> ::windows::core::Result<IGPMStarterGPOCollection> { let mut result__: <IGPMStarterGPOCollection as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), pigpmsearchcriteria.into_param().abi(), &mut result__).from_abi::<IGPMStarterGPOCollection>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn LoadStarterGPO<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrloadfile: Param0, boverwrite: i16, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), bstrloadfile.into_param().abi(), ::core::mem::transmute(boverwrite), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn RestoreStarterGPO<'a, Param0: ::windows::core::IntoParam<'a, IGPMStarterGPOBackup>>(&self, pigpmtmplbackup: Param0, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), pigpmtmplbackup.into_param().abi(), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } } unsafe impl ::windows::core::Interface for IGPMDomain2 { type Vtable = IGPMDomain2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7ca6bb8b_f1eb_490a_938d_3c4e51c768e6); } impl ::core::convert::From<IGPMDomain2> for ::windows::core::IUnknown { fn from(value: IGPMDomain2) -> Self { value.0 } } impl ::core::convert::From<&IGPMDomain2> for ::windows::core::IUnknown { fn from(value: &IGPMDomain2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMDomain2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMDomain2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IGPMDomain2> for IGPMDomain { fn from(value: IGPMDomain2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IGPMDomain2> for IGPMDomain { fn from(value: &IGPMDomain2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IGPMDomain> for IGPMDomain2 { fn into_param(self) -> ::windows::core::Param<'a, IGPMDomain> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IGPMDomain> for &IGPMDomain2 { fn into_param(self) -> ::windows::core::Param<'a, IGPMDomain> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMDomain2> for super::Com::IDispatch { fn from(value: IGPMDomain2) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMDomain2> for super::Com::IDispatch { fn from(value: &IGPMDomain2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMDomain2 { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMDomain2 { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMDomain2_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppnewgpo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrguid: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppgpo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pigpmsearchcriteria: ::windows::core::RawPtr, ppigpmgpocollection: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pigpmbackup: ::windows::core::RawPtr, ldcflags: i32, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrpath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppsom: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pigpmsearchcriteria: ::windows::core::RawPtr, ppigpmsomcollection: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrpath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppwmifilter: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pigpmsearchcriteria: ::windows::core::RawPtr, ppigpmwmifiltercollection: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppnewtemplate: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pgpotemplate: ::windows::core::RawPtr, ppnewgpo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrguid: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pptemplate: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pigpmsearchcriteria: ::windows::core::RawPtr, ppigpmtemplatecollection: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrloadfile: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, boverwrite: i16, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pigpmtmplbackup: ::windows::core::RawPtr, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMDomain3(pub ::windows::core::IUnknown); impl IGPMDomain3 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::Com::ITypeInfo> { let mut result__: <super::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DomainController(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Domain(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn CreateGPO(&self) -> ::windows::core::Result<IGPMGPO> { let mut result__: <IGPMGPO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMGPO>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetGPO<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrguid: Param0) -> ::windows::core::Result<IGPMGPO> { let mut result__: <IGPMGPO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), bstrguid.into_param().abi(), &mut result__).from_abi::<IGPMGPO>(result__) } pub unsafe fn SearchGPOs<'a, Param0: ::windows::core::IntoParam<'a, IGPMSearchCriteria>>(&self, pigpmsearchcriteria: Param0) -> ::windows::core::Result<IGPMGPOCollection> { let mut result__: <IGPMGPOCollection as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), pigpmsearchcriteria.into_param().abi(), &mut result__).from_abi::<IGPMGPOCollection>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn RestoreGPO<'a, Param0: ::windows::core::IntoParam<'a, IGPMBackup>>(&self, pigpmbackup: Param0, ldcflags: i32, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), pigpmbackup.into_param().abi(), ::core::mem::transmute(ldcflags), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSOM<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrpath: Param0) -> ::windows::core::Result<IGPMSOM> { let mut result__: <IGPMSOM as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), bstrpath.into_param().abi(), &mut result__).from_abi::<IGPMSOM>(result__) } pub unsafe fn SearchSOMs<'a, Param0: ::windows::core::IntoParam<'a, IGPMSearchCriteria>>(&self, pigpmsearchcriteria: Param0) -> ::windows::core::Result<IGPMSOMCollection> { let mut result__: <IGPMSOMCollection as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), pigpmsearchcriteria.into_param().abi(), &mut result__).from_abi::<IGPMSOMCollection>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetWMIFilter<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrpath: Param0) -> ::windows::core::Result<IGPMWMIFilter> { let mut result__: <IGPMWMIFilter as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), bstrpath.into_param().abi(), &mut result__).from_abi::<IGPMWMIFilter>(result__) } pub unsafe fn SearchWMIFilters<'a, Param0: ::windows::core::IntoParam<'a, IGPMSearchCriteria>>(&self, pigpmsearchcriteria: Param0) -> ::windows::core::Result<IGPMWMIFilterCollection> { let mut result__: <IGPMWMIFilterCollection as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), pigpmsearchcriteria.into_param().abi(), &mut result__).from_abi::<IGPMWMIFilterCollection>(result__) } pub unsafe fn CreateStarterGPO(&self) -> ::windows::core::Result<IGPMStarterGPO> { let mut result__: <IGPMStarterGPO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMStarterGPO>(result__) } pub unsafe fn CreateGPOFromStarterGPO<'a, Param0: ::windows::core::IntoParam<'a, IGPMStarterGPO>>(&self, pgpotemplate: Param0) -> ::windows::core::Result<IGPMGPO> { let mut result__: <IGPMGPO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), pgpotemplate.into_param().abi(), &mut result__).from_abi::<IGPMGPO>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetStarterGPO<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrguid: Param0) -> ::windows::core::Result<IGPMStarterGPO> { let mut result__: <IGPMStarterGPO as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), bstrguid.into_param().abi(), &mut result__).from_abi::<IGPMStarterGPO>(result__) } pub unsafe fn SearchStarterGPOs<'a, Param0: ::windows::core::IntoParam<'a, IGPMSearchCriteria>>(&self, pigpmsearchcriteria: Param0) -> ::windows::core::Result<IGPMStarterGPOCollection> { let mut result__: <IGPMStarterGPOCollection as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), pigpmsearchcriteria.into_param().abi(), &mut result__).from_abi::<IGPMStarterGPOCollection>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn LoadStarterGPO<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrloadfile: Param0, boverwrite: i16, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), bstrloadfile.into_param().abi(), ::core::mem::transmute(boverwrite), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn RestoreStarterGPO<'a, Param0: ::windows::core::IntoParam<'a, IGPMStarterGPOBackup>>(&self, pigpmtmplbackup: Param0, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), pigpmtmplbackup.into_param().abi(), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(gpmreporttype), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn InfrastructureDC(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetInfrastructureDC<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, newval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), newval.into_param().abi()).ok() } pub unsafe fn SetInfrastructureFlags(&self, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags)).ok() } } unsafe impl ::windows::core::Interface for IGPMDomain3 { type Vtable = IGPMDomain3_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0077fdfe_88c7_4acf_a11d_d10a7c310a03); } impl ::core::convert::From<IGPMDomain3> for ::windows::core::IUnknown { fn from(value: IGPMDomain3) -> Self { value.0 } } impl ::core::convert::From<&IGPMDomain3> for ::windows::core::IUnknown { fn from(value: &IGPMDomain3) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMDomain3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMDomain3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IGPMDomain3> for IGPMDomain2 { fn from(value: IGPMDomain3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IGPMDomain3> for IGPMDomain2 { fn from(value: &IGPMDomain3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IGPMDomain2> for IGPMDomain3 { fn into_param(self) -> ::windows::core::Param<'a, IGPMDomain2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IGPMDomain2> for &IGPMDomain3 { fn into_param(self) -> ::windows::core::Param<'a, IGPMDomain2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IGPMDomain3> for IGPMDomain { fn from(value: IGPMDomain3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IGPMDomain3> for IGPMDomain { fn from(value: &IGPMDomain3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IGPMDomain> for IGPMDomain3 { fn into_param(self) -> ::windows::core::Param<'a, IGPMDomain> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IGPMDomain> for &IGPMDomain3 { fn into_param(self) -> ::windows::core::Param<'a, IGPMDomain> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMDomain3> for super::Com::IDispatch { fn from(value: IGPMDomain3) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMDomain3> for super::Com::IDispatch { fn from(value: &IGPMDomain3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMDomain3 { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMDomain3 { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMDomain3_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppnewgpo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrguid: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppgpo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pigpmsearchcriteria: ::windows::core::RawPtr, ppigpmgpocollection: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pigpmbackup: ::windows::core::RawPtr, ldcflags: i32, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrpath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppsom: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pigpmsearchcriteria: ::windows::core::RawPtr, ppigpmsomcollection: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrpath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppwmifilter: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pigpmsearchcriteria: ::windows::core::RawPtr, ppigpmwmifiltercollection: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppnewtemplate: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pgpotemplate: ::windows::core::RawPtr, ppnewgpo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrguid: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pptemplate: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pigpmsearchcriteria: ::windows::core::RawPtr, ppigpmtemplatecollection: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrloadfile: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, boverwrite: i16, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pigpmtmplbackup: ::windows::core::RawPtr, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, gpmreporttype: GPMReportType, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, newval: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMGPO(pub ::windows::core::IUnknown); impl IGPMGPO { #[cfg(feature = "Win32_Foundation")] pub unsafe fn DisplayName(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetDisplayName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, newval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), newval.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Path(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ID(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DomainName(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn CreationTime(&self) -> ::windows::core::Result<f64> { let mut result__: <f64 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<f64>(result__) } pub unsafe fn ModificationTime(&self) -> ::windows::core::Result<f64> { let mut result__: <f64 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<f64>(result__) } pub unsafe fn UserDSVersionNumber(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn ComputerDSVersionNumber(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn UserSysvolVersionNumber(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn ComputerSysvolVersionNumber(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn GetWMIFilter(&self) -> ::windows::core::Result<IGPMWMIFilter> { let mut result__: <IGPMWMIFilter as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMWMIFilter>(result__) } pub unsafe fn SetWMIFilter<'a, Param0: ::windows::core::IntoParam<'a, IGPMWMIFilter>>(&self, pigpmwmifilter: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), pigpmwmifilter.into_param().abi()).ok() } pub unsafe fn SetUserEnabled(&self, vbenabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), ::core::mem::transmute(vbenabled)).ok() } pub unsafe fn SetComputerEnabled(&self, vbenabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), ::core::mem::transmute(vbenabled)).ok() } pub unsafe fn IsUserEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn IsComputerEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn GetSecurityInfo(&self) -> ::windows::core::Result<IGPMSecurityInfo> { let mut result__: <IGPMSecurityInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMSecurityInfo>(result__) } pub unsafe fn SetSecurityInfo<'a, Param0: ::windows::core::IntoParam<'a, IGPMSecurityInfo>>(&self, psecurityinfo: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), psecurityinfo.into_param().abi()).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Backup<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrbackupdir: Param0, bstrcomment: Param1, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self), bstrbackupdir.into_param().abi(), bstrcomment.into_param().abi(), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Import<'a, Param1: ::windows::core::IntoParam<'a, IGPMBackup>>(&self, lflags: i32, pigpmbackup: Param1, pvarmigrationtable: *const super::Com::VARIANT, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self), ::core::mem::transmute(lflags), pigpmbackup.into_param().abi(), ::core::mem::transmute(pvarmigrationtable), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), ::core::mem::transmute(gpmreporttype), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GenerateReportToFile<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: Param1) -> ::windows::core::Result<IGPMResult> { let mut result__: <IGPMResult as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), ::core::mem::transmute(gpmreporttype), bstrtargetfilepath.into_param().abi(), &mut result__).from_abi::<IGPMResult>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn CopyTo<'a, Param1: ::windows::core::IntoParam<'a, IGPMDomain>>(&self, lflags: i32, pigpmdomain: Param1, pvarnewdisplayname: *const super::Com::VARIANT, pvarmigrationtable: *const super::Com::VARIANT, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).31)( ::core::mem::transmute_copy(self), ::core::mem::transmute(lflags), pigpmdomain.into_param().abi(), ::core::mem::transmute(pvarnewdisplayname), ::core::mem::transmute(pvarmigrationtable), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult), ) .ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSecurityDescriptor<'a, Param1: ::windows::core::IntoParam<'a, super::Com::IDispatch>>(&self, lflags: i32, psd: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), ::core::mem::transmute(lflags), psd.into_param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSecurityDescriptor(&self, lflags: i32) -> ::windows::core::Result<super::Com::IDispatch> { let mut result__: <super::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), ::core::mem::transmute(lflags), &mut result__).from_abi::<super::Com::IDispatch>(result__) } pub unsafe fn IsACLConsistent(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn MakeACLConsistent(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IGPMGPO { type Vtable = IGPMGPO_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x58cc4352_1ca3_48e5_9864_1da4d6e0d60f); } impl ::core::convert::From<IGPMGPO> for ::windows::core::IUnknown { fn from(value: IGPMGPO) -> Self { value.0 } } impl ::core::convert::From<&IGPMGPO> for ::windows::core::IUnknown { fn from(value: &IGPMGPO) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMGPO { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMGPO { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMGPO> for super::Com::IDispatch { fn from(value: IGPMGPO) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMGPO> for super::Com::IDispatch { fn from(value: &IGPMGPO) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMGPO { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMGPO { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMGPO_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, newval: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdate: *mut f64) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdate: *mut f64) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppigpmwmifilter: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pigpmwmifilter: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vbenabled: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vbenabled: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvbenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvbenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsecurityinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psecurityinfo: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrbackupdir: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrcomment: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lflags: i32, pigpmbackup: ::windows::core::RawPtr, pvarmigrationtable: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, gpmreporttype: GPMReportType, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lflags: i32, pigpmdomain: ::windows::core::RawPtr, pvarnewdisplayname: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvarmigrationtable: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lflags: i32, psd: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lflags: i32, ppsd: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvbconsistent: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMGPO2(pub ::windows::core::IUnknown); impl IGPMGPO2 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::Com::ITypeInfo> { let mut result__: <super::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DisplayName(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetDisplayName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, newval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), newval.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Path(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ID(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DomainName(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn CreationTime(&self) -> ::windows::core::Result<f64> { let mut result__: <f64 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<f64>(result__) } pub unsafe fn ModificationTime(&self) -> ::windows::core::Result<f64> { let mut result__: <f64 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<f64>(result__) } pub unsafe fn UserDSVersionNumber(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn ComputerDSVersionNumber(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn UserSysvolVersionNumber(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn ComputerSysvolVersionNumber(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn GetWMIFilter(&self) -> ::windows::core::Result<IGPMWMIFilter> { let mut result__: <IGPMWMIFilter as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMWMIFilter>(result__) } pub unsafe fn SetWMIFilter<'a, Param0: ::windows::core::IntoParam<'a, IGPMWMIFilter>>(&self, pigpmwmifilter: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), pigpmwmifilter.into_param().abi()).ok() } pub unsafe fn SetUserEnabled(&self, vbenabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), ::core::mem::transmute(vbenabled)).ok() } pub unsafe fn SetComputerEnabled(&self, vbenabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), ::core::mem::transmute(vbenabled)).ok() } pub unsafe fn IsUserEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn IsComputerEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn GetSecurityInfo(&self) -> ::windows::core::Result<IGPMSecurityInfo> { let mut result__: <IGPMSecurityInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMSecurityInfo>(result__) } pub unsafe fn SetSecurityInfo<'a, Param0: ::windows::core::IntoParam<'a, IGPMSecurityInfo>>(&self, psecurityinfo: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), psecurityinfo.into_param().abi()).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Backup<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrbackupdir: Param0, bstrcomment: Param1, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self), bstrbackupdir.into_param().abi(), bstrcomment.into_param().abi(), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Import<'a, Param1: ::windows::core::IntoParam<'a, IGPMBackup>>(&self, lflags: i32, pigpmbackup: Param1, pvarmigrationtable: *const super::Com::VARIANT, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self), ::core::mem::transmute(lflags), pigpmbackup.into_param().abi(), ::core::mem::transmute(pvarmigrationtable), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), ::core::mem::transmute(gpmreporttype), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GenerateReportToFile<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: Param1) -> ::windows::core::Result<IGPMResult> { let mut result__: <IGPMResult as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), ::core::mem::transmute(gpmreporttype), bstrtargetfilepath.into_param().abi(), &mut result__).from_abi::<IGPMResult>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn CopyTo<'a, Param1: ::windows::core::IntoParam<'a, IGPMDomain>>(&self, lflags: i32, pigpmdomain: Param1, pvarnewdisplayname: *const super::Com::VARIANT, pvarmigrationtable: *const super::Com::VARIANT, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).31)( ::core::mem::transmute_copy(self), ::core::mem::transmute(lflags), pigpmdomain.into_param().abi(), ::core::mem::transmute(pvarnewdisplayname), ::core::mem::transmute(pvarmigrationtable), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult), ) .ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSecurityDescriptor<'a, Param1: ::windows::core::IntoParam<'a, super::Com::IDispatch>>(&self, lflags: i32, psd: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), ::core::mem::transmute(lflags), psd.into_param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSecurityDescriptor(&self, lflags: i32) -> ::windows::core::Result<super::Com::IDispatch> { let mut result__: <super::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), ::core::mem::transmute(lflags), &mut result__).from_abi::<super::Com::IDispatch>(result__) } pub unsafe fn IsACLConsistent(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn MakeACLConsistent(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Description(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetDescription<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, newval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), newval.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IGPMGPO2 { type Vtable = IGPMGPO2_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8a66a210_b78b_4d99_88e2_c306a817c925); } impl ::core::convert::From<IGPMGPO2> for ::windows::core::IUnknown { fn from(value: IGPMGPO2) -> Self { value.0 } } impl ::core::convert::From<&IGPMGPO2> for ::windows::core::IUnknown { fn from(value: &IGPMGPO2) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMGPO2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMGPO2 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IGPMGPO2> for IGPMGPO { fn from(value: IGPMGPO2) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IGPMGPO2> for IGPMGPO { fn from(value: &IGPMGPO2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IGPMGPO> for IGPMGPO2 { fn into_param(self) -> ::windows::core::Param<'a, IGPMGPO> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IGPMGPO> for &IGPMGPO2 { fn into_param(self) -> ::windows::core::Param<'a, IGPMGPO> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMGPO2> for super::Com::IDispatch { fn from(value: IGPMGPO2) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMGPO2> for super::Com::IDispatch { fn from(value: &IGPMGPO2) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMGPO2 { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMGPO2 { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMGPO2_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, newval: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdate: *mut f64) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdate: *mut f64) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppigpmwmifilter: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pigpmwmifilter: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vbenabled: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vbenabled: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvbenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvbenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsecurityinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psecurityinfo: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrbackupdir: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrcomment: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lflags: i32, pigpmbackup: ::windows::core::RawPtr, pvarmigrationtable: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, gpmreporttype: GPMReportType, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lflags: i32, pigpmdomain: ::windows::core::RawPtr, pvarnewdisplayname: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvarmigrationtable: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lflags: i32, psd: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lflags: i32, ppsd: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvbconsistent: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, newval: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMGPO3(pub ::windows::core::IUnknown); impl IGPMGPO3 { pub unsafe fn GetTypeInfoCount(&self) -> ::windows::core::Result<u32> { let mut result__: <u32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::core::Result<super::Com::ITypeInfo> { let mut result__: <super::Com::ITypeInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(itinfo), ::core::mem::transmute(lcid), &mut result__).from_abi::<super::Com::ITypeInfo>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(riid), ::core::mem::transmute(rgsznames), ::core::mem::transmute(cnames), ::core::mem::transmute(lcid), ::core::mem::transmute(rgdispid)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Com::EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)( ::core::mem::transmute_copy(self), ::core::mem::transmute(dispidmember), ::core::mem::transmute(riid), ::core::mem::transmute(lcid), ::core::mem::transmute(wflags), ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr), ) .ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DisplayName(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetDisplayName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, newval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), newval.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Path(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ID(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DomainName(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn CreationTime(&self) -> ::windows::core::Result<f64> { let mut result__: <f64 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<f64>(result__) } pub unsafe fn ModificationTime(&self) -> ::windows::core::Result<f64> { let mut result__: <f64 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<f64>(result__) } pub unsafe fn UserDSVersionNumber(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn ComputerDSVersionNumber(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn UserSysvolVersionNumber(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn ComputerSysvolVersionNumber(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn GetWMIFilter(&self) -> ::windows::core::Result<IGPMWMIFilter> { let mut result__: <IGPMWMIFilter as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMWMIFilter>(result__) } pub unsafe fn SetWMIFilter<'a, Param0: ::windows::core::IntoParam<'a, IGPMWMIFilter>>(&self, pigpmwmifilter: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), pigpmwmifilter.into_param().abi()).ok() } pub unsafe fn SetUserEnabled(&self, vbenabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), ::core::mem::transmute(vbenabled)).ok() } pub unsafe fn SetComputerEnabled(&self, vbenabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), ::core::mem::transmute(vbenabled)).ok() } pub unsafe fn IsUserEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn IsComputerEnabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn GetSecurityInfo(&self) -> ::windows::core::Result<IGPMSecurityInfo> { let mut result__: <IGPMSecurityInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMSecurityInfo>(result__) } pub unsafe fn SetSecurityInfo<'a, Param0: ::windows::core::IntoParam<'a, IGPMSecurityInfo>>(&self, psecurityinfo: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), psecurityinfo.into_param().abi()).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Backup<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrbackupdir: Param0, bstrcomment: Param1, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self), bstrbackupdir.into_param().abi(), bstrcomment.into_param().abi(), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Import<'a, Param1: ::windows::core::IntoParam<'a, IGPMBackup>>(&self, lflags: i32, pigpmbackup: Param1, pvarmigrationtable: *const super::Com::VARIANT, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self), ::core::mem::transmute(lflags), pigpmbackup.into_param().abi(), ::core::mem::transmute(pvarmigrationtable), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), ::core::mem::transmute(gpmreporttype), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GenerateReportToFile<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: Param1) -> ::windows::core::Result<IGPMResult> { let mut result__: <IGPMResult as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), ::core::mem::transmute(gpmreporttype), bstrtargetfilepath.into_param().abi(), &mut result__).from_abi::<IGPMResult>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn CopyTo<'a, Param1: ::windows::core::IntoParam<'a, IGPMDomain>>(&self, lflags: i32, pigpmdomain: Param1, pvarnewdisplayname: *const super::Com::VARIANT, pvarmigrationtable: *const super::Com::VARIANT, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).31)( ::core::mem::transmute_copy(self), ::core::mem::transmute(lflags), pigpmdomain.into_param().abi(), ::core::mem::transmute(pvarnewdisplayname), ::core::mem::transmute(pvarmigrationtable), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult), ) .ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn SetSecurityDescriptor<'a, Param1: ::windows::core::IntoParam<'a, super::Com::IDispatch>>(&self, lflags: i32, psd: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), ::core::mem::transmute(lflags), psd.into_param().abi()).ok() } #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetSecurityDescriptor(&self, lflags: i32) -> ::windows::core::Result<super::Com::IDispatch> { let mut result__: <super::Com::IDispatch as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), ::core::mem::transmute(lflags), &mut result__).from_abi::<super::Com::IDispatch>(result__) } pub unsafe fn IsACLConsistent(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn MakeACLConsistent(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Description(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetDescription<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, newval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), newval.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn InfrastructureDC(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetInfrastructureDC<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, newval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).39)(::core::mem::transmute_copy(self), newval.into_param().abi()).ok() } pub unsafe fn SetInfrastructureFlags(&self, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).40)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags)).ok() } } unsafe impl ::windows::core::Interface for IGPMGPO3 { type Vtable = IGPMGPO3_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7cf123a1_f94a_4112_bfae_6aa1db9cb248); } impl ::core::convert::From<IGPMGPO3> for ::windows::core::IUnknown { fn from(value: IGPMGPO3) -> Self { value.0 } } impl ::core::convert::From<&IGPMGPO3> for ::windows::core::IUnknown { fn from(value: &IGPMGPO3) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMGPO3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMGPO3 { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } impl ::core::convert::From<IGPMGPO3> for IGPMGPO2 { fn from(value: IGPMGPO3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IGPMGPO3> for IGPMGPO2 { fn from(value: &IGPMGPO3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IGPMGPO2> for IGPMGPO3 { fn into_param(self) -> ::windows::core::Param<'a, IGPMGPO2> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IGPMGPO2> for &IGPMGPO3 { fn into_param(self) -> ::windows::core::Param<'a, IGPMGPO2> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } impl ::core::convert::From<IGPMGPO3> for IGPMGPO { fn from(value: IGPMGPO3) -> Self { unsafe { ::core::mem::transmute(value) } } } impl ::core::convert::From<&IGPMGPO3> for IGPMGPO { fn from(value: &IGPMGPO3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } impl<'a> ::windows::core::IntoParam<'a, IGPMGPO> for IGPMGPO3 { fn into_param(self) -> ::windows::core::Param<'a, IGPMGPO> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } impl<'a> ::windows::core::IntoParam<'a, IGPMGPO> for &IGPMGPO3 { fn into_param(self) -> ::windows::core::Param<'a, IGPMGPO> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMGPO3> for super::Com::IDispatch { fn from(value: IGPMGPO3) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMGPO3> for super::Com::IDispatch { fn from(value: &IGPMGPO3) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMGPO3 { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMGPO3 { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMGPO3_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, newval: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdate: *mut f64) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdate: *mut f64) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppigpmwmifilter: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pigpmwmifilter: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vbenabled: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, vbenabled: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvbenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvbenabled: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsecurityinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psecurityinfo: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrbackupdir: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrcomment: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lflags: i32, pigpmbackup: ::windows::core::RawPtr, pvarmigrationtable: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, gpmreporttype: GPMReportType, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lflags: i32, pigpmdomain: ::windows::core::RawPtr, pvarnewdisplayname: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvarmigrationtable: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lflags: i32, psd: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lflags: i32, ppsd: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvbconsistent: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, newval: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, newval: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMGPOCollection(pub ::windows::core::IUnknown); impl IGPMGPOCollection { pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Item(&self, lindex: i32) -> ::windows::core::Result<super::Com::VARIANT> { let mut result__: <super::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(lindex), &mut result__).from_abi::<super::Com::VARIANT>(result__) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<super::Ole::IEnumVARIANT> { let mut result__: <super::Ole::IEnumVARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Ole::IEnumVARIANT>(result__) } } unsafe impl ::windows::core::Interface for IGPMGPOCollection { type Vtable = IGPMGPOCollection_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf0f0d5cf_70ca_4c39_9e29_b642f8726c01); } impl ::core::convert::From<IGPMGPOCollection> for ::windows::core::IUnknown { fn from(value: IGPMGPOCollection) -> Self { value.0 } } impl ::core::convert::From<&IGPMGPOCollection> for ::windows::core::IUnknown { fn from(value: &IGPMGPOCollection) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMGPOCollection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMGPOCollection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMGPOCollection> for super::Com::IDispatch { fn from(value: IGPMGPOCollection) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMGPOCollection> for super::Com::IDispatch { fn from(value: &IGPMGPOCollection) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMGPOCollection { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMGPOCollection { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMGPOCollection_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lindex: i32, pval: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppigpmgpos: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMGPOLink(pub ::windows::core::IUnknown); impl IGPMGPOLink { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GPOID(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GPODomain(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn Enabled(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn SetEnabled(&self, newval: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(newval)).ok() } pub unsafe fn Enforced(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn SetEnforced(&self, newval: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(newval)).ok() } pub unsafe fn SOMLinkOrder(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SOM(&self) -> ::windows::core::Result<IGPMSOM> { let mut result__: <IGPMSOM as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMSOM>(result__) } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IGPMGPOLink { type Vtable = IGPMGPOLink_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x434b99bd_5de7_478a_809c_c251721df70c); } impl ::core::convert::From<IGPMGPOLink> for ::windows::core::IUnknown { fn from(value: IGPMGPOLink) -> Self { value.0 } } impl ::core::convert::From<&IGPMGPOLink> for ::windows::core::IUnknown { fn from(value: &IGPMGPOLink) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMGPOLink { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMGPOLink { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMGPOLink> for super::Com::IDispatch { fn from(value: IGPMGPOLink) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMGPOLink> for super::Com::IDispatch { fn from(value: &IGPMGPOLink) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMGPOLink { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMGPOLink { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMGPOLink_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, newval: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, newval: i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppigpmsom: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMGPOLinksCollection(pub ::windows::core::IUnknown); impl IGPMGPOLinksCollection { pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Item(&self, lindex: i32) -> ::windows::core::Result<super::Com::VARIANT> { let mut result__: <super::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(lindex), &mut result__).from_abi::<super::Com::VARIANT>(result__) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<super::Ole::IEnumVARIANT> { let mut result__: <super::Ole::IEnumVARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Ole::IEnumVARIANT>(result__) } } unsafe impl ::windows::core::Interface for IGPMGPOLinksCollection { type Vtable = IGPMGPOLinksCollection_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x189d7b68_16bd_4d0d_a2ec_2e6aa2288c7f); } impl ::core::convert::From<IGPMGPOLinksCollection> for ::windows::core::IUnknown { fn from(value: IGPMGPOLinksCollection) -> Self { value.0 } } impl ::core::convert::From<&IGPMGPOLinksCollection> for ::windows::core::IUnknown { fn from(value: &IGPMGPOLinksCollection) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMGPOLinksCollection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMGPOLinksCollection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMGPOLinksCollection> for super::Com::IDispatch { fn from(value: IGPMGPOLinksCollection) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMGPOLinksCollection> for super::Com::IDispatch { fn from(value: &IGPMGPOLinksCollection) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMGPOLinksCollection { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMGPOLinksCollection { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMGPOLinksCollection_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lindex: i32, pval: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppigpmlinks: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMMapEntry(pub ::windows::core::IUnknown); impl IGPMMapEntry { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Source(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Destination(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn DestinationOption(&self) -> ::windows::core::Result<GPMDestinationOption> { let mut result__: <GPMDestinationOption as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMDestinationOption>(result__) } pub unsafe fn EntryType(&self) -> ::windows::core::Result<GPMEntryType> { let mut result__: <GPMEntryType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMEntryType>(result__) } } unsafe impl ::windows::core::Interface for IGPMMapEntry { type Vtable = IGPMMapEntry_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8e79ad06_2381_4444_be4c_ff693e6e6f2b); } impl ::core::convert::From<IGPMMapEntry> for ::windows::core::IUnknown { fn from(value: IGPMMapEntry) -> Self { value.0 } } impl ::core::convert::From<&IGPMMapEntry> for ::windows::core::IUnknown { fn from(value: &IGPMMapEntry) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMMapEntry { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMMapEntry { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMMapEntry> for super::Com::IDispatch { fn from(value: IGPMMapEntry) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMMapEntry> for super::Com::IDispatch { fn from(value: &IGPMMapEntry) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMMapEntry { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMMapEntry { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMMapEntry_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrsource: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrdestination: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pgpmdestoption: *mut GPMDestinationOption) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pgpmentrytype: *mut GPMEntryType) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMMapEntryCollection(pub ::windows::core::IUnknown); impl IGPMMapEntryCollection { pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Item(&self, lindex: i32) -> ::windows::core::Result<super::Com::VARIANT> { let mut result__: <super::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(lindex), &mut result__).from_abi::<super::Com::VARIANT>(result__) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<super::Ole::IEnumVARIANT> { let mut result__: <super::Ole::IEnumVARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Ole::IEnumVARIANT>(result__) } } unsafe impl ::windows::core::Interface for IGPMMapEntryCollection { type Vtable = IGPMMapEntryCollection_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbb0bf49b_e53f_443f_b807_8be22bfb6d42); } impl ::core::convert::From<IGPMMapEntryCollection> for ::windows::core::IUnknown { fn from(value: IGPMMapEntryCollection) -> Self { value.0 } } impl ::core::convert::From<&IGPMMapEntryCollection> for ::windows::core::IUnknown { fn from(value: &IGPMMapEntryCollection) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMMapEntryCollection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMMapEntryCollection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMMapEntryCollection> for super::Com::IDispatch { fn from(value: IGPMMapEntryCollection) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMMapEntryCollection> for super::Com::IDispatch { fn from(value: &IGPMMapEntryCollection) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMMapEntryCollection { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMMapEntryCollection { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMMapEntryCollection_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lindex: i32, pval: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMMigrationTable(pub ::windows::core::IUnknown); impl IGPMMigrationTable { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Save<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrmigrationtablepath: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), bstrmigrationtablepath.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Add<'a, Param1: ::windows::core::IntoParam<'a, super::Com::VARIANT>>(&self, lflags: i32, var: Param1) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(lflags), var.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn AddEntry<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrsource: Param0, gpmentrytype: GPMEntryType, pvardestination: *const super::Com::VARIANT) -> ::windows::core::Result<IGPMMapEntry> { let mut result__: <IGPMMapEntry as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), bstrsource.into_param().abi(), ::core::mem::transmute(gpmentrytype), ::core::mem::transmute(pvardestination), &mut result__).from_abi::<IGPMMapEntry>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetEntry<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrsource: Param0) -> ::windows::core::Result<IGPMMapEntry> { let mut result__: <IGPMMapEntry as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), bstrsource.into_param().abi(), &mut result__).from_abi::<IGPMMapEntry>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DeleteEntry<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrsource: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), bstrsource.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn UpdateDestination<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrsource: Param0, pvardestination: *const super::Com::VARIANT) -> ::windows::core::Result<IGPMMapEntry> { let mut result__: <IGPMMapEntry as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), bstrsource.into_param().abi(), ::core::mem::transmute(pvardestination), &mut result__).from_abi::<IGPMMapEntry>(result__) } pub unsafe fn Validate(&self) -> ::windows::core::Result<IGPMResult> { let mut result__: <IGPMResult as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMResult>(result__) } pub unsafe fn GetEntries(&self) -> ::windows::core::Result<IGPMMapEntryCollection> { let mut result__: <IGPMMapEntryCollection as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMMapEntryCollection>(result__) } } unsafe impl ::windows::core::Interface for IGPMMigrationTable { type Vtable = IGPMMigrationTable_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x48f823b1_efaf_470b_b6ed_40d14ee1a4ec); } impl ::core::convert::From<IGPMMigrationTable> for ::windows::core::IUnknown { fn from(value: IGPMMigrationTable) -> Self { value.0 } } impl ::core::convert::From<&IGPMMigrationTable> for ::windows::core::IUnknown { fn from(value: &IGPMMigrationTable) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMMigrationTable { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMMigrationTable { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMMigrationTable> for super::Com::IDispatch { fn from(value: IGPMMigrationTable) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMMigrationTable> for super::Com::IDispatch { fn from(value: &IGPMMigrationTable) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMMigrationTable { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMMigrationTable { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMMigrationTable_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrmigrationtablepath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lflags: i32, var: ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrsource: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, gpmentrytype: GPMEntryType, pvardestination: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppentry: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrsource: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppentry: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrsource: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrsource: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvardestination: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppentry: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppentries: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMPermission(pub ::windows::core::IUnknown); impl IGPMPermission { pub unsafe fn Inherited(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn Inheritable(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn Denied(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn Permission(&self) -> ::windows::core::Result<GPMPermissionType> { let mut result__: <GPMPermissionType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMPermissionType>(result__) } pub unsafe fn Trustee(&self) -> ::windows::core::Result<IGPMTrustee> { let mut result__: <IGPMTrustee as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMTrustee>(result__) } } unsafe impl ::windows::core::Interface for IGPMPermission { type Vtable = IGPMPermission_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x35ebca40_e1a1_4a02_8905_d79416fb464a); } impl ::core::convert::From<IGPMPermission> for ::windows::core::IUnknown { fn from(value: IGPMPermission) -> Self { value.0 } } impl ::core::convert::From<&IGPMPermission> for ::windows::core::IUnknown { fn from(value: &IGPMPermission) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMPermission { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMPermission { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMPermission> for super::Com::IDispatch { fn from(value: IGPMPermission) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMPermission> for super::Com::IDispatch { fn from(value: &IGPMPermission) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMPermission { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMPermission { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMPermission_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMPermissionType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppigpmtrustee: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMRSOP(pub ::windows::core::IUnknown); impl IGPMRSOP { pub unsafe fn Mode(&self) -> ::windows::core::Result<GPMRSOPMode> { let mut result__: <GPMRSOPMode as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMRSOPMode>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Namespace(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetLoggingComputer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), bstrval.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn LoggingComputer(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetLoggingUser<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), bstrval.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn LoggingUser(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn SetLoggingFlags(&self, lval: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(lval)).ok() } pub unsafe fn LoggingFlags(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } pub unsafe fn SetPlanningFlags(&self, lval: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(lval)).ok() } pub unsafe fn PlanningFlags(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetPlanningDomainController<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), bstrval.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn PlanningDomainController(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetPlanningSiteName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), bstrval.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn PlanningSiteName(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetPlanningUser<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)(::core::mem::transmute_copy(self), bstrval.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn PlanningUser(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetPlanningUserSOM<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), bstrval.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn PlanningUserSOM(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SetPlanningUserWMIFilters<'a, Param0: ::windows::core::IntoParam<'a, super::Com::VARIANT>>(&self, varval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), varval.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn PlanningUserWMIFilters(&self) -> ::windows::core::Result<super::Com::VARIANT> { let mut result__: <super::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SetPlanningUserSecurityGroups<'a, Param0: ::windows::core::IntoParam<'a, super::Com::VARIANT>>(&self, varval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self), varval.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn PlanningUserSecurityGroups(&self) -> ::windows::core::Result<super::Com::VARIANT> { let mut result__: <super::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).28)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Com::VARIANT>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetPlanningComputer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).29)(::core::mem::transmute_copy(self), bstrval.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn PlanningComputer(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).30)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetPlanningComputerSOM<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).31)(::core::mem::transmute_copy(self), bstrval.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn PlanningComputerSOM(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).32)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SetPlanningComputerWMIFilters<'a, Param0: ::windows::core::IntoParam<'a, super::Com::VARIANT>>(&self, varval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).33)(::core::mem::transmute_copy(self), varval.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn PlanningComputerWMIFilters(&self) -> ::windows::core::Result<super::Com::VARIANT> { let mut result__: <super::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).34)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn SetPlanningComputerSecurityGroups<'a, Param0: ::windows::core::IntoParam<'a, super::Com::VARIANT>>(&self, varval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).35)(::core::mem::transmute_copy(self), varval.into_param().abi()).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn PlanningComputerSecurityGroups(&self) -> ::windows::core::Result<super::Com::VARIANT> { let mut result__: <super::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).36)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Com::VARIANT>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn LoggingEnumerateUsers(&self) -> ::windows::core::Result<super::Com::VARIANT> { let mut result__: <super::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).37)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Com::VARIANT>(result__) } pub unsafe fn CreateQueryResults(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).38)(::core::mem::transmute_copy(self)).ok() } pub unsafe fn ReleaseQueryResults(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).39)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).40)(::core::mem::transmute_copy(self), ::core::mem::transmute(gpmreporttype), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GenerateReportToFile<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: Param1) -> ::windows::core::Result<IGPMResult> { let mut result__: <IGPMResult as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).41)(::core::mem::transmute_copy(self), ::core::mem::transmute(gpmreporttype), bstrtargetfilepath.into_param().abi(), &mut result__).from_abi::<IGPMResult>(result__) } } unsafe impl ::windows::core::Interface for IGPMRSOP { type Vtable = IGPMRSOP_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x49ed785a_3237_4ff2_b1f0_fdf5a8d5a1ee); } impl ::core::convert::From<IGPMRSOP> for ::windows::core::IUnknown { fn from(value: IGPMRSOP) -> Self { value.0 } } impl ::core::convert::From<&IGPMRSOP> for ::windows::core::IUnknown { fn from(value: &IGPMRSOP) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMRSOP { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMRSOP { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMRSOP> for super::Com::IDispatch { fn from(value: IGPMRSOP) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMRSOP> for super::Com::IDispatch { fn from(value: &IGPMRSOP) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMRSOP { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMRSOP { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMRSOP_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMRSOPMode) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrval: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrval: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lval: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lval: *mut i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lval: i32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lval: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrval: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrval: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrval: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrval: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, varval: ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, varval: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, varval: ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, varval: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrval: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrval: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, varval: ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, varval: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, varval: ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, varval: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, varval: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, gpmreporttype: GPMReportType, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMResult(pub ::windows::core::IUnknown); impl IGPMResult { pub unsafe fn Status(&self) -> ::windows::core::Result<IGPMStatusMsgCollection> { let mut result__: <IGPMStatusMsgCollection as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMStatusMsgCollection>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Result(&self) -> ::windows::core::Result<super::Com::VARIANT> { let mut result__: <super::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Com::VARIANT>(result__) } pub unsafe fn OverallStatus(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self)).ok() } } unsafe impl ::windows::core::Interface for IGPMResult { type Vtable = IGPMResult_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x86dff7e9_f76f_42ab_9570_cebc6be8a52d); } impl ::core::convert::From<IGPMResult> for ::windows::core::IUnknown { fn from(value: IGPMResult) -> Self { value.0 } } impl ::core::convert::From<&IGPMResult> for ::windows::core::IUnknown { fn from(value: &IGPMResult) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMResult { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMResult { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMResult> for super::Com::IDispatch { fn from(value: IGPMResult) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMResult> for super::Com::IDispatch { fn from(value: &IGPMResult) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMResult { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMResult { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMResult_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppigpmstatusmsgcollection: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMSOM(pub ::windows::core::IUnknown); impl IGPMSOM { pub unsafe fn GPOInheritanceBlocked(&self) -> ::windows::core::Result<i16> { let mut result__: <i16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) } pub unsafe fn SetGPOInheritanceBlocked(&self, newval: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(newval)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Name(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Path(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn CreateGPOLink<'a, Param1: ::windows::core::IntoParam<'a, IGPMGPO>>(&self, llinkpos: i32, pgpo: Param1) -> ::windows::core::Result<IGPMGPOLink> { let mut result__: <IGPMGPOLink as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), ::core::mem::transmute(llinkpos), pgpo.into_param().abi(), &mut result__).from_abi::<IGPMGPOLink>(result__) } pub unsafe fn Type(&self) -> ::windows::core::Result<GPMSOMType> { let mut result__: <GPMSOMType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMSOMType>(result__) } pub unsafe fn GetGPOLinks(&self) -> ::windows::core::Result<IGPMGPOLinksCollection> { let mut result__: <IGPMGPOLinksCollection as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMGPOLinksCollection>(result__) } pub unsafe fn GetInheritedGPOLinks(&self) -> ::windows::core::Result<IGPMGPOLinksCollection> { let mut result__: <IGPMGPOLinksCollection as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMGPOLinksCollection>(result__) } pub unsafe fn GetSecurityInfo(&self) -> ::windows::core::Result<IGPMSecurityInfo> { let mut result__: <IGPMSecurityInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMSecurityInfo>(result__) } pub unsafe fn SetSecurityInfo<'a, Param0: ::windows::core::IntoParam<'a, IGPMSecurityInfo>>(&self, psecurityinfo: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), psecurityinfo.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IGPMSOM { type Vtable = IGPMSOM_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc0a7f09e_05a1_4f0c_8158_9e5c33684f6b); } impl ::core::convert::From<IGPMSOM> for ::windows::core::IUnknown { fn from(value: IGPMSOM) -> Self { value.0 } } impl ::core::convert::From<&IGPMSOM> for ::windows::core::IUnknown { fn from(value: &IGPMSOM) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMSOM { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMSOM { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMSOM> for super::Com::IDispatch { fn from(value: IGPMSOM) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMSOM> for super::Com::IDispatch { fn from(value: &IGPMSOM) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMSOM { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMSOM { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMSOM_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, newval: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, llinkpos: i32, pgpo: ::windows::core::RawPtr, ppnewgpolink: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMSOMType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppgpolinks: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppgpolinks: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsecurityinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psecurityinfo: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMSOMCollection(pub ::windows::core::IUnknown); impl IGPMSOMCollection { pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Item(&self, lindex: i32) -> ::windows::core::Result<super::Com::VARIANT> { let mut result__: <super::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(lindex), &mut result__).from_abi::<super::Com::VARIANT>(result__) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<super::Ole::IEnumVARIANT> { let mut result__: <super::Ole::IEnumVARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Ole::IEnumVARIANT>(result__) } } unsafe impl ::windows::core::Interface for IGPMSOMCollection { type Vtable = IGPMSOMCollection_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xadc1688e_00e4_4495_abba_bed200df0cab); } impl ::core::convert::From<IGPMSOMCollection> for ::windows::core::IUnknown { fn from(value: IGPMSOMCollection) -> Self { value.0 } } impl ::core::convert::From<&IGPMSOMCollection> for ::windows::core::IUnknown { fn from(value: &IGPMSOMCollection) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMSOMCollection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMSOMCollection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMSOMCollection> for super::Com::IDispatch { fn from(value: IGPMSOMCollection) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMSOMCollection> for super::Com::IDispatch { fn from(value: &IGPMSOMCollection) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMSOMCollection { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMSOMCollection { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMSOMCollection_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lindex: i32, pval: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppigpmsom: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMSearchCriteria(pub ::windows::core::IUnknown); impl IGPMSearchCriteria { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Add<'a, Param2: ::windows::core::IntoParam<'a, super::Com::VARIANT>>(&self, searchproperty: GPMSearchProperty, searchoperation: GPMSearchOperation, varvalue: Param2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), ::core::mem::transmute(searchproperty), ::core::mem::transmute(searchoperation), varvalue.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IGPMSearchCriteria { type Vtable = IGPMSearchCriteria_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd6f11c42_829b_48d4_83f5_3615b67dfc22); } impl ::core::convert::From<IGPMSearchCriteria> for ::windows::core::IUnknown { fn from(value: IGPMSearchCriteria) -> Self { value.0 } } impl ::core::convert::From<&IGPMSearchCriteria> for ::windows::core::IUnknown { fn from(value: &IGPMSearchCriteria) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMSearchCriteria { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMSearchCriteria { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMSearchCriteria> for super::Com::IDispatch { fn from(value: IGPMSearchCriteria) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMSearchCriteria> for super::Com::IDispatch { fn from(value: &IGPMSearchCriteria) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMSearchCriteria { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMSearchCriteria { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMSearchCriteria_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, searchproperty: GPMSearchProperty, searchoperation: GPMSearchOperation, varvalue: ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMSecurityInfo(pub ::windows::core::IUnknown); impl IGPMSecurityInfo { pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Item(&self, lindex: i32) -> ::windows::core::Result<super::Com::VARIANT> { let mut result__: <super::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(lindex), &mut result__).from_abi::<super::Com::VARIANT>(result__) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<super::Ole::IEnumVARIANT> { let mut result__: <super::Ole::IEnumVARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Ole::IEnumVARIANT>(result__) } pub unsafe fn Add<'a, Param0: ::windows::core::IntoParam<'a, IGPMPermission>>(&self, pperm: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), pperm.into_param().abi()).ok() } pub unsafe fn Remove<'a, Param0: ::windows::core::IntoParam<'a, IGPMPermission>>(&self, pperm: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), pperm.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn RemoveTrustee<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrtrustee: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), bstrtrustee.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IGPMSecurityInfo { type Vtable = IGPMSecurityInfo_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb6c31ed4_1c93_4d3e_ae84_eb6d61161b60); } impl ::core::convert::From<IGPMSecurityInfo> for ::windows::core::IUnknown { fn from(value: IGPMSecurityInfo) -> Self { value.0 } } impl ::core::convert::From<&IGPMSecurityInfo> for ::windows::core::IUnknown { fn from(value: &IGPMSecurityInfo) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMSecurityInfo { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMSecurityInfo { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMSecurityInfo> for super::Com::IDispatch { fn from(value: IGPMSecurityInfo) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMSecurityInfo> for super::Com::IDispatch { fn from(value: &IGPMSecurityInfo) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMSecurityInfo { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMSecurityInfo { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMSecurityInfo_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lindex: i32, pval: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppenum: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pperm: ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pperm: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrtrustee: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMSitesContainer(pub ::windows::core::IUnknown); impl IGPMSitesContainer { #[cfg(feature = "Win32_Foundation")] pub unsafe fn DomainController(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Domain(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Forest(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetSite<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrsitename: Param0) -> ::windows::core::Result<IGPMSOM> { let mut result__: <IGPMSOM as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), bstrsitename.into_param().abi(), &mut result__).from_abi::<IGPMSOM>(result__) } pub unsafe fn SearchSites<'a, Param0: ::windows::core::IntoParam<'a, IGPMSearchCriteria>>(&self, pigpmsearchcriteria: Param0) -> ::windows::core::Result<IGPMSOMCollection> { let mut result__: <IGPMSOMCollection as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), pigpmsearchcriteria.into_param().abi(), &mut result__).from_abi::<IGPMSOMCollection>(result__) } } unsafe impl ::windows::core::Interface for IGPMSitesContainer { type Vtable = IGPMSitesContainer_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4725a899_2782_4d27_a6bb_d499246ffd72); } impl ::core::convert::From<IGPMSitesContainer> for ::windows::core::IUnknown { fn from(value: IGPMSitesContainer) -> Self { value.0 } } impl ::core::convert::From<&IGPMSitesContainer> for ::windows::core::IUnknown { fn from(value: &IGPMSitesContainer) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMSitesContainer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMSitesContainer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMSitesContainer> for super::Com::IDispatch { fn from(value: IGPMSitesContainer) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMSitesContainer> for super::Com::IDispatch { fn from(value: &IGPMSitesContainer) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMSitesContainer { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMSitesContainer { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMSitesContainer_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrsitename: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppsom: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pigpmsearchcriteria: ::windows::core::RawPtr, ppigpmsomcollection: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMStarterGPO(pub ::windows::core::IUnknown); impl IGPMStarterGPO { #[cfg(feature = "Win32_Foundation")] pub unsafe fn DisplayName(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetDisplayName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, newval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), newval.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Description(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetDescription<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, newval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), newval.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Author(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Product(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn CreationTime(&self) -> ::windows::core::Result<f64> { let mut result__: <f64 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<f64>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ID(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn ModifiedTime(&self) -> ::windows::core::Result<f64> { let mut result__: <f64 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), &mut result__).from_abi::<f64>(result__) } pub unsafe fn Type(&self) -> ::windows::core::Result<GPMStarterGPOType> { let mut result__: <GPMStarterGPOType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMStarterGPOType>(result__) } pub unsafe fn ComputerVersion(&self) -> ::windows::core::Result<u16> { let mut result__: <u16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u16>(result__) } pub unsafe fn UserVersion(&self) -> ::windows::core::Result<u16> { let mut result__: <u16 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), &mut result__).from_abi::<u16>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn StarterGPOVersion(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Save<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>( &self, bstrsavefile: Param0, boverwrite: i16, bsaveassystem: i16, bstrlanguage: *const super::Com::VARIANT, bstrauthor: *const super::Com::VARIANT, bstrproduct: *const super::Com::VARIANT, bstruniqueid: *const super::Com::VARIANT, bstrversion: *const super::Com::VARIANT, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>, ) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).21)( ::core::mem::transmute_copy(self), bstrsavefile.into_param().abi(), ::core::mem::transmute(boverwrite), ::core::mem::transmute(bsaveassystem), ::core::mem::transmute(bstrlanguage), ::core::mem::transmute(bstrauthor), ::core::mem::transmute(bstrproduct), ::core::mem::transmute(bstruniqueid), ::core::mem::transmute(bstrversion), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult), ) .ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Backup<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bstrbackupdir: Param0, bstrcomment: Param1, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).22)(::core::mem::transmute_copy(self), bstrbackupdir.into_param().abi(), bstrcomment.into_param().abi(), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn CopyTo(&self, pvarnewdisplayname: *const super::Com::VARIANT, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *const super::Com::VARIANT) -> ::windows::core::Result<IGPMResult> { let mut result__: <IGPMResult as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).23)(::core::mem::transmute_copy(self), ::core::mem::transmute(pvarnewdisplayname), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), &mut result__).from_abi::<IGPMResult>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *const super::Com::VARIANT) -> ::windows::core::Result<IGPMResult> { let mut result__: <IGPMResult as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).24)(::core::mem::transmute_copy(self), ::core::mem::transmute(gpmreporttype), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), &mut result__).from_abi::<IGPMResult>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GenerateReportToFile<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: Param1) -> ::windows::core::Result<IGPMResult> { let mut result__: <IGPMResult as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).25)(::core::mem::transmute_copy(self), ::core::mem::transmute(gpmreporttype), bstrtargetfilepath.into_param().abi(), &mut result__).from_abi::<IGPMResult>(result__) } pub unsafe fn GetSecurityInfo(&self) -> ::windows::core::Result<IGPMSecurityInfo> { let mut result__: <IGPMSecurityInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).26)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMSecurityInfo>(result__) } pub unsafe fn SetSecurityInfo<'a, Param0: ::windows::core::IntoParam<'a, IGPMSecurityInfo>>(&self, psecurityinfo: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).27)(::core::mem::transmute_copy(self), psecurityinfo.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IGPMStarterGPO { type Vtable = IGPMStarterGPO_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdfc3f61b_8880_4490_9337_d29c7ba8c2f0); } impl ::core::convert::From<IGPMStarterGPO> for ::windows::core::IUnknown { fn from(value: IGPMStarterGPO) -> Self { value.0 } } impl ::core::convert::From<&IGPMStarterGPO> for ::windows::core::IUnknown { fn from(value: &IGPMStarterGPO) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMStarterGPO { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMStarterGPO { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMStarterGPO> for super::Com::IDispatch { fn from(value: IGPMStarterGPO) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMStarterGPO> for super::Com::IDispatch { fn from(value: &IGPMStarterGPO) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMStarterGPO { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMStarterGPO { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMStarterGPO_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, newval: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, newval: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut f64) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut f64) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut GPMStarterGPOType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut u16) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut u16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn( this: ::windows::core::RawPtr, bstrsavefile: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, boverwrite: i16, bsaveassystem: i16, bstrlanguage: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, bstrauthor: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, bstrproduct: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, bstruniqueid: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, bstrversion: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr, ) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrbackupdir: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, bstrcomment: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pvarnewdisplayname: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, gpmreporttype: GPMReportType, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsecurityinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psecurityinfo: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMStarterGPOBackup(pub ::windows::core::IUnknown); impl IGPMStarterGPOBackup { #[cfg(feature = "Win32_Foundation")] pub unsafe fn BackupDir(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Comment(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn DisplayName(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Domain(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn StarterGPOID(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ID(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn Timestamp(&self) -> ::windows::core::Result<f64> { let mut result__: <f64 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<f64>(result__) } pub unsafe fn Type(&self) -> ::windows::core::Result<GPMStarterGPOType> { let mut result__: <GPMStarterGPOType as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), &mut result__).from_abi::<GPMStarterGPOType>(result__) } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self)).ok() } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option<IGPMResult>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(gpmreporttype), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GenerateReportToFile<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: Param1) -> ::windows::core::Result<IGPMResult> { let mut result__: <IGPMResult as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), ::core::mem::transmute(gpmreporttype), bstrtargetfilepath.into_param().abi(), &mut result__).from_abi::<IGPMResult>(result__) } } unsafe impl ::windows::core::Interface for IGPMStarterGPOBackup { type Vtable = IGPMStarterGPOBackup_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x51d98eda_a87e_43dd_b80a_0b66ef1938d6); } impl ::core::convert::From<IGPMStarterGPOBackup> for ::windows::core::IUnknown { fn from(value: IGPMStarterGPOBackup) -> Self { value.0 } } impl ::core::convert::From<&IGPMStarterGPOBackup> for ::windows::core::IUnknown { fn from(value: &IGPMStarterGPOBackup) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMStarterGPOBackup { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMStarterGPOBackup { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMStarterGPOBackup> for super::Com::IDispatch { fn from(value: IGPMStarterGPOBackup) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMStarterGPOBackup> for super::Com::IDispatch { fn from(value: &IGPMStarterGPOBackup) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMStarterGPOBackup { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMStarterGPOBackup { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMStarterGPOBackup_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrbackupdir: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrcomment: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrdisplayname: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrtemplatedomain: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrtemplateid: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pbstrid: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ptimestamp: *mut f64) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ptype: *mut GPMStarterGPOType) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, gpmreporttype: GPMReportType, pvargpmprogress: *const ::core::mem::ManuallyDrop<super::Com::VARIANT>, pvargpmcancel: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppigpmresult: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMStarterGPOBackupCollection(pub ::windows::core::IUnknown); impl IGPMStarterGPOBackupCollection { pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Item(&self, lindex: i32) -> ::windows::core::Result<super::Com::VARIANT> { let mut result__: <super::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(lindex), &mut result__).from_abi::<super::Com::VARIANT>(result__) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<super::Ole::IEnumVARIANT> { let mut result__: <super::Ole::IEnumVARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Ole::IEnumVARIANT>(result__) } } unsafe impl ::windows::core::Interface for IGPMStarterGPOBackupCollection { type Vtable = IGPMStarterGPOBackupCollection_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc998031d_add0_4bb5_8dea_298505d8423b); } impl ::core::convert::From<IGPMStarterGPOBackupCollection> for ::windows::core::IUnknown { fn from(value: IGPMStarterGPOBackupCollection) -> Self { value.0 } } impl ::core::convert::From<&IGPMStarterGPOBackupCollection> for ::windows::core::IUnknown { fn from(value: &IGPMStarterGPOBackupCollection) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMStarterGPOBackupCollection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMStarterGPOBackupCollection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMStarterGPOBackupCollection> for super::Com::IDispatch { fn from(value: IGPMStarterGPOBackupCollection) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMStarterGPOBackupCollection> for super::Com::IDispatch { fn from(value: &IGPMStarterGPOBackupCollection) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMStarterGPOBackupCollection { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMStarterGPOBackupCollection { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMStarterGPOBackupCollection_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lindex: i32, pval: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppigpmtmplbackup: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMStarterGPOCollection(pub ::windows::core::IUnknown); impl IGPMStarterGPOCollection { pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Item(&self, lindex: i32) -> ::windows::core::Result<super::Com::VARIANT> { let mut result__: <super::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(lindex), &mut result__).from_abi::<super::Com::VARIANT>(result__) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<super::Ole::IEnumVARIANT> { let mut result__: <super::Ole::IEnumVARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Ole::IEnumVARIANT>(result__) } } unsafe impl ::windows::core::Interface for IGPMStarterGPOCollection { type Vtable = IGPMStarterGPOCollection_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2e522729_2219_44ad_933a_64dfd650c423); } impl ::core::convert::From<IGPMStarterGPOCollection> for ::windows::core::IUnknown { fn from(value: IGPMStarterGPOCollection) -> Self { value.0 } } impl ::core::convert::From<&IGPMStarterGPOCollection> for ::windows::core::IUnknown { fn from(value: &IGPMStarterGPOCollection) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMStarterGPOCollection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMStarterGPOCollection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMStarterGPOCollection> for super::Com::IDispatch { fn from(value: IGPMStarterGPOCollection) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMStarterGPOCollection> for super::Com::IDispatch { fn from(value: &IGPMStarterGPOCollection) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMStarterGPOCollection { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMStarterGPOCollection { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMStarterGPOCollection_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lindex: i32, pval: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppigpmtemplates: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMStatusMessage(pub ::windows::core::IUnknown); impl IGPMStatusMessage { #[cfg(feature = "Win32_Foundation")] pub unsafe fn ObjectPath(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn ErrorCode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn ExtensionName(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SettingsName(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn OperationCode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Message(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } } unsafe impl ::windows::core::Interface for IGPMStatusMessage { type Vtable = IGPMStatusMessage_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8496c22f_f3de_4a1f_8f58_603caaa93d7b); } impl ::core::convert::From<IGPMStatusMessage> for ::windows::core::IUnknown { fn from(value: IGPMStatusMessage) -> Self { value.0 } } impl ::core::convert::From<&IGPMStatusMessage> for ::windows::core::IUnknown { fn from(value: &IGPMStatusMessage) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMStatusMessage { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMStatusMessage { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMStatusMessage> for super::Com::IDispatch { fn from(value: IGPMStatusMessage) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMStatusMessage> for super::Com::IDispatch { fn from(value: &IGPMStatusMessage) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMStatusMessage { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMStatusMessage { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMStatusMessage_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMStatusMsgCollection(pub ::windows::core::IUnknown); impl IGPMStatusMsgCollection { pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Item(&self, lindex: i32) -> ::windows::core::Result<super::Com::VARIANT> { let mut result__: <super::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(lindex), &mut result__).from_abi::<super::Com::VARIANT>(result__) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<super::Ole::IEnumVARIANT> { let mut result__: <super::Ole::IEnumVARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Ole::IEnumVARIANT>(result__) } } unsafe impl ::windows::core::Interface for IGPMStatusMsgCollection { type Vtable = IGPMStatusMsgCollection_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9b6e1af0_1a92_40f3_a59d_f36ac1f728b7); } impl ::core::convert::From<IGPMStatusMsgCollection> for ::windows::core::IUnknown { fn from(value: IGPMStatusMsgCollection) -> Self { value.0 } } impl ::core::convert::From<&IGPMStatusMsgCollection> for ::windows::core::IUnknown { fn from(value: &IGPMStatusMsgCollection) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMStatusMsgCollection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMStatusMsgCollection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMStatusMsgCollection> for super::Com::IDispatch { fn from(value: IGPMStatusMsgCollection) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMStatusMsgCollection> for super::Com::IDispatch { fn from(value: &IGPMStatusMsgCollection) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMStatusMsgCollection { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMStatusMsgCollection { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMStatusMsgCollection_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lindex: i32, pval: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMTrustee(pub ::windows::core::IUnknown); impl IGPMTrustee { #[cfg(feature = "Win32_Foundation")] pub unsafe fn TrusteeSid(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn TrusteeName(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn TrusteeDomain(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn TrusteeDSPath(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } pub unsafe fn TrusteeType(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } } unsafe impl ::windows::core::Interface for IGPMTrustee { type Vtable = IGPMTrustee_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3b466da8_c1a4_4b2a_999a_befcdd56cefb); } impl ::core::convert::From<IGPMTrustee> for ::windows::core::IUnknown { fn from(value: IGPMTrustee) -> Self { value.0 } } impl ::core::convert::From<&IGPMTrustee> for ::windows::core::IUnknown { fn from(value: &IGPMTrustee) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMTrustee { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMTrustee { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMTrustee> for super::Com::IDispatch { fn from(value: IGPMTrustee) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMTrustee> for super::Com::IDispatch { fn from(value: &IGPMTrustee) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMTrustee { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMTrustee { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMTrustee_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bstrval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lval: *mut i32) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMWMIFilter(pub ::windows::core::IUnknown); impl IGPMWMIFilter { #[cfg(feature = "Win32_Foundation")] pub unsafe fn Path(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, newval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), newval.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Name(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetDescription<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BSTR>>(&self, newval: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), newval.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Description(&self) -> ::windows::core::Result<super::super::Foundation::BSTR> { let mut result__: <super::super::Foundation::BSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn GetQueryList(&self) -> ::windows::core::Result<super::Com::VARIANT> { let mut result__: <super::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Com::VARIANT>(result__) } pub unsafe fn GetSecurityInfo(&self) -> ::windows::core::Result<IGPMSecurityInfo> { let mut result__: <IGPMSecurityInfo as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), &mut result__).from_abi::<IGPMSecurityInfo>(result__) } pub unsafe fn SetSecurityInfo<'a, Param0: ::windows::core::IntoParam<'a, IGPMSecurityInfo>>(&self, psecurityinfo: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), psecurityinfo.into_param().abi()).ok() } } unsafe impl ::windows::core::Interface for IGPMWMIFilter { type Vtable = IGPMWMIFilter_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xef2ff9b4_3c27_459a_b979_038305cec75d); } impl ::core::convert::From<IGPMWMIFilter> for ::windows::core::IUnknown { fn from(value: IGPMWMIFilter) -> Self { value.0 } } impl ::core::convert::From<&IGPMWMIFilter> for ::windows::core::IUnknown { fn from(value: &IGPMWMIFilter) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMWMIFilter { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMWMIFilter { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMWMIFilter> for super::Com::IDispatch { fn from(value: IGPMWMIFilter) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMWMIFilter> for super::Com::IDispatch { fn from(value: &IGPMWMIFilter) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMWMIFilter { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMWMIFilter { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMWMIFilter_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, newval: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, newval: ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::core::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pqrylist: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, ppsecurityinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, psecurityinfo: ::windows::core::RawPtr) -> ::windows::core::HRESULT, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGPMWMIFilterCollection(pub ::windows::core::IUnknown); impl IGPMWMIFilterCollection { pub unsafe fn Count(&self) -> ::windows::core::Result<i32> { let mut result__: <i32 as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn Item(&self, lindex: i32) -> ::windows::core::Result<super::Com::VARIANT> { let mut result__: <super::Com::VARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self), ::core::mem::transmute(lindex), &mut result__).from_abi::<super::Com::VARIANT>(result__) } #[cfg(feature = "Win32_System_Ole")] pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<super::Ole::IEnumVARIANT> { let mut result__: <super::Ole::IEnumVARIANT as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), &mut result__).from_abi::<super::Ole::IEnumVARIANT>(result__) } } unsafe impl ::windows::core::Interface for IGPMWMIFilterCollection { type Vtable = IGPMWMIFilterCollection_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5782d582_1a36_4661_8a94_c3c32551945b); } impl ::core::convert::From<IGPMWMIFilterCollection> for ::windows::core::IUnknown { fn from(value: IGPMWMIFilterCollection) -> Self { value.0 } } impl ::core::convert::From<&IGPMWMIFilterCollection> for ::windows::core::IUnknown { fn from(value: &IGPMWMIFilterCollection) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGPMWMIFilterCollection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGPMWMIFilterCollection { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<IGPMWMIFilterCollection> for super::Com::IDispatch { fn from(value: IGPMWMIFilterCollection) -> Self { unsafe { ::core::mem::transmute(value) } } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From<&IGPMWMIFilterCollection> for super::Com::IDispatch { fn from(value: &IGPMWMIFilterCollection) -> Self { ::core::convert::From::from(::core::clone::Clone::clone(value)) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for IGPMWMIFilterCollection { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) } } #[cfg(feature = "Win32_System_Com")] impl<'a> ::windows::core::IntoParam<'a, super::Com::IDispatch> for &IGPMWMIFilterCollection { fn into_param(self) -> ::windows::core::Param<'a, super::Com::IDispatch> { ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) } } #[repr(C)] #[doc(hidden)] pub struct IGPMWMIFilterCollection_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, pctinfo: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, riid: *const ::windows::core::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispidmember: i32, riid: *const ::windows::core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Com::DISPPARAMS, pvarresult: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::core::mem::ManuallyDrop<super::Com::EXCEPINFO>, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, lindex: i32, pval: *mut ::core::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] usize, #[cfg(feature = "Win32_System_Ole")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pval: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] usize, ); #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IGroupPolicyObject(pub ::windows::core::IUnknown); impl IGroupPolicyObject { #[cfg(feature = "Win32_Foundation")] pub unsafe fn New<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszdomainname: Param0, pszdisplayname: Param1, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), pszdomainname.into_param().abi(), pszdisplayname.into_param().abi(), ::core::mem::transmute(dwflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OpenDSGPO<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszpath: Param0, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), pszpath.into_param().abi(), ::core::mem::transmute(dwflags)).ok() } pub unsafe fn OpenLocalMachineGPO(&self, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn OpenRemoteMachineGPO<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszcomputername: Param0, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).6)(::core::mem::transmute_copy(self), pszcomputername.into_param().abi(), ::core::mem::transmute(dwflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn Save<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(&self, bmachine: Param0, badd: Param1, pguidextension: *mut ::windows::core::GUID, pguid: *mut ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).7)(::core::mem::transmute_copy(self), bmachine.into_param().abi(), badd.into_param().abi(), ::core::mem::transmute(pguidextension), ::core::mem::transmute(pguid)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).8)(::core::mem::transmute_copy(self)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetName(&self, pszname: super::super::Foundation::PWSTR, cchmaxlength: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).9)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszname), ::core::mem::transmute(cchmaxlength)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDisplayName(&self, pszname: super::super::Foundation::PWSTR, cchmaxlength: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).10)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszname), ::core::mem::transmute(cchmaxlength)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetDisplayName<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszname: Param0) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).11)(::core::mem::transmute_copy(self), pszname.into_param().abi()).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetPath(&self, pszpath: super::super::Foundation::PWSTR, cchmaxlength: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).12)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszpath), ::core::mem::transmute(cchmaxlength)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDSPath(&self, dwsection: u32, pszpath: super::super::Foundation::PWSTR, cchmaxpath: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).13)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwsection), ::core::mem::transmute(pszpath), ::core::mem::transmute(cchmaxpath)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetFileSysPath(&self, dwsection: u32, pszpath: super::super::Foundation::PWSTR, cchmaxpath: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).14)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwsection), ::core::mem::transmute(pszpath), ::core::mem::transmute(cchmaxpath)).ok() } #[cfg(feature = "Win32_System_Registry")] pub unsafe fn GetRegistryKey(&self, dwsection: u32, hkey: *mut super::Registry::HKEY) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).15)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwsection), ::core::mem::transmute(hkey)).ok() } pub unsafe fn GetOptions(&self, dwoptions: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).16)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwoptions)).ok() } pub unsafe fn SetOptions(&self, dwoptions: u32, dwmask: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).17)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwoptions), ::core::mem::transmute(dwmask)).ok() } pub unsafe fn GetType(&self, gpotype: *mut GROUP_POLICY_OBJECT_TYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).18)(::core::mem::transmute_copy(self), ::core::mem::transmute(gpotype)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetMachineName(&self, pszname: super::super::Foundation::PWSTR, cchmaxlength: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).19)(::core::mem::transmute_copy(self), ::core::mem::transmute(pszname), ::core::mem::transmute(cchmaxlength)).ok() } #[cfg(feature = "Win32_UI_Controls")] pub unsafe fn GetPropertySheetPages(&self, hpages: *mut *mut super::super::UI::Controls::HPROPSHEETPAGE, upagecount: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).20)(::core::mem::transmute_copy(self), ::core::mem::transmute(hpages), ::core::mem::transmute(upagecount)).ok() } } unsafe impl ::windows::core::Interface for IGroupPolicyObject { type Vtable = IGroupPolicyObject_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xea502723_a23d_11d1_a7d3_0000f87571e3); } impl ::core::convert::From<IGroupPolicyObject> for ::windows::core::IUnknown { fn from(value: IGroupPolicyObject) -> Self { value.0 } } impl ::core::convert::From<&IGroupPolicyObject> for ::windows::core::IUnknown { fn from(value: &IGroupPolicyObject) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGroupPolicyObject { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGroupPolicyObject { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IGroupPolicyObject_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszdomainname: super::super::Foundation::PWSTR, pszdisplayname: super::super::Foundation::PWSTR, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszpath: super::super::Foundation::PWSTR, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszcomputername: super::super::Foundation::PWSTR, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, bmachine: super::super::Foundation::BOOL, badd: super::super::Foundation::BOOL, pguidextension: *mut ::windows::core::GUID, pguid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR, cchmaxlength: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR, cchmaxlength: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszpath: super::super::Foundation::PWSTR, cchmaxlength: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwsection: u32, pszpath: super::super::Foundation::PWSTR, cchmaxpath: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwsection: u32, pszpath: super::super::Foundation::PWSTR, cchmaxpath: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_System_Registry")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwsection: u32, hkey: *mut super::Registry::HKEY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Registry"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwoptions: *mut u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwoptions: u32, dwmask: u32) -> ::windows::core::HRESULT, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, gpotype: *mut GROUP_POLICY_OBJECT_TYPE) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszname: super::super::Foundation::PWSTR, cchmaxlength: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, #[cfg(feature = "Win32_UI_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, hpages: *mut *mut super::super::UI::Controls::HPROPSHEETPAGE, upagecount: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Controls"))] usize, ); #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct INSTALLDATA { pub Type: INSTALLSPECTYPE, pub Spec: INSTALLSPEC, } #[cfg(feature = "Win32_Foundation")] impl INSTALLDATA {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for INSTALLDATA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for INSTALLDATA { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for INSTALLDATA {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for INSTALLDATA { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub union INSTALLSPEC { pub AppName: INSTALLSPEC_0, pub FileExt: super::super::Foundation::PWSTR, pub ProgId: super::super::Foundation::PWSTR, pub COMClass: INSTALLSPEC_1, } #[cfg(feature = "Win32_Foundation")] impl INSTALLSPEC {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for INSTALLSPEC { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for INSTALLSPEC { fn eq(&self, _other: &Self) -> bool { unimplemented!() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for INSTALLSPEC {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for INSTALLSPEC { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct INSTALLSPEC_0 { pub Name: super::super::Foundation::PWSTR, pub GPOId: ::windows::core::GUID, } #[cfg(feature = "Win32_Foundation")] impl INSTALLSPEC_0 {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for INSTALLSPEC_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for INSTALLSPEC_0 { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("_AppName_e__Struct").field("Name", &self.Name).field("GPOId", &self.GPOId).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for INSTALLSPEC_0 { fn eq(&self, other: &Self) -> bool { self.Name == other.Name && self.GPOId == other.GPOId } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for INSTALLSPEC_0 {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for INSTALLSPEC_0 { type Abi = Self; } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct INSTALLSPEC_1 { pub Clsid: ::windows::core::GUID, pub ClsCtx: u32, } #[cfg(feature = "Win32_Foundation")] impl INSTALLSPEC_1 {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for INSTALLSPEC_1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for INSTALLSPEC_1 { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("_COMClass_e__Struct").field("Clsid", &self.Clsid).field("ClsCtx", &self.ClsCtx).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for INSTALLSPEC_1 { fn eq(&self, other: &Self) -> bool { self.Clsid == other.Clsid && self.ClsCtx == other.ClsCtx } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for INSTALLSPEC_1 {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for INSTALLSPEC_1 { type Abi = Self; } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct INSTALLSPECTYPE(pub i32); pub const APPNAME: INSTALLSPECTYPE = INSTALLSPECTYPE(1i32); pub const FILEEXT: INSTALLSPECTYPE = INSTALLSPECTYPE(2i32); pub const PROGID: INSTALLSPECTYPE = INSTALLSPECTYPE(3i32); pub const COMCLASS: INSTALLSPECTYPE = INSTALLSPECTYPE(4i32); impl ::core::convert::From<i32> for INSTALLSPECTYPE { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for INSTALLSPECTYPE { type Abi = Self; } #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IRSOPInformation(pub ::windows::core::IUnknown); impl IRSOPInformation { #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetNamespace(&self, dwsection: u32, pszname: super::super::Foundation::PWSTR, cchmaxlength: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).3)(::core::mem::transmute_copy(self), ::core::mem::transmute(dwsection), ::core::mem::transmute(pszname), ::core::mem::transmute(cchmaxlength)).ok() } pub unsafe fn GetFlags(&self, pdwflags: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).4)(::core::mem::transmute_copy(self), ::core::mem::transmute(pdwflags)).ok() } #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetEventLogEntryText<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param2: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pszeventsource: Param0, pszeventlogname: Param1, pszeventtime: Param2, dweventid: u32) -> ::windows::core::Result<super::super::Foundation::PWSTR> { let mut result__: <super::super::Foundation::PWSTR as ::windows::core::Abi>::Abi = ::core::mem::zeroed(); (::windows::core::Interface::vtable(self).5)(::core::mem::transmute_copy(self), pszeventsource.into_param().abi(), pszeventlogname.into_param().abi(), pszeventtime.into_param().abi(), ::core::mem::transmute(dweventid), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) } } unsafe impl ::windows::core::Interface for IRSOPInformation { type Vtable = IRSOPInformation_abi; const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9a5a81b5_d9c7_49ef_9d11_ddf50968c48d); } impl ::core::convert::From<IRSOPInformation> for ::windows::core::IUnknown { fn from(value: IRSOPInformation) -> Self { value.0 } } impl ::core::convert::From<&IRSOPInformation> for ::windows::core::IUnknown { fn from(value: &IRSOPInformation) -> Self { value.0.clone() } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IRSOPInformation { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0) } } impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IRSOPInformation { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0) } } #[repr(C)] #[doc(hidden)] pub struct IRSOPInformation_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, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dwsection: u32, pszname: super::super::Foundation::PWSTR, cchmaxlength: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pdwflags: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pszeventsource: super::super::Foundation::PWSTR, pszeventlogname: super::super::Foundation::PWSTR, pszeventtime: super::super::Foundation::PWSTR, dweventid: u32, ppsztext: *mut super::super::Foundation::PWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] usize, ); #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn ImportRSoPData<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(lpnamespace: Param0, lpfilename: Param1) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ImportRSoPData(lpnamespace: super::super::Foundation::PWSTR, lpfilename: super::super::Foundation::PWSTR) -> ::windows::core::HRESULT; } ImportRSoPData(lpnamespace.into_param().abi(), lpfilename.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn InstallApplication(pinstallinfo: *const INSTALLDATA) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn InstallApplication(pinstallinfo: *const INSTALLDATA) -> u32; } ::core::mem::transmute(InstallApplication(::core::mem::transmute(pinstallinfo))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct LOCALMANAGEDAPPLICATION { pub pszDeploymentName: super::super::Foundation::PWSTR, pub pszPolicyName: super::super::Foundation::PWSTR, pub pszProductId: super::super::Foundation::PWSTR, pub dwState: u32, } #[cfg(feature = "Win32_Foundation")] impl LOCALMANAGEDAPPLICATION {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for LOCALMANAGEDAPPLICATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for LOCALMANAGEDAPPLICATION { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("LOCALMANAGEDAPPLICATION").field("pszDeploymentName", &self.pszDeploymentName).field("pszPolicyName", &self.pszPolicyName).field("pszProductId", &self.pszProductId).field("dwState", &self.dwState).finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for LOCALMANAGEDAPPLICATION { fn eq(&self, other: &Self) -> bool { self.pszDeploymentName == other.pszDeploymentName && self.pszPolicyName == other.pszPolicyName && self.pszProductId == other.pszProductId && self.dwState == other.dwState } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for LOCALMANAGEDAPPLICATION {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for LOCALMANAGEDAPPLICATION { type Abi = Self; } pub const LOCALSTATE_ASSIGNED: u32 = 1u32; pub const LOCALSTATE_ORPHANED: u32 = 32u32; pub const LOCALSTATE_POLICYREMOVE_ORPHAN: u32 = 8u32; pub const LOCALSTATE_POLICYREMOVE_UNINSTALL: u32 = 16u32; pub const LOCALSTATE_PUBLISHED: u32 = 2u32; pub const LOCALSTATE_UNINSTALLED: u32 = 64u32; pub const LOCALSTATE_UNINSTALL_UNMANAGED: u32 = 4u32; #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn LeaveCriticalPolicySection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hsection: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn LeaveCriticalPolicySection(hsection: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(LeaveCriticalPolicySection(hsection.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct MANAGEDAPPLICATION { pub pszPackageName: super::super::Foundation::PWSTR, pub pszPublisher: super::super::Foundation::PWSTR, pub dwVersionHi: u32, pub dwVersionLo: u32, pub dwRevision: u32, pub GpoId: ::windows::core::GUID, pub pszPolicyName: super::super::Foundation::PWSTR, pub ProductId: ::windows::core::GUID, pub Language: u16, pub pszOwner: super::super::Foundation::PWSTR, pub pszCompany: super::super::Foundation::PWSTR, pub pszComments: super::super::Foundation::PWSTR, pub pszContact: super::super::Foundation::PWSTR, pub pszSupportUrl: super::super::Foundation::PWSTR, pub dwPathType: u32, pub bInstalled: super::super::Foundation::BOOL, } #[cfg(feature = "Win32_Foundation")] impl MANAGEDAPPLICATION {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for MANAGEDAPPLICATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for MANAGEDAPPLICATION { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("MANAGEDAPPLICATION") .field("pszPackageName", &self.pszPackageName) .field("pszPublisher", &self.pszPublisher) .field("dwVersionHi", &self.dwVersionHi) .field("dwVersionLo", &self.dwVersionLo) .field("dwRevision", &self.dwRevision) .field("GpoId", &self.GpoId) .field("pszPolicyName", &self.pszPolicyName) .field("ProductId", &self.ProductId) .field("Language", &self.Language) .field("pszOwner", &self.pszOwner) .field("pszCompany", &self.pszCompany) .field("pszComments", &self.pszComments) .field("pszContact", &self.pszContact) .field("pszSupportUrl", &self.pszSupportUrl) .field("dwPathType", &self.dwPathType) .field("bInstalled", &self.bInstalled) .finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for MANAGEDAPPLICATION { fn eq(&self, other: &Self) -> bool { self.pszPackageName == other.pszPackageName && self.pszPublisher == other.pszPublisher && self.dwVersionHi == other.dwVersionHi && self.dwVersionLo == other.dwVersionLo && self.dwRevision == other.dwRevision && self.GpoId == other.GpoId && self.pszPolicyName == other.pszPolicyName && self.ProductId == other.ProductId && self.Language == other.Language && self.pszOwner == other.pszOwner && self.pszCompany == other.pszCompany && self.pszComments == other.pszComments && self.pszContact == other.pszContact && self.pszSupportUrl == other.pszSupportUrl && self.dwPathType == other.dwPathType && self.bInstalled == other.bInstalled } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for MANAGEDAPPLICATION {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for MANAGEDAPPLICATION { type Abi = Self; } pub const MANAGED_APPS_FROMCATEGORY: u32 = 2u32; pub const MANAGED_APPS_INFOLEVEL_DEFAULT: u32 = 65536u32; pub const MANAGED_APPS_USERAPPLICATIONS: u32 = 1u32; pub const MANAGED_APPTYPE_SETUPEXE: u32 = 2u32; pub const MANAGED_APPTYPE_UNSUPPORTED: u32 = 3u32; pub const MANAGED_APPTYPE_WINDOWSINSTALLER: u32 = 1u32; pub const NODEID_Machine: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8fc0b737_a0e1_11d1_a7d3_0000f87571e3); pub const NODEID_MachineSWSettings: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8fc0b73a_a0e1_11d1_a7d3_0000f87571e3); pub const NODEID_RSOPMachine: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbd4c1a2e_0b7a_4a62_a6b0_c0577539c97e); pub const NODEID_RSOPMachineSWSettings: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6a76273e_eb8e_45db_94c5_25663a5f2c1a); pub const NODEID_RSOPUser: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xab87364f_0cec_4cd8_9bf8_898f34628fb8); pub const NODEID_RSOPUserSWSettings: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe52c5ce3_fd27_4402_84de_d9a5f2858910); pub const NODEID_User: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8fc0b738_a0e1_11d1_a7d3_0000f87571e3); pub const NODEID_UserSWSettings: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8fc0b73c_a0e1_11d1_a7d3_0000f87571e3); #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Wmi"))] pub type PFNGENERATEGROUPPOLICY = unsafe extern "system" fn(dwflags: u32, pbabort: *mut super::super::Foundation::BOOL, pwszsite: super::super::Foundation::PWSTR, pcomputertarget: *const ::core::mem::ManuallyDrop<RSOP_TARGET>, pusertarget: *const ::core::mem::ManuallyDrop<RSOP_TARGET>) -> u32; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] pub type PFNPROCESSGROUPPOLICY = unsafe extern "system" fn(dwflags: u32, htoken: super::super::Foundation::HANDLE, hkeyroot: super::Registry::HKEY, pdeletedgpolist: *const GROUP_POLICY_OBJECTA, pchangedgpolist: *const GROUP_POLICY_OBJECTA, phandle: usize, pbabort: *mut super::super::Foundation::BOOL, pstatuscallback: ::windows::core::RawPtr) -> u32; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry", feature = "Win32_System_Wmi"))] pub type PFNPROCESSGROUPPOLICYEX = unsafe extern "system" fn(dwflags: u32, htoken: super::super::Foundation::HANDLE, hkeyroot: super::Registry::HKEY, pdeletedgpolist: *const GROUP_POLICY_OBJECTA, pchangedgpolist: *const GROUP_POLICY_OBJECTA, phandle: usize, pbabort: *mut super::super::Foundation::BOOL, pstatuscallback: ::windows::core::RawPtr, pwbemservices: ::windows::core::RawPtr, prsopstatus: *mut ::windows::core::HRESULT) -> u32; #[cfg(feature = "Win32_Foundation")] pub type PFNSTATUSMESSAGECALLBACK = unsafe extern "system" fn(bverbose: super::super::Foundation::BOOL, lpmessage: super::super::Foundation::PWSTR) -> u32; pub const PI_APPLYPOLICY: u32 = 2u32; pub const PI_NOUI: u32 = 1u32; #[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct POLICYSETTINGSTATUSINFO { pub szKey: super::super::Foundation::PWSTR, pub szEventSource: super::super::Foundation::PWSTR, pub szEventLogName: super::super::Foundation::PWSTR, pub dwEventID: u32, pub dwErrorCode: u32, pub status: SETTINGSTATUS, pub timeLogged: super::super::Foundation::SYSTEMTIME, } #[cfg(feature = "Win32_Foundation")] impl POLICYSETTINGSTATUSINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for POLICYSETTINGSTATUSINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for POLICYSETTINGSTATUSINFO { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("POLICYSETTINGSTATUSINFO") .field("szKey", &self.szKey) .field("szEventSource", &self.szEventSource) .field("szEventLogName", &self.szEventLogName) .field("dwEventID", &self.dwEventID) .field("dwErrorCode", &self.dwErrorCode) .field("status", &self.status) .field("timeLogged", &self.timeLogged) .finish() } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for POLICYSETTINGSTATUSINFO { fn eq(&self, other: &Self) -> bool { self.szKey == other.szKey && self.szEventSource == other.szEventSource && self.szEventLogName == other.szEventLogName && self.dwEventID == other.dwEventID && self.dwErrorCode == other.dwErrorCode && self.status == other.status && self.timeLogged == other.timeLogged } } #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for POLICYSETTINGSTATUSINFO {} #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for POLICYSETTINGSTATUSINFO { type Abi = Self; } pub const PT_MANDATORY: u32 = 4u32; pub const PT_ROAMING: u32 = 2u32; pub const PT_ROAMING_PREEXISTING: u32 = 8u32; pub const PT_TEMPORARY: u32 = 1u32; #[inline] pub unsafe fn ProcessGroupPolicyCompleted(extensionid: *const ::windows::core::GUID, pasynchandle: usize, dwstatus: u32) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ProcessGroupPolicyCompleted(extensionid: *const ::windows::core::GUID, pasynchandle: usize, dwstatus: u32) -> u32; } ::core::mem::transmute(ProcessGroupPolicyCompleted(::core::mem::transmute(extensionid), ::core::mem::transmute(pasynchandle), ::core::mem::transmute(dwstatus))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[inline] pub unsafe fn ProcessGroupPolicyCompletedEx(extensionid: *const ::windows::core::GUID, pasynchandle: usize, dwstatus: u32, rsopstatus: ::windows::core::HRESULT) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn ProcessGroupPolicyCompletedEx(extensionid: *const ::windows::core::GUID, pasynchandle: usize, dwstatus: u32, rsopstatus: ::windows::core::HRESULT) -> u32; } ::core::mem::transmute(ProcessGroupPolicyCompletedEx(::core::mem::transmute(extensionid), ::core::mem::transmute(pasynchandle), ::core::mem::transmute(dwstatus), ::core::mem::transmute(rsopstatus))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } pub const RP_FORCE: u32 = 1u32; pub const RP_SYNC: u32 = 2u32; pub const RSOP_COMPUTER_ACCESS_DENIED: u32 = 2u32; pub const RSOP_INFO_FLAG_DIAGNOSTIC_MODE: u32 = 1u32; pub const RSOP_NO_COMPUTER: u32 = 65536u32; pub const RSOP_NO_USER: u32 = 131072u32; pub const RSOP_PLANNING_ASSUME_COMP_WQLFILTER_TRUE: u32 = 16u32; pub const RSOP_PLANNING_ASSUME_LOOPBACK_MERGE: u32 = 2u32; pub const RSOP_PLANNING_ASSUME_LOOPBACK_REPLACE: u32 = 4u32; pub const RSOP_PLANNING_ASSUME_SLOW_LINK: u32 = 1u32; pub const RSOP_PLANNING_ASSUME_USER_WQLFILTER_TRUE: u32 = 8u32; #[derive(:: core :: clone :: Clone)] #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Wmi"))] pub struct RSOP_TARGET { pub pwszAccountName: super::super::Foundation::PWSTR, pub pwszNewSOM: super::super::Foundation::PWSTR, pub psaSecurityGroups: *mut super::Com::SAFEARRAY, pub pRsopToken: *mut ::core::ffi::c_void, pub pGPOList: *mut GROUP_POLICY_OBJECTA, pub pWbemServices: ::core::option::Option<super::Wmi::IWbemServices>, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Wmi"))] impl RSOP_TARGET {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Wmi"))] impl ::core::default::Default for RSOP_TARGET { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Wmi"))] impl ::core::fmt::Debug for RSOP_TARGET { fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { fmt.debug_struct("RSOP_TARGET").field("pwszAccountName", &self.pwszAccountName).field("pwszNewSOM", &self.pwszNewSOM).field("psaSecurityGroups", &self.psaSecurityGroups).field("pRsopToken", &self.pRsopToken).field("pGPOList", &self.pGPOList).field("pWbemServices", &self.pWbemServices).finish() } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Wmi"))] impl ::core::cmp::PartialEq for RSOP_TARGET { fn eq(&self, other: &Self) -> bool { self.pwszAccountName == other.pwszAccountName && self.pwszNewSOM == other.pwszNewSOM && self.psaSecurityGroups == other.psaSecurityGroups && self.pRsopToken == other.pRsopToken && self.pGPOList == other.pGPOList && self.pWbemServices == other.pWbemServices } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Wmi"))] impl ::core::cmp::Eq for RSOP_TARGET {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Wmi"))] unsafe impl ::windows::core::Abi for RSOP_TARGET { type Abi = ::core::mem::ManuallyDrop<Self>; } pub const RSOP_TEMPNAMESPACE_EXISTS: u32 = 4u32; pub const RSOP_USER_ACCESS_DENIED: u32 = 1u32; #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn RefreshPolicy<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(bmachine: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn RefreshPolicy(bmachine: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; } ::core::mem::transmute(RefreshPolicy(bmachine.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn RefreshPolicyEx<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(bmachine: Param0, dwoptions: u32) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn RefreshPolicyEx(bmachine: super::super::Foundation::BOOL, dwoptions: u32) -> super::super::Foundation::BOOL; } ::core::mem::transmute(RefreshPolicyEx(bmachine.into_param().abi(), ::core::mem::transmute(dwoptions))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn RegisterGPNotification<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::BOOL>>(hevent: Param0, bmachine: Param1) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn RegisterGPNotification(hevent: super::super::Foundation::HANDLE, bmachine: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; } ::core::mem::transmute(RegisterGPNotification(hevent.into_param().abi(), bmachine.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn RsopAccessCheckByType<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::PSID>>( psecuritydescriptor: *const super::super::Security::SECURITY_DESCRIPTOR, pprincipalselfsid: Param1, prsoptoken: *const ::core::ffi::c_void, dwdesiredaccessmask: u32, pobjecttypelist: *const super::super::Security::OBJECT_TYPE_LIST, objecttypelistlength: u32, pgenericmapping: *const super::super::Security::GENERIC_MAPPING, pprivilegeset: *const super::super::Security::PRIVILEGE_SET, pdwprivilegesetlength: *const u32, pdwgrantedaccessmask: *mut u32, pbaccessstatus: *mut i32, ) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn RsopAccessCheckByType( psecuritydescriptor: *const super::super::Security::SECURITY_DESCRIPTOR, pprincipalselfsid: super::super::Foundation::PSID, prsoptoken: *const ::core::ffi::c_void, dwdesiredaccessmask: u32, pobjecttypelist: *const super::super::Security::OBJECT_TYPE_LIST, objecttypelistlength: u32, pgenericmapping: *const super::super::Security::GENERIC_MAPPING, pprivilegeset: *const super::super::Security::PRIVILEGE_SET, pdwprivilegesetlength: *const u32, pdwgrantedaccessmask: *mut u32, pbaccessstatus: *mut i32, ) -> ::windows::core::HRESULT; } RsopAccessCheckByType( ::core::mem::transmute(psecuritydescriptor), pprincipalselfsid.into_param().abi(), ::core::mem::transmute(prsoptoken), ::core::mem::transmute(dwdesiredaccessmask), ::core::mem::transmute(pobjecttypelist), ::core::mem::transmute(objecttypelistlength), ::core::mem::transmute(pgenericmapping), ::core::mem::transmute(pprivilegeset), ::core::mem::transmute(pdwprivilegesetlength), ::core::mem::transmute(pdwgrantedaccessmask), ::core::mem::transmute(pbaccessstatus), ) .ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn RsopFileAccessCheck<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(pszfilename: Param0, prsoptoken: *const ::core::ffi::c_void, dwdesiredaccessmask: u32, pdwgrantedaccessmask: *mut u32, pbaccessstatus: *mut i32) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn RsopFileAccessCheck(pszfilename: super::super::Foundation::PWSTR, prsoptoken: *const ::core::ffi::c_void, dwdesiredaccessmask: u32, pdwgrantedaccessmask: *mut u32, pbaccessstatus: *mut i32) -> ::windows::core::HRESULT; } RsopFileAccessCheck(pszfilename.into_param().abi(), ::core::mem::transmute(prsoptoken), ::core::mem::transmute(dwdesiredaccessmask), ::core::mem::transmute(pdwgrantedaccessmask), ::core::mem::transmute(pbaccessstatus)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_System_Wmi")] #[inline] pub unsafe fn RsopResetPolicySettingStatus<'a, Param1: ::windows::core::IntoParam<'a, super::Wmi::IWbemServices>, Param2: ::windows::core::IntoParam<'a, super::Wmi::IWbemClassObject>>(dwflags: u32, pservices: Param1, psettinginstance: Param2) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn RsopResetPolicySettingStatus(dwflags: u32, pservices: ::windows::core::RawPtr, psettinginstance: ::windows::core::RawPtr) -> ::windows::core::HRESULT; } RsopResetPolicySettingStatus(::core::mem::transmute(dwflags), pservices.into_param().abi(), psettinginstance.into_param().abi()).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Wmi"))] #[inline] pub unsafe fn RsopSetPolicySettingStatus<'a, Param1: ::windows::core::IntoParam<'a, super::Wmi::IWbemServices>, Param2: ::windows::core::IntoParam<'a, super::Wmi::IWbemClassObject>>(dwflags: u32, pservices: Param1, psettinginstance: Param2, ninfo: u32, pstatus: *const POLICYSETTINGSTATUSINFO) -> ::windows::core::Result<()> { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn RsopSetPolicySettingStatus(dwflags: u32, pservices: ::windows::core::RawPtr, psettinginstance: ::windows::core::RawPtr, ninfo: u32, pstatus: *const POLICYSETTINGSTATUSINFO) -> ::windows::core::HRESULT; } RsopSetPolicySettingStatus(::core::mem::transmute(dwflags), pservices.into_param().abi(), psettinginstance.into_param().abi(), ::core::mem::transmute(ninfo), ::core::mem::transmute(pstatus)).ok() } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] pub struct SETTINGSTATUS(pub i32); pub const RSOPUnspecified: SETTINGSTATUS = SETTINGSTATUS(0i32); pub const RSOPApplied: SETTINGSTATUS = SETTINGSTATUS(1i32); pub const RSOPIgnored: SETTINGSTATUS = SETTINGSTATUS(2i32); pub const RSOPFailed: SETTINGSTATUS = SETTINGSTATUS(3i32); pub const RSOPSubsettingFailed: SETTINGSTATUS = SETTINGSTATUS(4i32); impl ::core::convert::From<i32> for SETTINGSTATUS { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::core::Abi for SETTINGSTATUS { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UninstallApplication<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::PWSTR>>(productcode: Param0, dwstatus: u32) -> u32 { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UninstallApplication(productcode: super::super::Foundation::PWSTR, dwstatus: u32) -> u32; } ::core::mem::transmute(UninstallApplication(productcode.into_param().abi(), ::core::mem::transmute(dwstatus))) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); } #[cfg(feature = "Win32_Foundation")] #[inline] pub unsafe fn UnregisterGPNotification<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::HANDLE>>(hevent: Param0) -> super::super::Foundation::BOOL { #[cfg(windows)] { #[link(name = "windows")] extern "system" { fn UnregisterGPNotification(hevent: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; } ::core::mem::transmute(UnregisterGPNotification(hevent.into_param().abi())) } #[cfg(not(windows))] unimplemented!("Unsupported target OS"); }
#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)] #[link(name = "windows")] extern "system" { #[cfg(feature = "Win32_Foundation")] pub fn AdjustWindowRect(lprect: *mut super::super::Foundation::RECT, dwstyle: WINDOW_STYLE, bmenu: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn AdjustWindowRectEx(lprect: *mut super::super::Foundation::RECT, dwstyle: WINDOW_STYLE, bmenu: super::super::Foundation::BOOL, dwexstyle: WINDOW_EX_STYLE) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn AllowSetForegroundWindow(dwprocessid: u32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn AnimateWindow(hwnd: super::super::Foundation::HWND, dwtime: u32, dwflags: ANIMATE_WINDOW_FLAGS) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn AnyPopup() -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn AppendMenuA(hmenu: HMENU, uflags: MENU_ITEM_FLAGS, uidnewitem: usize, lpnewitem: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn AppendMenuW(hmenu: HMENU, uflags: MENU_ITEM_FLAGS, uidnewitem: usize, lpnewitem: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn ArrangeIconicWindows(hwnd: super::super::Foundation::HWND) -> u32; pub fn BeginDeferWindowPos(nnumwindows: i32) -> isize; #[cfg(feature = "Win32_Foundation")] pub fn BringWindowToTop(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn CalculatePopupWindowPosition(anchorpoint: *const super::super::Foundation::POINT, windowsize: *const super::super::Foundation::SIZE, flags: u32, excluderect: *const super::super::Foundation::RECT, popupwindowposition: *mut super::super::Foundation::RECT) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn CallMsgFilterA(lpmsg: *const MSG, ncode: i32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn CallMsgFilterW(lpmsg: *const MSG, ncode: i32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn CallNextHookEx(hhk: HHOOK, ncode: i32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT; #[cfg(feature = "Win32_Foundation")] pub fn CallWindowProcA(lpprevwndfunc: WNDPROC, hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT; #[cfg(feature = "Win32_Foundation")] pub fn CallWindowProcW(lpprevwndfunc: WNDPROC, hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT; #[cfg(feature = "Win32_Foundation")] pub fn CancelShutdown() -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn CascadeWindows(hwndparent: super::super::Foundation::HWND, whow: CASCADE_WINDOWS_HOW, lprect: *const super::super::Foundation::RECT, ckids: u32, lpkids: *const super::super::Foundation::HWND) -> u16; #[cfg(feature = "Win32_Foundation")] pub fn ChangeMenuA(hmenu: HMENU, cmd: u32, lpsznewitem: super::super::Foundation::PSTR, cmdinsert: u32, flags: u32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn ChangeMenuW(hmenu: HMENU, cmd: u32, lpsznewitem: super::super::Foundation::PWSTR, cmdinsert: u32, flags: u32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn ChangeWindowMessageFilter(message: u32, dwflag: CHANGE_WINDOW_MESSAGE_FILTER_FLAGS) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn ChangeWindowMessageFilterEx(hwnd: super::super::Foundation::HWND, message: u32, action: WINDOW_MESSAGE_FILTER_ACTION, pchangefilterstruct: *mut CHANGEFILTERSTRUCT) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn CharLowerA(lpsz: super::super::Foundation::PSTR) -> super::super::Foundation::PSTR; #[cfg(feature = "Win32_Foundation")] pub fn CharLowerBuffA(lpsz: super::super::Foundation::PSTR, cchlength: u32) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn CharLowerBuffW(lpsz: super::super::Foundation::PWSTR, cchlength: u32) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn CharLowerW(lpsz: super::super::Foundation::PWSTR) -> super::super::Foundation::PWSTR; #[cfg(feature = "Win32_Foundation")] pub fn CharNextA(lpsz: super::super::Foundation::PSTR) -> super::super::Foundation::PSTR; #[cfg(feature = "Win32_Foundation")] pub fn CharNextExA(codepage: u16, lpcurrentchar: super::super::Foundation::PSTR, dwflags: u32) -> super::super::Foundation::PSTR; #[cfg(feature = "Win32_Foundation")] pub fn CharNextW(lpsz: super::super::Foundation::PWSTR) -> super::super::Foundation::PWSTR; #[cfg(feature = "Win32_Foundation")] pub fn CharPrevA(lpszstart: super::super::Foundation::PSTR, lpszcurrent: super::super::Foundation::PSTR) -> super::super::Foundation::PSTR; #[cfg(feature = "Win32_Foundation")] pub fn CharPrevExA(codepage: u16, lpstart: super::super::Foundation::PSTR, lpcurrentchar: super::super::Foundation::PSTR, dwflags: u32) -> super::super::Foundation::PSTR; #[cfg(feature = "Win32_Foundation")] pub fn CharPrevW(lpszstart: super::super::Foundation::PWSTR, lpszcurrent: super::super::Foundation::PWSTR) -> super::super::Foundation::PWSTR; #[cfg(feature = "Win32_Foundation")] pub fn CharToOemA(psrc: super::super::Foundation::PSTR, pdst: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn CharToOemBuffA(lpszsrc: super::super::Foundation::PSTR, lpszdst: super::super::Foundation::PSTR, cchdstlength: u32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn CharToOemBuffW(lpszsrc: super::super::Foundation::PWSTR, lpszdst: super::super::Foundation::PSTR, cchdstlength: u32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn CharToOemW(psrc: super::super::Foundation::PWSTR, pdst: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn CharUpperA(lpsz: super::super::Foundation::PSTR) -> super::super::Foundation::PSTR; #[cfg(feature = "Win32_Foundation")] pub fn CharUpperBuffA(lpsz: super::super::Foundation::PSTR, cchlength: u32) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn CharUpperBuffW(lpsz: super::super::Foundation::PWSTR, cchlength: u32) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn CharUpperW(lpsz: super::super::Foundation::PWSTR) -> super::super::Foundation::PWSTR; pub fn CheckMenuItem(hmenu: HMENU, uidcheckitem: u32, ucheck: u32) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn CheckMenuRadioItem(hmenu: HMENU, first: u32, last: u32, check: u32, flags: u32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn ChildWindowFromPoint(hwndparent: super::super::Foundation::HWND, point: super::super::Foundation::POINT) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn ChildWindowFromPointEx(hwnd: super::super::Foundation::HWND, pt: super::super::Foundation::POINT, flags: CWP_FLAGS) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn ClipCursor(lprect: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn CloseWindow(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL; pub fn CopyAcceleratorTableA(haccelsrc: HACCEL, lpacceldst: *mut ACCEL, caccelentries: i32) -> i32; pub fn CopyAcceleratorTableW(haccelsrc: HACCEL, lpacceldst: *mut ACCEL, caccelentries: i32) -> i32; pub fn CopyIcon(hicon: HICON) -> HICON; #[cfg(feature = "Win32_Foundation")] pub fn CopyImage(h: super::super::Foundation::HANDLE, r#type: GDI_IMAGE_TYPE, cx: i32, cy: i32, flags: IMAGE_FLAGS) -> super::super::Foundation::HANDLE; pub fn CreateAcceleratorTableA(paccel: *const ACCEL, caccel: i32) -> HACCEL; pub fn CreateAcceleratorTableW(paccel: *const ACCEL, caccel: i32) -> HACCEL; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn CreateCaret(hwnd: super::super::Foundation::HWND, hbitmap: super::super::Graphics::Gdi::HBITMAP, nwidth: i32, nheight: i32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn CreateCursor(hinst: super::super::Foundation::HINSTANCE, xhotspot: i32, yhotspot: i32, nwidth: i32, nheight: i32, pvandplane: *const ::core::ffi::c_void, pvxorplane: *const ::core::ffi::c_void) -> HCURSOR; #[cfg(feature = "Win32_Foundation")] pub fn CreateDialogIndirectParamA(hinstance: super::super::Foundation::HINSTANCE, lptemplate: *const DLGTEMPLATE, hwndparent: super::super::Foundation::HWND, lpdialogfunc: DLGPROC, dwinitparam: super::super::Foundation::LPARAM) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn CreateDialogIndirectParamW(hinstance: super::super::Foundation::HINSTANCE, lptemplate: *const DLGTEMPLATE, hwndparent: super::super::Foundation::HWND, lpdialogfunc: DLGPROC, dwinitparam: super::super::Foundation::LPARAM) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn CreateDialogParamA(hinstance: super::super::Foundation::HINSTANCE, lptemplatename: super::super::Foundation::PSTR, hwndparent: super::super::Foundation::HWND, lpdialogfunc: DLGPROC, dwinitparam: super::super::Foundation::LPARAM) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn CreateDialogParamW(hinstance: super::super::Foundation::HINSTANCE, lptemplatename: super::super::Foundation::PWSTR, hwndparent: super::super::Foundation::HWND, lpdialogfunc: DLGPROC, dwinitparam: super::super::Foundation::LPARAM) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn CreateIcon(hinstance: super::super::Foundation::HINSTANCE, nwidth: i32, nheight: i32, cplanes: u8, cbitspixel: u8, lpbandbits: *const u8, lpbxorbits: *const u8) -> HICON; #[cfg(feature = "Win32_Foundation")] pub fn CreateIconFromResource(presbits: *const u8, dwressize: u32, ficon: super::super::Foundation::BOOL, dwver: u32) -> HICON; #[cfg(feature = "Win32_Foundation")] pub fn CreateIconFromResourceEx(presbits: *const u8, dwressize: u32, ficon: super::super::Foundation::BOOL, dwver: u32, cxdesired: i32, cydesired: i32, flags: IMAGE_FLAGS) -> HICON; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn CreateIconIndirect(piconinfo: *const ICONINFO) -> HICON; #[cfg(feature = "Win32_Foundation")] pub fn CreateMDIWindowA(lpclassname: super::super::Foundation::PSTR, lpwindowname: super::super::Foundation::PSTR, dwstyle: WINDOW_STYLE, x: i32, y: i32, nwidth: i32, nheight: i32, hwndparent: super::super::Foundation::HWND, hinstance: super::super::Foundation::HINSTANCE, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn CreateMDIWindowW(lpclassname: super::super::Foundation::PWSTR, lpwindowname: super::super::Foundation::PWSTR, dwstyle: WINDOW_STYLE, x: i32, y: i32, nwidth: i32, nheight: i32, hwndparent: super::super::Foundation::HWND, hinstance: super::super::Foundation::HINSTANCE, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::HWND; pub fn CreateMenu() -> HMENU; pub fn CreatePopupMenu() -> HMENU; #[cfg(feature = "Win32_Foundation")] pub fn CreateResourceIndexer(projectroot: super::super::Foundation::PWSTR, extensiondllpath: super::super::Foundation::PWSTR, ppresourceindexer: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub fn CreateWindowExA(dwexstyle: WINDOW_EX_STYLE, lpclassname: super::super::Foundation::PSTR, lpwindowname: super::super::Foundation::PSTR, dwstyle: WINDOW_STYLE, x: i32, y: i32, nwidth: i32, nheight: i32, hwndparent: super::super::Foundation::HWND, hmenu: HMENU, hinstance: super::super::Foundation::HINSTANCE, lpparam: *const ::core::ffi::c_void) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn CreateWindowExW(dwexstyle: WINDOW_EX_STYLE, lpclassname: super::super::Foundation::PWSTR, lpwindowname: super::super::Foundation::PWSTR, dwstyle: WINDOW_STYLE, x: i32, y: i32, nwidth: i32, nheight: i32, hwndparent: super::super::Foundation::HWND, hmenu: HMENU, hinstance: super::super::Foundation::HINSTANCE, lpparam: *const ::core::ffi::c_void) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn DefDlgProcA(hdlg: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT; #[cfg(feature = "Win32_Foundation")] pub fn DefDlgProcW(hdlg: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT; #[cfg(feature = "Win32_Foundation")] pub fn DefFrameProcA(hwnd: super::super::Foundation::HWND, hwndmdiclient: super::super::Foundation::HWND, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT; #[cfg(feature = "Win32_Foundation")] pub fn DefFrameProcW(hwnd: super::super::Foundation::HWND, hwndmdiclient: super::super::Foundation::HWND, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT; #[cfg(feature = "Win32_Foundation")] pub fn DefMDIChildProcA(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")] pub fn DefMDIChildProcW(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")] pub fn DefWindowProcA(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT; #[cfg(feature = "Win32_Foundation")] pub fn DefWindowProcW(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT; #[cfg(feature = "Win32_Foundation")] pub fn DeferWindowPos(hwinposinfo: isize, hwnd: super::super::Foundation::HWND, hwndinsertafter: super::super::Foundation::HWND, x: i32, y: i32, cx: i32, cy: i32, uflags: SET_WINDOW_POS_FLAGS) -> isize; #[cfg(feature = "Win32_Foundation")] pub fn DeleteMenu(hmenu: HMENU, uposition: u32, uflags: MENU_ITEM_FLAGS) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn DeregisterShellHookWindow(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn DestroyAcceleratorTable(haccel: HACCEL) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn DestroyCaret() -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn DestroyCursor(hcursor: HCURSOR) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn DestroyIcon(hicon: HICON) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn DestroyIndexedResults(resourceuri: super::super::Foundation::PWSTR, qualifiercount: u32, qualifiers: *const IndexedResourceQualifier); #[cfg(feature = "Win32_Foundation")] pub fn DestroyMenu(hmenu: HMENU) -> super::super::Foundation::BOOL; pub fn DestroyResourceIndexer(resourceindexer: *const ::core::ffi::c_void); #[cfg(feature = "Win32_Foundation")] pub fn DestroyWindow(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn DialogBoxIndirectParamA(hinstance: super::super::Foundation::HINSTANCE, hdialogtemplate: *const DLGTEMPLATE, hwndparent: super::super::Foundation::HWND, lpdialogfunc: DLGPROC, dwinitparam: super::super::Foundation::LPARAM) -> isize; #[cfg(feature = "Win32_Foundation")] pub fn DialogBoxIndirectParamW(hinstance: super::super::Foundation::HINSTANCE, hdialogtemplate: *const DLGTEMPLATE, hwndparent: super::super::Foundation::HWND, lpdialogfunc: DLGPROC, dwinitparam: super::super::Foundation::LPARAM) -> isize; #[cfg(feature = "Win32_Foundation")] pub fn DialogBoxParamA(hinstance: super::super::Foundation::HINSTANCE, lptemplatename: super::super::Foundation::PSTR, hwndparent: super::super::Foundation::HWND, lpdialogfunc: DLGPROC, dwinitparam: super::super::Foundation::LPARAM) -> isize; #[cfg(feature = "Win32_Foundation")] pub fn DialogBoxParamW(hinstance: super::super::Foundation::HINSTANCE, lptemplatename: super::super::Foundation::PWSTR, hwndparent: super::super::Foundation::HWND, lpdialogfunc: DLGPROC, dwinitparam: super::super::Foundation::LPARAM) -> isize; pub fn DisableProcessWindowsGhosting(); #[cfg(feature = "Win32_Foundation")] pub fn DispatchMessageA(lpmsg: *const MSG) -> super::super::Foundation::LRESULT; #[cfg(feature = "Win32_Foundation")] pub fn DispatchMessageW(lpmsg: *const MSG) -> super::super::Foundation::LRESULT; #[cfg(feature = "Win32_Foundation")] pub fn DragObject(hwndparent: super::super::Foundation::HWND, hwndfrom: super::super::Foundation::HWND, fmt: u32, data: usize, hcur: HCURSOR) -> u32; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn DrawIcon(hdc: super::super::Graphics::Gdi::HDC, x: i32, y: i32, hicon: HICON) -> super::super::Foundation::BOOL; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn DrawIconEx(hdc: super::super::Graphics::Gdi::HDC, xleft: i32, ytop: i32, hicon: HICON, cxwidth: i32, cywidth: i32, istepifanicur: u32, hbrflickerfreedraw: super::super::Graphics::Gdi::HBRUSH, diflags: DI_FLAGS) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn DrawMenuBar(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn EnableMenuItem(hmenu: HMENU, uidenableitem: u32, uenable: MENU_ITEM_FLAGS) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn EndDeferWindowPos(hwinposinfo: isize) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn EndDialog(hdlg: super::super::Foundation::HWND, nresult: isize) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn EndMenu() -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn EnumChildWindows(hwndparent: super::super::Foundation::HWND, lpenumfunc: WNDENUMPROC, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn EnumPropsA(hwnd: super::super::Foundation::HWND, lpenumfunc: PROPENUMPROCA) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn EnumPropsExA(hwnd: super::super::Foundation::HWND, lpenumfunc: PROPENUMPROCEXA, lparam: super::super::Foundation::LPARAM) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn EnumPropsExW(hwnd: super::super::Foundation::HWND, lpenumfunc: PROPENUMPROCEXW, lparam: super::super::Foundation::LPARAM) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn EnumPropsW(hwnd: super::super::Foundation::HWND, lpenumfunc: PROPENUMPROCW) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn EnumThreadWindows(dwthreadid: u32, lpfn: WNDENUMPROC, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn EnumWindows(lpenumfunc: WNDENUMPROC, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn FindWindowA(lpclassname: super::super::Foundation::PSTR, lpwindowname: super::super::Foundation::PSTR) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn FindWindowExA(hwndparent: super::super::Foundation::HWND, hwndchildafter: super::super::Foundation::HWND, lpszclass: super::super::Foundation::PSTR, lpszwindow: super::super::Foundation::PSTR) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn FindWindowExW(hwndparent: super::super::Foundation::HWND, hwndchildafter: super::super::Foundation::HWND, lpszclass: super::super::Foundation::PWSTR, lpszwindow: super::super::Foundation::PWSTR) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn FindWindowW(lpclassname: super::super::Foundation::PWSTR, lpwindowname: super::super::Foundation::PWSTR) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn FlashWindow(hwnd: super::super::Foundation::HWND, binvert: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn FlashWindowEx(pfwi: *const FLASHWINFO) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetAltTabInfoA(hwnd: super::super::Foundation::HWND, iitem: i32, pati: *mut ALTTABINFO, pszitemtext: super::super::Foundation::PSTR, cchitemtext: u32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetAltTabInfoW(hwnd: super::super::Foundation::HWND, iitem: i32, pati: *mut ALTTABINFO, pszitemtext: super::super::Foundation::PWSTR, cchitemtext: u32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetAncestor(hwnd: super::super::Foundation::HWND, gaflags: GET_ANCESTOR_FLAGS) -> super::super::Foundation::HWND; pub fn GetCaretBlinkTime() -> u32; #[cfg(feature = "Win32_Foundation")] pub fn GetCaretPos(lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn GetClassInfoA(hinstance: super::super::Foundation::HINSTANCE, lpclassname: super::super::Foundation::PSTR, lpwndclass: *mut WNDCLASSA) -> super::super::Foundation::BOOL; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn GetClassInfoExA(hinstance: super::super::Foundation::HINSTANCE, lpszclass: super::super::Foundation::PSTR, lpwcx: *mut WNDCLASSEXA) -> super::super::Foundation::BOOL; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn GetClassInfoExW(hinstance: super::super::Foundation::HINSTANCE, lpszclass: super::super::Foundation::PWSTR, lpwcx: *mut WNDCLASSEXW) -> super::super::Foundation::BOOL; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn GetClassInfoW(hinstance: super::super::Foundation::HINSTANCE, lpclassname: super::super::Foundation::PWSTR, lpwndclass: *mut WNDCLASSW) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetClassLongA(hwnd: super::super::Foundation::HWND, nindex: GET_CLASS_LONG_INDEX) -> u32; #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] pub fn GetClassLongPtrA(hwnd: super::super::Foundation::HWND, nindex: GET_CLASS_LONG_INDEX) -> usize; #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] pub fn GetClassLongPtrW(hwnd: super::super::Foundation::HWND, nindex: GET_CLASS_LONG_INDEX) -> usize; #[cfg(feature = "Win32_Foundation")] pub fn GetClassLongW(hwnd: super::super::Foundation::HWND, nindex: GET_CLASS_LONG_INDEX) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn GetClassNameA(hwnd: super::super::Foundation::HWND, lpclassname: super::super::Foundation::PSTR, nmaxcount: i32) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn GetClassNameW(hwnd: super::super::Foundation::HWND, lpclassname: super::super::Foundation::PWSTR, nmaxcount: i32) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn GetClassWord(hwnd: super::super::Foundation::HWND, nindex: i32) -> u16; #[cfg(feature = "Win32_Foundation")] pub fn GetClientRect(hwnd: super::super::Foundation::HWND, lprect: *mut super::super::Foundation::RECT) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetClipCursor(lprect: *mut super::super::Foundation::RECT) -> super::super::Foundation::BOOL; pub fn GetCursor() -> HCURSOR; #[cfg(feature = "Win32_Foundation")] pub fn GetCursorInfo(pci: *mut CURSORINFO) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetCursorPos(lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetDesktopWindow() -> super::super::Foundation::HWND; pub fn GetDialogBaseUnits() -> i32; #[cfg(feature = "Win32_Foundation")] pub fn GetDlgCtrlID(hwnd: super::super::Foundation::HWND) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn GetDlgItem(hdlg: super::super::Foundation::HWND, niddlgitem: i32) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn GetDlgItemInt(hdlg: super::super::Foundation::HWND, niddlgitem: i32, lptranslated: *mut super::super::Foundation::BOOL, bsigned: super::super::Foundation::BOOL) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn GetDlgItemTextA(hdlg: super::super::Foundation::HWND, niddlgitem: i32, lpstring: super::super::Foundation::PSTR, cchmax: i32) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn GetDlgItemTextW(hdlg: super::super::Foundation::HWND, niddlgitem: i32, lpstring: super::super::Foundation::PWSTR, cchmax: i32) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn GetForegroundWindow() -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn GetGUIThreadInfo(idthread: u32, pgui: *mut GUITHREADINFO) -> super::super::Foundation::BOOL; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn GetIconInfo(hicon: HICON, piconinfo: *mut ICONINFO) -> super::super::Foundation::BOOL; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn GetIconInfoExA(hicon: HICON, piconinfo: *mut ICONINFOEXA) -> super::super::Foundation::BOOL; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn GetIconInfoExW(hicon: HICON, piconinfo: *mut ICONINFOEXW) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetInputState() -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetLastActivePopup(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn GetLayeredWindowAttributes(hwnd: super::super::Foundation::HWND, pcrkey: *mut u32, pbalpha: *mut u8, pdwflags: *mut LAYERED_WINDOW_ATTRIBUTES_FLAGS) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetMenu(hwnd: super::super::Foundation::HWND) -> HMENU; #[cfg(feature = "Win32_Foundation")] pub fn GetMenuBarInfo(hwnd: super::super::Foundation::HWND, idobject: OBJECT_IDENTIFIER, iditem: i32, pmbi: *mut MENUBARINFO) -> super::super::Foundation::BOOL; pub fn GetMenuCheckMarkDimensions() -> i32; pub fn GetMenuDefaultItem(hmenu: HMENU, fbypos: u32, gmdiflags: GET_MENU_DEFAULT_ITEM_FLAGS) -> u32; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn GetMenuInfo(param0: HMENU, param1: *mut MENUINFO) -> super::super::Foundation::BOOL; pub fn GetMenuItemCount(hmenu: HMENU) -> i32; pub fn GetMenuItemID(hmenu: HMENU, npos: i32) -> u32; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn GetMenuItemInfoA(hmenu: HMENU, item: u32, fbyposition: super::super::Foundation::BOOL, lpmii: *mut MENUITEMINFOA) -> super::super::Foundation::BOOL; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn GetMenuItemInfoW(hmenu: HMENU, item: u32, fbyposition: super::super::Foundation::BOOL, lpmii: *mut MENUITEMINFOW) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetMenuItemRect(hwnd: super::super::Foundation::HWND, hmenu: HMENU, uitem: u32, lprcitem: *mut super::super::Foundation::RECT) -> super::super::Foundation::BOOL; pub fn GetMenuState(hmenu: HMENU, uid: u32, uflags: MENU_ITEM_FLAGS) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn GetMenuStringA(hmenu: HMENU, uiditem: u32, lpstring: super::super::Foundation::PSTR, cchmax: i32, flags: MENU_ITEM_FLAGS) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn GetMenuStringW(hmenu: HMENU, uiditem: u32, lpstring: super::super::Foundation::PWSTR, cchmax: i32, flags: MENU_ITEM_FLAGS) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn GetMessageA(lpmsg: *mut MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetMessageExtraInfo() -> super::super::Foundation::LPARAM; pub fn GetMessagePos() -> u32; pub fn GetMessageTime() -> i32; #[cfg(feature = "Win32_Foundation")] pub fn GetMessageW(lpmsg: *mut MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetNextDlgGroupItem(hdlg: super::super::Foundation::HWND, hctl: super::super::Foundation::HWND, bprevious: super::super::Foundation::BOOL) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn GetNextDlgTabItem(hdlg: super::super::Foundation::HWND, hctl: super::super::Foundation::HWND, bprevious: super::super::Foundation::BOOL) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn GetParent(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn GetPhysicalCursorPos(lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetProcessDefaultLayout(pdwdefaultlayout: *mut u32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetPropA(hwnd: super::super::Foundation::HWND, lpstring: super::super::Foundation::PSTR) -> super::super::Foundation::HANDLE; #[cfg(feature = "Win32_Foundation")] pub fn GetPropW(hwnd: super::super::Foundation::HWND, lpstring: super::super::Foundation::PWSTR) -> super::super::Foundation::HANDLE; pub fn GetQueueStatus(flags: QUEUE_STATUS_FLAGS) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn GetScrollBarInfo(hwnd: super::super::Foundation::HWND, idobject: OBJECT_IDENTIFIER, psbi: *mut SCROLLBARINFO) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetScrollInfo(hwnd: super::super::Foundation::HWND, nbar: SCROLLBAR_CONSTANTS, lpsi: *mut SCROLLINFO) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetScrollPos(hwnd: super::super::Foundation::HWND, nbar: SCROLLBAR_CONSTANTS) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn GetScrollRange(hwnd: super::super::Foundation::HWND, nbar: SCROLLBAR_CONSTANTS, lpminpos: *mut i32, lpmaxpos: *mut i32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetShellWindow() -> super::super::Foundation::HWND; pub fn GetSubMenu(hmenu: HMENU, npos: i32) -> HMENU; pub fn GetSysColor(nindex: SYS_COLOR_INDEX) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn GetSystemMenu(hwnd: super::super::Foundation::HWND, brevert: super::super::Foundation::BOOL) -> HMENU; pub fn GetSystemMetrics(nindex: SYSTEM_METRICS_INDEX) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn GetTitleBarInfo(hwnd: super::super::Foundation::HWND, pti: *mut TITLEBARINFO) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetTopWindow(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn GetWindow(hwnd: super::super::Foundation::HWND, ucmd: GET_WINDOW_CMD) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn GetWindowDisplayAffinity(hwnd: super::super::Foundation::HWND, pdwaffinity: *mut u32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetWindowInfo(hwnd: super::super::Foundation::HWND, pwi: *mut WINDOWINFO) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetWindowLongA(hwnd: super::super::Foundation::HWND, nindex: WINDOW_LONG_PTR_INDEX) -> i32; #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] pub fn GetWindowLongPtrA(hwnd: super::super::Foundation::HWND, nindex: WINDOW_LONG_PTR_INDEX) -> isize; #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] pub fn GetWindowLongPtrW(hwnd: super::super::Foundation::HWND, nindex: WINDOW_LONG_PTR_INDEX) -> isize; #[cfg(feature = "Win32_Foundation")] pub fn GetWindowLongW(hwnd: super::super::Foundation::HWND, nindex: WINDOW_LONG_PTR_INDEX) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn GetWindowModuleFileNameA(hwnd: super::super::Foundation::HWND, pszfilename: super::super::Foundation::PSTR, cchfilenamemax: u32) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn GetWindowModuleFileNameW(hwnd: super::super::Foundation::HWND, pszfilename: super::super::Foundation::PWSTR, cchfilenamemax: u32) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn GetWindowPlacement(hwnd: super::super::Foundation::HWND, lpwndpl: *mut WINDOWPLACEMENT) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetWindowRect(hwnd: super::super::Foundation::HWND, lprect: *mut super::super::Foundation::RECT) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn GetWindowTextA(hwnd: super::super::Foundation::HWND, lpstring: super::super::Foundation::PSTR, nmaxcount: i32) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn GetWindowTextLengthA(hwnd: super::super::Foundation::HWND) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn GetWindowTextLengthW(hwnd: super::super::Foundation::HWND) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn GetWindowTextW(hwnd: super::super::Foundation::HWND, lpstring: super::super::Foundation::PWSTR, nmaxcount: i32) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn GetWindowThreadProcessId(hwnd: super::super::Foundation::HWND, lpdwprocessid: *mut u32) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn GetWindowWord(hwnd: super::super::Foundation::HWND, nindex: i32) -> u16; #[cfg(feature = "Win32_Foundation")] pub fn HideCaret(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn HiliteMenuItem(hwnd: super::super::Foundation::HWND, hmenu: HMENU, uidhiliteitem: u32, uhilite: u32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn InSendMessage() -> super::super::Foundation::BOOL; pub fn InSendMessageEx(lpreserved: *mut ::core::ffi::c_void) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn IndexFilePath(resourceindexer: *const ::core::ffi::c_void, filepath: super::super::Foundation::PWSTR, ppresourceuri: *mut super::super::Foundation::PWSTR, pqualifiercount: *mut u32, ppqualifiers: *mut *mut IndexedResourceQualifier) -> ::windows_sys::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub fn InheritWindowMonitor(hwnd: super::super::Foundation::HWND, hwndinherit: super::super::Foundation::HWND) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn InsertMenuA(hmenu: HMENU, uposition: u32, uflags: MENU_ITEM_FLAGS, uidnewitem: usize, lpnewitem: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn InsertMenuItemA(hmenu: HMENU, item: u32, fbyposition: super::super::Foundation::BOOL, lpmi: *const MENUITEMINFOA) -> super::super::Foundation::BOOL; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn InsertMenuItemW(hmenu: HMENU, item: u32, fbyposition: super::super::Foundation::BOOL, lpmi: *const MENUITEMINFOW) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn InsertMenuW(hmenu: HMENU, uposition: u32, uflags: MENU_ITEM_FLAGS, uidnewitem: usize, lpnewitem: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn InternalGetWindowText(hwnd: super::super::Foundation::HWND, pstring: super::super::Foundation::PWSTR, cchmaxcount: i32) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn IsCharAlphaA(ch: super::super::Foundation::CHAR) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn IsCharAlphaNumericA(ch: super::super::Foundation::CHAR) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn IsCharAlphaNumericW(ch: u16) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn IsCharAlphaW(ch: u16) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn IsCharLowerA(ch: super::super::Foundation::CHAR) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn IsCharUpperA(ch: super::super::Foundation::CHAR) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn IsCharUpperW(ch: u16) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn IsChild(hwndparent: super::super::Foundation::HWND, hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn IsDialogMessageA(hdlg: super::super::Foundation::HWND, lpmsg: *const MSG) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn IsDialogMessageW(hdlg: super::super::Foundation::HWND, lpmsg: *const MSG) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn IsGUIThread(bconvert: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn IsHungAppWindow(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn IsIconic(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn IsMenu(hmenu: HMENU) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn IsProcessDPIAware() -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn IsWindow(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn IsWindowUnicode(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn IsWindowVisible(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn IsWow64Message() -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn IsZoomed(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn KillTimer(hwnd: super::super::Foundation::HWND, uidevent: usize) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn LoadAcceleratorsA(hinstance: super::super::Foundation::HINSTANCE, lptablename: super::super::Foundation::PSTR) -> HACCEL; #[cfg(feature = "Win32_Foundation")] pub fn LoadAcceleratorsW(hinstance: super::super::Foundation::HINSTANCE, lptablename: super::super::Foundation::PWSTR) -> HACCEL; #[cfg(feature = "Win32_Foundation")] pub fn LoadCursorA(hinstance: super::super::Foundation::HINSTANCE, lpcursorname: super::super::Foundation::PSTR) -> HCURSOR; #[cfg(feature = "Win32_Foundation")] pub fn LoadCursorFromFileA(lpfilename: super::super::Foundation::PSTR) -> HCURSOR; #[cfg(feature = "Win32_Foundation")] pub fn LoadCursorFromFileW(lpfilename: super::super::Foundation::PWSTR) -> HCURSOR; #[cfg(feature = "Win32_Foundation")] pub fn LoadCursorW(hinstance: super::super::Foundation::HINSTANCE, lpcursorname: super::super::Foundation::PWSTR) -> HCURSOR; #[cfg(feature = "Win32_Foundation")] pub fn LoadIconA(hinstance: super::super::Foundation::HINSTANCE, lpiconname: super::super::Foundation::PSTR) -> HICON; #[cfg(feature = "Win32_Foundation")] pub fn LoadIconW(hinstance: super::super::Foundation::HINSTANCE, lpiconname: super::super::Foundation::PWSTR) -> HICON; #[cfg(feature = "Win32_Foundation")] pub fn LoadImageA(hinst: super::super::Foundation::HINSTANCE, name: super::super::Foundation::PSTR, r#type: GDI_IMAGE_TYPE, cx: i32, cy: i32, fuload: IMAGE_FLAGS) -> super::super::Foundation::HANDLE; #[cfg(feature = "Win32_Foundation")] pub fn LoadImageW(hinst: super::super::Foundation::HINSTANCE, name: super::super::Foundation::PWSTR, r#type: GDI_IMAGE_TYPE, cx: i32, cy: i32, fuload: IMAGE_FLAGS) -> super::super::Foundation::HANDLE; #[cfg(feature = "Win32_Foundation")] pub fn LoadMenuA(hinstance: super::super::Foundation::HINSTANCE, lpmenuname: super::super::Foundation::PSTR) -> HMENU; pub fn LoadMenuIndirectA(lpmenutemplate: *const ::core::ffi::c_void) -> HMENU; pub fn LoadMenuIndirectW(lpmenutemplate: *const ::core::ffi::c_void) -> HMENU; #[cfg(feature = "Win32_Foundation")] pub fn LoadMenuW(hinstance: super::super::Foundation::HINSTANCE, lpmenuname: super::super::Foundation::PWSTR) -> HMENU; #[cfg(feature = "Win32_Foundation")] pub fn LoadStringA(hinstance: super::super::Foundation::HINSTANCE, uid: u32, lpbuffer: super::super::Foundation::PSTR, cchbuffermax: i32) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn LoadStringW(hinstance: super::super::Foundation::HINSTANCE, uid: u32, lpbuffer: super::super::Foundation::PWSTR, cchbuffermax: i32) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn LockSetForegroundWindow(ulockcode: FOREGROUND_WINDOW_LOCK_CODE) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn LogicalToPhysicalPoint(hwnd: super::super::Foundation::HWND, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn LookupIconIdFromDirectory(presbits: *const u8, ficon: super::super::Foundation::BOOL) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn LookupIconIdFromDirectoryEx(presbits: *const u8, ficon: super::super::Foundation::BOOL, cxdesired: i32, cydesired: i32, flags: IMAGE_FLAGS) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn MapDialogRect(hdlg: super::super::Foundation::HWND, lprect: *mut super::super::Foundation::RECT) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn MenuItemFromPoint(hwnd: super::super::Foundation::HWND, hmenu: HMENU, ptscreen: super::super::Foundation::POINT) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn MessageBoxA(hwnd: super::super::Foundation::HWND, lptext: super::super::Foundation::PSTR, lpcaption: super::super::Foundation::PSTR, utype: MESSAGEBOX_STYLE) -> MESSAGEBOX_RESULT; #[cfg(feature = "Win32_Foundation")] pub fn MessageBoxExA(hwnd: super::super::Foundation::HWND, lptext: super::super::Foundation::PSTR, lpcaption: super::super::Foundation::PSTR, utype: MESSAGEBOX_STYLE, wlanguageid: u16) -> MESSAGEBOX_RESULT; #[cfg(feature = "Win32_Foundation")] pub fn MessageBoxExW(hwnd: super::super::Foundation::HWND, lptext: super::super::Foundation::PWSTR, lpcaption: super::super::Foundation::PWSTR, utype: MESSAGEBOX_STYLE, wlanguageid: u16) -> MESSAGEBOX_RESULT; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell"))] pub fn MessageBoxIndirectA(lpmbp: *const MSGBOXPARAMSA) -> MESSAGEBOX_RESULT; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell"))] pub fn MessageBoxIndirectW(lpmbp: *const MSGBOXPARAMSW) -> MESSAGEBOX_RESULT; #[cfg(feature = "Win32_Foundation")] pub fn MessageBoxW(hwnd: super::super::Foundation::HWND, lptext: super::super::Foundation::PWSTR, lpcaption: super::super::Foundation::PWSTR, utype: MESSAGEBOX_STYLE) -> MESSAGEBOX_RESULT; #[cfg(feature = "Win32_Foundation")] pub fn ModifyMenuA(hmnu: HMENU, uposition: u32, uflags: MENU_ITEM_FLAGS, uidnewitem: usize, lpnewitem: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn ModifyMenuW(hmnu: HMENU, uposition: u32, uflags: MENU_ITEM_FLAGS, uidnewitem: usize, lpnewitem: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn MoveWindow(hwnd: super::super::Foundation::HWND, x: i32, y: i32, nwidth: i32, nheight: i32, brepaint: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn MrmCreateConfig(platformversion: MrmPlatformVersion, defaultqualifiers: super::super::Foundation::PWSTR, outputxmlfile: super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub fn MrmCreateConfigInMemory(platformversion: MrmPlatformVersion, defaultqualifiers: super::super::Foundation::PWSTR, outputxmldata: *mut *mut u8, outputxmlsize: *mut u32) -> ::windows_sys::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub fn MrmCreateResourceFile(indexer: MrmResourceIndexerHandle, packagingmode: MrmPackagingMode, packagingoptions: MrmPackagingOptions, outputdirectory: super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT; pub fn MrmCreateResourceFileInMemory(indexer: MrmResourceIndexerHandle, packagingmode: MrmPackagingMode, packagingoptions: MrmPackagingOptions, outputpridata: *mut *mut u8, outputprisize: *mut u32) -> ::windows_sys::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub fn MrmCreateResourceFileWithChecksum(indexer: MrmResourceIndexerHandle, packagingmode: MrmPackagingMode, packagingoptions: MrmPackagingOptions, checksum: u32, outputdirectory: super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub fn MrmCreateResourceIndexer(packagefamilyname: super::super::Foundation::PWSTR, projectroot: super::super::Foundation::PWSTR, platformversion: MrmPlatformVersion, defaultqualifiers: super::super::Foundation::PWSTR, indexer: *mut MrmResourceIndexerHandle) -> ::windows_sys::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub fn MrmCreateResourceIndexerFromPreviousPriData(projectroot: super::super::Foundation::PWSTR, platformversion: MrmPlatformVersion, defaultqualifiers: super::super::Foundation::PWSTR, pridata: *const u8, prisize: u32, indexer: *mut MrmResourceIndexerHandle) -> ::windows_sys::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub fn MrmCreateResourceIndexerFromPreviousPriFile(projectroot: super::super::Foundation::PWSTR, platformversion: MrmPlatformVersion, defaultqualifiers: super::super::Foundation::PWSTR, prifile: super::super::Foundation::PWSTR, indexer: *mut MrmResourceIndexerHandle) -> ::windows_sys::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub fn MrmCreateResourceIndexerFromPreviousSchemaData(projectroot: super::super::Foundation::PWSTR, platformversion: MrmPlatformVersion, defaultqualifiers: super::super::Foundation::PWSTR, schemaxmldata: *const u8, schemaxmlsize: u32, indexer: *mut MrmResourceIndexerHandle) -> ::windows_sys::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub fn MrmCreateResourceIndexerFromPreviousSchemaFile(projectroot: super::super::Foundation::PWSTR, platformversion: MrmPlatformVersion, defaultqualifiers: super::super::Foundation::PWSTR, schemafile: super::super::Foundation::PWSTR, indexer: *mut MrmResourceIndexerHandle) -> ::windows_sys::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub fn MrmCreateResourceIndexerWithFlags(packagefamilyname: super::super::Foundation::PWSTR, projectroot: super::super::Foundation::PWSTR, platformversion: MrmPlatformVersion, defaultqualifiers: super::super::Foundation::PWSTR, flags: MrmIndexerFlags, indexer: *mut MrmResourceIndexerHandle) -> ::windows_sys::core::HRESULT; pub fn MrmDestroyIndexerAndMessages(indexer: MrmResourceIndexerHandle) -> ::windows_sys::core::HRESULT; pub fn MrmDumpPriDataInMemory(inputpridata: *const u8, inputprisize: u32, schemapridata: *const u8, schemaprisize: u32, dumptype: MrmDumpType, outputxmldata: *mut *mut u8, outputxmlsize: *mut u32) -> ::windows_sys::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub fn MrmDumpPriFile(indexfilename: super::super::Foundation::PWSTR, schemaprifile: super::super::Foundation::PWSTR, dumptype: MrmDumpType, outputxmlfile: super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub fn MrmDumpPriFileInMemory(indexfilename: super::super::Foundation::PWSTR, schemaprifile: super::super::Foundation::PWSTR, dumptype: MrmDumpType, outputxmldata: *mut *mut u8, outputxmlsize: *mut u32) -> ::windows_sys::core::HRESULT; pub fn MrmFreeMemory(data: *const u8) -> ::windows_sys::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub fn MrmGetPriFileContentChecksum(prifile: super::super::Foundation::PWSTR, checksum: *mut u32) -> ::windows_sys::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub fn MrmIndexEmbeddedData(indexer: MrmResourceIndexerHandle, resourceuri: super::super::Foundation::PWSTR, embeddeddata: *const u8, embeddeddatasize: u32, qualifiers: super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub fn MrmIndexFile(indexer: MrmResourceIndexerHandle, resourceuri: super::super::Foundation::PWSTR, filepath: super::super::Foundation::PWSTR, qualifiers: super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub fn MrmIndexFileAutoQualifiers(indexer: MrmResourceIndexerHandle, filepath: super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub fn MrmIndexResourceContainerAutoQualifiers(indexer: MrmResourceIndexerHandle, containerpath: super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub fn MrmIndexString(indexer: MrmResourceIndexerHandle, resourceuri: super::super::Foundation::PWSTR, resourcestring: super::super::Foundation::PWSTR, qualifiers: super::super::Foundation::PWSTR) -> ::windows_sys::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub fn MrmPeekResourceIndexerMessages(handle: MrmResourceIndexerHandle, messages: *mut *mut MrmResourceIndexerMessage, nummsgs: *mut u32) -> ::windows_sys::core::HRESULT; #[cfg(feature = "Win32_Foundation")] pub fn MsgWaitForMultipleObjects(ncount: u32, phandles: *const super::super::Foundation::HANDLE, fwaitall: super::super::Foundation::BOOL, dwmilliseconds: u32, dwwakemask: QUEUE_STATUS_FLAGS) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn MsgWaitForMultipleObjectsEx(ncount: u32, phandles: *const super::super::Foundation::HANDLE, dwmilliseconds: u32, dwwakemask: QUEUE_STATUS_FLAGS, dwflags: MSG_WAIT_FOR_MULTIPLE_OBJECTS_EX_FLAGS) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn OemToCharA(psrc: super::super::Foundation::PSTR, pdst: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn OemToCharBuffA(lpszsrc: super::super::Foundation::PSTR, lpszdst: super::super::Foundation::PSTR, cchdstlength: u32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn OemToCharBuffW(lpszsrc: super::super::Foundation::PSTR, lpszdst: super::super::Foundation::PWSTR, cchdstlength: u32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn OemToCharW(psrc: super::super::Foundation::PSTR, pdst: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn OpenIcon(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn PeekMessageA(lpmsg: *mut MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: PEEK_MESSAGE_REMOVE_TYPE) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn PeekMessageW(lpmsg: *mut MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: PEEK_MESSAGE_REMOVE_TYPE) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn PhysicalToLogicalPoint(hwnd: super::super::Foundation::HWND, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn PostMessageA(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn PostMessageW(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL; pub fn PostQuitMessage(nexitcode: i32); #[cfg(feature = "Win32_Foundation")] pub fn PostThreadMessageA(idthread: u32, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn PostThreadMessageW(idthread: u32, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn PrivateExtractIconsA(szfilename: super::super::Foundation::PSTR, niconindex: i32, cxicon: i32, cyicon: i32, phicon: *mut HICON, piconid: *mut u32, nicons: u32, flags: u32) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn PrivateExtractIconsW(szfilename: super::super::Foundation::PWSTR, niconindex: i32, cxicon: i32, cyicon: i32, phicon: *mut HICON, piconid: *mut u32, nicons: u32, flags: u32) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn RealChildWindowFromPoint(hwndparent: super::super::Foundation::HWND, ptparentclientcoords: super::super::Foundation::POINT) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn RealGetWindowClassA(hwnd: super::super::Foundation::HWND, ptszclassname: super::super::Foundation::PSTR, cchclassnamemax: u32) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn RealGetWindowClassW(hwnd: super::super::Foundation::HWND, ptszclassname: super::super::Foundation::PWSTR, cchclassnamemax: u32) -> u32; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn RegisterClassA(lpwndclass: *const WNDCLASSA) -> u16; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn RegisterClassExA(param0: *const WNDCLASSEXA) -> u16; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn RegisterClassExW(param0: *const WNDCLASSEXW) -> u16; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn RegisterClassW(lpwndclass: *const WNDCLASSW) -> u16; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Power"))] pub fn RegisterDeviceNotificationA(hrecipient: super::super::Foundation::HANDLE, notificationfilter: *const ::core::ffi::c_void, flags: super::super::System::Power::POWER_SETTING_REGISTER_NOTIFICATION_FLAGS) -> *mut ::core::ffi::c_void; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Power"))] pub fn RegisterDeviceNotificationW(hrecipient: super::super::Foundation::HANDLE, notificationfilter: *const ::core::ffi::c_void, flags: super::super::System::Power::POWER_SETTING_REGISTER_NOTIFICATION_FLAGS) -> *mut ::core::ffi::c_void; #[cfg(feature = "Win32_Foundation")] pub fn RegisterShellHookWindow(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn RegisterWindowMessageA(lpstring: super::super::Foundation::PSTR) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn RegisterWindowMessageW(lpstring: super::super::Foundation::PWSTR) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn RemoveMenu(hmenu: HMENU, uposition: u32, uflags: MENU_ITEM_FLAGS) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn RemovePropA(hwnd: super::super::Foundation::HWND, lpstring: super::super::Foundation::PSTR) -> super::super::Foundation::HANDLE; #[cfg(feature = "Win32_Foundation")] pub fn RemovePropW(hwnd: super::super::Foundation::HWND, lpstring: super::super::Foundation::PWSTR) -> super::super::Foundation::HANDLE; #[cfg(feature = "Win32_Foundation")] pub fn ReplyMessage(lresult: super::super::Foundation::LRESULT) -> super::super::Foundation::BOOL; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn ScrollDC(hdc: super::super::Graphics::Gdi::HDC, dx: i32, dy: i32, lprcscroll: *const super::super::Foundation::RECT, lprcclip: *const super::super::Foundation::RECT, hrgnupdate: super::super::Graphics::Gdi::HRGN, lprcupdate: *mut super::super::Foundation::RECT) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn ScrollWindow(hwnd: super::super::Foundation::HWND, xamount: i32, yamount: i32, lprect: *const super::super::Foundation::RECT, lpcliprect: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn ScrollWindowEx(hwnd: super::super::Foundation::HWND, dx: i32, dy: i32, prcscroll: *const super::super::Foundation::RECT, prcclip: *const super::super::Foundation::RECT, hrgnupdate: super::super::Graphics::Gdi::HRGN, prcupdate: *mut super::super::Foundation::RECT, flags: SHOW_WINDOW_CMD) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn SendDlgItemMessageA(hdlg: super::super::Foundation::HWND, niddlgitem: i32, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT; #[cfg(feature = "Win32_Foundation")] pub fn SendDlgItemMessageW(hdlg: super::super::Foundation::HWND, niddlgitem: i32, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT; #[cfg(feature = "Win32_Foundation")] pub fn SendMessageA(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT; #[cfg(feature = "Win32_Foundation")] pub fn SendMessageCallbackA(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, lpresultcallback: SENDASYNCPROC, dwdata: usize) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SendMessageCallbackW(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, lpresultcallback: SENDASYNCPROC, dwdata: usize) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SendMessageTimeoutA(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, fuflags: SEND_MESSAGE_TIMEOUT_FLAGS, utimeout: u32, lpdwresult: *mut usize) -> super::super::Foundation::LRESULT; #[cfg(feature = "Win32_Foundation")] pub fn SendMessageTimeoutW(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, fuflags: SEND_MESSAGE_TIMEOUT_FLAGS, utimeout: u32, lpdwresult: *mut usize) -> super::super::Foundation::LRESULT; #[cfg(feature = "Win32_Foundation")] pub fn SendMessageW(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT; #[cfg(feature = "Win32_Foundation")] pub fn SendNotifyMessageA(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SendNotifyMessageW(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetCaretBlinkTime(umseconds: u32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetCaretPos(x: i32, y: i32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetClassLongA(hwnd: super::super::Foundation::HWND, nindex: GET_CLASS_LONG_INDEX, dwnewlong: i32) -> u32; #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] pub fn SetClassLongPtrA(hwnd: super::super::Foundation::HWND, nindex: GET_CLASS_LONG_INDEX, dwnewlong: isize) -> usize; #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] pub fn SetClassLongPtrW(hwnd: super::super::Foundation::HWND, nindex: GET_CLASS_LONG_INDEX, dwnewlong: isize) -> usize; #[cfg(feature = "Win32_Foundation")] pub fn SetClassLongW(hwnd: super::super::Foundation::HWND, nindex: GET_CLASS_LONG_INDEX, dwnewlong: i32) -> u32; #[cfg(feature = "Win32_Foundation")] pub fn SetClassWord(hwnd: super::super::Foundation::HWND, nindex: i32, wnewword: u16) -> u16; #[cfg(feature = "Win32_Foundation")] pub fn SetCoalescableTimer(hwnd: super::super::Foundation::HWND, nidevent: usize, uelapse: u32, lptimerfunc: TIMERPROC, utolerancedelay: u32) -> usize; pub fn SetCursor(hcursor: HCURSOR) -> HCURSOR; #[cfg(feature = "Win32_Foundation")] pub fn SetCursorPos(x: i32, y: i32) -> super::super::Foundation::BOOL; pub fn SetDebugErrorLevel(dwlevel: u32); #[cfg(feature = "Win32_Foundation")] pub fn SetDlgItemInt(hdlg: super::super::Foundation::HWND, niddlgitem: i32, uvalue: u32, bsigned: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetDlgItemTextA(hdlg: super::super::Foundation::HWND, niddlgitem: i32, lpstring: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetDlgItemTextW(hdlg: super::super::Foundation::HWND, niddlgitem: i32, lpstring: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetForegroundWindow(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetLayeredWindowAttributes(hwnd: super::super::Foundation::HWND, crkey: u32, balpha: u8, dwflags: LAYERED_WINDOW_ATTRIBUTES_FLAGS) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetMenu(hwnd: super::super::Foundation::HWND, hmenu: HMENU) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetMenuDefaultItem(hmenu: HMENU, uitem: u32, fbypos: u32) -> super::super::Foundation::BOOL; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn SetMenuInfo(param0: HMENU, param1: *const MENUINFO) -> super::super::Foundation::BOOL; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn SetMenuItemBitmaps(hmenu: HMENU, uposition: u32, uflags: MENU_ITEM_FLAGS, hbitmapunchecked: super::super::Graphics::Gdi::HBITMAP, hbitmapchecked: super::super::Graphics::Gdi::HBITMAP) -> super::super::Foundation::BOOL; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn SetMenuItemInfoA(hmenu: HMENU, item: u32, fbypositon: super::super::Foundation::BOOL, lpmii: *const MENUITEMINFOA) -> super::super::Foundation::BOOL; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn SetMenuItemInfoW(hmenu: HMENU, item: u32, fbypositon: super::super::Foundation::BOOL, lpmii: *const MENUITEMINFOW) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetMessageExtraInfo(lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LPARAM; #[cfg(feature = "Win32_Foundation")] pub fn SetMessageQueue(cmessagesmax: i32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetParent(hwndchild: super::super::Foundation::HWND, hwndnewparent: super::super::Foundation::HWND) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn SetPhysicalCursorPos(x: i32, y: i32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetProcessDPIAware() -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetProcessDefaultLayout(dwdefaultlayout: u32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetPropA(hwnd: super::super::Foundation::HWND, lpstring: super::super::Foundation::PSTR, hdata: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetPropW(hwnd: super::super::Foundation::HWND, lpstring: super::super::Foundation::PWSTR, hdata: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetSysColors(celements: i32, lpaelements: *const i32, lpargbvalues: *const u32) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetSystemCursor(hcur: HCURSOR, id: SYSTEM_CURSOR_ID) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetTimer(hwnd: super::super::Foundation::HWND, nidevent: usize, uelapse: u32, lptimerfunc: TIMERPROC) -> usize; #[cfg(feature = "Win32_Foundation")] pub fn SetWindowDisplayAffinity(hwnd: super::super::Foundation::HWND, dwaffinity: WINDOW_DISPLAY_AFFINITY) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetWindowLongA(hwnd: super::super::Foundation::HWND, nindex: WINDOW_LONG_PTR_INDEX, dwnewlong: i32) -> i32; #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] pub fn SetWindowLongPtrA(hwnd: super::super::Foundation::HWND, nindex: WINDOW_LONG_PTR_INDEX, dwnewlong: isize) -> isize; #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] #[cfg(feature = "Win32_Foundation")] pub fn SetWindowLongPtrW(hwnd: super::super::Foundation::HWND, nindex: WINDOW_LONG_PTR_INDEX, dwnewlong: isize) -> isize; #[cfg(feature = "Win32_Foundation")] pub fn SetWindowLongW(hwnd: super::super::Foundation::HWND, nindex: WINDOW_LONG_PTR_INDEX, dwnewlong: i32) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn SetWindowPlacement(hwnd: super::super::Foundation::HWND, lpwndpl: *const WINDOWPLACEMENT) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetWindowPos(hwnd: super::super::Foundation::HWND, hwndinsertafter: super::super::Foundation::HWND, x: i32, y: i32, cx: i32, cy: i32, uflags: SET_WINDOW_POS_FLAGS) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetWindowTextA(hwnd: super::super::Foundation::HWND, lpstring: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetWindowTextW(hwnd: super::super::Foundation::HWND, lpstring: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SetWindowWord(hwnd: super::super::Foundation::HWND, nindex: i32, wnewword: u16) -> u16; #[cfg(feature = "Win32_Foundation")] pub fn SetWindowsHookA(nfiltertype: i32, pfnfilterproc: HOOKPROC) -> HHOOK; #[cfg(feature = "Win32_Foundation")] pub fn SetWindowsHookExA(idhook: WINDOWS_HOOK_ID, lpfn: HOOKPROC, hmod: super::super::Foundation::HINSTANCE, dwthreadid: u32) -> HHOOK; #[cfg(feature = "Win32_Foundation")] pub fn SetWindowsHookExW(idhook: WINDOWS_HOOK_ID, lpfn: HOOKPROC, hmod: super::super::Foundation::HINSTANCE, dwthreadid: u32) -> HHOOK; #[cfg(feature = "Win32_Foundation")] pub fn SetWindowsHookW(nfiltertype: i32, pfnfilterproc: HOOKPROC) -> HHOOK; #[cfg(feature = "Win32_Foundation")] pub fn ShowCaret(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn ShowCursor(bshow: super::super::Foundation::BOOL) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn ShowOwnedPopups(hwnd: super::super::Foundation::HWND, fshow: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn ShowWindow(hwnd: super::super::Foundation::HWND, ncmdshow: SHOW_WINDOW_CMD) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn ShowWindowAsync(hwnd: super::super::Foundation::HWND, ncmdshow: SHOW_WINDOW_CMD) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SoundSentry() -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SwitchToThisWindow(hwnd: super::super::Foundation::HWND, funknown: super::super::Foundation::BOOL); #[cfg(feature = "Win32_Foundation")] pub fn SystemParametersInfoA(uiaction: SYSTEM_PARAMETERS_INFO_ACTION, uiparam: u32, pvparam: *mut ::core::ffi::c_void, fwinini: SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn SystemParametersInfoW(uiaction: SYSTEM_PARAMETERS_INFO_ACTION, uiparam: u32, pvparam: *mut ::core::ffi::c_void, fwinini: SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn TileWindows(hwndparent: super::super::Foundation::HWND, whow: TILE_WINDOWS_HOW, lprect: *const super::super::Foundation::RECT, ckids: u32, lpkids: *const super::super::Foundation::HWND) -> u16; #[cfg(feature = "Win32_Foundation")] pub fn TrackPopupMenu(hmenu: HMENU, uflags: TRACK_POPUP_MENU_FLAGS, x: i32, y: i32, nreserved: i32, hwnd: super::super::Foundation::HWND, prcrect: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn TrackPopupMenuEx(hmenu: HMENU, uflags: u32, x: i32, y: i32, hwnd: super::super::Foundation::HWND, lptpm: *const TPMPARAMS) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn TranslateAcceleratorA(hwnd: super::super::Foundation::HWND, hacctable: HACCEL, lpmsg: *const MSG) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn TranslateAcceleratorW(hwnd: super::super::Foundation::HWND, hacctable: HACCEL, lpmsg: *const MSG) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn TranslateMDISysAccel(hwndclient: super::super::Foundation::HWND, lpmsg: *const MSG) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn TranslateMessage(lpmsg: *const MSG) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn UnhookWindowsHook(ncode: i32, pfnfilterproc: HOOKPROC) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn UnhookWindowsHookEx(hhk: HHOOK) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn UnregisterClassA(lpclassname: super::super::Foundation::PSTR, hinstance: super::super::Foundation::HINSTANCE) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn UnregisterClassW(lpclassname: super::super::Foundation::PWSTR, hinstance: super::super::Foundation::HINSTANCE) -> super::super::Foundation::BOOL; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn UpdateLayeredWindow(hwnd: super::super::Foundation::HWND, hdcdst: super::super::Graphics::Gdi::HDC, pptdst: *const super::super::Foundation::POINT, psize: *const super::super::Foundation::SIZE, hdcsrc: super::super::Graphics::Gdi::HDC, pptsrc: *const super::super::Foundation::POINT, crkey: u32, pblend: *const super::super::Graphics::Gdi::BLENDFUNCTION, dwflags: UPDATE_LAYERED_WINDOW_FLAGS) -> super::super::Foundation::BOOL; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn UpdateLayeredWindowIndirect(hwnd: super::super::Foundation::HWND, pulwinfo: *const UPDATELAYEREDWINDOWINFO) -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn WaitMessage() -> super::super::Foundation::BOOL; #[cfg(feature = "Win32_Foundation")] pub fn WindowFromPhysicalPoint(point: super::super::Foundation::POINT) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn WindowFromPoint(point: super::super::Foundation::POINT) -> super::super::Foundation::HWND; #[cfg(feature = "Win32_Foundation")] pub fn wsprintfA(param0: super::super::Foundation::PSTR, param1: super::super::Foundation::PSTR) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn wsprintfW(param0: super::super::Foundation::PWSTR, param1: super::super::Foundation::PWSTR) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn wvsprintfA(param0: super::super::Foundation::PSTR, param1: super::super::Foundation::PSTR, arglist: *const i8) -> i32; #[cfg(feature = "Win32_Foundation")] pub fn wvsprintfW(param0: super::super::Foundation::PWSTR, param1: super::super::Foundation::PWSTR, arglist: *const i8) -> i32; } #[repr(C)] pub struct ACCEL { pub fVirt: u8, pub key: u16, pub cmd: u16, } impl ::core::marker::Copy for ACCEL {} impl ::core::clone::Clone for ACCEL { fn clone(&self) -> Self { *self } } #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct ALTTABINFO { pub cbSize: u32, pub cItems: i32, pub cColumns: i32, pub cRows: i32, pub iColFocus: i32, pub iRowFocus: i32, pub cxItem: i32, pub cyItem: i32, pub ptStart: super::super::Foundation::POINT, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for ALTTABINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for ALTTABINFO { fn clone(&self) -> Self { *self } } pub type ANIMATE_WINDOW_FLAGS = u32; pub const AW_ACTIVATE: ANIMATE_WINDOW_FLAGS = 131072u32; pub const AW_BLEND: ANIMATE_WINDOW_FLAGS = 524288u32; pub const AW_CENTER: ANIMATE_WINDOW_FLAGS = 16u32; pub const AW_HIDE: ANIMATE_WINDOW_FLAGS = 65536u32; pub const AW_HOR_POSITIVE: ANIMATE_WINDOW_FLAGS = 1u32; pub const AW_HOR_NEGATIVE: ANIMATE_WINDOW_FLAGS = 2u32; pub const AW_SLIDE: ANIMATE_WINDOW_FLAGS = 262144u32; pub const AW_VER_POSITIVE: ANIMATE_WINDOW_FLAGS = 4u32; pub const AW_VER_NEGATIVE: ANIMATE_WINDOW_FLAGS = 8u32; #[repr(C)] pub struct ANIMATIONINFO { pub cbSize: u32, pub iMinAnimate: i32, } impl ::core::marker::Copy for ANIMATIONINFO {} impl ::core::clone::Clone for ANIMATIONINFO { fn clone(&self) -> Self { *self } } pub const ARW_DOWN: i32 = 4i32; pub const ARW_HIDE: i32 = 8i32; pub const ARW_LEFT: i32 = 0i32; pub const ARW_RIGHT: i32 = 0i32; pub const ARW_STARTMASK: i32 = 3i32; pub const ARW_STARTRIGHT: i32 = 1i32; pub const ARW_STARTTOP: i32 = 2i32; pub const ARW_UP: i32 = 4i32; pub const ASFW_ANY: u32 = 4294967295u32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct AUDIODESCRIPTION { pub cbSize: u32, pub Enabled: super::super::Foundation::BOOL, pub Locale: u32, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for AUDIODESCRIPTION {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for AUDIODESCRIPTION { fn clone(&self) -> Self { *self } } pub const BM_CLICK: u32 = 245u32; pub const BM_GETCHECK: u32 = 240u32; pub const BM_GETIMAGE: u32 = 246u32; pub const BM_GETSTATE: u32 = 242u32; pub const BM_SETCHECK: u32 = 241u32; pub const BM_SETDONTCLICK: u32 = 248u32; pub const BM_SETIMAGE: u32 = 247u32; pub const BM_SETSTATE: u32 = 243u32; pub const BM_SETSTYLE: u32 = 244u32; pub const BN_CLICKED: u32 = 0u32; pub const BN_DBLCLK: u32 = 5u32; pub const BN_DISABLE: u32 = 4u32; pub const BN_DOUBLECLICKED: u32 = 5u32; pub const BN_HILITE: u32 = 2u32; pub const BN_KILLFOCUS: u32 = 7u32; pub const BN_PAINT: u32 = 1u32; pub const BN_PUSHED: u32 = 2u32; pub const BN_SETFOCUS: u32 = 6u32; pub const BN_UNHILITE: u32 = 3u32; pub const BN_UNPUSHED: u32 = 3u32; pub const BROADCAST_QUERY_DENY: u32 = 1112363332u32; pub const BSM_INSTALLABLEDRIVERS: u32 = 4u32; pub const BSM_NETDRIVER: u32 = 2u32; pub const BSM_VXDS: u32 = 1u32; pub const BST_FOCUS: u32 = 8u32; pub const BST_PUSHED: u32 = 4u32; pub const BS_3STATE: i32 = 5i32; pub const BS_AUTO3STATE: i32 = 6i32; pub const BS_AUTOCHECKBOX: i32 = 3i32; pub const BS_AUTORADIOBUTTON: i32 = 9i32; pub const BS_BITMAP: i32 = 128i32; pub const BS_BOTTOM: i32 = 2048i32; pub const BS_CENTER: i32 = 768i32; pub const BS_CHECKBOX: i32 = 2i32; pub const BS_DEFPUSHBUTTON: i32 = 1i32; pub const BS_FLAT: i32 = 32768i32; pub const BS_GROUPBOX: i32 = 7i32; pub const BS_ICON: i32 = 64i32; pub const BS_LEFT: i32 = 256i32; pub const BS_LEFTTEXT: i32 = 32i32; pub const BS_MULTILINE: i32 = 8192i32; pub const BS_NOTIFY: i32 = 16384i32; pub const BS_OWNERDRAW: i32 = 11i32; pub const BS_PUSHBOX: i32 = 10i32; pub const BS_PUSHBUTTON: i32 = 0i32; pub const BS_PUSHLIKE: i32 = 4096i32; pub const BS_RADIOBUTTON: i32 = 4i32; pub const BS_RIGHT: i32 = 512i32; pub const BS_RIGHTBUTTON: i32 = 32i32; pub const BS_TEXT: i32 = 0i32; pub const BS_TOP: i32 = 1024i32; pub const BS_TYPEMASK: i32 = 15i32; pub const BS_USERBUTTON: i32 = 8i32; pub const BS_VCENTER: i32 = 3072i32; pub const CALERT_SYSTEM: u32 = 6u32; pub type CASCADE_WINDOWS_HOW = u32; pub const MDITILE_SKIPDISABLED: CASCADE_WINDOWS_HOW = 2u32; pub const MDITILE_ZORDER: CASCADE_WINDOWS_HOW = 4u32; pub const CBN_CLOSEUP: u32 = 8u32; pub const CBN_DBLCLK: u32 = 2u32; pub const CBN_DROPDOWN: u32 = 7u32; pub const CBN_EDITCHANGE: u32 = 5u32; pub const CBN_EDITUPDATE: u32 = 6u32; pub const CBN_ERRSPACE: i32 = -1i32; pub const CBN_KILLFOCUS: u32 = 4u32; pub const CBN_SELCHANGE: u32 = 1u32; pub const CBN_SELENDCANCEL: u32 = 10u32; pub const CBN_SELENDOK: u32 = 9u32; pub const CBN_SETFOCUS: u32 = 3u32; pub const CBS_AUTOHSCROLL: i32 = 64i32; pub const CBS_DISABLENOSCROLL: i32 = 2048i32; pub const CBS_DROPDOWN: i32 = 2i32; pub const CBS_DROPDOWNLIST: i32 = 3i32; pub const CBS_HASSTRINGS: i32 = 512i32; pub const CBS_LOWERCASE: i32 = 16384i32; pub const CBS_NOINTEGRALHEIGHT: i32 = 1024i32; pub const CBS_OEMCONVERT: i32 = 128i32; pub const CBS_OWNERDRAWFIXED: i32 = 16i32; pub const CBS_OWNERDRAWVARIABLE: i32 = 32i32; pub const CBS_SIMPLE: i32 = 1i32; pub const CBS_SORT: i32 = 256i32; pub const CBS_UPPERCASE: i32 = 8192i32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct CBTACTIVATESTRUCT { pub fMouse: super::super::Foundation::BOOL, pub hWndActive: super::super::Foundation::HWND, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for CBTACTIVATESTRUCT {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for CBTACTIVATESTRUCT { fn clone(&self) -> Self { *self } } #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct CBT_CREATEWNDA { pub lpcs: *mut CREATESTRUCTA, pub hwndInsertAfter: super::super::Foundation::HWND, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for CBT_CREATEWNDA {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for CBT_CREATEWNDA { fn clone(&self) -> Self { *self } } #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct CBT_CREATEWNDW { pub lpcs: *mut CREATESTRUCTW, pub hwndInsertAfter: super::super::Foundation::HWND, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for CBT_CREATEWNDW {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for CBT_CREATEWNDW { fn clone(&self) -> Self { *self } } pub const CB_ADDSTRING: u32 = 323u32; pub const CB_DELETESTRING: u32 = 324u32; pub const CB_DIR: u32 = 325u32; pub const CB_ERR: i32 = -1i32; pub const CB_ERRSPACE: i32 = -2i32; pub const CB_FINDSTRING: u32 = 332u32; pub const CB_FINDSTRINGEXACT: u32 = 344u32; pub const CB_GETCOMBOBOXINFO: u32 = 356u32; pub const CB_GETCOUNT: u32 = 326u32; pub const CB_GETCURSEL: u32 = 327u32; pub const CB_GETDROPPEDCONTROLRECT: u32 = 338u32; pub const CB_GETDROPPEDSTATE: u32 = 343u32; pub const CB_GETDROPPEDWIDTH: u32 = 351u32; pub const CB_GETEDITSEL: u32 = 320u32; pub const CB_GETEXTENDEDUI: u32 = 342u32; pub const CB_GETHORIZONTALEXTENT: u32 = 349u32; pub const CB_GETITEMDATA: u32 = 336u32; pub const CB_GETITEMHEIGHT: u32 = 340u32; pub const CB_GETLBTEXT: u32 = 328u32; pub const CB_GETLBTEXTLEN: u32 = 329u32; pub const CB_GETLOCALE: u32 = 346u32; pub const CB_GETTOPINDEX: u32 = 347u32; pub const CB_INITSTORAGE: u32 = 353u32; pub const CB_INSERTSTRING: u32 = 330u32; pub const CB_LIMITTEXT: u32 = 321u32; pub const CB_MSGMAX: u32 = 357u32; pub const CB_MULTIPLEADDSTRING: u32 = 355u32; pub const CB_OKAY: u32 = 0u32; pub const CB_RESETCONTENT: u32 = 331u32; pub const CB_SELECTSTRING: u32 = 333u32; pub const CB_SETCURSEL: u32 = 334u32; pub const CB_SETDROPPEDWIDTH: u32 = 352u32; pub const CB_SETEDITSEL: u32 = 322u32; pub const CB_SETEXTENDEDUI: u32 = 341u32; pub const CB_SETHORIZONTALEXTENT: u32 = 350u32; pub const CB_SETITEMDATA: u32 = 337u32; pub const CB_SETITEMHEIGHT: u32 = 339u32; pub const CB_SETLOCALE: u32 = 345u32; pub const CB_SETTOPINDEX: u32 = 348u32; pub const CB_SHOWDROPDOWN: u32 = 335u32; pub const CCHILDREN_SCROLLBAR: u32 = 5u32; pub const CCHILDREN_TITLEBAR: u32 = 5u32; #[repr(C)] pub struct CHANGEFILTERSTRUCT { pub cbSize: u32, pub ExtStatus: MSGFLTINFO_STATUS, } impl ::core::marker::Copy for CHANGEFILTERSTRUCT {} impl ::core::clone::Clone for CHANGEFILTERSTRUCT { fn clone(&self) -> Self { *self } } pub type CHANGE_WINDOW_MESSAGE_FILTER_FLAGS = u32; pub const MSGFLT_ADD: CHANGE_WINDOW_MESSAGE_FILTER_FLAGS = 1u32; pub const MSGFLT_REMOVE: CHANGE_WINDOW_MESSAGE_FILTER_FLAGS = 2u32; pub const CHILDID_SELF: u32 = 0u32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct CLIENTCREATESTRUCT { pub hWindowMenu: super::super::Foundation::HANDLE, pub idFirstChild: u32, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for CLIENTCREATESTRUCT {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for CLIENTCREATESTRUCT { fn clone(&self) -> Self { *self } } pub const COLOR_BTNHIGHLIGHT: u32 = 20u32; pub const COLOR_BTNHILIGHT: u32 = 20u32; pub const CONSOLE_APPLICATION_16BIT: u32 = 0u32; pub const CONSOLE_CARET_SELECTION: u32 = 1u32; pub const CONSOLE_CARET_VISIBLE: u32 = 2u32; pub const CONTACTVISUALIZATION_OFF: u32 = 0u32; pub const CONTACTVISUALIZATION_ON: u32 = 1u32; pub const CONTACTVISUALIZATION_PRESENTATIONMODE: u32 = 2u32; pub const CREATEPROCESS_MANIFEST_RESOURCE_ID: u32 = 1u32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct CREATESTRUCTA { pub lpCreateParams: *mut ::core::ffi::c_void, pub hInstance: super::super::Foundation::HINSTANCE, pub hMenu: HMENU, pub hwndParent: super::super::Foundation::HWND, pub cy: i32, pub cx: i32, pub y: i32, pub x: i32, pub style: i32, pub lpszName: super::super::Foundation::PSTR, pub lpszClass: super::super::Foundation::PSTR, pub dwExStyle: u32, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for CREATESTRUCTA {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for CREATESTRUCTA { fn clone(&self) -> Self { *self } } #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct CREATESTRUCTW { pub lpCreateParams: *mut ::core::ffi::c_void, pub hInstance: super::super::Foundation::HINSTANCE, pub hMenu: HMENU, pub hwndParent: super::super::Foundation::HWND, pub cy: i32, pub cx: i32, pub y: i32, pub x: i32, pub style: i32, pub lpszName: super::super::Foundation::PWSTR, pub lpszClass: super::super::Foundation::PWSTR, pub dwExStyle: u32, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for CREATESTRUCTW {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for CREATESTRUCTW { fn clone(&self) -> Self { *self } } pub const CSOUND_SYSTEM: u32 = 16u32; pub const CTLCOLOR_BTN: u32 = 3u32; pub const CTLCOLOR_DLG: u32 = 4u32; pub const CTLCOLOR_EDIT: u32 = 1u32; pub const CTLCOLOR_LISTBOX: u32 = 2u32; pub const CTLCOLOR_MAX: u32 = 7u32; pub const CTLCOLOR_MSGBOX: u32 = 0u32; pub const CTLCOLOR_SCROLLBAR: u32 = 5u32; pub const CTLCOLOR_STATIC: u32 = 6u32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct CURSORINFO { pub cbSize: u32, pub flags: CURSORINFO_FLAGS, pub hCursor: HCURSOR, pub ptScreenPos: super::super::Foundation::POINT, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for CURSORINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for CURSORINFO { fn clone(&self) -> Self { *self } } pub type CURSORINFO_FLAGS = u32; pub const CURSOR_SHOWING: CURSORINFO_FLAGS = 1u32; pub const CURSOR_SUPPRESSED: CURSORINFO_FLAGS = 2u32; #[repr(C)] pub struct CURSORSHAPE { pub xHotSpot: i32, pub yHotSpot: i32, pub cx: i32, pub cy: i32, pub cbWidth: i32, pub Planes: u8, pub BitsPixel: u8, } impl ::core::marker::Copy for CURSORSHAPE {} impl ::core::clone::Clone for CURSORSHAPE { fn clone(&self) -> Self { *self } } pub const CURSOR_CREATION_SCALING_DEFAULT: u32 = 2u32; pub const CURSOR_CREATION_SCALING_NONE: u32 = 1u32; pub const CWF_CREATE_ONLY: u32 = 1u32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct CWPRETSTRUCT { pub lResult: super::super::Foundation::LRESULT, pub lParam: super::super::Foundation::LPARAM, pub wParam: super::super::Foundation::WPARAM, pub message: u32, pub hwnd: super::super::Foundation::HWND, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for CWPRETSTRUCT {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for CWPRETSTRUCT { fn clone(&self) -> Self { *self } } #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct CWPSTRUCT { pub lParam: super::super::Foundation::LPARAM, pub wParam: super::super::Foundation::WPARAM, pub message: u32, pub hwnd: super::super::Foundation::HWND, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for CWPSTRUCT {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for CWPSTRUCT { fn clone(&self) -> Self { *self } } pub type CWP_FLAGS = u32; pub const CWP_ALL: CWP_FLAGS = 0u32; pub const CWP_SKIPINVISIBLE: CWP_FLAGS = 1u32; pub const CWP_SKIPDISABLED: CWP_FLAGS = 2u32; pub const CWP_SKIPTRANSPARENT: CWP_FLAGS = 4u32; pub const CW_USEDEFAULT: i32 = -2147483648i32; pub const DCX_EXCLUDEUPDATE: i32 = 256i32; pub const DC_HASDEFID: u32 = 21323u32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct DEBUGHOOKINFO { pub idThread: u32, pub idThreadInstaller: u32, pub lParam: super::super::Foundation::LPARAM, pub wParam: super::super::Foundation::WPARAM, pub code: i32, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for DEBUGHOOKINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for DEBUGHOOKINFO { fn clone(&self) -> Self { *self } } pub const DESKTOP_CREATEMENU: i32 = 4i32; pub const DESKTOP_CREATEWINDOW: i32 = 2i32; pub const DESKTOP_ENUMERATE: i32 = 64i32; pub const DESKTOP_HOOKCONTROL: i32 = 8i32; pub const DESKTOP_JOURNALPLAYBACK: i32 = 32i32; pub const DESKTOP_JOURNALRECORD: i32 = 16i32; pub const DESKTOP_READOBJECTS: i32 = 1i32; pub const DESKTOP_SWITCHDESKTOP: i32 = 256i32; pub const DESKTOP_WRITEOBJECTS: i32 = 128i32; pub const DEVICE_NOTIFY_ALL_INTERFACE_CLASSES: u32 = 4u32; pub const DF_ALLOWOTHERACCOUNTHOOK: i32 = 1i32; pub const DIFFERENCE: u32 = 11u32; pub type DI_FLAGS = u32; pub const DI_MASK: DI_FLAGS = 1u32; pub const DI_IMAGE: DI_FLAGS = 2u32; pub const DI_NORMAL: DI_FLAGS = 3u32; pub const DI_COMPAT: DI_FLAGS = 4u32; pub const DI_DEFAULTSIZE: DI_FLAGS = 8u32; pub const DI_NOMIRROR: DI_FLAGS = 16u32; pub const DLGC_BUTTON: u32 = 8192u32; pub const DLGC_DEFPUSHBUTTON: u32 = 16u32; pub const DLGC_HASSETSEL: u32 = 8u32; pub const DLGC_RADIOBUTTON: u32 = 64u32; pub const DLGC_STATIC: u32 = 256u32; pub const DLGC_UNDEFPUSHBUTTON: u32 = 32u32; pub const DLGC_WANTALLKEYS: u32 = 4u32; pub const DLGC_WANTARROWS: u32 = 1u32; pub const DLGC_WANTCHARS: u32 = 128u32; pub const DLGC_WANTMESSAGE: u32 = 4u32; pub const DLGC_WANTTAB: u32 = 2u32; #[repr(C, packed(2))] pub struct DLGITEMTEMPLATE { pub style: u32, pub dwExtendedStyle: u32, pub x: i16, pub y: i16, pub cx: i16, pub cy: i16, pub id: u16, } impl ::core::marker::Copy for DLGITEMTEMPLATE {} impl ::core::clone::Clone for DLGITEMTEMPLATE { fn clone(&self) -> Self { *self } } #[cfg(feature = "Win32_Foundation")] pub type DLGPROC = ::core::option::Option<unsafe extern "system" fn(param0: super::super::Foundation::HWND, param1: u32, param2: super::super::Foundation::WPARAM, param3: super::super::Foundation::LPARAM) -> isize>; #[repr(C, packed(2))] pub struct DLGTEMPLATE { pub style: u32, pub dwExtendedStyle: u32, pub cdit: u16, pub x: i16, pub y: i16, pub cx: i16, pub cy: i16, } impl ::core::marker::Copy for DLGTEMPLATE {} impl ::core::clone::Clone for DLGTEMPLATE { fn clone(&self) -> Self { *self } } pub const DLGWINDOWEXTRA: u32 = 30u32; pub const DM_GETDEFID: u32 = 1024u32; pub const DM_POINTERHITTEST: u32 = 592u32; pub const DM_REPOSITION: u32 = 1026u32; pub const DM_SETDEFID: u32 = 1025u32; pub const DOF_DIRECTORY: u32 = 32771u32; pub const DOF_DOCUMENT: u32 = 32770u32; pub const DOF_EXECUTABLE: u32 = 32769u32; pub const DOF_MULTIPLE: u32 = 32772u32; pub const DOF_PROGMAN: u32 = 1u32; pub const DOF_SHELLDATA: u32 = 2u32; pub const DO_DROPFILE: i32 = 1162627398i32; pub const DO_PRINTFILE: i32 = 1414419024i32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct DROPSTRUCT { pub hwndSource: super::super::Foundation::HWND, pub hwndSink: super::super::Foundation::HWND, pub wFmt: u32, pub dwData: usize, pub ptDrop: super::super::Foundation::POINT, pub dwControlData: u32, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for DROPSTRUCT {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for DROPSTRUCT { fn clone(&self) -> Self { *self } } pub const DS_3DLOOK: i32 = 4i32; pub const DS_ABSALIGN: i32 = 1i32; pub const DS_CENTER: i32 = 2048i32; pub const DS_CENTERMOUSE: i32 = 4096i32; pub const DS_CONTEXTHELP: i32 = 8192i32; pub const DS_CONTROL: i32 = 1024i32; pub const DS_FIXEDSYS: i32 = 8i32; pub const DS_LOCALEDIT: i32 = 32i32; pub const DS_MODALFRAME: i32 = 128i32; pub const DS_NOFAILCREATE: i32 = 16i32; pub const DS_NOIDLEMSG: i32 = 256i32; pub const DS_SETFONT: i32 = 64i32; pub const DS_SETFOREGROUND: i32 = 512i32; pub const DS_SYSMODAL: i32 = 2i32; pub const DS_USEPIXELS: i32 = 32768i32; pub const DWLP_MSGRESULT: u32 = 0u32; pub const DWL_DLGPROC: u32 = 4u32; pub const DWL_MSGRESULT: u32 = 0u32; pub const DWL_USER: u32 = 8u32; pub const EC_LEFTMARGIN: u32 = 1u32; pub const EC_RIGHTMARGIN: u32 = 2u32; pub const EC_USEFONTINFO: u32 = 65535u32; pub const EDD_GET_DEVICE_INTERFACE_NAME: u32 = 1u32; pub type EDIT_CONTROL_FEATURE = i32; pub const EDIT_CONTROL_FEATURE_ENTERPRISE_DATA_PROTECTION_PASTE_SUPPORT: EDIT_CONTROL_FEATURE = 0i32; pub const EDIT_CONTROL_FEATURE_PASTE_NOTIFICATIONS: EDIT_CONTROL_FEATURE = 1i32; pub const EDS_RAWMODE: u32 = 2u32; pub const EDS_ROTATEDMODE: u32 = 4u32; pub const EIMES_CANCELCOMPSTRINFOCUS: u32 = 2u32; pub const EIMES_COMPLETECOMPSTRKILLFOCUS: u32 = 4u32; pub const EIMES_GETCOMPSTRATONCE: u32 = 1u32; pub const EMSIS_COMPOSITIONSTRING: u32 = 1u32; pub const ENDSESSION_CLOSEAPP: u32 = 1u32; pub const ENDSESSION_CRITICAL: u32 = 1073741824u32; pub const ENDSESSION_LOGOFF: u32 = 2147483648u32; pub const EN_AFTER_PASTE: u32 = 2049u32; pub const EN_ALIGN_LTR_EC: u32 = 1792u32; pub const EN_ALIGN_RTL_EC: u32 = 1793u32; pub const EN_BEFORE_PASTE: u32 = 2048u32; pub const EN_CHANGE: u32 = 768u32; pub const EN_ERRSPACE: u32 = 1280u32; pub const EN_HSCROLL: u32 = 1537u32; pub const EN_KILLFOCUS: u32 = 512u32; pub const EN_MAXTEXT: u32 = 1281u32; pub const EN_SETFOCUS: u32 = 256u32; pub const EN_UPDATE: u32 = 1024u32; pub const EN_VSCROLL: u32 = 1538u32; pub const ES_AUTOHSCROLL: i32 = 128i32; pub const ES_AUTOVSCROLL: i32 = 64i32; pub const ES_CENTER: i32 = 1i32; pub const ES_LEFT: i32 = 0i32; pub const ES_LOWERCASE: i32 = 16i32; pub const ES_MULTILINE: i32 = 4i32; pub const ES_NOHIDESEL: i32 = 256i32; pub const ES_NUMBER: i32 = 8192i32; pub const ES_OEMCONVERT: i32 = 1024i32; pub const ES_PASSWORD: i32 = 32i32; pub const ES_READONLY: i32 = 2048i32; pub const ES_RIGHT: i32 = 2i32; pub const ES_UPPERCASE: i32 = 8i32; pub const ES_WANTRETURN: i32 = 4096i32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct EVENTMSG { pub message: u32, pub paramL: u32, pub paramH: u32, pub time: u32, pub hwnd: super::super::Foundation::HWND, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for EVENTMSG {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for EVENTMSG { fn clone(&self) -> Self { *self } } pub const EVENT_AIA_END: u32 = 45055u32; pub const EVENT_AIA_START: u32 = 40960u32; pub const EVENT_CONSOLE_CARET: u32 = 16385u32; pub const EVENT_CONSOLE_END: u32 = 16639u32; pub const EVENT_CONSOLE_END_APPLICATION: u32 = 16391u32; pub const EVENT_CONSOLE_LAYOUT: u32 = 16389u32; pub const EVENT_CONSOLE_START_APPLICATION: u32 = 16390u32; pub const EVENT_CONSOLE_UPDATE_REGION: u32 = 16386u32; pub const EVENT_CONSOLE_UPDATE_SCROLL: u32 = 16388u32; pub const EVENT_CONSOLE_UPDATE_SIMPLE: u32 = 16387u32; pub const EVENT_MAX: u32 = 2147483647u32; pub const EVENT_MIN: u32 = 1u32; pub const EVENT_OBJECT_ACCELERATORCHANGE: u32 = 32786u32; pub const EVENT_OBJECT_CLOAKED: u32 = 32791u32; pub const EVENT_OBJECT_CONTENTSCROLLED: u32 = 32789u32; pub const EVENT_OBJECT_CREATE: u32 = 32768u32; pub const EVENT_OBJECT_DEFACTIONCHANGE: u32 = 32785u32; pub const EVENT_OBJECT_DESCRIPTIONCHANGE: u32 = 32781u32; pub const EVENT_OBJECT_DESTROY: u32 = 32769u32; pub const EVENT_OBJECT_DRAGCANCEL: u32 = 32802u32; pub const EVENT_OBJECT_DRAGCOMPLETE: u32 = 32803u32; pub const EVENT_OBJECT_DRAGDROPPED: u32 = 32806u32; pub const EVENT_OBJECT_DRAGENTER: u32 = 32804u32; pub const EVENT_OBJECT_DRAGLEAVE: u32 = 32805u32; pub const EVENT_OBJECT_DRAGSTART: u32 = 32801u32; pub const EVENT_OBJECT_END: u32 = 33023u32; pub const EVENT_OBJECT_FOCUS: u32 = 32773u32; pub const EVENT_OBJECT_HELPCHANGE: u32 = 32784u32; pub const EVENT_OBJECT_HIDE: u32 = 32771u32; pub const EVENT_OBJECT_HOSTEDOBJECTSINVALIDATED: u32 = 32800u32; pub const EVENT_OBJECT_IME_CHANGE: u32 = 32809u32; pub const EVENT_OBJECT_IME_HIDE: u32 = 32808u32; pub const EVENT_OBJECT_IME_SHOW: u32 = 32807u32; pub const EVENT_OBJECT_INVOKED: u32 = 32787u32; pub const EVENT_OBJECT_LIVEREGIONCHANGED: u32 = 32793u32; pub const EVENT_OBJECT_LOCATIONCHANGE: u32 = 32779u32; pub const EVENT_OBJECT_NAMECHANGE: u32 = 32780u32; pub const EVENT_OBJECT_PARENTCHANGE: u32 = 32783u32; pub const EVENT_OBJECT_REORDER: u32 = 32772u32; pub const EVENT_OBJECT_SELECTION: u32 = 32774u32; pub const EVENT_OBJECT_SELECTIONADD: u32 = 32775u32; pub const EVENT_OBJECT_SELECTIONREMOVE: u32 = 32776u32; pub const EVENT_OBJECT_SELECTIONWITHIN: u32 = 32777u32; pub const EVENT_OBJECT_SHOW: u32 = 32770u32; pub const EVENT_OBJECT_STATECHANGE: u32 = 32778u32; pub const EVENT_OBJECT_TEXTEDIT_CONVERSIONTARGETCHANGED: u32 = 32816u32; pub const EVENT_OBJECT_TEXTSELECTIONCHANGED: u32 = 32788u32; pub const EVENT_OBJECT_UNCLOAKED: u32 = 32792u32; pub const EVENT_OBJECT_VALUECHANGE: u32 = 32782u32; pub const EVENT_OEM_DEFINED_END: u32 = 511u32; pub const EVENT_OEM_DEFINED_START: u32 = 257u32; pub const EVENT_SYSTEM_ALERT: u32 = 2u32; pub const EVENT_SYSTEM_ARRANGMENTPREVIEW: u32 = 32790u32; pub const EVENT_SYSTEM_CAPTUREEND: u32 = 9u32; pub const EVENT_SYSTEM_CAPTURESTART: u32 = 8u32; pub const EVENT_SYSTEM_CONTEXTHELPEND: u32 = 13u32; pub const EVENT_SYSTEM_CONTEXTHELPSTART: u32 = 12u32; pub const EVENT_SYSTEM_DESKTOPSWITCH: u32 = 32u32; pub const EVENT_SYSTEM_DIALOGEND: u32 = 17u32; pub const EVENT_SYSTEM_DIALOGSTART: u32 = 16u32; pub const EVENT_SYSTEM_DRAGDROPEND: u32 = 15u32; pub const EVENT_SYSTEM_DRAGDROPSTART: u32 = 14u32; pub const EVENT_SYSTEM_END: u32 = 255u32; pub const EVENT_SYSTEM_FOREGROUND: u32 = 3u32; pub const EVENT_SYSTEM_IME_KEY_NOTIFICATION: u32 = 41u32; pub const EVENT_SYSTEM_MENUEND: u32 = 5u32; pub const EVENT_SYSTEM_MENUPOPUPEND: u32 = 7u32; pub const EVENT_SYSTEM_MENUPOPUPSTART: u32 = 6u32; pub const EVENT_SYSTEM_MENUSTART: u32 = 4u32; pub const EVENT_SYSTEM_MINIMIZEEND: u32 = 23u32; pub const EVENT_SYSTEM_MINIMIZESTART: u32 = 22u32; pub const EVENT_SYSTEM_MOVESIZEEND: u32 = 11u32; pub const EVENT_SYSTEM_MOVESIZESTART: u32 = 10u32; pub const EVENT_SYSTEM_SCROLLINGEND: u32 = 19u32; pub const EVENT_SYSTEM_SCROLLINGSTART: u32 = 18u32; pub const EVENT_SYSTEM_SOUND: u32 = 1u32; pub const EVENT_SYSTEM_SWITCHEND: u32 = 21u32; pub const EVENT_SYSTEM_SWITCHER_APPDROPPED: u32 = 38u32; pub const EVENT_SYSTEM_SWITCHER_APPGRABBED: u32 = 36u32; pub const EVENT_SYSTEM_SWITCHER_APPOVERTARGET: u32 = 37u32; pub const EVENT_SYSTEM_SWITCHER_CANCELLED: u32 = 39u32; pub const EVENT_SYSTEM_SWITCHSTART: u32 = 20u32; pub const EVENT_UIA_EVENTID_END: u32 = 20223u32; pub const EVENT_UIA_EVENTID_START: u32 = 19968u32; pub const EVENT_UIA_PROPID_END: u32 = 30207u32; pub const EVENT_UIA_PROPID_START: u32 = 29952u32; pub const EWX_ARSO: u32 = 67108864u32; pub const EWX_BOOTOPTIONS: u32 = 16777216u32; pub const EWX_CHECK_SAFE_FOR_SERVER: u32 = 134217728u32; pub const EWX_FORCE: u32 = 4u32; pub const EWX_FORCEIFHUNG: u32 = 16u32; pub const EWX_QUICKRESOLVE: u32 = 32u32; pub const EWX_SYSTEM_INITIATED: u32 = 268435456u32; pub const FALT: u32 = 16u32; pub const FAPPCOMMAND_KEY: u32 = 0u32; pub const FAPPCOMMAND_MASK: u32 = 61440u32; pub const FAPPCOMMAND_MOUSE: u32 = 32768u32; pub const FAPPCOMMAND_OEM: u32 = 4096u32; pub const FCONTROL: u32 = 8u32; pub const FE_FONTSMOOTHINGCLEARTYPE: u32 = 2u32; pub const FE_FONTSMOOTHINGORIENTATIONBGR: u32 = 0u32; pub const FE_FONTSMOOTHINGORIENTATIONRGB: u32 = 1u32; pub const FE_FONTSMOOTHINGSTANDARD: u32 = 1u32; pub const FKF_AVAILABLE: u32 = 2u32; pub const FKF_CLICKON: u32 = 64u32; pub const FKF_CONFIRMHOTKEY: u32 = 8u32; pub const FKF_FILTERKEYSON: u32 = 1u32; pub const FKF_HOTKEYACTIVE: u32 = 4u32; pub const FKF_HOTKEYSOUND: u32 = 16u32; pub const FKF_INDICATOR: u32 = 32u32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct FLASHWINFO { pub cbSize: u32, pub hwnd: super::super::Foundation::HWND, pub dwFlags: FLASHWINFO_FLAGS, pub uCount: u32, pub dwTimeout: u32, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FLASHWINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FLASHWINFO { fn clone(&self) -> Self { *self } } pub type FLASHWINFO_FLAGS = u32; pub const FLASHW_ALL: FLASHWINFO_FLAGS = 3u32; pub const FLASHW_CAPTION: FLASHWINFO_FLAGS = 1u32; pub const FLASHW_STOP: FLASHWINFO_FLAGS = 0u32; pub const FLASHW_TIMER: FLASHWINFO_FLAGS = 4u32; pub const FLASHW_TIMERNOFG: FLASHWINFO_FLAGS = 12u32; pub const FLASHW_TRAY: FLASHWINFO_FLAGS = 2u32; pub const FNOINVERT: u32 = 2u32; pub type FOREGROUND_WINDOW_LOCK_CODE = u32; pub const LSFW_LOCK: FOREGROUND_WINDOW_LOCK_CODE = 1u32; pub const LSFW_UNLOCK: FOREGROUND_WINDOW_LOCK_CODE = 2u32; pub const FSHIFT: u32 = 4u32; pub const FVIRTKEY: u32 = 1u32; pub const GCF_INCLUDE_ANCESTORS: u32 = 1u32; pub type GDI_IMAGE_TYPE = u32; pub const IMAGE_BITMAP: GDI_IMAGE_TYPE = 0u32; pub const IMAGE_CURSOR: GDI_IMAGE_TYPE = 2u32; pub const IMAGE_ICON: GDI_IMAGE_TYPE = 1u32; pub const GESTURECONFIGMAXCOUNT: u32 = 256u32; pub const GESTUREVISUALIZATION_DOUBLETAP: u32 = 2u32; pub const GESTUREVISUALIZATION_OFF: u32 = 0u32; pub const GESTUREVISUALIZATION_ON: u32 = 31u32; pub const GESTUREVISUALIZATION_PRESSANDHOLD: u32 = 8u32; pub const GESTUREVISUALIZATION_PRESSANDTAP: u32 = 4u32; pub const GESTUREVISUALIZATION_RIGHTTAP: u32 = 16u32; pub const GESTUREVISUALIZATION_TAP: u32 = 1u32; pub type GET_ANCESTOR_FLAGS = u32; pub const GA_PARENT: GET_ANCESTOR_FLAGS = 1u32; pub const GA_ROOT: GET_ANCESTOR_FLAGS = 2u32; pub const GA_ROOTOWNER: GET_ANCESTOR_FLAGS = 3u32; pub type GET_CLASS_LONG_INDEX = i32; pub const GCW_ATOM: GET_CLASS_LONG_INDEX = -32i32; pub const GCL_CBCLSEXTRA: GET_CLASS_LONG_INDEX = -20i32; pub const GCL_CBWNDEXTRA: GET_CLASS_LONG_INDEX = -18i32; pub const GCL_HBRBACKGROUND: GET_CLASS_LONG_INDEX = -10i32; pub const GCL_HCURSOR: GET_CLASS_LONG_INDEX = -12i32; pub const GCL_HICON: GET_CLASS_LONG_INDEX = -14i32; pub const GCL_HICONSM: GET_CLASS_LONG_INDEX = -34i32; pub const GCL_HMODULE: GET_CLASS_LONG_INDEX = -16i32; pub const GCL_MENUNAME: GET_CLASS_LONG_INDEX = -8i32; pub const GCL_STYLE: GET_CLASS_LONG_INDEX = -26i32; pub const GCL_WNDPROC: GET_CLASS_LONG_INDEX = -24i32; pub const GCLP_HBRBACKGROUND: GET_CLASS_LONG_INDEX = -10i32; pub const GCLP_HCURSOR: GET_CLASS_LONG_INDEX = -12i32; pub const GCLP_HICON: GET_CLASS_LONG_INDEX = -14i32; pub const GCLP_HICONSM: GET_CLASS_LONG_INDEX = -34i32; pub const GCLP_HMODULE: GET_CLASS_LONG_INDEX = -16i32; pub const GCLP_MENUNAME: GET_CLASS_LONG_INDEX = -8i32; pub const GCLP_WNDPROC: GET_CLASS_LONG_INDEX = -24i32; pub type GET_MENU_DEFAULT_ITEM_FLAGS = u32; pub const GMDI_GOINTOPOPUPS: GET_MENU_DEFAULT_ITEM_FLAGS = 2u32; pub const GMDI_USEDISABLED: GET_MENU_DEFAULT_ITEM_FLAGS = 1u32; pub type GET_WINDOW_CMD = u32; pub const GW_CHILD: GET_WINDOW_CMD = 5u32; pub const GW_ENABLEDPOPUP: GET_WINDOW_CMD = 6u32; pub const GW_HWNDFIRST: GET_WINDOW_CMD = 0u32; pub const GW_HWNDLAST: GET_WINDOW_CMD = 1u32; pub const GW_HWNDNEXT: GET_WINDOW_CMD = 2u32; pub const GW_HWNDPREV: GET_WINDOW_CMD = 3u32; pub const GW_OWNER: GET_WINDOW_CMD = 4u32; pub const GF_BEGIN: u32 = 1u32; pub const GF_END: u32 = 4u32; pub const GF_INERTIA: u32 = 2u32; pub const GIDC_ARRIVAL: u32 = 1u32; pub const GIDC_REMOVAL: u32 = 2u32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct GUITHREADINFO { pub cbSize: u32, pub flags: GUITHREADINFO_FLAGS, pub hwndActive: super::super::Foundation::HWND, pub hwndFocus: super::super::Foundation::HWND, pub hwndCapture: super::super::Foundation::HWND, pub hwndMenuOwner: super::super::Foundation::HWND, pub hwndMoveSize: super::super::Foundation::HWND, pub hwndCaret: super::super::Foundation::HWND, pub rcCaret: super::super::Foundation::RECT, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for GUITHREADINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for GUITHREADINFO { fn clone(&self) -> Self { *self } } pub type GUITHREADINFO_FLAGS = u32; pub const GUI_CARETBLINKING: GUITHREADINFO_FLAGS = 1u32; pub const GUI_INMENUMODE: GUITHREADINFO_FLAGS = 4u32; pub const GUI_INMOVESIZE: GUITHREADINFO_FLAGS = 2u32; pub const GUI_POPUPMENUMODE: GUITHREADINFO_FLAGS = 16u32; pub const GUI_SYSTEMMENUMODE: GUITHREADINFO_FLAGS = 8u32; pub const GUI_16BITTASK: u32 = 0u32; pub const GWFS_INCLUDE_ANCESTORS: u32 = 1u32; pub const GW_MAX: u32 = 5u32; pub type HACCEL = isize; pub type HANDEDNESS = i32; pub const HANDEDNESS_LEFT: HANDEDNESS = 0i32; pub const HANDEDNESS_RIGHT: HANDEDNESS = 1i32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct HARDWAREHOOKSTRUCT { pub hwnd: super::super::Foundation::HWND, pub message: u32, pub wParam: super::super::Foundation::WPARAM, pub lParam: super::super::Foundation::LPARAM, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for HARDWAREHOOKSTRUCT {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for HARDWAREHOOKSTRUCT { fn clone(&self) -> Self { *self } } #[cfg(feature = "Win32_Graphics_Gdi")] pub const HBMMENU_CALLBACK: super::super::Graphics::Gdi::HBITMAP = -1i32 as _; #[cfg(feature = "Win32_Graphics_Gdi")] pub const HBMMENU_MBAR_CLOSE: super::super::Graphics::Gdi::HBITMAP = 5i32 as _; #[cfg(feature = "Win32_Graphics_Gdi")] pub const HBMMENU_MBAR_CLOSE_D: super::super::Graphics::Gdi::HBITMAP = 6i32 as _; #[cfg(feature = "Win32_Graphics_Gdi")] pub const HBMMENU_MBAR_MINIMIZE: super::super::Graphics::Gdi::HBITMAP = 3i32 as _; #[cfg(feature = "Win32_Graphics_Gdi")] pub const HBMMENU_MBAR_MINIMIZE_D: super::super::Graphics::Gdi::HBITMAP = 7i32 as _; #[cfg(feature = "Win32_Graphics_Gdi")] pub const HBMMENU_MBAR_RESTORE: super::super::Graphics::Gdi::HBITMAP = 2i32 as _; #[cfg(feature = "Win32_Graphics_Gdi")] pub const HBMMENU_POPUP_CLOSE: super::super::Graphics::Gdi::HBITMAP = 8i32 as _; #[cfg(feature = "Win32_Graphics_Gdi")] pub const HBMMENU_POPUP_MAXIMIZE: super::super::Graphics::Gdi::HBITMAP = 10i32 as _; #[cfg(feature = "Win32_Graphics_Gdi")] pub const HBMMENU_POPUP_MINIMIZE: super::super::Graphics::Gdi::HBITMAP = 11i32 as _; #[cfg(feature = "Win32_Graphics_Gdi")] pub const HBMMENU_POPUP_RESTORE: super::super::Graphics::Gdi::HBITMAP = 9i32 as _; #[cfg(feature = "Win32_Graphics_Gdi")] pub const HBMMENU_SYSTEM: super::super::Graphics::Gdi::HBITMAP = 1i32 as _; pub const HCBT_ACTIVATE: u32 = 5u32; pub const HCBT_CLICKSKIPPED: u32 = 6u32; pub const HCBT_CREATEWND: u32 = 3u32; pub const HCBT_DESTROYWND: u32 = 4u32; pub const HCBT_KEYSKIPPED: u32 = 7u32; pub const HCBT_MINMAX: u32 = 1u32; pub const HCBT_MOVESIZE: u32 = 0u32; pub const HCBT_QS: u32 = 2u32; pub const HCBT_SETFOCUS: u32 = 9u32; pub const HCBT_SYSCOMMAND: u32 = 8u32; pub const HCF_DEFAULTDESKTOP: u32 = 512u32; pub const HCF_LOGONDESKTOP: u32 = 256u32; pub type HCURSOR = isize; pub const HC_ACTION: u32 = 0u32; pub const HC_GETNEXT: u32 = 1u32; pub const HC_NOREM: u32 = 3u32; pub const HC_NOREMOVE: u32 = 3u32; pub const HC_SKIP: u32 = 2u32; pub const HC_SYSMODALOFF: u32 = 5u32; pub const HC_SYSMODALON: u32 = 4u32; pub const HELPINFO_MENUITEM: u32 = 2u32; pub const HELPINFO_WINDOW: u32 = 1u32; pub const HELP_COMMAND: i32 = 258i32; pub const HELP_CONTENTS: i32 = 3i32; pub const HELP_CONTEXT: i32 = 1i32; pub const HELP_CONTEXTMENU: u32 = 10u32; pub const HELP_CONTEXTPOPUP: i32 = 8i32; pub const HELP_FINDER: u32 = 11u32; pub const HELP_FORCEFILE: i32 = 9i32; pub const HELP_HELPONHELP: i32 = 4i32; pub const HELP_INDEX: i32 = 3i32; pub const HELP_KEY: i32 = 257i32; pub const HELP_MULTIKEY: i32 = 513i32; pub const HELP_PARTIALKEY: i32 = 261i32; pub const HELP_QUIT: i32 = 2i32; pub const HELP_SETCONTENTS: i32 = 5i32; pub const HELP_SETINDEX: i32 = 5i32; pub const HELP_SETPOPUP_POS: u32 = 13u32; pub const HELP_SETWINPOS: i32 = 515i32; pub const HELP_TCARD: u32 = 32768u32; pub const HELP_TCARD_DATA: u32 = 16u32; pub const HELP_TCARD_OTHER_CALLER: u32 = 17u32; pub const HELP_WM_HELP: u32 = 12u32; pub type HHOOK = isize; pub type HICON = isize; pub const HIDE_WINDOW: u32 = 0u32; pub const HKL_NEXT: u32 = 1u32; pub const HKL_PREV: u32 = 0u32; pub type HMENU = isize; #[cfg(feature = "Win32_Foundation")] pub type HOOKPROC = ::core::option::Option<unsafe extern "system" fn(code: i32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT>; pub const HSHELL_ACCESSIBILITYSTATE: u32 = 11u32; pub const HSHELL_ACTIVATESHELLWINDOW: u32 = 3u32; pub const HSHELL_APPCOMMAND: u32 = 12u32; pub const HSHELL_ENDTASK: u32 = 10u32; pub const HSHELL_GETMINRECT: u32 = 5u32; pub const HSHELL_HIGHBIT: u32 = 32768u32; pub const HSHELL_LANGUAGE: u32 = 8u32; pub const HSHELL_MONITORCHANGED: u32 = 16u32; pub const HSHELL_REDRAW: u32 = 6u32; pub const HSHELL_SYSMENU: u32 = 9u32; pub const HSHELL_TASKMAN: u32 = 7u32; pub const HSHELL_WINDOWACTIVATED: u32 = 4u32; pub const HSHELL_WINDOWCREATED: u32 = 1u32; pub const HSHELL_WINDOWDESTROYED: u32 = 2u32; pub const HSHELL_WINDOWREPLACED: u32 = 13u32; pub const HSHELL_WINDOWREPLACING: u32 = 14u32; pub const HTBORDER: u32 = 18u32; pub const HTBOTTOM: u32 = 15u32; pub const HTBOTTOMLEFT: u32 = 16u32; pub const HTBOTTOMRIGHT: u32 = 17u32; pub const HTCAPTION: u32 = 2u32; pub const HTCLIENT: u32 = 1u32; pub const HTCLOSE: u32 = 20u32; pub const HTERROR: i32 = -2i32; pub const HTGROWBOX: u32 = 4u32; pub const HTHELP: u32 = 21u32; pub const HTHSCROLL: u32 = 6u32; pub const HTLEFT: u32 = 10u32; pub const HTMAXBUTTON: u32 = 9u32; pub const HTMENU: u32 = 5u32; pub const HTMINBUTTON: u32 = 8u32; pub const HTNOWHERE: u32 = 0u32; pub const HTOBJECT: u32 = 19u32; pub const HTREDUCE: u32 = 8u32; pub const HTRIGHT: u32 = 11u32; pub const HTSIZE: u32 = 4u32; pub const HTSIZEFIRST: u32 = 10u32; pub const HTSIZELAST: u32 = 17u32; pub const HTSYSMENU: u32 = 3u32; pub const HTTOP: u32 = 12u32; pub const HTTOPLEFT: u32 = 13u32; pub const HTTOPRIGHT: u32 = 14u32; pub const HTTRANSPARENT: i32 = -1i32; pub const HTVSCROLL: u32 = 7u32; pub const HTZOOM: u32 = 9u32; #[cfg(feature = "Win32_Foundation")] pub const HWND_BOTTOM: super::super::Foundation::HWND = 1i32 as _; #[cfg(feature = "Win32_Foundation")] pub const HWND_DESKTOP: super::super::Foundation::HWND = 0i32 as _; #[cfg(feature = "Win32_Foundation")] pub const HWND_MESSAGE: super::super::Foundation::HWND = -3i32 as _; #[cfg(feature = "Win32_Foundation")] pub const HWND_NOTOPMOST: super::super::Foundation::HWND = -2i32 as _; #[cfg(feature = "Win32_Foundation")] pub const HWND_TOP: super::super::Foundation::HWND = 0i32 as _; #[cfg(feature = "Win32_Foundation")] pub const HWND_TOPMOST: super::super::Foundation::HWND = -1i32 as _; #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct ICONINFO { pub fIcon: super::super::Foundation::BOOL, pub xHotspot: u32, pub yHotspot: u32, pub hbmMask: super::super::Graphics::Gdi::HBITMAP, pub hbmColor: super::super::Graphics::Gdi::HBITMAP, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for ICONINFO {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for ICONINFO { fn clone(&self) -> Self { *self } } #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct ICONINFOEXA { pub cbSize: u32, pub fIcon: super::super::Foundation::BOOL, pub xHotspot: u32, pub yHotspot: u32, pub hbmMask: super::super::Graphics::Gdi::HBITMAP, pub hbmColor: super::super::Graphics::Gdi::HBITMAP, pub wResID: u16, pub szModName: [super::super::Foundation::CHAR; 260], pub szResName: [super::super::Foundation::CHAR; 260], } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for ICONINFOEXA {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for ICONINFOEXA { fn clone(&self) -> Self { *self } } #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct ICONINFOEXW { pub cbSize: u32, pub fIcon: super::super::Foundation::BOOL, pub xHotspot: u32, pub yHotspot: u32, pub hbmMask: super::super::Graphics::Gdi::HBITMAP, pub hbmColor: super::super::Graphics::Gdi::HBITMAP, pub wResID: u16, pub szModName: [u16; 260], pub szResName: [u16; 260], } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for ICONINFOEXW {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for ICONINFOEXW { fn clone(&self) -> Self { *self } } #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct ICONMETRICSA { pub cbSize: u32, pub iHorzSpacing: i32, pub iVertSpacing: i32, pub iTitleWrap: i32, pub lfFont: super::super::Graphics::Gdi::LOGFONTA, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for ICONMETRICSA {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for ICONMETRICSA { fn clone(&self) -> Self { *self } } #[repr(C)] #[cfg(feature = "Win32_Graphics_Gdi")] pub struct ICONMETRICSW { pub cbSize: u32, pub iHorzSpacing: i32, pub iVertSpacing: i32, pub iTitleWrap: i32, pub lfFont: super::super::Graphics::Gdi::LOGFONTW, } #[cfg(feature = "Win32_Graphics_Gdi")] impl ::core::marker::Copy for ICONMETRICSW {} #[cfg(feature = "Win32_Graphics_Gdi")] impl ::core::clone::Clone for ICONMETRICSW { fn clone(&self) -> Self { *self } } pub const ICON_BIG: u32 = 1u32; pub const ICON_SMALL: u32 = 0u32; pub const ICON_SMALL2: u32 = 2u32; pub const IDANI_CAPTION: u32 = 3u32; pub const IDANI_OPEN: u32 = 1u32; #[cfg(feature = "Win32_Foundation")] pub const IDC_APPSTARTING: super::super::Foundation::PWSTR = 32650i32 as _; #[cfg(feature = "Win32_Foundation")] pub const IDC_ARROW: super::super::Foundation::PWSTR = 32512i32 as _; #[cfg(feature = "Win32_Foundation")] pub const IDC_CROSS: super::super::Foundation::PWSTR = 32515i32 as _; #[cfg(feature = "Win32_Foundation")] pub const IDC_HAND: super::super::Foundation::PWSTR = 32649i32 as _; #[cfg(feature = "Win32_Foundation")] pub const IDC_HELP: super::super::Foundation::PWSTR = 32651i32 as _; #[cfg(feature = "Win32_Foundation")] pub const IDC_IBEAM: super::super::Foundation::PWSTR = 32513i32 as _; #[cfg(feature = "Win32_Foundation")] pub const IDC_ICON: super::super::Foundation::PWSTR = 32641i32 as _; #[cfg(feature = "Win32_Foundation")] pub const IDC_NO: super::super::Foundation::PWSTR = 32648i32 as _; #[cfg(feature = "Win32_Foundation")] pub const IDC_PERSON: super::super::Foundation::PWSTR = 32672i32 as _; #[cfg(feature = "Win32_Foundation")] pub const IDC_PIN: super::super::Foundation::PWSTR = 32671i32 as _; #[cfg(feature = "Win32_Foundation")] pub const IDC_SIZE: super::super::Foundation::PWSTR = 32640i32 as _; #[cfg(feature = "Win32_Foundation")] pub const IDC_SIZEALL: super::super::Foundation::PWSTR = 32646i32 as _; #[cfg(feature = "Win32_Foundation")] pub const IDC_SIZENESW: super::super::Foundation::PWSTR = 32643i32 as _; #[cfg(feature = "Win32_Foundation")] pub const IDC_SIZENS: super::super::Foundation::PWSTR = 32645i32 as _; #[cfg(feature = "Win32_Foundation")] pub const IDC_SIZENWSE: super::super::Foundation::PWSTR = 32642i32 as _; #[cfg(feature = "Win32_Foundation")] pub const IDC_SIZEWE: super::super::Foundation::PWSTR = 32644i32 as _; #[cfg(feature = "Win32_Foundation")] pub const IDC_UPARROW: super::super::Foundation::PWSTR = 32516i32 as _; #[cfg(feature = "Win32_Foundation")] pub const IDC_WAIT: super::super::Foundation::PWSTR = 32514i32 as _; pub const IDHOT_SNAPDESKTOP: i32 = -2i32; pub const IDHOT_SNAPWINDOW: i32 = -1i32; pub const IDH_CANCEL: u32 = 28444u32; pub const IDH_GENERIC_HELP_BUTTON: u32 = 28442u32; pub const IDH_HELP: u32 = 28445u32; pub const IDH_MISSING_CONTEXT: u32 = 28441u32; pub const IDH_NO_HELP: u32 = 28440u32; pub const IDH_OK: u32 = 28443u32; #[cfg(feature = "Win32_Foundation")] pub const IDI_APPLICATION: super::super::Foundation::PWSTR = 32512u32 as _; #[cfg(feature = "Win32_Foundation")] pub const IDI_ASTERISK: super::super::Foundation::PWSTR = 32516u32 as _; pub const IDI_ERROR: u32 = 32513u32; #[cfg(feature = "Win32_Foundation")] pub const IDI_EXCLAMATION: super::super::Foundation::PWSTR = 32515u32 as _; #[cfg(feature = "Win32_Foundation")] pub const IDI_HAND: super::super::Foundation::PWSTR = 32513u32 as _; pub const IDI_INFORMATION: u32 = 32516u32; #[cfg(feature = "Win32_Foundation")] pub const IDI_QUESTION: super::super::Foundation::PWSTR = 32514u32 as _; #[cfg(feature = "Win32_Foundation")] pub const IDI_SHIELD: super::super::Foundation::PWSTR = 32518u32 as _; pub const IDI_WARNING: u32 = 32515u32; #[cfg(feature = "Win32_Foundation")] pub const IDI_WINLOGO: super::super::Foundation::PWSTR = 32517u32 as _; pub const IMAGE_ENHMETAFILE: u32 = 3u32; pub type IMAGE_FLAGS = u32; pub const LR_CREATEDIBSECTION: IMAGE_FLAGS = 8192u32; pub const LR_DEFAULTCOLOR: IMAGE_FLAGS = 0u32; pub const LR_DEFAULTSIZE: IMAGE_FLAGS = 64u32; pub const LR_LOADFROMFILE: IMAGE_FLAGS = 16u32; pub const LR_LOADMAP3DCOLORS: IMAGE_FLAGS = 4096u32; pub const LR_LOADTRANSPARENT: IMAGE_FLAGS = 32u32; pub const LR_MONOCHROME: IMAGE_FLAGS = 1u32; pub const LR_SHARED: IMAGE_FLAGS = 32768u32; pub const LR_VGACOLOR: IMAGE_FLAGS = 128u32; pub const LR_COPYDELETEORG: IMAGE_FLAGS = 8u32; pub const LR_COPYFROMRESOURCE: IMAGE_FLAGS = 16384u32; pub const LR_COPYRETURNORG: IMAGE_FLAGS = 4u32; pub const INDEXID_CONTAINER: u32 = 0u32; pub const INDEXID_OBJECT: u32 = 0u32; pub const INPUTLANGCHANGE_BACKWARD: u32 = 4u32; pub const INPUTLANGCHANGE_FORWARD: u32 = 2u32; pub const INPUTLANGCHANGE_SYSCHARSET: u32 = 1u32; pub const ISMEX_CALLBACK: u32 = 4u32; pub const ISMEX_NOSEND: u32 = 0u32; pub const ISMEX_NOTIFY: u32 = 2u32; pub const ISMEX_REPLIED: u32 = 8u32; pub const ISMEX_SEND: u32 = 1u32; pub const ISOLATIONAWARE_MANIFEST_RESOURCE_ID: u32 = 2u32; pub const ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID: u32 = 3u32; pub const ISOLATIONPOLICY_BROWSER_MANIFEST_RESOURCE_ID: u32 = 5u32; pub const ISOLATIONPOLICY_MANIFEST_RESOURCE_ID: u32 = 4u32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct IndexedResourceQualifier { pub name: super::super::Foundation::PWSTR, pub value: super::super::Foundation::PWSTR, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for IndexedResourceQualifier {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for IndexedResourceQualifier { fn clone(&self) -> Self { *self } } #[repr(C)] pub struct KBDLLHOOKSTRUCT { pub vkCode: u32, pub scanCode: u32, pub flags: KBDLLHOOKSTRUCT_FLAGS, pub time: u32, pub dwExtraInfo: usize, } impl ::core::marker::Copy for KBDLLHOOKSTRUCT {} impl ::core::clone::Clone for KBDLLHOOKSTRUCT { fn clone(&self) -> Self { *self } } pub type KBDLLHOOKSTRUCT_FLAGS = u32; pub const LLKHF_EXTENDED: KBDLLHOOKSTRUCT_FLAGS = 1u32; pub const LLKHF_ALTDOWN: KBDLLHOOKSTRUCT_FLAGS = 32u32; pub const LLKHF_UP: KBDLLHOOKSTRUCT_FLAGS = 128u32; pub const LLKHF_INJECTED: KBDLLHOOKSTRUCT_FLAGS = 16u32; pub const LLKHF_LOWER_IL_INJECTED: KBDLLHOOKSTRUCT_FLAGS = 2u32; pub const KF_ALTDOWN: u32 = 8192u32; pub const KF_DLGMODE: u32 = 2048u32; pub const KF_EXTENDED: u32 = 256u32; pub const KF_MENUMODE: u32 = 4096u32; pub const KF_REPEAT: u32 = 16384u32; pub const KF_UP: u32 = 32768u32; pub const KL_NAMELENGTH: u32 = 9u32; pub type LAYERED_WINDOW_ATTRIBUTES_FLAGS = u32; pub const LWA_ALPHA: LAYERED_WINDOW_ATTRIBUTES_FLAGS = 2u32; pub const LWA_COLORKEY: LAYERED_WINDOW_ATTRIBUTES_FLAGS = 1u32; pub const LBN_DBLCLK: u32 = 2u32; pub const LBN_ERRSPACE: i32 = -2i32; pub const LBN_KILLFOCUS: u32 = 5u32; pub const LBN_SELCANCEL: u32 = 3u32; pub const LBN_SELCHANGE: u32 = 1u32; pub const LBN_SETFOCUS: u32 = 4u32; pub const LBS_COMBOBOX: i32 = 32768i32; pub const LBS_DISABLENOSCROLL: i32 = 4096i32; pub const LBS_EXTENDEDSEL: i32 = 2048i32; pub const LBS_HASSTRINGS: i32 = 64i32; pub const LBS_MULTICOLUMN: i32 = 512i32; pub const LBS_MULTIPLESEL: i32 = 8i32; pub const LBS_NODATA: i32 = 8192i32; pub const LBS_NOINTEGRALHEIGHT: i32 = 256i32; pub const LBS_NOREDRAW: i32 = 4i32; pub const LBS_NOSEL: i32 = 16384i32; pub const LBS_NOTIFY: i32 = 1i32; pub const LBS_OWNERDRAWFIXED: i32 = 16i32; pub const LBS_OWNERDRAWVARIABLE: i32 = 32i32; pub const LBS_SORT: i32 = 2i32; pub const LBS_STANDARD: i32 = 10485763i32; pub const LBS_USETABSTOPS: i32 = 128i32; pub const LBS_WANTKEYBOARDINPUT: i32 = 1024i32; pub const LB_ADDFILE: u32 = 406u32; pub const LB_ADDSTRING: u32 = 384u32; pub const LB_CTLCODE: i32 = 0i32; pub const LB_DELETESTRING: u32 = 386u32; pub const LB_DIR: u32 = 397u32; pub const LB_ERR: i32 = -1i32; pub const LB_ERRSPACE: i32 = -2i32; pub const LB_FINDSTRING: u32 = 399u32; pub const LB_FINDSTRINGEXACT: u32 = 418u32; pub const LB_GETANCHORINDEX: u32 = 413u32; pub const LB_GETCARETINDEX: u32 = 415u32; pub const LB_GETCOUNT: u32 = 395u32; pub const LB_GETCURSEL: u32 = 392u32; pub const LB_GETHORIZONTALEXTENT: u32 = 403u32; pub const LB_GETITEMDATA: u32 = 409u32; pub const LB_GETITEMHEIGHT: u32 = 417u32; pub const LB_GETITEMRECT: u32 = 408u32; pub const LB_GETLISTBOXINFO: u32 = 434u32; pub const LB_GETLOCALE: u32 = 422u32; pub const LB_GETSEL: u32 = 391u32; pub const LB_GETSELCOUNT: u32 = 400u32; pub const LB_GETSELITEMS: u32 = 401u32; pub const LB_GETTEXT: u32 = 393u32; pub const LB_GETTEXTLEN: u32 = 394u32; pub const LB_GETTOPINDEX: u32 = 398u32; pub const LB_INITSTORAGE: u32 = 424u32; pub const LB_INSERTSTRING: u32 = 385u32; pub const LB_ITEMFROMPOINT: u32 = 425u32; pub const LB_MSGMAX: u32 = 435u32; pub const LB_MULTIPLEADDSTRING: u32 = 433u32; pub const LB_OKAY: u32 = 0u32; pub const LB_RESETCONTENT: u32 = 388u32; pub const LB_SELECTSTRING: u32 = 396u32; pub const LB_SELITEMRANGE: u32 = 411u32; pub const LB_SELITEMRANGEEX: u32 = 387u32; pub const LB_SETANCHORINDEX: u32 = 412u32; pub const LB_SETCARETINDEX: u32 = 414u32; pub const LB_SETCOLUMNWIDTH: u32 = 405u32; pub const LB_SETCOUNT: u32 = 423u32; pub const LB_SETCURSEL: u32 = 390u32; pub const LB_SETHORIZONTALEXTENT: u32 = 404u32; pub const LB_SETITEMDATA: u32 = 410u32; pub const LB_SETITEMHEIGHT: u32 = 416u32; pub const LB_SETLOCALE: u32 = 421u32; pub const LB_SETSEL: u32 = 389u32; pub const LB_SETTABSTOPS: u32 = 402u32; pub const LB_SETTOPINDEX: u32 = 407u32; pub const LLMHF_INJECTED: u32 = 1u32; pub const LLMHF_LOWER_IL_INJECTED: u32 = 2u32; pub const LR_COLOR: u32 = 2u32; pub const MAPVK_VK_TO_CHAR: u32 = 2u32; pub const MAPVK_VK_TO_VSC: u32 = 0u32; pub const MAPVK_VK_TO_VSC_EX: u32 = 4u32; pub const MAPVK_VSC_TO_VK: u32 = 1u32; pub const MAPVK_VSC_TO_VK_EX: u32 = 3u32; pub const MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID: u32 = 16u32; pub const MAX_LOGICALDPIOVERRIDE: u32 = 2u32; pub const MAX_STR_BLOCKREASON: u32 = 256u32; pub const MAX_TOUCH_COUNT: u32 = 256u32; pub const MAX_TOUCH_PREDICTION_FILTER_TAPS: u32 = 3u32; pub const MA_ACTIVATE: u32 = 1u32; pub const MA_ACTIVATEANDEAT: u32 = 2u32; pub const MA_NOACTIVATE: u32 = 3u32; pub const MA_NOACTIVATEANDEAT: u32 = 4u32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct MDICREATESTRUCTA { pub szClass: super::super::Foundation::PSTR, pub szTitle: super::super::Foundation::PSTR, pub hOwner: super::super::Foundation::HANDLE, pub x: i32, pub y: i32, pub cx: i32, pub cy: i32, pub style: WINDOW_STYLE, pub lParam: super::super::Foundation::LPARAM, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for MDICREATESTRUCTA {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for MDICREATESTRUCTA { fn clone(&self) -> Self { *self } } #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct MDICREATESTRUCTW { pub szClass: super::super::Foundation::PWSTR, pub szTitle: super::super::Foundation::PWSTR, pub hOwner: super::super::Foundation::HANDLE, pub x: i32, pub y: i32, pub cx: i32, pub cy: i32, pub style: WINDOW_STYLE, pub lParam: super::super::Foundation::LPARAM, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for MDICREATESTRUCTW {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for MDICREATESTRUCTW { fn clone(&self) -> Self { *self } } #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct MDINEXTMENU { pub hmenuIn: HMENU, pub hmenuNext: HMENU, pub hwndNext: super::super::Foundation::HWND, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for MDINEXTMENU {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for MDINEXTMENU { fn clone(&self) -> Self { *self } } pub const MDIS_ALLCHILDSTYLES: u32 = 1u32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct MENUBARINFO { pub cbSize: u32, pub rcBar: super::super::Foundation::RECT, pub hMenu: HMENU, pub hwndMenu: super::super::Foundation::HWND, pub _bitfield: i32, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for MENUBARINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for MENUBARINFO { fn clone(&self) -> Self { *self } } #[repr(C)] pub struct MENUGETOBJECTINFO { pub dwFlags: MENUGETOBJECTINFO_FLAGS, pub uPos: u32, pub hmenu: HMENU, pub riid: *mut ::core::ffi::c_void, pub pvObj: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for MENUGETOBJECTINFO {} impl ::core::clone::Clone for MENUGETOBJECTINFO { fn clone(&self) -> Self { *self } } pub type MENUGETOBJECTINFO_FLAGS = u32; pub const MNGOF_BOTTOMGAP: MENUGETOBJECTINFO_FLAGS = 2u32; pub const MNGOF_TOPGAP: MENUGETOBJECTINFO_FLAGS = 1u32; #[repr(C)] #[cfg(feature = "Win32_Graphics_Gdi")] pub struct MENUINFO { pub cbSize: u32, pub fMask: MENUINFO_MASK, pub dwStyle: MENUINFO_STYLE, pub cyMax: u32, pub hbrBack: super::super::Graphics::Gdi::HBRUSH, pub dwContextHelpID: u32, pub dwMenuData: usize, } #[cfg(feature = "Win32_Graphics_Gdi")] impl ::core::marker::Copy for MENUINFO {} #[cfg(feature = "Win32_Graphics_Gdi")] impl ::core::clone::Clone for MENUINFO { fn clone(&self) -> Self { *self } } pub type MENUINFO_MASK = u32; pub const MIM_APPLYTOSUBMENUS: MENUINFO_MASK = 2147483648u32; pub const MIM_BACKGROUND: MENUINFO_MASK = 2u32; pub const MIM_HELPID: MENUINFO_MASK = 4u32; pub const MIM_MAXHEIGHT: MENUINFO_MASK = 1u32; pub const MIM_MENUDATA: MENUINFO_MASK = 8u32; pub const MIM_STYLE: MENUINFO_MASK = 16u32; pub type MENUINFO_STYLE = u32; pub const MNS_AUTODISMISS: MENUINFO_STYLE = 268435456u32; pub const MNS_CHECKORBMP: MENUINFO_STYLE = 67108864u32; pub const MNS_DRAGDROP: MENUINFO_STYLE = 536870912u32; pub const MNS_MODELESS: MENUINFO_STYLE = 1073741824u32; pub const MNS_NOCHECK: MENUINFO_STYLE = 2147483648u32; pub const MNS_NOTIFYBYPOS: MENUINFO_STYLE = 134217728u32; #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct MENUITEMINFOA { pub cbSize: u32, pub fMask: MENU_ITEM_MASK, pub fType: MENU_ITEM_TYPE, pub fState: MENU_ITEM_STATE, pub wID: u32, pub hSubMenu: HMENU, pub hbmpChecked: super::super::Graphics::Gdi::HBITMAP, pub hbmpUnchecked: super::super::Graphics::Gdi::HBITMAP, pub dwItemData: usize, pub dwTypeData: super::super::Foundation::PSTR, pub cch: u32, pub hbmpItem: super::super::Graphics::Gdi::HBITMAP, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for MENUITEMINFOA {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for MENUITEMINFOA { fn clone(&self) -> Self { *self } } #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct MENUITEMINFOW { pub cbSize: u32, pub fMask: MENU_ITEM_MASK, pub fType: MENU_ITEM_TYPE, pub fState: MENU_ITEM_STATE, pub wID: u32, pub hSubMenu: HMENU, pub hbmpChecked: super::super::Graphics::Gdi::HBITMAP, pub hbmpUnchecked: super::super::Graphics::Gdi::HBITMAP, pub dwItemData: usize, pub dwTypeData: super::super::Foundation::PWSTR, pub cch: u32, pub hbmpItem: super::super::Graphics::Gdi::HBITMAP, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for MENUITEMINFOW {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for MENUITEMINFOW { fn clone(&self) -> Self { *self } } #[repr(C)] pub struct MENUITEMTEMPLATE { pub mtOption: u16, pub mtID: u16, pub mtString: [u16; 1], } impl ::core::marker::Copy for MENUITEMTEMPLATE {} impl ::core::clone::Clone for MENUITEMTEMPLATE { fn clone(&self) -> Self { *self } } #[repr(C)] pub struct MENUITEMTEMPLATEHEADER { pub versionNumber: u16, pub offset: u16, } impl ::core::marker::Copy for MENUITEMTEMPLATEHEADER {} impl ::core::clone::Clone for MENUITEMTEMPLATEHEADER { fn clone(&self) -> Self { *self } } pub type MENU_ITEM_FLAGS = u32; pub const MF_BYCOMMAND: MENU_ITEM_FLAGS = 0u32; pub const MF_BYPOSITION: MENU_ITEM_FLAGS = 1024u32; pub const MF_BITMAP: MENU_ITEM_FLAGS = 4u32; pub const MF_CHECKED: MENU_ITEM_FLAGS = 8u32; pub const MF_DISABLED: MENU_ITEM_FLAGS = 2u32; pub const MF_ENABLED: MENU_ITEM_FLAGS = 0u32; pub const MF_GRAYED: MENU_ITEM_FLAGS = 1u32; pub const MF_MENUBARBREAK: MENU_ITEM_FLAGS = 32u32; pub const MF_MENUBREAK: MENU_ITEM_FLAGS = 64u32; pub const MF_OWNERDRAW: MENU_ITEM_FLAGS = 256u32; pub const MF_POPUP: MENU_ITEM_FLAGS = 16u32; pub const MF_SEPARATOR: MENU_ITEM_FLAGS = 2048u32; pub const MF_STRING: MENU_ITEM_FLAGS = 0u32; pub const MF_UNCHECKED: MENU_ITEM_FLAGS = 0u32; pub const MF_INSERT: MENU_ITEM_FLAGS = 0u32; pub const MF_CHANGE: MENU_ITEM_FLAGS = 128u32; pub const MF_APPEND: MENU_ITEM_FLAGS = 256u32; pub const MF_DELETE: MENU_ITEM_FLAGS = 512u32; pub const MF_REMOVE: MENU_ITEM_FLAGS = 4096u32; pub const MF_USECHECKBITMAPS: MENU_ITEM_FLAGS = 512u32; pub const MF_UNHILITE: MENU_ITEM_FLAGS = 0u32; pub const MF_HILITE: MENU_ITEM_FLAGS = 128u32; pub const MF_DEFAULT: MENU_ITEM_FLAGS = 4096u32; pub const MF_SYSMENU: MENU_ITEM_FLAGS = 8192u32; pub const MF_HELP: MENU_ITEM_FLAGS = 16384u32; pub const MF_RIGHTJUSTIFY: MENU_ITEM_FLAGS = 16384u32; pub const MF_MOUSESELECT: MENU_ITEM_FLAGS = 32768u32; pub const MF_END: MENU_ITEM_FLAGS = 128u32; pub type MENU_ITEM_MASK = u32; pub const MIIM_BITMAP: MENU_ITEM_MASK = 128u32; pub const MIIM_CHECKMARKS: MENU_ITEM_MASK = 8u32; pub const MIIM_DATA: MENU_ITEM_MASK = 32u32; pub const MIIM_FTYPE: MENU_ITEM_MASK = 256u32; pub const MIIM_ID: MENU_ITEM_MASK = 2u32; pub const MIIM_STATE: MENU_ITEM_MASK = 1u32; pub const MIIM_STRING: MENU_ITEM_MASK = 64u32; pub const MIIM_SUBMENU: MENU_ITEM_MASK = 4u32; pub const MIIM_TYPE: MENU_ITEM_MASK = 16u32; pub type MENU_ITEM_STATE = u32; pub const MFS_GRAYED: MENU_ITEM_STATE = 3u32; pub const MFS_DISABLED: MENU_ITEM_STATE = 3u32; pub const MFS_CHECKED: MENU_ITEM_STATE = 8u32; pub const MFS_HILITE: MENU_ITEM_STATE = 128u32; pub const MFS_ENABLED: MENU_ITEM_STATE = 0u32; pub const MFS_UNCHECKED: MENU_ITEM_STATE = 0u32; pub const MFS_UNHILITE: MENU_ITEM_STATE = 0u32; pub const MFS_DEFAULT: MENU_ITEM_STATE = 4096u32; pub type MENU_ITEM_TYPE = u32; pub const MFT_BITMAP: MENU_ITEM_TYPE = 4u32; pub const MFT_MENUBARBREAK: MENU_ITEM_TYPE = 32u32; pub const MFT_MENUBREAK: MENU_ITEM_TYPE = 64u32; pub const MFT_OWNERDRAW: MENU_ITEM_TYPE = 256u32; pub const MFT_RADIOCHECK: MENU_ITEM_TYPE = 512u32; pub const MFT_RIGHTJUSTIFY: MENU_ITEM_TYPE = 16384u32; pub const MFT_RIGHTORDER: MENU_ITEM_TYPE = 8192u32; pub const MFT_SEPARATOR: MENU_ITEM_TYPE = 2048u32; pub const MFT_STRING: MENU_ITEM_TYPE = 0u32; pub type MESSAGEBOX_RESULT = i32; pub const IDOK: MESSAGEBOX_RESULT = 1i32; pub const IDCANCEL: MESSAGEBOX_RESULT = 2i32; pub const IDABORT: MESSAGEBOX_RESULT = 3i32; pub const IDRETRY: MESSAGEBOX_RESULT = 4i32; pub const IDIGNORE: MESSAGEBOX_RESULT = 5i32; pub const IDYES: MESSAGEBOX_RESULT = 6i32; pub const IDNO: MESSAGEBOX_RESULT = 7i32; pub const IDCLOSE: MESSAGEBOX_RESULT = 8i32; pub const IDHELP: MESSAGEBOX_RESULT = 9i32; pub const IDTRYAGAIN: MESSAGEBOX_RESULT = 10i32; pub const IDCONTINUE: MESSAGEBOX_RESULT = 11i32; pub const IDASYNC: MESSAGEBOX_RESULT = 32001i32; pub const IDTIMEOUT: MESSAGEBOX_RESULT = 32000i32; pub type MESSAGEBOX_STYLE = u32; pub const MB_ABORTRETRYIGNORE: MESSAGEBOX_STYLE = 2u32; pub const MB_CANCELTRYCONTINUE: MESSAGEBOX_STYLE = 6u32; pub const MB_HELP: MESSAGEBOX_STYLE = 16384u32; pub const MB_OK: MESSAGEBOX_STYLE = 0u32; pub const MB_OKCANCEL: MESSAGEBOX_STYLE = 1u32; pub const MB_RETRYCANCEL: MESSAGEBOX_STYLE = 5u32; pub const MB_YESNO: MESSAGEBOX_STYLE = 4u32; pub const MB_YESNOCANCEL: MESSAGEBOX_STYLE = 3u32; pub const MB_ICONHAND: MESSAGEBOX_STYLE = 16u32; pub const MB_ICONQUESTION: MESSAGEBOX_STYLE = 32u32; pub const MB_ICONEXCLAMATION: MESSAGEBOX_STYLE = 48u32; pub const MB_ICONASTERISK: MESSAGEBOX_STYLE = 64u32; pub const MB_USERICON: MESSAGEBOX_STYLE = 128u32; pub const MB_ICONWARNING: MESSAGEBOX_STYLE = 48u32; pub const MB_ICONERROR: MESSAGEBOX_STYLE = 16u32; pub const MB_ICONINFORMATION: MESSAGEBOX_STYLE = 64u32; pub const MB_ICONSTOP: MESSAGEBOX_STYLE = 16u32; pub const MB_DEFBUTTON1: MESSAGEBOX_STYLE = 0u32; pub const MB_DEFBUTTON2: MESSAGEBOX_STYLE = 256u32; pub const MB_DEFBUTTON3: MESSAGEBOX_STYLE = 512u32; pub const MB_DEFBUTTON4: MESSAGEBOX_STYLE = 768u32; pub const MB_APPLMODAL: MESSAGEBOX_STYLE = 0u32; pub const MB_SYSTEMMODAL: MESSAGEBOX_STYLE = 4096u32; pub const MB_TASKMODAL: MESSAGEBOX_STYLE = 8192u32; pub const MB_NOFOCUS: MESSAGEBOX_STYLE = 32768u32; pub const MB_SETFOREGROUND: MESSAGEBOX_STYLE = 65536u32; pub const MB_DEFAULT_DESKTOP_ONLY: MESSAGEBOX_STYLE = 131072u32; pub const MB_TOPMOST: MESSAGEBOX_STYLE = 262144u32; pub const MB_RIGHT: MESSAGEBOX_STYLE = 524288u32; pub const MB_RTLREADING: MESSAGEBOX_STYLE = 1048576u32; pub const MB_SERVICE_NOTIFICATION: MESSAGEBOX_STYLE = 2097152u32; pub const MB_SERVICE_NOTIFICATION_NT3X: MESSAGEBOX_STYLE = 262144u32; pub const MB_TYPEMASK: MESSAGEBOX_STYLE = 15u32; pub const MB_ICONMASK: MESSAGEBOX_STYLE = 240u32; pub const MB_DEFMASK: MESSAGEBOX_STYLE = 3840u32; pub const MB_MODEMASK: MESSAGEBOX_STYLE = 12288u32; pub const MB_MISCMASK: MESSAGEBOX_STYLE = 49152u32; #[repr(C)] pub struct MESSAGE_RESOURCE_BLOCK { pub LowId: u32, pub HighId: u32, pub OffsetToEntries: u32, } impl ::core::marker::Copy for MESSAGE_RESOURCE_BLOCK {} impl ::core::clone::Clone for MESSAGE_RESOURCE_BLOCK { fn clone(&self) -> Self { *self } } #[repr(C)] pub struct MESSAGE_RESOURCE_DATA { pub NumberOfBlocks: u32, pub Blocks: [MESSAGE_RESOURCE_BLOCK; 1], } impl ::core::marker::Copy for MESSAGE_RESOURCE_DATA {} impl ::core::clone::Clone for MESSAGE_RESOURCE_DATA { fn clone(&self) -> Self { *self } } #[repr(C)] pub struct MESSAGE_RESOURCE_ENTRY { pub Length: u16, pub Flags: u16, pub Text: [u8; 1], } impl ::core::marker::Copy for MESSAGE_RESOURCE_ENTRY {} impl ::core::clone::Clone for MESSAGE_RESOURCE_ENTRY { fn clone(&self) -> Self { *self } } pub const METRICS_USEDEFAULT: i32 = -1i32; #[repr(C)] pub struct MINIMIZEDMETRICS { pub cbSize: u32, pub iWidth: i32, pub iHorzGap: i32, pub iVertGap: i32, pub iArrange: MINIMIZEDMETRICS_ARRANGE, } impl ::core::marker::Copy for MINIMIZEDMETRICS {} impl ::core::clone::Clone for MINIMIZEDMETRICS { fn clone(&self) -> Self { *self } } pub type MINIMIZEDMETRICS_ARRANGE = i32; pub const ARW_BOTTOMLEFT: MINIMIZEDMETRICS_ARRANGE = 0i32; pub const ARW_BOTTOMRIGHT: MINIMIZEDMETRICS_ARRANGE = 1i32; pub const ARW_TOPLEFT: MINIMIZEDMETRICS_ARRANGE = 2i32; pub const ARW_TOPRIGHT: MINIMIZEDMETRICS_ARRANGE = 3i32; pub const MINIMUM_RESERVED_MANIFEST_RESOURCE_ID: u32 = 1u32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct MINMAXINFO { pub ptReserved: super::super::Foundation::POINT, pub ptMaxSize: super::super::Foundation::POINT, pub ptMaxPosition: super::super::Foundation::POINT, pub ptMinTrackSize: super::super::Foundation::POINT, pub ptMaxTrackSize: super::super::Foundation::POINT, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for MINMAXINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for MINMAXINFO { fn clone(&self) -> Self { *self } } pub const MIN_LOGICALDPIOVERRIDE: i32 = -2i32; pub const MKF_AVAILABLE: u32 = 2u32; pub const MKF_CONFIRMHOTKEY: u32 = 8u32; pub const MKF_HOTKEYACTIVE: u32 = 4u32; pub const MKF_HOTKEYSOUND: u32 = 16u32; pub const MKF_INDICATOR: u32 = 32u32; pub const MKF_LEFTBUTTONDOWN: u32 = 16777216u32; pub const MKF_LEFTBUTTONSEL: u32 = 268435456u32; pub const MKF_MODIFIERS: u32 = 64u32; pub const MKF_MOUSEKEYSON: u32 = 1u32; pub const MKF_MOUSEMODE: u32 = 2147483648u32; pub const MKF_REPLACENUMBERS: u32 = 128u32; pub const MKF_RIGHTBUTTONDOWN: u32 = 33554432u32; pub const MKF_RIGHTBUTTONSEL: u32 = 536870912u32; pub const MK_CONTROL: u32 = 8u32; pub const MK_LBUTTON: u32 = 1u32; pub const MK_MBUTTON: u32 = 16u32; pub const MK_RBUTTON: u32 = 2u32; pub const MK_SHIFT: u32 = 4u32; pub const MK_XBUTTON1: u32 = 32u32; pub const MK_XBUTTON2: u32 = 64u32; pub const MNC_CLOSE: u32 = 1u32; pub const MNC_EXECUTE: u32 = 2u32; pub const MNC_IGNORE: u32 = 0u32; pub const MNC_SELECT: u32 = 3u32; pub const MND_CONTINUE: u32 = 0u32; pub const MND_ENDMENU: u32 = 1u32; pub const MNGO_NOERROR: u32 = 1u32; pub const MNGO_NOINTERFACE: u32 = 0u32; pub const MN_GETHMENU: u32 = 481u32; pub const MONITORINFOF_PRIMARY: u32 = 1u32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct MOUSEHOOKSTRUCT { pub pt: super::super::Foundation::POINT, pub hwnd: super::super::Foundation::HWND, pub wHitTestCode: u32, pub dwExtraInfo: usize, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for MOUSEHOOKSTRUCT {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for MOUSEHOOKSTRUCT { fn clone(&self) -> Self { *self } } #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct MOUSEHOOKSTRUCTEX { pub __AnonymousBase_winuser_L1166_C46: MOUSEHOOKSTRUCT, pub mouseData: MOUSEHOOKSTRUCTEX_MOUSE_DATA, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for MOUSEHOOKSTRUCTEX {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for MOUSEHOOKSTRUCTEX { fn clone(&self) -> Self { *self } } pub type MOUSEHOOKSTRUCTEX_MOUSE_DATA = u32; pub const XBUTTON1: MOUSEHOOKSTRUCTEX_MOUSE_DATA = 1u32; pub const XBUTTON2: MOUSEHOOKSTRUCTEX_MOUSE_DATA = 2u32; pub const MOUSEWHEEL_ROUTING_FOCUS: u32 = 0u32; pub const MOUSEWHEEL_ROUTING_HYBRID: u32 = 1u32; pub const MOUSEWHEEL_ROUTING_MOUSE_POS: u32 = 2u32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct MSG { pub hwnd: super::super::Foundation::HWND, pub message: u32, pub wParam: super::super::Foundation::WPARAM, pub lParam: super::super::Foundation::LPARAM, pub time: u32, pub pt: super::super::Foundation::POINT, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for MSG {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for MSG { fn clone(&self) -> Self { *self } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell"))] pub type MSGBOXCALLBACK = ::core::option::Option<unsafe extern "system" fn(lphelpinfo: *mut super::Shell::HELPINFO)>; #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell"))] pub struct MSGBOXPARAMSA { pub cbSize: u32, pub hwndOwner: super::super::Foundation::HWND, pub hInstance: super::super::Foundation::HINSTANCE, pub lpszText: super::super::Foundation::PSTR, pub lpszCaption: super::super::Foundation::PSTR, pub dwStyle: MESSAGEBOX_STYLE, pub lpszIcon: super::super::Foundation::PSTR, pub dwContextHelpId: usize, pub lpfnMsgBoxCallback: MSGBOXCALLBACK, pub dwLanguageId: u32, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell"))] impl ::core::marker::Copy for MSGBOXPARAMSA {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell"))] impl ::core::clone::Clone for MSGBOXPARAMSA { fn clone(&self) -> Self { *self } } #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell"))] pub struct MSGBOXPARAMSW { pub cbSize: u32, pub hwndOwner: super::super::Foundation::HWND, pub hInstance: super::super::Foundation::HINSTANCE, pub lpszText: super::super::Foundation::PWSTR, pub lpszCaption: super::super::Foundation::PWSTR, pub dwStyle: MESSAGEBOX_STYLE, pub lpszIcon: super::super::Foundation::PWSTR, pub dwContextHelpId: usize, pub lpfnMsgBoxCallback: MSGBOXCALLBACK, pub dwLanguageId: u32, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell"))] impl ::core::marker::Copy for MSGBOXPARAMSW {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell"))] impl ::core::clone::Clone for MSGBOXPARAMSW { fn clone(&self) -> Self { *self } } pub type MSGFLTINFO_STATUS = u32; pub const MSGFLTINFO_NONE: MSGFLTINFO_STATUS = 0u32; pub const MSGFLTINFO_ALLOWED_HIGHER: MSGFLTINFO_STATUS = 3u32; pub const MSGFLTINFO_ALREADYALLOWED_FORWND: MSGFLTINFO_STATUS = 1u32; pub const MSGFLTINFO_ALREADYDISALLOWED_FORWND: MSGFLTINFO_STATUS = 2u32; pub const MSGF_DIALOGBOX: u32 = 0u32; pub const MSGF_MAX: u32 = 8u32; pub const MSGF_MENU: u32 = 2u32; pub const MSGF_MESSAGEBOX: u32 = 1u32; pub const MSGF_NEXTWINDOW: u32 = 6u32; pub const MSGF_SCROLLBAR: u32 = 5u32; pub const MSGF_USER: u32 = 4096u32; pub type MSG_WAIT_FOR_MULTIPLE_OBJECTS_EX_FLAGS = u32; pub const MWMO_NONE: MSG_WAIT_FOR_MULTIPLE_OBJECTS_EX_FLAGS = 0u32; pub const MWMO_ALERTABLE: MSG_WAIT_FOR_MULTIPLE_OBJECTS_EX_FLAGS = 2u32; pub const MWMO_INPUTAVAILABLE: MSG_WAIT_FOR_MULTIPLE_OBJECTS_EX_FLAGS = 4u32; pub const MWMO_WAITALL: MSG_WAIT_FOR_MULTIPLE_OBJECTS_EX_FLAGS = 1u32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct MSLLHOOKSTRUCT { pub pt: super::super::Foundation::POINT, pub mouseData: MOUSEHOOKSTRUCTEX_MOUSE_DATA, pub flags: u32, pub time: u32, pub dwExtraInfo: usize, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for MSLLHOOKSTRUCT {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for MSLLHOOKSTRUCT { fn clone(&self) -> Self { *self } } pub type MrmDumpType = i32; pub const MrmDumpType_Basic: MrmDumpType = 0i32; pub const MrmDumpType_Detailed: MrmDumpType = 1i32; pub const MrmDumpType_Schema: MrmDumpType = 2i32; pub type MrmIndexerFlags = i32; pub const MrmIndexerFlagsNone: MrmIndexerFlags = 0i32; pub const MrmIndexerFlagsAutoMerge: MrmIndexerFlags = 1i32; pub const MrmIndexerFlagsCreateContentChecksum: MrmIndexerFlags = 2i32; pub type MrmPackagingMode = i32; pub const MrmPackagingModeStandaloneFile: MrmPackagingMode = 0i32; pub const MrmPackagingModeAutoSplit: MrmPackagingMode = 1i32; pub const MrmPackagingModeResourcePack: MrmPackagingMode = 2i32; pub type MrmPackagingOptions = i32; pub const MrmPackagingOptionsNone: MrmPackagingOptions = 0i32; pub const MrmPackagingOptionsOmitSchemaFromResourcePacks: MrmPackagingOptions = 1i32; pub const MrmPackagingOptionsSplitLanguageVariants: MrmPackagingOptions = 2i32; pub type MrmPlatformVersion = i32; pub const MrmPlatformVersion_Default: MrmPlatformVersion = 0i32; pub const MrmPlatformVersion_Windows10_0_0_0: MrmPlatformVersion = 17432576i32; pub const MrmPlatformVersion_Windows10_0_0_5: MrmPlatformVersion = 17432581i32; #[repr(C)] pub struct MrmResourceIndexerHandle { pub handle: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for MrmResourceIndexerHandle {} impl ::core::clone::Clone for MrmResourceIndexerHandle { fn clone(&self) -> Self { *self } } #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct MrmResourceIndexerMessage { pub severity: MrmResourceIndexerMessageSeverity, pub id: u32, pub text: super::super::Foundation::PWSTR, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for MrmResourceIndexerMessage {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for MrmResourceIndexerMessage { fn clone(&self) -> Self { *self } } pub type MrmResourceIndexerMessageSeverity = i32; pub const MrmResourceIndexerMessageSeverityVerbose: MrmResourceIndexerMessageSeverity = 0i32; pub const MrmResourceIndexerMessageSeverityInfo: MrmResourceIndexerMessageSeverity = 1i32; pub const MrmResourceIndexerMessageSeverityWarning: MrmResourceIndexerMessageSeverity = 2i32; pub const MrmResourceIndexerMessageSeverityError: MrmResourceIndexerMessageSeverity = 3i32; #[cfg(feature = "Win32_Foundation")] pub type NAMEENUMPROCA = ::core::option::Option<unsafe extern "system" fn(param0: super::super::Foundation::PSTR, param1: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL>; #[cfg(feature = "Win32_Foundation")] pub type NAMEENUMPROCW = ::core::option::Option<unsafe extern "system" fn(param0: super::super::Foundation::PWSTR, param1: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL>; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct NCCALCSIZE_PARAMS { pub rgrc: [super::super::Foundation::RECT; 3], pub lppos: *mut WINDOWPOS, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for NCCALCSIZE_PARAMS {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for NCCALCSIZE_PARAMS { fn clone(&self) -> Self { *self } } pub const NFR_ANSI: u32 = 1u32; pub const NFR_UNICODE: u32 = 2u32; pub const NF_QUERY: u32 = 3u32; pub const NF_REQUERY: u32 = 4u32; pub const NID_EXTERNAL_PEN: u32 = 8u32; pub const NID_EXTERNAL_TOUCH: u32 = 2u32; pub const NID_INTEGRATED_PEN: u32 = 4u32; pub const NID_INTEGRATED_TOUCH: u32 = 1u32; pub const NID_MULTI_INPUT: u32 = 64u32; pub const NID_READY: u32 = 128u32; #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct NONCLIENTMETRICSA { pub cbSize: u32, pub iBorderWidth: i32, pub iScrollWidth: i32, pub iScrollHeight: i32, pub iCaptionWidth: i32, pub iCaptionHeight: i32, pub lfCaptionFont: super::super::Graphics::Gdi::LOGFONTA, pub iSmCaptionWidth: i32, pub iSmCaptionHeight: i32, pub lfSmCaptionFont: super::super::Graphics::Gdi::LOGFONTA, pub iMenuWidth: i32, pub iMenuHeight: i32, pub lfMenuFont: super::super::Graphics::Gdi::LOGFONTA, pub lfStatusFont: super::super::Graphics::Gdi::LOGFONTA, pub lfMessageFont: super::super::Graphics::Gdi::LOGFONTA, pub iPaddedBorderWidth: i32, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for NONCLIENTMETRICSA {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for NONCLIENTMETRICSA { fn clone(&self) -> Self { *self } } #[repr(C)] #[cfg(feature = "Win32_Graphics_Gdi")] pub struct NONCLIENTMETRICSW { pub cbSize: u32, pub iBorderWidth: i32, pub iScrollWidth: i32, pub iScrollHeight: i32, pub iCaptionWidth: i32, pub iCaptionHeight: i32, pub lfCaptionFont: super::super::Graphics::Gdi::LOGFONTW, pub iSmCaptionWidth: i32, pub iSmCaptionHeight: i32, pub lfSmCaptionFont: super::super::Graphics::Gdi::LOGFONTW, pub iMenuWidth: i32, pub iMenuHeight: i32, pub lfMenuFont: super::super::Graphics::Gdi::LOGFONTW, pub lfStatusFont: super::super::Graphics::Gdi::LOGFONTW, pub lfMessageFont: super::super::Graphics::Gdi::LOGFONTW, pub iPaddedBorderWidth: i32, } #[cfg(feature = "Win32_Graphics_Gdi")] impl ::core::marker::Copy for NONCLIENTMETRICSW {} #[cfg(feature = "Win32_Graphics_Gdi")] impl ::core::clone::Clone for NONCLIENTMETRICSW { fn clone(&self) -> Self { *self } } pub type OBJECT_IDENTIFIER = i32; pub const OBJID_WINDOW: OBJECT_IDENTIFIER = 0i32; pub const OBJID_SYSMENU: OBJECT_IDENTIFIER = -1i32; pub const OBJID_TITLEBAR: OBJECT_IDENTIFIER = -2i32; pub const OBJID_MENU: OBJECT_IDENTIFIER = -3i32; pub const OBJID_CLIENT: OBJECT_IDENTIFIER = -4i32; pub const OBJID_VSCROLL: OBJECT_IDENTIFIER = -5i32; pub const OBJID_HSCROLL: OBJECT_IDENTIFIER = -6i32; pub const OBJID_SIZEGRIP: OBJECT_IDENTIFIER = -7i32; pub const OBJID_CARET: OBJECT_IDENTIFIER = -8i32; pub const OBJID_CURSOR: OBJECT_IDENTIFIER = -9i32; pub const OBJID_ALERT: OBJECT_IDENTIFIER = -10i32; pub const OBJID_SOUND: OBJECT_IDENTIFIER = -11i32; pub const OBJID_QUERYCLASSNAMEIDX: OBJECT_IDENTIFIER = -12i32; pub const OBJID_NATIVEOM: OBJECT_IDENTIFIER = -16i32; pub const OBM_BTNCORNERS: u32 = 32758u32; pub const OBM_BTSIZE: u32 = 32761u32; pub const OBM_CHECK: u32 = 32760u32; pub const OBM_CHECKBOXES: u32 = 32759u32; pub const OBM_CLOSE: u32 = 32754u32; pub const OBM_COMBO: u32 = 32738u32; pub const OBM_DNARROW: u32 = 32752u32; pub const OBM_DNARROWD: u32 = 32742u32; pub const OBM_DNARROWI: u32 = 32736u32; pub const OBM_LFARROW: u32 = 32750u32; pub const OBM_LFARROWD: u32 = 32740u32; pub const OBM_LFARROWI: u32 = 32734u32; pub const OBM_MNARROW: u32 = 32739u32; pub const OBM_OLD_CLOSE: u32 = 32767u32; pub const OBM_OLD_DNARROW: u32 = 32764u32; pub const OBM_OLD_LFARROW: u32 = 32762u32; pub const OBM_OLD_REDUCE: u32 = 32757u32; pub const OBM_OLD_RESTORE: u32 = 32755u32; pub const OBM_OLD_RGARROW: u32 = 32763u32; pub const OBM_OLD_UPARROW: u32 = 32765u32; pub const OBM_OLD_ZOOM: u32 = 32756u32; pub const OBM_REDUCE: u32 = 32749u32; pub const OBM_REDUCED: u32 = 32746u32; pub const OBM_RESTORE: u32 = 32747u32; pub const OBM_RESTORED: u32 = 32744u32; pub const OBM_RGARROW: u32 = 32751u32; pub const OBM_RGARROWD: u32 = 32741u32; pub const OBM_RGARROWI: u32 = 32735u32; pub const OBM_SIZE: u32 = 32766u32; pub const OBM_UPARROW: u32 = 32753u32; pub const OBM_UPARROWD: u32 = 32743u32; pub const OBM_UPARROWI: u32 = 32737u32; pub const OBM_ZOOM: u32 = 32748u32; pub const OBM_ZOOMD: u32 = 32745u32; pub const OCR_ICOCUR: u32 = 32647u32; pub const OCR_ICON: u32 = 32641u32; pub const OCR_SIZE: u32 = 32640u32; pub const ODA_DRAWENTIRE: u32 = 1u32; pub const ODA_FOCUS: u32 = 4u32; pub const ODA_SELECT: u32 = 2u32; pub const ODS_CHECKED: u32 = 8u32; pub const ODS_COMBOBOXEDIT: u32 = 4096u32; pub const ODS_DEFAULT: u32 = 32u32; pub const ODS_DISABLED: u32 = 4u32; pub const ODS_FOCUS: u32 = 16u32; pub const ODS_GRAYED: u32 = 2u32; pub const ODS_HOTLIGHT: u32 = 64u32; pub const ODS_INACTIVE: u32 = 128u32; pub const ODS_NOACCEL: u32 = 256u32; pub const ODS_NOFOCUSRECT: u32 = 512u32; pub const ODS_SELECTED: u32 = 1u32; pub const OIC_BANG: u32 = 32515u32; pub const OIC_ERROR: u32 = 32513u32; pub const OIC_HAND: u32 = 32513u32; pub const OIC_INFORMATION: u32 = 32516u32; pub const OIC_NOTE: u32 = 32516u32; pub const OIC_QUES: u32 = 32514u32; pub const OIC_SAMPLE: u32 = 32512u32; pub const OIC_SHIELD: u32 = 32518u32; pub const OIC_WARNING: u32 = 32515u32; pub const OIC_WINLOGO: u32 = 32517u32; pub const ORD_LANGDRIVER: u32 = 1u32; pub const PA_ACTIVATE: u32 = 1u32; pub const PA_NOACTIVATE: u32 = 3u32; pub const PBTF_APMRESUMEFROMFAILURE: u32 = 1u32; pub const PBT_APMBATTERYLOW: u32 = 9u32; pub const PBT_APMOEMEVENT: u32 = 11u32; pub const PBT_APMPOWERSTATUSCHANGE: u32 = 10u32; pub const PBT_APMQUERYSTANDBY: u32 = 1u32; pub const PBT_APMQUERYSTANDBYFAILED: u32 = 3u32; pub const PBT_APMQUERYSUSPEND: u32 = 0u32; pub const PBT_APMQUERYSUSPENDFAILED: u32 = 2u32; pub const PBT_APMRESUMEAUTOMATIC: u32 = 18u32; pub const PBT_APMRESUMECRITICAL: u32 = 6u32; pub const PBT_APMRESUMESTANDBY: u32 = 8u32; pub const PBT_APMRESUMESUSPEND: u32 = 7u32; pub const PBT_APMSTANDBY: u32 = 5u32; pub const PBT_APMSUSPEND: u32 = 4u32; pub const PBT_POWERSETTINGCHANGE: u32 = 32787u32; pub const PDC_ARRIVAL: u32 = 1u32; pub const PDC_MAPPING_CHANGE: u32 = 256u32; pub const PDC_MODE_ASPECTRATIOPRESERVED: u32 = 2048u32; pub const PDC_MODE_CENTERED: u32 = 128u32; pub const PDC_MODE_DEFAULT: u32 = 64u32; pub const PDC_ORIENTATION_0: u32 = 4u32; pub const PDC_ORIENTATION_180: u32 = 16u32; pub const PDC_ORIENTATION_270: u32 = 32u32; pub const PDC_ORIENTATION_90: u32 = 8u32; pub const PDC_ORIGIN: u32 = 1024u32; pub const PDC_REMOVAL: u32 = 2u32; pub const PDC_RESOLUTION: u32 = 512u32; pub type PEEK_MESSAGE_REMOVE_TYPE = u32; pub const PM_NOREMOVE: PEEK_MESSAGE_REMOVE_TYPE = 0u32; pub const PM_REMOVE: PEEK_MESSAGE_REMOVE_TYPE = 1u32; pub const PM_NOYIELD: PEEK_MESSAGE_REMOVE_TYPE = 2u32; pub const PM_QS_INPUT: PEEK_MESSAGE_REMOVE_TYPE = 67567616u32; pub const PM_QS_POSTMESSAGE: PEEK_MESSAGE_REMOVE_TYPE = 9961472u32; pub const PM_QS_PAINT: PEEK_MESSAGE_REMOVE_TYPE = 2097152u32; pub const PM_QS_SENDMESSAGE: PEEK_MESSAGE_REMOVE_TYPE = 4194304u32; pub const PENARBITRATIONTYPE_FIS: u32 = 2u32; pub const PENARBITRATIONTYPE_MAX: u32 = 4u32; pub const PENARBITRATIONTYPE_NONE: u32 = 0u32; pub const PENARBITRATIONTYPE_SPT: u32 = 3u32; pub const PENARBITRATIONTYPE_WIN8: u32 = 1u32; pub const PENVISUALIZATION_CURSOR: u32 = 32u32; pub const PENVISUALIZATION_DOUBLETAP: u32 = 2u32; pub const PENVISUALIZATION_OFF: u32 = 0u32; pub const PENVISUALIZATION_ON: u32 = 35u32; pub const PENVISUALIZATION_TAP: u32 = 1u32; pub const PEN_FLAG_BARREL: u32 = 1u32; pub const PEN_FLAG_ERASER: u32 = 4u32; pub const PEN_FLAG_INVERTED: u32 = 2u32; pub const PEN_FLAG_NONE: u32 = 0u32; pub const PEN_MASK_NONE: u32 = 0u32; pub const PEN_MASK_PRESSURE: u32 = 1u32; pub const PEN_MASK_ROTATION: u32 = 2u32; pub const PEN_MASK_TILT_X: u32 = 4u32; pub const PEN_MASK_TILT_Y: u32 = 8u32; pub const PMB_ACTIVE: u32 = 1u32; pub const POINTER_DEVICE_PRODUCT_STRING_MAX: u32 = 520u32; pub type POINTER_INPUT_TYPE = i32; pub const PT_POINTER: POINTER_INPUT_TYPE = 1i32; pub const PT_TOUCH: POINTER_INPUT_TYPE = 2i32; pub const PT_PEN: POINTER_INPUT_TYPE = 3i32; pub const PT_MOUSE: POINTER_INPUT_TYPE = 4i32; pub const PT_TOUCHPAD: POINTER_INPUT_TYPE = 5i32; pub const POINTER_MESSAGE_FLAG_CANCELED: u32 = 32768u32; pub const POINTER_MESSAGE_FLAG_CONFIDENCE: u32 = 16384u32; pub const POINTER_MESSAGE_FLAG_FIFTHBUTTON: u32 = 256u32; pub const POINTER_MESSAGE_FLAG_FIRSTBUTTON: u32 = 16u32; pub const POINTER_MESSAGE_FLAG_FOURTHBUTTON: u32 = 128u32; pub const POINTER_MESSAGE_FLAG_INCONTACT: u32 = 4u32; pub const POINTER_MESSAGE_FLAG_INRANGE: u32 = 2u32; pub const POINTER_MESSAGE_FLAG_NEW: u32 = 1u32; pub const POINTER_MESSAGE_FLAG_PRIMARY: u32 = 8192u32; pub const POINTER_MESSAGE_FLAG_SECONDBUTTON: u32 = 32u32; pub const POINTER_MESSAGE_FLAG_THIRDBUTTON: u32 = 64u32; pub const POINTER_MOD_CTRL: u32 = 8u32; pub const POINTER_MOD_SHIFT: u32 = 4u32; #[cfg(feature = "Win32_Foundation")] pub type PREGISTERCLASSNAMEW = ::core::option::Option<unsafe extern "system" fn(param0: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOLEAN>; pub const PRF_CHECKVISIBLE: i32 = 1i32; pub const PRF_CHILDREN: i32 = 16i32; pub const PRF_CLIENT: i32 = 4i32; pub const PRF_ERASEBKGND: i32 = 8i32; pub const PRF_NONCLIENT: i32 = 2i32; pub const PRF_OWNED: i32 = 32i32; #[cfg(feature = "Win32_Foundation")] pub type PROPENUMPROCA = ::core::option::Option<unsafe extern "system" fn(param0: super::super::Foundation::HWND, param1: super::super::Foundation::PSTR, param2: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL>; #[cfg(feature = "Win32_Foundation")] pub type PROPENUMPROCEXA = ::core::option::Option<unsafe extern "system" fn(param0: super::super::Foundation::HWND, param1: super::super::Foundation::PSTR, param2: super::super::Foundation::HANDLE, param3: usize) -> super::super::Foundation::BOOL>; #[cfg(feature = "Win32_Foundation")] pub type PROPENUMPROCEXW = ::core::option::Option<unsafe extern "system" fn(param0: super::super::Foundation::HWND, param1: super::super::Foundation::PWSTR, param2: super::super::Foundation::HANDLE, param3: usize) -> super::super::Foundation::BOOL>; #[cfg(feature = "Win32_Foundation")] pub type PROPENUMPROCW = ::core::option::Option<unsafe extern "system" fn(param0: super::super::Foundation::HWND, param1: super::super::Foundation::PWSTR, param2: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL>; pub const PWR_CRITICALRESUME: u32 = 3u32; pub const PWR_FAIL: i32 = -1i32; pub const PWR_OK: u32 = 1u32; pub const PWR_SUSPENDREQUEST: u32 = 1u32; pub const PWR_SUSPENDRESUME: u32 = 2u32; pub const PW_RENDERFULLCONTENT: u32 = 2u32; pub const QS_POINTER: u32 = 4096u32; pub const QS_TOUCH: u32 = 2048u32; pub type QUEUE_STATUS_FLAGS = u32; pub const QS_ALLEVENTS: QUEUE_STATUS_FLAGS = 1215u32; pub const QS_ALLINPUT: QUEUE_STATUS_FLAGS = 1279u32; pub const QS_ALLPOSTMESSAGE: QUEUE_STATUS_FLAGS = 256u32; pub const QS_HOTKEY: QUEUE_STATUS_FLAGS = 128u32; pub const QS_INPUT: QUEUE_STATUS_FLAGS = 1031u32; pub const QS_KEY: QUEUE_STATUS_FLAGS = 1u32; pub const QS_MOUSE: QUEUE_STATUS_FLAGS = 6u32; pub const QS_MOUSEBUTTON: QUEUE_STATUS_FLAGS = 4u32; pub const QS_MOUSEMOVE: QUEUE_STATUS_FLAGS = 2u32; pub const QS_PAINT: QUEUE_STATUS_FLAGS = 32u32; pub const QS_POSTMESSAGE: QUEUE_STATUS_FLAGS = 8u32; pub const QS_RAWINPUT: QUEUE_STATUS_FLAGS = 1024u32; pub const QS_SENDMESSAGE: QUEUE_STATUS_FLAGS = 64u32; pub const QS_TIMER: QUEUE_STATUS_FLAGS = 16u32; pub const RES_CURSOR: u32 = 2u32; pub const RES_ICON: u32 = 1u32; pub const RIDEV_EXMODEMASK: u32 = 240u32; pub const RIM_INPUT: u32 = 0u32; pub const RIM_INPUTSINK: u32 = 1u32; pub const RIM_TYPEMAX: u32 = 2u32; pub const RI_KEY_BREAK: u32 = 1u32; pub const RI_KEY_E0: u32 = 2u32; pub const RI_KEY_E1: u32 = 4u32; pub const RI_KEY_MAKE: u32 = 0u32; pub const RI_KEY_TERMSRV_SET_LED: u32 = 8u32; pub const RI_KEY_TERMSRV_SHADOW: u32 = 16u32; pub const RI_MOUSE_BUTTON_1_DOWN: u32 = 1u32; pub const RI_MOUSE_BUTTON_1_UP: u32 = 2u32; pub const RI_MOUSE_BUTTON_2_DOWN: u32 = 4u32; pub const RI_MOUSE_BUTTON_2_UP: u32 = 8u32; pub const RI_MOUSE_BUTTON_3_DOWN: u32 = 16u32; pub const RI_MOUSE_BUTTON_3_UP: u32 = 32u32; pub const RI_MOUSE_BUTTON_4_DOWN: u32 = 64u32; pub const RI_MOUSE_BUTTON_4_UP: u32 = 128u32; pub const RI_MOUSE_BUTTON_5_DOWN: u32 = 256u32; pub const RI_MOUSE_BUTTON_5_UP: u32 = 512u32; pub const RI_MOUSE_HWHEEL: u32 = 2048u32; pub const RI_MOUSE_LEFT_BUTTON_DOWN: u32 = 1u32; pub const RI_MOUSE_LEFT_BUTTON_UP: u32 = 2u32; pub const RI_MOUSE_MIDDLE_BUTTON_DOWN: u32 = 16u32; pub const RI_MOUSE_MIDDLE_BUTTON_UP: u32 = 32u32; pub const RI_MOUSE_RIGHT_BUTTON_DOWN: u32 = 4u32; pub const RI_MOUSE_RIGHT_BUTTON_UP: u32 = 8u32; pub const RI_MOUSE_WHEEL: u32 = 1024u32; #[cfg(feature = "Win32_Foundation")] pub const RT_ACCELERATOR: super::super::Foundation::PWSTR = 9i32 as _; #[cfg(feature = "Win32_Foundation")] pub const RT_ANICURSOR: super::super::Foundation::PWSTR = 21i32 as _; #[cfg(feature = "Win32_Foundation")] pub const RT_ANIICON: super::super::Foundation::PWSTR = 22i32 as _; #[cfg(feature = "Win32_Foundation")] pub const RT_BITMAP: super::super::Foundation::PWSTR = 2i32 as _; #[cfg(feature = "Win32_Foundation")] pub const RT_CURSOR: super::super::Foundation::PWSTR = 1i32 as _; #[cfg(feature = "Win32_Foundation")] pub const RT_DIALOG: super::super::Foundation::PWSTR = 5i32 as _; #[cfg(feature = "Win32_Foundation")] pub const RT_DLGINCLUDE: super::super::Foundation::PWSTR = 17i32 as _; #[cfg(feature = "Win32_Foundation")] pub const RT_FONT: super::super::Foundation::PWSTR = 8i32 as _; #[cfg(feature = "Win32_Foundation")] pub const RT_FONTDIR: super::super::Foundation::PWSTR = 7i32 as _; #[cfg(feature = "Win32_Foundation")] pub const RT_HTML: super::super::Foundation::PWSTR = 23i32 as _; #[cfg(feature = "Win32_Foundation")] pub const RT_ICON: super::super::Foundation::PWSTR = 3i32 as _; pub const RT_MANIFEST: u32 = 24u32; #[cfg(feature = "Win32_Foundation")] pub const RT_MENU: super::super::Foundation::PWSTR = 4i32 as _; #[cfg(feature = "Win32_Foundation")] pub const RT_MESSAGETABLE: super::super::Foundation::PWSTR = 11i32 as _; #[cfg(feature = "Win32_Foundation")] pub const RT_PLUGPLAY: super::super::Foundation::PWSTR = 19i32 as _; #[cfg(feature = "Win32_Foundation")] pub const RT_VERSION: super::super::Foundation::PWSTR = 16i32 as _; #[cfg(feature = "Win32_Foundation")] pub const RT_VXD: super::super::Foundation::PWSTR = 20i32 as _; pub const SBM_ENABLE_ARROWS: u32 = 228u32; pub const SBM_GETPOS: u32 = 225u32; pub const SBM_GETRANGE: u32 = 227u32; pub const SBM_GETSCROLLBARINFO: u32 = 235u32; pub const SBM_GETSCROLLINFO: u32 = 234u32; pub const SBM_SETPOS: u32 = 224u32; pub const SBM_SETRANGE: u32 = 226u32; pub const SBM_SETRANGEREDRAW: u32 = 230u32; pub const SBM_SETSCROLLINFO: u32 = 233u32; pub const SBS_BOTTOMALIGN: i32 = 4i32; pub const SBS_HORZ: i32 = 0i32; pub const SBS_LEFTALIGN: i32 = 2i32; pub const SBS_RIGHTALIGN: i32 = 4i32; pub const SBS_SIZEBOX: i32 = 8i32; pub const SBS_SIZEBOXBOTTOMRIGHTALIGN: i32 = 4i32; pub const SBS_SIZEBOXTOPLEFTALIGN: i32 = 2i32; pub const SBS_SIZEGRIP: i32 = 16i32; pub const SBS_TOPALIGN: i32 = 2i32; pub const SBS_VERT: i32 = 1i32; pub const SB_BOTTOM: u32 = 7u32; pub const SB_ENDSCROLL: u32 = 8u32; pub const SB_LEFT: u32 = 6u32; pub const SB_LINEDOWN: u32 = 1u32; pub const SB_LINELEFT: u32 = 0u32; pub const SB_LINERIGHT: u32 = 1u32; pub const SB_LINEUP: u32 = 0u32; pub const SB_PAGEDOWN: u32 = 3u32; pub const SB_PAGELEFT: u32 = 2u32; pub const SB_PAGERIGHT: u32 = 3u32; pub const SB_PAGEUP: u32 = 2u32; pub const SB_RIGHT: u32 = 7u32; pub const SB_THUMBPOSITION: u32 = 4u32; pub const SB_THUMBTRACK: u32 = 5u32; pub const SB_TOP: u32 = 6u32; pub const SCF_ISSECURE: u32 = 1u32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct SCROLLBARINFO { pub cbSize: u32, pub rcScrollBar: super::super::Foundation::RECT, pub dxyLineButton: i32, pub xyThumbTop: i32, pub xyThumbBottom: i32, pub reserved: i32, pub rgstate: [u32; 6], } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for SCROLLBARINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for SCROLLBARINFO { fn clone(&self) -> Self { *self } } pub type SCROLLBAR_CONSTANTS = u32; pub const SB_CTL: SCROLLBAR_CONSTANTS = 2u32; pub const SB_HORZ: SCROLLBAR_CONSTANTS = 0u32; pub const SB_VERT: SCROLLBAR_CONSTANTS = 1u32; pub const SB_BOTH: SCROLLBAR_CONSTANTS = 3u32; #[repr(C)] pub struct SCROLLINFO { pub cbSize: u32, pub fMask: SCROLLINFO_MASK, pub nMin: i32, pub nMax: i32, pub nPage: u32, pub nPos: i32, pub nTrackPos: i32, } impl ::core::marker::Copy for SCROLLINFO {} impl ::core::clone::Clone for SCROLLINFO { fn clone(&self) -> Self { *self } } pub type SCROLLINFO_MASK = u32; pub const SIF_ALL: SCROLLINFO_MASK = 23u32; pub const SIF_DISABLENOSCROLL: SCROLLINFO_MASK = 8u32; pub const SIF_PAGE: SCROLLINFO_MASK = 2u32; pub const SIF_POS: SCROLLINFO_MASK = 4u32; pub const SIF_RANGE: SCROLLINFO_MASK = 1u32; pub const SIF_TRACKPOS: SCROLLINFO_MASK = 16u32; pub const SC_ARRANGE: u32 = 61712u32; pub const SC_CLOSE: u32 = 61536u32; pub const SC_CONTEXTHELP: u32 = 61824u32; pub const SC_DEFAULT: u32 = 61792u32; pub const SC_HOTKEY: u32 = 61776u32; pub const SC_HSCROLL: u32 = 61568u32; pub const SC_ICON: u32 = 61472u32; pub const SC_KEYMENU: u32 = 61696u32; pub const SC_MAXIMIZE: u32 = 61488u32; pub const SC_MINIMIZE: u32 = 61472u32; pub const SC_MONITORPOWER: u32 = 61808u32; pub const SC_MOUSEMENU: u32 = 61584u32; pub const SC_MOVE: u32 = 61456u32; pub const SC_NEXTWINDOW: u32 = 61504u32; pub const SC_PREVWINDOW: u32 = 61520u32; pub const SC_RESTORE: u32 = 61728u32; pub const SC_SEPARATOR: u32 = 61455u32; pub const SC_SIZE: u32 = 61440u32; pub const SC_TASKLIST: u32 = 61744u32; pub const SC_VSCROLL: u32 = 61552u32; pub const SC_ZOOM: u32 = 61488u32; #[cfg(feature = "Win32_Foundation")] pub type SENDASYNCPROC = ::core::option::Option<unsafe extern "system" fn(param0: super::super::Foundation::HWND, param1: u32, param2: usize, param3: super::super::Foundation::LRESULT)>; pub type SEND_MESSAGE_TIMEOUT_FLAGS = u32; pub const SMTO_ABORTIFHUNG: SEND_MESSAGE_TIMEOUT_FLAGS = 2u32; pub const SMTO_BLOCK: SEND_MESSAGE_TIMEOUT_FLAGS = 1u32; pub const SMTO_NORMAL: SEND_MESSAGE_TIMEOUT_FLAGS = 0u32; pub const SMTO_NOTIMEOUTIFNOTHUNG: SEND_MESSAGE_TIMEOUT_FLAGS = 8u32; pub const SMTO_ERRORONEXIT: SEND_MESSAGE_TIMEOUT_FLAGS = 32u32; pub type SET_WINDOW_POS_FLAGS = u32; pub const SWP_ASYNCWINDOWPOS: SET_WINDOW_POS_FLAGS = 16384u32; pub const SWP_DEFERERASE: SET_WINDOW_POS_FLAGS = 8192u32; pub const SWP_DRAWFRAME: SET_WINDOW_POS_FLAGS = 32u32; pub const SWP_FRAMECHANGED: SET_WINDOW_POS_FLAGS = 32u32; pub const SWP_HIDEWINDOW: SET_WINDOW_POS_FLAGS = 128u32; pub const SWP_NOACTIVATE: SET_WINDOW_POS_FLAGS = 16u32; pub const SWP_NOCOPYBITS: SET_WINDOW_POS_FLAGS = 256u32; pub const SWP_NOMOVE: SET_WINDOW_POS_FLAGS = 2u32; pub const SWP_NOOWNERZORDER: SET_WINDOW_POS_FLAGS = 512u32; pub const SWP_NOREDRAW: SET_WINDOW_POS_FLAGS = 8u32; pub const SWP_NOREPOSITION: SET_WINDOW_POS_FLAGS = 512u32; pub const SWP_NOSENDCHANGING: SET_WINDOW_POS_FLAGS = 1024u32; pub const SWP_NOSIZE: SET_WINDOW_POS_FLAGS = 1u32; pub const SWP_NOZORDER: SET_WINDOW_POS_FLAGS = 4u32; pub const SWP_SHOWWINDOW: SET_WINDOW_POS_FLAGS = 64u32; pub const SWP__NOOWNERZORDER: SET_WINDOW_POS_FLAGS = 512u32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct SHELLHOOKINFO { pub hwnd: super::super::Foundation::HWND, pub rc: super::super::Foundation::RECT, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for SHELLHOOKINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for SHELLHOOKINFO { fn clone(&self) -> Self { *self } } pub const SHOW_FULLSCREEN: u32 = 3u32; pub const SHOW_ICONWINDOW: u32 = 2u32; pub const SHOW_OPENNOACTIVATE: u32 = 4u32; pub const SHOW_OPENWINDOW: u32 = 1u32; pub type SHOW_WINDOW_CMD = u32; pub const SW_FORCEMINIMIZE: SHOW_WINDOW_CMD = 11u32; pub const SW_HIDE: SHOW_WINDOW_CMD = 0u32; pub const SW_MAXIMIZE: SHOW_WINDOW_CMD = 3u32; pub const SW_MINIMIZE: SHOW_WINDOW_CMD = 6u32; pub const SW_RESTORE: SHOW_WINDOW_CMD = 9u32; pub const SW_SHOW: SHOW_WINDOW_CMD = 5u32; pub const SW_SHOWDEFAULT: SHOW_WINDOW_CMD = 10u32; pub const SW_SHOWMAXIMIZED: SHOW_WINDOW_CMD = 3u32; pub const SW_SHOWMINIMIZED: SHOW_WINDOW_CMD = 2u32; pub const SW_SHOWMINNOACTIVE: SHOW_WINDOW_CMD = 7u32; pub const SW_SHOWNA: SHOW_WINDOW_CMD = 8u32; pub const SW_SHOWNOACTIVATE: SHOW_WINDOW_CMD = 4u32; pub const SW_SHOWNORMAL: SHOW_WINDOW_CMD = 1u32; pub const SW_NORMAL: SHOW_WINDOW_CMD = 1u32; pub const SW_MAX: SHOW_WINDOW_CMD = 11u32; pub const SW_PARENTCLOSING: SHOW_WINDOW_CMD = 1u32; pub const SW_OTHERZOOM: SHOW_WINDOW_CMD = 2u32; pub const SW_PARENTOPENING: SHOW_WINDOW_CMD = 3u32; pub const SW_OTHERUNZOOM: SHOW_WINDOW_CMD = 4u32; pub const SW_SCROLLCHILDREN: SHOW_WINDOW_CMD = 1u32; pub const SW_INVALIDATE: SHOW_WINDOW_CMD = 2u32; pub const SW_ERASE: SHOW_WINDOW_CMD = 4u32; pub const SW_SMOOTHSCROLL: SHOW_WINDOW_CMD = 16u32; pub const SIZEFULLSCREEN: u32 = 2u32; pub const SIZEICONIC: u32 = 1u32; pub const SIZENORMAL: u32 = 0u32; pub const SIZEZOOMHIDE: u32 = 4u32; pub const SIZEZOOMSHOW: u32 = 3u32; pub const SIZE_MAXHIDE: u32 = 4u32; pub const SIZE_MAXIMIZED: u32 = 2u32; pub const SIZE_MAXSHOW: u32 = 3u32; pub const SIZE_MINIMIZED: u32 = 1u32; pub const SIZE_RESTORED: u32 = 0u32; pub const SM_CARETBLINKINGENABLED: u32 = 8194u32; pub const SM_CMETRICS: u32 = 76u32; pub const SM_RESERVED1: u32 = 24u32; pub const SM_RESERVED2: u32 = 25u32; pub const SM_RESERVED3: u32 = 26u32; pub const SM_RESERVED4: u32 = 27u32; pub const SM_SYSTEMDOCKED: u32 = 8196u32; pub const SOUND_SYSTEM_APPEND: u32 = 14u32; pub const SOUND_SYSTEM_APPSTART: u32 = 12u32; pub const SOUND_SYSTEM_BEEP: u32 = 3u32; pub const SOUND_SYSTEM_ERROR: u32 = 4u32; pub const SOUND_SYSTEM_FAULT: u32 = 13u32; pub const SOUND_SYSTEM_INFORMATION: u32 = 7u32; pub const SOUND_SYSTEM_MAXIMIZE: u32 = 8u32; pub const SOUND_SYSTEM_MENUCOMMAND: u32 = 15u32; pub const SOUND_SYSTEM_MENUPOPUP: u32 = 16u32; pub const SOUND_SYSTEM_MINIMIZE: u32 = 9u32; pub const SOUND_SYSTEM_QUESTION: u32 = 5u32; pub const SOUND_SYSTEM_RESTOREDOWN: u32 = 11u32; pub const SOUND_SYSTEM_RESTOREUP: u32 = 10u32; pub const SOUND_SYSTEM_SHUTDOWN: u32 = 2u32; pub const SOUND_SYSTEM_STARTUP: u32 = 1u32; pub const SOUND_SYSTEM_WARNING: u32 = 6u32; pub const SS_BITMAP: i32 = 14i32; pub const SS_BLACKFRAME: i32 = 7i32; pub const SS_BLACKRECT: i32 = 4i32; pub const SS_CENTER: i32 = 1i32; pub const SS_CENTERIMAGE: i32 = 512i32; pub const SS_EDITCONTROL: i32 = 8192i32; pub const SS_ELLIPSISMASK: i32 = 49152i32; pub const SS_ENDELLIPSIS: i32 = 16384i32; pub const SS_ENHMETAFILE: i32 = 15i32; pub const SS_ETCHEDFRAME: i32 = 18i32; pub const SS_ETCHEDHORZ: i32 = 16i32; pub const SS_ETCHEDVERT: i32 = 17i32; pub const SS_GRAYFRAME: i32 = 8i32; pub const SS_GRAYRECT: i32 = 5i32; pub const SS_ICON: i32 = 3i32; pub const SS_LEFT: i32 = 0i32; pub const SS_LEFTNOWORDWRAP: i32 = 12i32; pub const SS_NOPREFIX: i32 = 128i32; pub const SS_NOTIFY: i32 = 256i32; pub const SS_OWNERDRAW: i32 = 13i32; pub const SS_PATHELLIPSIS: i32 = 32768i32; pub const SS_REALSIZECONTROL: i32 = 64i32; pub const SS_REALSIZEIMAGE: i32 = 2048i32; pub const SS_RIGHT: i32 = 2i32; pub const SS_RIGHTJUST: i32 = 1024i32; pub const SS_SIMPLE: i32 = 11i32; pub const SS_SUNKEN: i32 = 4096i32; pub const SS_TYPEMASK: i32 = 31i32; pub const SS_USERITEM: i32 = 10i32; pub const SS_WHITEFRAME: i32 = 9i32; pub const SS_WHITERECT: i32 = 6i32; pub const SS_WORDELLIPSIS: i32 = 49152i32; pub const STATE_SYSTEM_ALERT_HIGH: u32 = 268435456u32; pub const STATE_SYSTEM_ALERT_LOW: u32 = 67108864u32; pub const STATE_SYSTEM_ALERT_MEDIUM: u32 = 134217728u32; pub const STATE_SYSTEM_ANIMATED: u32 = 16384u32; pub const STATE_SYSTEM_BUSY: u32 = 2048u32; pub const STATE_SYSTEM_CHECKED: u32 = 16u32; pub const STATE_SYSTEM_COLLAPSED: u32 = 1024u32; pub const STATE_SYSTEM_DEFAULT: u32 = 256u32; pub const STATE_SYSTEM_EXPANDED: u32 = 512u32; pub const STATE_SYSTEM_EXTSELECTABLE: u32 = 33554432u32; pub const STATE_SYSTEM_FLOATING: u32 = 4096u32; pub const STATE_SYSTEM_FOCUSED: u32 = 4u32; pub const STATE_SYSTEM_HOTTRACKED: u32 = 128u32; pub const STATE_SYSTEM_INDETERMINATE: u32 = 32u32; pub const STATE_SYSTEM_LINKED: u32 = 4194304u32; pub const STATE_SYSTEM_MARQUEED: u32 = 8192u32; pub const STATE_SYSTEM_MIXED: u32 = 32u32; pub const STATE_SYSTEM_MOVEABLE: u32 = 262144u32; pub const STATE_SYSTEM_MULTISELECTABLE: u32 = 16777216u32; pub const STATE_SYSTEM_PROTECTED: u32 = 536870912u32; pub const STATE_SYSTEM_READONLY: u32 = 64u32; pub const STATE_SYSTEM_SELECTABLE: u32 = 2097152u32; pub const STATE_SYSTEM_SELECTED: u32 = 2u32; pub const STATE_SYSTEM_SELFVOICING: u32 = 524288u32; pub const STATE_SYSTEM_SIZEABLE: u32 = 131072u32; pub const STATE_SYSTEM_TRAVERSED: u32 = 8388608u32; pub const STATE_SYSTEM_VALID: u32 = 1073741823u32; pub const STM_GETICON: u32 = 369u32; pub const STM_GETIMAGE: u32 = 371u32; pub const STM_MSGMAX: u32 = 372u32; pub const STM_SETICON: u32 = 368u32; pub const STM_SETIMAGE: u32 = 370u32; pub const STN_CLICKED: u32 = 0u32; pub const STN_DBLCLK: u32 = 1u32; pub const STN_DISABLE: u32 = 3u32; pub const STN_ENABLE: u32 = 2u32; pub const STRSAFE_E_END_OF_FILE: ::windows_sys::core::HRESULT = -2147024858i32; pub const STRSAFE_E_INSUFFICIENT_BUFFER: ::windows_sys::core::HRESULT = -2147024774i32; pub const STRSAFE_E_INVALID_PARAMETER: ::windows_sys::core::HRESULT = -2147024809i32; pub const STRSAFE_FILL_BEHIND_NULL: u32 = 512u32; pub const STRSAFE_FILL_ON_FAILURE: u32 = 1024u32; pub const STRSAFE_IGNORE_NULLS: u32 = 256u32; pub const STRSAFE_MAX_CCH: u32 = 2147483647u32; pub const STRSAFE_NO_TRUNCATION: u32 = 4096u32; pub const STRSAFE_NULL_ON_FAILURE: u32 = 2048u32; pub const STRSAFE_USE_SECURE_CRT: u32 = 0u32; #[repr(C)] pub struct STYLESTRUCT { pub styleOld: u32, pub styleNew: u32, } impl ::core::marker::Copy for STYLESTRUCT {} impl ::core::clone::Clone for STYLESTRUCT { fn clone(&self) -> Self { *self } } pub type SYSTEM_CURSOR_ID = u32; pub const OCR_APPSTARTING: SYSTEM_CURSOR_ID = 32650u32; pub const OCR_NORMAL: SYSTEM_CURSOR_ID = 32512u32; pub const OCR_CROSS: SYSTEM_CURSOR_ID = 32515u32; pub const OCR_HAND: SYSTEM_CURSOR_ID = 32649u32; pub const OCR_HELP: SYSTEM_CURSOR_ID = 32651u32; pub const OCR_IBEAM: SYSTEM_CURSOR_ID = 32513u32; pub const OCR_NO: SYSTEM_CURSOR_ID = 32648u32; pub const OCR_SIZEALL: SYSTEM_CURSOR_ID = 32646u32; pub const OCR_SIZENESW: SYSTEM_CURSOR_ID = 32643u32; pub const OCR_SIZENS: SYSTEM_CURSOR_ID = 32645u32; pub const OCR_SIZENWSE: SYSTEM_CURSOR_ID = 32642u32; pub const OCR_SIZEWE: SYSTEM_CURSOR_ID = 32644u32; pub const OCR_UP: SYSTEM_CURSOR_ID = 32516u32; pub const OCR_WAIT: SYSTEM_CURSOR_ID = 32514u32; pub type SYSTEM_METRICS_INDEX = u32; pub const SM_ARRANGE: SYSTEM_METRICS_INDEX = 56u32; pub const SM_CLEANBOOT: SYSTEM_METRICS_INDEX = 67u32; pub const SM_CMONITORS: SYSTEM_METRICS_INDEX = 80u32; pub const SM_CMOUSEBUTTONS: SYSTEM_METRICS_INDEX = 43u32; pub const SM_CONVERTIBLESLATEMODE: SYSTEM_METRICS_INDEX = 8195u32; pub const SM_CXBORDER: SYSTEM_METRICS_INDEX = 5u32; pub const SM_CXCURSOR: SYSTEM_METRICS_INDEX = 13u32; pub const SM_CXDLGFRAME: SYSTEM_METRICS_INDEX = 7u32; pub const SM_CXDOUBLECLK: SYSTEM_METRICS_INDEX = 36u32; pub const SM_CXDRAG: SYSTEM_METRICS_INDEX = 68u32; pub const SM_CXEDGE: SYSTEM_METRICS_INDEX = 45u32; pub const SM_CXFIXEDFRAME: SYSTEM_METRICS_INDEX = 7u32; pub const SM_CXFOCUSBORDER: SYSTEM_METRICS_INDEX = 83u32; pub const SM_CXFRAME: SYSTEM_METRICS_INDEX = 32u32; pub const SM_CXFULLSCREEN: SYSTEM_METRICS_INDEX = 16u32; pub const SM_CXHSCROLL: SYSTEM_METRICS_INDEX = 21u32; pub const SM_CXHTHUMB: SYSTEM_METRICS_INDEX = 10u32; pub const SM_CXICON: SYSTEM_METRICS_INDEX = 11u32; pub const SM_CXICONSPACING: SYSTEM_METRICS_INDEX = 38u32; pub const SM_CXMAXIMIZED: SYSTEM_METRICS_INDEX = 61u32; pub const SM_CXMAXTRACK: SYSTEM_METRICS_INDEX = 59u32; pub const SM_CXMENUCHECK: SYSTEM_METRICS_INDEX = 71u32; pub const SM_CXMENUSIZE: SYSTEM_METRICS_INDEX = 54u32; pub const SM_CXMIN: SYSTEM_METRICS_INDEX = 28u32; pub const SM_CXMINIMIZED: SYSTEM_METRICS_INDEX = 57u32; pub const SM_CXMINSPACING: SYSTEM_METRICS_INDEX = 47u32; pub const SM_CXMINTRACK: SYSTEM_METRICS_INDEX = 34u32; pub const SM_CXPADDEDBORDER: SYSTEM_METRICS_INDEX = 92u32; pub const SM_CXSCREEN: SYSTEM_METRICS_INDEX = 0u32; pub const SM_CXSIZE: SYSTEM_METRICS_INDEX = 30u32; pub const SM_CXSIZEFRAME: SYSTEM_METRICS_INDEX = 32u32; pub const SM_CXSMICON: SYSTEM_METRICS_INDEX = 49u32; pub const SM_CXSMSIZE: SYSTEM_METRICS_INDEX = 52u32; pub const SM_CXVIRTUALSCREEN: SYSTEM_METRICS_INDEX = 78u32; pub const SM_CXVSCROLL: SYSTEM_METRICS_INDEX = 2u32; pub const SM_CYBORDER: SYSTEM_METRICS_INDEX = 6u32; pub const SM_CYCAPTION: SYSTEM_METRICS_INDEX = 4u32; pub const SM_CYCURSOR: SYSTEM_METRICS_INDEX = 14u32; pub const SM_CYDLGFRAME: SYSTEM_METRICS_INDEX = 8u32; pub const SM_CYDOUBLECLK: SYSTEM_METRICS_INDEX = 37u32; pub const SM_CYDRAG: SYSTEM_METRICS_INDEX = 69u32; pub const SM_CYEDGE: SYSTEM_METRICS_INDEX = 46u32; pub const SM_CYFIXEDFRAME: SYSTEM_METRICS_INDEX = 8u32; pub const SM_CYFOCUSBORDER: SYSTEM_METRICS_INDEX = 84u32; pub const SM_CYFRAME: SYSTEM_METRICS_INDEX = 33u32; pub const SM_CYFULLSCREEN: SYSTEM_METRICS_INDEX = 17u32; pub const SM_CYHSCROLL: SYSTEM_METRICS_INDEX = 3u32; pub const SM_CYICON: SYSTEM_METRICS_INDEX = 12u32; pub const SM_CYICONSPACING: SYSTEM_METRICS_INDEX = 39u32; pub const SM_CYKANJIWINDOW: SYSTEM_METRICS_INDEX = 18u32; pub const SM_CYMAXIMIZED: SYSTEM_METRICS_INDEX = 62u32; pub const SM_CYMAXTRACK: SYSTEM_METRICS_INDEX = 60u32; pub const SM_CYMENU: SYSTEM_METRICS_INDEX = 15u32; pub const SM_CYMENUCHECK: SYSTEM_METRICS_INDEX = 72u32; pub const SM_CYMENUSIZE: SYSTEM_METRICS_INDEX = 55u32; pub const SM_CYMIN: SYSTEM_METRICS_INDEX = 29u32; pub const SM_CYMINIMIZED: SYSTEM_METRICS_INDEX = 58u32; pub const SM_CYMINSPACING: SYSTEM_METRICS_INDEX = 48u32; pub const SM_CYMINTRACK: SYSTEM_METRICS_INDEX = 35u32; pub const SM_CYSCREEN: SYSTEM_METRICS_INDEX = 1u32; pub const SM_CYSIZE: SYSTEM_METRICS_INDEX = 31u32; pub const SM_CYSIZEFRAME: SYSTEM_METRICS_INDEX = 33u32; pub const SM_CYSMCAPTION: SYSTEM_METRICS_INDEX = 51u32; pub const SM_CYSMICON: SYSTEM_METRICS_INDEX = 50u32; pub const SM_CYSMSIZE: SYSTEM_METRICS_INDEX = 53u32; pub const SM_CYVIRTUALSCREEN: SYSTEM_METRICS_INDEX = 79u32; pub const SM_CYVSCROLL: SYSTEM_METRICS_INDEX = 20u32; pub const SM_CYVTHUMB: SYSTEM_METRICS_INDEX = 9u32; pub const SM_DBCSENABLED: SYSTEM_METRICS_INDEX = 42u32; pub const SM_DEBUG: SYSTEM_METRICS_INDEX = 22u32; pub const SM_DIGITIZER: SYSTEM_METRICS_INDEX = 94u32; pub const SM_IMMENABLED: SYSTEM_METRICS_INDEX = 82u32; pub const SM_MAXIMUMTOUCHES: SYSTEM_METRICS_INDEX = 95u32; pub const SM_MEDIACENTER: SYSTEM_METRICS_INDEX = 87u32; pub const SM_MENUDROPALIGNMENT: SYSTEM_METRICS_INDEX = 40u32; pub const SM_MIDEASTENABLED: SYSTEM_METRICS_INDEX = 74u32; pub const SM_MOUSEPRESENT: SYSTEM_METRICS_INDEX = 19u32; pub const SM_MOUSEHORIZONTALWHEELPRESENT: SYSTEM_METRICS_INDEX = 91u32; pub const SM_MOUSEWHEELPRESENT: SYSTEM_METRICS_INDEX = 75u32; pub const SM_NETWORK: SYSTEM_METRICS_INDEX = 63u32; pub const SM_PENWINDOWS: SYSTEM_METRICS_INDEX = 41u32; pub const SM_REMOTECONTROL: SYSTEM_METRICS_INDEX = 8193u32; pub const SM_REMOTESESSION: SYSTEM_METRICS_INDEX = 4096u32; pub const SM_SAMEDISPLAYFORMAT: SYSTEM_METRICS_INDEX = 81u32; pub const SM_SECURE: SYSTEM_METRICS_INDEX = 44u32; pub const SM_SERVERR2: SYSTEM_METRICS_INDEX = 89u32; pub const SM_SHOWSOUNDS: SYSTEM_METRICS_INDEX = 70u32; pub const SM_SHUTTINGDOWN: SYSTEM_METRICS_INDEX = 8192u32; pub const SM_SLOWMACHINE: SYSTEM_METRICS_INDEX = 73u32; pub const SM_STARTER: SYSTEM_METRICS_INDEX = 88u32; pub const SM_SWAPBUTTON: SYSTEM_METRICS_INDEX = 23u32; pub const SM_SYSTEMDOCKED_: SYSTEM_METRICS_INDEX = 8196u32; pub const SM_TABLETPC: SYSTEM_METRICS_INDEX = 86u32; pub const SM_XVIRTUALSCREEN: SYSTEM_METRICS_INDEX = 76u32; pub const SM_YVIRTUALSCREEN: SYSTEM_METRICS_INDEX = 77u32; pub type SYSTEM_PARAMETERS_INFO_ACTION = u32; pub const SPI_GETBEEP: SYSTEM_PARAMETERS_INFO_ACTION = 1u32; pub const SPI_SETBEEP: SYSTEM_PARAMETERS_INFO_ACTION = 2u32; pub const SPI_GETMOUSE: SYSTEM_PARAMETERS_INFO_ACTION = 3u32; pub const SPI_SETMOUSE: SYSTEM_PARAMETERS_INFO_ACTION = 4u32; pub const SPI_GETBORDER: SYSTEM_PARAMETERS_INFO_ACTION = 5u32; pub const SPI_SETBORDER: SYSTEM_PARAMETERS_INFO_ACTION = 6u32; pub const SPI_GETKEYBOARDSPEED: SYSTEM_PARAMETERS_INFO_ACTION = 10u32; pub const SPI_SETKEYBOARDSPEED: SYSTEM_PARAMETERS_INFO_ACTION = 11u32; pub const SPI_LANGDRIVER: SYSTEM_PARAMETERS_INFO_ACTION = 12u32; pub const SPI_ICONHORIZONTALSPACING: SYSTEM_PARAMETERS_INFO_ACTION = 13u32; pub const SPI_GETSCREENSAVETIMEOUT: SYSTEM_PARAMETERS_INFO_ACTION = 14u32; pub const SPI_SETSCREENSAVETIMEOUT: SYSTEM_PARAMETERS_INFO_ACTION = 15u32; pub const SPI_GETSCREENSAVEACTIVE: SYSTEM_PARAMETERS_INFO_ACTION = 16u32; pub const SPI_SETSCREENSAVEACTIVE: SYSTEM_PARAMETERS_INFO_ACTION = 17u32; pub const SPI_GETGRIDGRANULARITY: SYSTEM_PARAMETERS_INFO_ACTION = 18u32; pub const SPI_SETGRIDGRANULARITY: SYSTEM_PARAMETERS_INFO_ACTION = 19u32; pub const SPI_SETDESKWALLPAPER: SYSTEM_PARAMETERS_INFO_ACTION = 20u32; pub const SPI_SETDESKPATTERN: SYSTEM_PARAMETERS_INFO_ACTION = 21u32; pub const SPI_GETKEYBOARDDELAY: SYSTEM_PARAMETERS_INFO_ACTION = 22u32; pub const SPI_SETKEYBOARDDELAY: SYSTEM_PARAMETERS_INFO_ACTION = 23u32; pub const SPI_ICONVERTICALSPACING: SYSTEM_PARAMETERS_INFO_ACTION = 24u32; pub const SPI_GETICONTITLEWRAP: SYSTEM_PARAMETERS_INFO_ACTION = 25u32; pub const SPI_SETICONTITLEWRAP: SYSTEM_PARAMETERS_INFO_ACTION = 26u32; pub const SPI_GETMENUDROPALIGNMENT: SYSTEM_PARAMETERS_INFO_ACTION = 27u32; pub const SPI_SETMENUDROPALIGNMENT: SYSTEM_PARAMETERS_INFO_ACTION = 28u32; pub const SPI_SETDOUBLECLKWIDTH: SYSTEM_PARAMETERS_INFO_ACTION = 29u32; pub const SPI_SETDOUBLECLKHEIGHT: SYSTEM_PARAMETERS_INFO_ACTION = 30u32; pub const SPI_GETICONTITLELOGFONT: SYSTEM_PARAMETERS_INFO_ACTION = 31u32; pub const SPI_SETDOUBLECLICKTIME: SYSTEM_PARAMETERS_INFO_ACTION = 32u32; pub const SPI_SETMOUSEBUTTONSWAP: SYSTEM_PARAMETERS_INFO_ACTION = 33u32; pub const SPI_SETICONTITLELOGFONT: SYSTEM_PARAMETERS_INFO_ACTION = 34u32; pub const SPI_GETFASTTASKSWITCH: SYSTEM_PARAMETERS_INFO_ACTION = 35u32; pub const SPI_SETFASTTASKSWITCH: SYSTEM_PARAMETERS_INFO_ACTION = 36u32; pub const SPI_SETDRAGFULLWINDOWS: SYSTEM_PARAMETERS_INFO_ACTION = 37u32; pub const SPI_GETDRAGFULLWINDOWS: SYSTEM_PARAMETERS_INFO_ACTION = 38u32; pub const SPI_GETNONCLIENTMETRICS: SYSTEM_PARAMETERS_INFO_ACTION = 41u32; pub const SPI_SETNONCLIENTMETRICS: SYSTEM_PARAMETERS_INFO_ACTION = 42u32; pub const SPI_GETMINIMIZEDMETRICS: SYSTEM_PARAMETERS_INFO_ACTION = 43u32; pub const SPI_SETMINIMIZEDMETRICS: SYSTEM_PARAMETERS_INFO_ACTION = 44u32; pub const SPI_GETICONMETRICS: SYSTEM_PARAMETERS_INFO_ACTION = 45u32; pub const SPI_SETICONMETRICS: SYSTEM_PARAMETERS_INFO_ACTION = 46u32; pub const SPI_SETWORKAREA: SYSTEM_PARAMETERS_INFO_ACTION = 47u32; pub const SPI_GETWORKAREA: SYSTEM_PARAMETERS_INFO_ACTION = 48u32; pub const SPI_SETPENWINDOWS: SYSTEM_PARAMETERS_INFO_ACTION = 49u32; pub const SPI_GETHIGHCONTRAST: SYSTEM_PARAMETERS_INFO_ACTION = 66u32; pub const SPI_SETHIGHCONTRAST: SYSTEM_PARAMETERS_INFO_ACTION = 67u32; pub const SPI_GETKEYBOARDPREF: SYSTEM_PARAMETERS_INFO_ACTION = 68u32; pub const SPI_SETKEYBOARDPREF: SYSTEM_PARAMETERS_INFO_ACTION = 69u32; pub const SPI_GETSCREENREADER: SYSTEM_PARAMETERS_INFO_ACTION = 70u32; pub const SPI_SETSCREENREADER: SYSTEM_PARAMETERS_INFO_ACTION = 71u32; pub const SPI_GETANIMATION: SYSTEM_PARAMETERS_INFO_ACTION = 72u32; pub const SPI_SETANIMATION: SYSTEM_PARAMETERS_INFO_ACTION = 73u32; pub const SPI_GETFONTSMOOTHING: SYSTEM_PARAMETERS_INFO_ACTION = 74u32; pub const SPI_SETFONTSMOOTHING: SYSTEM_PARAMETERS_INFO_ACTION = 75u32; pub const SPI_SETDRAGWIDTH: SYSTEM_PARAMETERS_INFO_ACTION = 76u32; pub const SPI_SETDRAGHEIGHT: SYSTEM_PARAMETERS_INFO_ACTION = 77u32; pub const SPI_SETHANDHELD: SYSTEM_PARAMETERS_INFO_ACTION = 78u32; pub const SPI_GETLOWPOWERTIMEOUT: SYSTEM_PARAMETERS_INFO_ACTION = 79u32; pub const SPI_GETPOWEROFFTIMEOUT: SYSTEM_PARAMETERS_INFO_ACTION = 80u32; pub const SPI_SETLOWPOWERTIMEOUT: SYSTEM_PARAMETERS_INFO_ACTION = 81u32; pub const SPI_SETPOWEROFFTIMEOUT: SYSTEM_PARAMETERS_INFO_ACTION = 82u32; pub const SPI_GETLOWPOWERACTIVE: SYSTEM_PARAMETERS_INFO_ACTION = 83u32; pub const SPI_GETPOWEROFFACTIVE: SYSTEM_PARAMETERS_INFO_ACTION = 84u32; pub const SPI_SETLOWPOWERACTIVE: SYSTEM_PARAMETERS_INFO_ACTION = 85u32; pub const SPI_SETPOWEROFFACTIVE: SYSTEM_PARAMETERS_INFO_ACTION = 86u32; pub const SPI_SETCURSORS: SYSTEM_PARAMETERS_INFO_ACTION = 87u32; pub const SPI_SETICONS: SYSTEM_PARAMETERS_INFO_ACTION = 88u32; pub const SPI_GETDEFAULTINPUTLANG: SYSTEM_PARAMETERS_INFO_ACTION = 89u32; pub const SPI_SETDEFAULTINPUTLANG: SYSTEM_PARAMETERS_INFO_ACTION = 90u32; pub const SPI_SETLANGTOGGLE: SYSTEM_PARAMETERS_INFO_ACTION = 91u32; pub const SPI_GETWINDOWSEXTENSION: SYSTEM_PARAMETERS_INFO_ACTION = 92u32; pub const SPI_SETMOUSETRAILS: SYSTEM_PARAMETERS_INFO_ACTION = 93u32; pub const SPI_GETMOUSETRAILS: SYSTEM_PARAMETERS_INFO_ACTION = 94u32; pub const SPI_SETSCREENSAVERRUNNING: SYSTEM_PARAMETERS_INFO_ACTION = 97u32; pub const SPI_SCREENSAVERRUNNING: SYSTEM_PARAMETERS_INFO_ACTION = 97u32; pub const SPI_GETFILTERKEYS: SYSTEM_PARAMETERS_INFO_ACTION = 50u32; pub const SPI_SETFILTERKEYS: SYSTEM_PARAMETERS_INFO_ACTION = 51u32; pub const SPI_GETTOGGLEKEYS: SYSTEM_PARAMETERS_INFO_ACTION = 52u32; pub const SPI_SETTOGGLEKEYS: SYSTEM_PARAMETERS_INFO_ACTION = 53u32; pub const SPI_GETMOUSEKEYS: SYSTEM_PARAMETERS_INFO_ACTION = 54u32; pub const SPI_SETMOUSEKEYS: SYSTEM_PARAMETERS_INFO_ACTION = 55u32; pub const SPI_GETSHOWSOUNDS: SYSTEM_PARAMETERS_INFO_ACTION = 56u32; pub const SPI_SETSHOWSOUNDS: SYSTEM_PARAMETERS_INFO_ACTION = 57u32; pub const SPI_GETSTICKYKEYS: SYSTEM_PARAMETERS_INFO_ACTION = 58u32; pub const SPI_SETSTICKYKEYS: SYSTEM_PARAMETERS_INFO_ACTION = 59u32; pub const SPI_GETACCESSTIMEOUT: SYSTEM_PARAMETERS_INFO_ACTION = 60u32; pub const SPI_SETACCESSTIMEOUT: SYSTEM_PARAMETERS_INFO_ACTION = 61u32; pub const SPI_GETSERIALKEYS: SYSTEM_PARAMETERS_INFO_ACTION = 62u32; pub const SPI_SETSERIALKEYS: SYSTEM_PARAMETERS_INFO_ACTION = 63u32; pub const SPI_GETSOUNDSENTRY: SYSTEM_PARAMETERS_INFO_ACTION = 64u32; pub const SPI_SETSOUNDSENTRY: SYSTEM_PARAMETERS_INFO_ACTION = 65u32; pub const SPI_GETSNAPTODEFBUTTON: SYSTEM_PARAMETERS_INFO_ACTION = 95u32; pub const SPI_SETSNAPTODEFBUTTON: SYSTEM_PARAMETERS_INFO_ACTION = 96u32; pub const SPI_GETMOUSEHOVERWIDTH: SYSTEM_PARAMETERS_INFO_ACTION = 98u32; pub const SPI_SETMOUSEHOVERWIDTH: SYSTEM_PARAMETERS_INFO_ACTION = 99u32; pub const SPI_GETMOUSEHOVERHEIGHT: SYSTEM_PARAMETERS_INFO_ACTION = 100u32; pub const SPI_SETMOUSEHOVERHEIGHT: SYSTEM_PARAMETERS_INFO_ACTION = 101u32; pub const SPI_GETMOUSEHOVERTIME: SYSTEM_PARAMETERS_INFO_ACTION = 102u32; pub const SPI_SETMOUSEHOVERTIME: SYSTEM_PARAMETERS_INFO_ACTION = 103u32; pub const SPI_GETWHEELSCROLLLINES: SYSTEM_PARAMETERS_INFO_ACTION = 104u32; pub const SPI_SETWHEELSCROLLLINES: SYSTEM_PARAMETERS_INFO_ACTION = 105u32; pub const SPI_GETMENUSHOWDELAY: SYSTEM_PARAMETERS_INFO_ACTION = 106u32; pub const SPI_SETMENUSHOWDELAY: SYSTEM_PARAMETERS_INFO_ACTION = 107u32; pub const SPI_GETWHEELSCROLLCHARS: SYSTEM_PARAMETERS_INFO_ACTION = 108u32; pub const SPI_SETWHEELSCROLLCHARS: SYSTEM_PARAMETERS_INFO_ACTION = 109u32; pub const SPI_GETSHOWIMEUI: SYSTEM_PARAMETERS_INFO_ACTION = 110u32; pub const SPI_SETSHOWIMEUI: SYSTEM_PARAMETERS_INFO_ACTION = 111u32; pub const SPI_GETMOUSESPEED: SYSTEM_PARAMETERS_INFO_ACTION = 112u32; pub const SPI_SETMOUSESPEED: SYSTEM_PARAMETERS_INFO_ACTION = 113u32; pub const SPI_GETSCREENSAVERRUNNING: SYSTEM_PARAMETERS_INFO_ACTION = 114u32; pub const SPI_GETDESKWALLPAPER: SYSTEM_PARAMETERS_INFO_ACTION = 115u32; pub const SPI_GETAUDIODESCRIPTION: SYSTEM_PARAMETERS_INFO_ACTION = 116u32; pub const SPI_SETAUDIODESCRIPTION: SYSTEM_PARAMETERS_INFO_ACTION = 117u32; pub const SPI_GETSCREENSAVESECURE: SYSTEM_PARAMETERS_INFO_ACTION = 118u32; pub const SPI_SETSCREENSAVESECURE: SYSTEM_PARAMETERS_INFO_ACTION = 119u32; pub const SPI_GETHUNGAPPTIMEOUT: SYSTEM_PARAMETERS_INFO_ACTION = 120u32; pub const SPI_SETHUNGAPPTIMEOUT: SYSTEM_PARAMETERS_INFO_ACTION = 121u32; pub const SPI_GETWAITTOKILLTIMEOUT: SYSTEM_PARAMETERS_INFO_ACTION = 122u32; pub const SPI_SETWAITTOKILLTIMEOUT: SYSTEM_PARAMETERS_INFO_ACTION = 123u32; pub const SPI_GETWAITTOKILLSERVICETIMEOUT: SYSTEM_PARAMETERS_INFO_ACTION = 124u32; pub const SPI_SETWAITTOKILLSERVICETIMEOUT: SYSTEM_PARAMETERS_INFO_ACTION = 125u32; pub const SPI_GETMOUSEDOCKTHRESHOLD: SYSTEM_PARAMETERS_INFO_ACTION = 126u32; pub const SPI_SETMOUSEDOCKTHRESHOLD: SYSTEM_PARAMETERS_INFO_ACTION = 127u32; pub const SPI_GETPENDOCKTHRESHOLD: SYSTEM_PARAMETERS_INFO_ACTION = 128u32; pub const SPI_SETPENDOCKTHRESHOLD: SYSTEM_PARAMETERS_INFO_ACTION = 129u32; pub const SPI_GETWINARRANGING: SYSTEM_PARAMETERS_INFO_ACTION = 130u32; pub const SPI_SETWINARRANGING: SYSTEM_PARAMETERS_INFO_ACTION = 131u32; pub const SPI_GETMOUSEDRAGOUTTHRESHOLD: SYSTEM_PARAMETERS_INFO_ACTION = 132u32; pub const SPI_SETMOUSEDRAGOUTTHRESHOLD: SYSTEM_PARAMETERS_INFO_ACTION = 133u32; pub const SPI_GETPENDRAGOUTTHRESHOLD: SYSTEM_PARAMETERS_INFO_ACTION = 134u32; pub const SPI_SETPENDRAGOUTTHRESHOLD: SYSTEM_PARAMETERS_INFO_ACTION = 135u32; pub const SPI_GETMOUSESIDEMOVETHRESHOLD: SYSTEM_PARAMETERS_INFO_ACTION = 136u32; pub const SPI_SETMOUSESIDEMOVETHRESHOLD: SYSTEM_PARAMETERS_INFO_ACTION = 137u32; pub const SPI_GETPENSIDEMOVETHRESHOLD: SYSTEM_PARAMETERS_INFO_ACTION = 138u32; pub const SPI_SETPENSIDEMOVETHRESHOLD: SYSTEM_PARAMETERS_INFO_ACTION = 139u32; pub const SPI_GETDRAGFROMMAXIMIZE: SYSTEM_PARAMETERS_INFO_ACTION = 140u32; pub const SPI_SETDRAGFROMMAXIMIZE: SYSTEM_PARAMETERS_INFO_ACTION = 141u32; pub const SPI_GETSNAPSIZING: SYSTEM_PARAMETERS_INFO_ACTION = 142u32; pub const SPI_SETSNAPSIZING: SYSTEM_PARAMETERS_INFO_ACTION = 143u32; pub const SPI_GETDOCKMOVING: SYSTEM_PARAMETERS_INFO_ACTION = 144u32; pub const SPI_SETDOCKMOVING: SYSTEM_PARAMETERS_INFO_ACTION = 145u32; pub const SPI_GETTOUCHPREDICTIONPARAMETERS: SYSTEM_PARAMETERS_INFO_ACTION = 156u32; pub const SPI_SETTOUCHPREDICTIONPARAMETERS: SYSTEM_PARAMETERS_INFO_ACTION = 157u32; pub const SPI_GETLOGICALDPIOVERRIDE: SYSTEM_PARAMETERS_INFO_ACTION = 158u32; pub const SPI_SETLOGICALDPIOVERRIDE: SYSTEM_PARAMETERS_INFO_ACTION = 159u32; pub const SPI_GETMENURECT: SYSTEM_PARAMETERS_INFO_ACTION = 162u32; pub const SPI_SETMENURECT: SYSTEM_PARAMETERS_INFO_ACTION = 163u32; pub const SPI_GETACTIVEWINDOWTRACKING: SYSTEM_PARAMETERS_INFO_ACTION = 4096u32; pub const SPI_SETACTIVEWINDOWTRACKING: SYSTEM_PARAMETERS_INFO_ACTION = 4097u32; pub const SPI_GETMENUANIMATION: SYSTEM_PARAMETERS_INFO_ACTION = 4098u32; pub const SPI_SETMENUANIMATION: SYSTEM_PARAMETERS_INFO_ACTION = 4099u32; pub const SPI_GETCOMBOBOXANIMATION: SYSTEM_PARAMETERS_INFO_ACTION = 4100u32; pub const SPI_SETCOMBOBOXANIMATION: SYSTEM_PARAMETERS_INFO_ACTION = 4101u32; pub const SPI_GETLISTBOXSMOOTHSCROLLING: SYSTEM_PARAMETERS_INFO_ACTION = 4102u32; pub const SPI_SETLISTBOXSMOOTHSCROLLING: SYSTEM_PARAMETERS_INFO_ACTION = 4103u32; pub const SPI_GETGRADIENTCAPTIONS: SYSTEM_PARAMETERS_INFO_ACTION = 4104u32; pub const SPI_SETGRADIENTCAPTIONS: SYSTEM_PARAMETERS_INFO_ACTION = 4105u32; pub const SPI_GETKEYBOARDCUES: SYSTEM_PARAMETERS_INFO_ACTION = 4106u32; pub const SPI_SETKEYBOARDCUES: SYSTEM_PARAMETERS_INFO_ACTION = 4107u32; pub const SPI_GETMENUUNDERLINES: SYSTEM_PARAMETERS_INFO_ACTION = 4106u32; pub const SPI_SETMENUUNDERLINES: SYSTEM_PARAMETERS_INFO_ACTION = 4107u32; pub const SPI_GETACTIVEWNDTRKZORDER: SYSTEM_PARAMETERS_INFO_ACTION = 4108u32; pub const SPI_SETACTIVEWNDTRKZORDER: SYSTEM_PARAMETERS_INFO_ACTION = 4109u32; pub const SPI_GETHOTTRACKING: SYSTEM_PARAMETERS_INFO_ACTION = 4110u32; pub const SPI_SETHOTTRACKING: SYSTEM_PARAMETERS_INFO_ACTION = 4111u32; pub const SPI_GETMENUFADE: SYSTEM_PARAMETERS_INFO_ACTION = 4114u32; pub const SPI_SETMENUFADE: SYSTEM_PARAMETERS_INFO_ACTION = 4115u32; pub const SPI_GETSELECTIONFADE: SYSTEM_PARAMETERS_INFO_ACTION = 4116u32; pub const SPI_SETSELECTIONFADE: SYSTEM_PARAMETERS_INFO_ACTION = 4117u32; pub const SPI_GETTOOLTIPANIMATION: SYSTEM_PARAMETERS_INFO_ACTION = 4118u32; pub const SPI_SETTOOLTIPANIMATION: SYSTEM_PARAMETERS_INFO_ACTION = 4119u32; pub const SPI_GETTOOLTIPFADE: SYSTEM_PARAMETERS_INFO_ACTION = 4120u32; pub const SPI_SETTOOLTIPFADE: SYSTEM_PARAMETERS_INFO_ACTION = 4121u32; pub const SPI_GETCURSORSHADOW: SYSTEM_PARAMETERS_INFO_ACTION = 4122u32; pub const SPI_SETCURSORSHADOW: SYSTEM_PARAMETERS_INFO_ACTION = 4123u32; pub const SPI_GETMOUSESONAR: SYSTEM_PARAMETERS_INFO_ACTION = 4124u32; pub const SPI_SETMOUSESONAR: SYSTEM_PARAMETERS_INFO_ACTION = 4125u32; pub const SPI_GETMOUSECLICKLOCK: SYSTEM_PARAMETERS_INFO_ACTION = 4126u32; pub const SPI_SETMOUSECLICKLOCK: SYSTEM_PARAMETERS_INFO_ACTION = 4127u32; pub const SPI_GETMOUSEVANISH: SYSTEM_PARAMETERS_INFO_ACTION = 4128u32; pub const SPI_SETMOUSEVANISH: SYSTEM_PARAMETERS_INFO_ACTION = 4129u32; pub const SPI_GETFLATMENU: SYSTEM_PARAMETERS_INFO_ACTION = 4130u32; pub const SPI_SETFLATMENU: SYSTEM_PARAMETERS_INFO_ACTION = 4131u32; pub const SPI_GETDROPSHADOW: SYSTEM_PARAMETERS_INFO_ACTION = 4132u32; pub const SPI_SETDROPSHADOW: SYSTEM_PARAMETERS_INFO_ACTION = 4133u32; pub const SPI_GETBLOCKSENDINPUTRESETS: SYSTEM_PARAMETERS_INFO_ACTION = 4134u32; pub const SPI_SETBLOCKSENDINPUTRESETS: SYSTEM_PARAMETERS_INFO_ACTION = 4135u32; pub const SPI_GETUIEFFECTS: SYSTEM_PARAMETERS_INFO_ACTION = 4158u32; pub const SPI_SETUIEFFECTS: SYSTEM_PARAMETERS_INFO_ACTION = 4159u32; pub const SPI_GETDISABLEOVERLAPPEDCONTENT: SYSTEM_PARAMETERS_INFO_ACTION = 4160u32; pub const SPI_SETDISABLEOVERLAPPEDCONTENT: SYSTEM_PARAMETERS_INFO_ACTION = 4161u32; pub const SPI_GETCLIENTAREAANIMATION: SYSTEM_PARAMETERS_INFO_ACTION = 4162u32; pub const SPI_SETCLIENTAREAANIMATION: SYSTEM_PARAMETERS_INFO_ACTION = 4163u32; pub const SPI_GETCLEARTYPE: SYSTEM_PARAMETERS_INFO_ACTION = 4168u32; pub const SPI_SETCLEARTYPE: SYSTEM_PARAMETERS_INFO_ACTION = 4169u32; pub const SPI_GETSPEECHRECOGNITION: SYSTEM_PARAMETERS_INFO_ACTION = 4170u32; pub const SPI_SETSPEECHRECOGNITION: SYSTEM_PARAMETERS_INFO_ACTION = 4171u32; pub const SPI_GETCARETBROWSING: SYSTEM_PARAMETERS_INFO_ACTION = 4172u32; pub const SPI_SETCARETBROWSING: SYSTEM_PARAMETERS_INFO_ACTION = 4173u32; pub const SPI_GETTHREADLOCALINPUTSETTINGS: SYSTEM_PARAMETERS_INFO_ACTION = 4174u32; pub const SPI_SETTHREADLOCALINPUTSETTINGS: SYSTEM_PARAMETERS_INFO_ACTION = 4175u32; pub const SPI_GETSYSTEMLANGUAGEBAR: SYSTEM_PARAMETERS_INFO_ACTION = 4176u32; pub const SPI_SETSYSTEMLANGUAGEBAR: SYSTEM_PARAMETERS_INFO_ACTION = 4177u32; pub const SPI_GETFOREGROUNDLOCKTIMEOUT: SYSTEM_PARAMETERS_INFO_ACTION = 8192u32; pub const SPI_SETFOREGROUNDLOCKTIMEOUT: SYSTEM_PARAMETERS_INFO_ACTION = 8193u32; pub const SPI_GETACTIVEWNDTRKTIMEOUT: SYSTEM_PARAMETERS_INFO_ACTION = 8194u32; pub const SPI_SETACTIVEWNDTRKTIMEOUT: SYSTEM_PARAMETERS_INFO_ACTION = 8195u32; pub const SPI_GETFOREGROUNDFLASHCOUNT: SYSTEM_PARAMETERS_INFO_ACTION = 8196u32; pub const SPI_SETFOREGROUNDFLASHCOUNT: SYSTEM_PARAMETERS_INFO_ACTION = 8197u32; pub const SPI_GETCARETWIDTH: SYSTEM_PARAMETERS_INFO_ACTION = 8198u32; pub const SPI_SETCARETWIDTH: SYSTEM_PARAMETERS_INFO_ACTION = 8199u32; pub const SPI_GETMOUSECLICKLOCKTIME: SYSTEM_PARAMETERS_INFO_ACTION = 8200u32; pub const SPI_SETMOUSECLICKLOCKTIME: SYSTEM_PARAMETERS_INFO_ACTION = 8201u32; pub const SPI_GETFONTSMOOTHINGTYPE: SYSTEM_PARAMETERS_INFO_ACTION = 8202u32; pub const SPI_SETFONTSMOOTHINGTYPE: SYSTEM_PARAMETERS_INFO_ACTION = 8203u32; pub const SPI_GETFONTSMOOTHINGCONTRAST: SYSTEM_PARAMETERS_INFO_ACTION = 8204u32; pub const SPI_SETFONTSMOOTHINGCONTRAST: SYSTEM_PARAMETERS_INFO_ACTION = 8205u32; pub const SPI_GETFOCUSBORDERWIDTH: SYSTEM_PARAMETERS_INFO_ACTION = 8206u32; pub const SPI_SETFOCUSBORDERWIDTH: SYSTEM_PARAMETERS_INFO_ACTION = 8207u32; pub const SPI_GETFOCUSBORDERHEIGHT: SYSTEM_PARAMETERS_INFO_ACTION = 8208u32; pub const SPI_SETFOCUSBORDERHEIGHT: SYSTEM_PARAMETERS_INFO_ACTION = 8209u32; pub const SPI_GETFONTSMOOTHINGORIENTATION: SYSTEM_PARAMETERS_INFO_ACTION = 8210u32; pub const SPI_SETFONTSMOOTHINGORIENTATION: SYSTEM_PARAMETERS_INFO_ACTION = 8211u32; pub const SPI_GETMINIMUMHITRADIUS: SYSTEM_PARAMETERS_INFO_ACTION = 8212u32; pub const SPI_SETMINIMUMHITRADIUS: SYSTEM_PARAMETERS_INFO_ACTION = 8213u32; pub const SPI_GETMESSAGEDURATION: SYSTEM_PARAMETERS_INFO_ACTION = 8214u32; pub const SPI_SETMESSAGEDURATION: SYSTEM_PARAMETERS_INFO_ACTION = 8215u32; pub const SPI_GETCONTACTVISUALIZATION: SYSTEM_PARAMETERS_INFO_ACTION = 8216u32; pub const SPI_SETCONTACTVISUALIZATION: SYSTEM_PARAMETERS_INFO_ACTION = 8217u32; pub const SPI_GETGESTUREVISUALIZATION: SYSTEM_PARAMETERS_INFO_ACTION = 8218u32; pub const SPI_SETGESTUREVISUALIZATION: SYSTEM_PARAMETERS_INFO_ACTION = 8219u32; pub const SPI_GETMOUSEWHEELROUTING: SYSTEM_PARAMETERS_INFO_ACTION = 8220u32; pub const SPI_SETMOUSEWHEELROUTING: SYSTEM_PARAMETERS_INFO_ACTION = 8221u32; pub const SPI_GETPENVISUALIZATION: SYSTEM_PARAMETERS_INFO_ACTION = 8222u32; pub const SPI_SETPENVISUALIZATION: SYSTEM_PARAMETERS_INFO_ACTION = 8223u32; pub const SPI_GETPENARBITRATIONTYPE: SYSTEM_PARAMETERS_INFO_ACTION = 8224u32; pub const SPI_SETPENARBITRATIONTYPE: SYSTEM_PARAMETERS_INFO_ACTION = 8225u32; pub const SPI_GETCARETTIMEOUT: SYSTEM_PARAMETERS_INFO_ACTION = 8226u32; pub const SPI_SETCARETTIMEOUT: SYSTEM_PARAMETERS_INFO_ACTION = 8227u32; pub const SPI_GETHANDEDNESS: SYSTEM_PARAMETERS_INFO_ACTION = 8228u32; pub const SPI_SETHANDEDNESS: SYSTEM_PARAMETERS_INFO_ACTION = 8229u32; pub type SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS = u32; pub const SPIF_UPDATEINIFILE: SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS = 1u32; pub const SPIF_SENDCHANGE: SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS = 2u32; pub const SPIF_SENDWININICHANGE: SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS = 2u32; pub type SYS_COLOR_INDEX = u32; pub const COLOR_3DDKSHADOW: SYS_COLOR_INDEX = 21u32; pub const COLOR_3DFACE: SYS_COLOR_INDEX = 15u32; pub const COLOR_3DHIGHLIGHT: SYS_COLOR_INDEX = 20u32; pub const COLOR_3DHILIGHT: SYS_COLOR_INDEX = 20u32; pub const COLOR_3DLIGHT: SYS_COLOR_INDEX = 22u32; pub const COLOR_3DSHADOW: SYS_COLOR_INDEX = 16u32; pub const COLOR_ACTIVEBORDER: SYS_COLOR_INDEX = 10u32; pub const COLOR_ACTIVECAPTION: SYS_COLOR_INDEX = 2u32; pub const COLOR_APPWORKSPACE: SYS_COLOR_INDEX = 12u32; pub const COLOR_BACKGROUND: SYS_COLOR_INDEX = 1u32; pub const COLOR_BTNFACE: SYS_COLOR_INDEX = 15u32; pub const _COLOR_BTNHIGHLIGHT: SYS_COLOR_INDEX = 20u32; pub const _COLOR_BTNHILIGHT: SYS_COLOR_INDEX = 20u32; pub const COLOR_BTNSHADOW: SYS_COLOR_INDEX = 16u32; pub const COLOR_BTNTEXT: SYS_COLOR_INDEX = 18u32; pub const COLOR_CAPTIONTEXT: SYS_COLOR_INDEX = 9u32; pub const COLOR_DESKTOP: SYS_COLOR_INDEX = 1u32; pub const COLOR_GRADIENTACTIVECAPTION: SYS_COLOR_INDEX = 27u32; pub const COLOR_GRADIENTINACTIVECAPTION: SYS_COLOR_INDEX = 28u32; pub const COLOR_GRAYTEXT: SYS_COLOR_INDEX = 17u32; pub const COLOR_HIGHLIGHT: SYS_COLOR_INDEX = 13u32; pub const COLOR_HIGHLIGHTTEXT: SYS_COLOR_INDEX = 14u32; pub const COLOR_HOTLIGHT: SYS_COLOR_INDEX = 26u32; pub const COLOR_INACTIVEBORDER: SYS_COLOR_INDEX = 11u32; pub const COLOR_INACTIVECAPTION: SYS_COLOR_INDEX = 3u32; pub const COLOR_INACTIVECAPTIONTEXT: SYS_COLOR_INDEX = 19u32; pub const COLOR_INFOBK: SYS_COLOR_INDEX = 24u32; pub const COLOR_INFOTEXT: SYS_COLOR_INDEX = 23u32; pub const COLOR_MENU: SYS_COLOR_INDEX = 4u32; pub const COLOR_MENUHILIGHT: SYS_COLOR_INDEX = 29u32; pub const COLOR_MENUBAR: SYS_COLOR_INDEX = 30u32; pub const COLOR_MENUTEXT: SYS_COLOR_INDEX = 7u32; pub const COLOR_SCROLLBAR: SYS_COLOR_INDEX = 0u32; pub const COLOR_WINDOW: SYS_COLOR_INDEX = 5u32; pub const COLOR_WINDOWFRAME: SYS_COLOR_INDEX = 6u32; pub const COLOR_WINDOWTEXT: SYS_COLOR_INDEX = 8u32; pub type TILE_WINDOWS_HOW = u32; pub const MDITILE_HORIZONTAL: TILE_WINDOWS_HOW = 1u32; pub const MDITILE_VERTICAL: TILE_WINDOWS_HOW = 0u32; #[cfg(feature = "Win32_Foundation")] pub type TIMERPROC = ::core::option::Option<unsafe extern "system" fn(param0: super::super::Foundation::HWND, param1: u32, param2: usize, param3: u32)>; pub const TIMERV_COALESCING_MAX: u32 = 2147483637u32; pub const TIMERV_COALESCING_MIN: u32 = 1u32; pub const TIMERV_DEFAULT_COALESCING: u32 = 0u32; pub const TIMERV_NO_COALESCING: u32 = 4294967295u32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct TITLEBARINFO { pub cbSize: u32, pub rcTitleBar: super::super::Foundation::RECT, pub rgstate: [u32; 6], } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for TITLEBARINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for TITLEBARINFO { fn clone(&self) -> Self { *self } } #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct TITLEBARINFOEX { pub cbSize: u32, pub rcTitleBar: super::super::Foundation::RECT, pub rgstate: [u32; 6], pub rgrect: [super::super::Foundation::RECT; 6], } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for TITLEBARINFOEX {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for TITLEBARINFOEX { fn clone(&self) -> Self { *self } } pub const TKF_AVAILABLE: u32 = 2u32; pub const TKF_CONFIRMHOTKEY: u32 = 8u32; pub const TKF_HOTKEYACTIVE: u32 = 4u32; pub const TKF_HOTKEYSOUND: u32 = 16u32; pub const TKF_INDICATOR: u32 = 32u32; pub const TKF_TOGGLEKEYSON: u32 = 1u32; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_LATENCY: u32 = 8u32; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_DELTA: f32 = 0.001f32; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_EXPO_SMOOTH_ALPHA: f32 = 0.99f32; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_LAMBDA_LEARNING_RATE: f32 = 0.001f32; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_LAMBDA_MAX: f32 = 0.999f32; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_LAMBDA_MIN: f32 = 0.9f32; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_SAMPLETIME: u32 = 8u32; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_USE_HW_TIMESTAMP: u32 = 1u32; pub const TOUCH_FLAG_NONE: u32 = 0u32; pub const TOUCH_HIT_TESTING_CLIENT: u32 = 1u32; pub const TOUCH_HIT_TESTING_DEFAULT: u32 = 0u32; pub const TOUCH_HIT_TESTING_NONE: u32 = 2u32; pub const TOUCH_HIT_TESTING_PROXIMITY_CLOSEST: u32 = 0u32; pub const TOUCH_HIT_TESTING_PROXIMITY_FARTHEST: u32 = 4095u32; pub const TOUCH_MASK_CONTACTAREA: u32 = 1u32; pub const TOUCH_MASK_NONE: u32 = 0u32; pub const TOUCH_MASK_ORIENTATION: u32 = 2u32; pub const TOUCH_MASK_PRESSURE: u32 = 4u32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct TPMPARAMS { pub cbSize: u32, pub rcExclude: super::super::Foundation::RECT, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for TPMPARAMS {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for TPMPARAMS { fn clone(&self) -> Self { *self } } pub type TRACK_POPUP_MENU_FLAGS = u32; pub const TPM_LEFTBUTTON: TRACK_POPUP_MENU_FLAGS = 0u32; pub const TPM_RIGHTBUTTON: TRACK_POPUP_MENU_FLAGS = 2u32; pub const TPM_LEFTALIGN: TRACK_POPUP_MENU_FLAGS = 0u32; pub const TPM_CENTERALIGN: TRACK_POPUP_MENU_FLAGS = 4u32; pub const TPM_RIGHTALIGN: TRACK_POPUP_MENU_FLAGS = 8u32; pub const TPM_TOPALIGN: TRACK_POPUP_MENU_FLAGS = 0u32; pub const TPM_VCENTERALIGN: TRACK_POPUP_MENU_FLAGS = 16u32; pub const TPM_BOTTOMALIGN: TRACK_POPUP_MENU_FLAGS = 32u32; pub const TPM_HORIZONTAL: TRACK_POPUP_MENU_FLAGS = 0u32; pub const TPM_VERTICAL: TRACK_POPUP_MENU_FLAGS = 64u32; pub const TPM_NONOTIFY: TRACK_POPUP_MENU_FLAGS = 128u32; pub const TPM_RETURNCMD: TRACK_POPUP_MENU_FLAGS = 256u32; pub const TPM_RECURSE: TRACK_POPUP_MENU_FLAGS = 1u32; pub const TPM_HORPOSANIMATION: TRACK_POPUP_MENU_FLAGS = 1024u32; pub const TPM_HORNEGANIMATION: TRACK_POPUP_MENU_FLAGS = 2048u32; pub const TPM_VERPOSANIMATION: TRACK_POPUP_MENU_FLAGS = 4096u32; pub const TPM_VERNEGANIMATION: TRACK_POPUP_MENU_FLAGS = 8192u32; pub const TPM_NOANIMATION: TRACK_POPUP_MENU_FLAGS = 16384u32; pub const TPM_LAYOUTRTL: TRACK_POPUP_MENU_FLAGS = 32768u32; pub const TPM_WORKAREA: TRACK_POPUP_MENU_FLAGS = 65536u32; #[repr(C)] pub struct TouchPredictionParameters { pub cbSize: u32, pub dwLatency: u32, pub dwSampleTime: u32, pub bUseHWTimeStamp: u32, } impl ::core::marker::Copy for TouchPredictionParameters {} impl ::core::clone::Clone for TouchPredictionParameters { fn clone(&self) -> Self { *self } } pub const UISF_ACTIVE: u32 = 4u32; pub const UISF_HIDEACCEL: u32 = 2u32; pub const UISF_HIDEFOCUS: u32 = 1u32; pub const UIS_CLEAR: u32 = 2u32; pub const UIS_INITIALIZE: u32 = 3u32; pub const UIS_SET: u32 = 1u32; pub const UNICODE_NOCHAR: u32 = 65535u32; pub const UOI_TIMERPROC_EXCEPTION_SUPPRESSION: u32 = 7u32; #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct UPDATELAYEREDWINDOWINFO { pub cbSize: u32, pub hdcDst: super::super::Graphics::Gdi::HDC, pub pptDst: *mut super::super::Foundation::POINT, pub psize: *mut super::super::Foundation::SIZE, pub hdcSrc: super::super::Graphics::Gdi::HDC, pub pptSrc: *mut super::super::Foundation::POINT, pub crKey: u32, pub pblend: *mut super::super::Graphics::Gdi::BLENDFUNCTION, pub dwFlags: UPDATE_LAYERED_WINDOW_FLAGS, pub prcDirty: *mut super::super::Foundation::RECT, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for UPDATELAYEREDWINDOWINFO {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for UPDATELAYEREDWINDOWINFO { fn clone(&self) -> Self { *self } } pub type UPDATE_LAYERED_WINDOW_FLAGS = u32; pub const ULW_ALPHA: UPDATE_LAYERED_WINDOW_FLAGS = 2u32; pub const ULW_COLORKEY: UPDATE_LAYERED_WINDOW_FLAGS = 1u32; pub const ULW_OPAQUE: UPDATE_LAYERED_WINDOW_FLAGS = 4u32; pub const ULW_EX_NORESIZE: UPDATE_LAYERED_WINDOW_FLAGS = 8u32; pub const USER_DEFAULT_SCREEN_DPI: u32 = 96u32; pub const USER_TIMER_MAXIMUM: u32 = 2147483647u32; pub const USER_TIMER_MINIMUM: u32 = 10u32; pub const WA_ACTIVE: u32 = 1u32; pub const WA_CLICKACTIVE: u32 = 2u32; pub const WA_INACTIVE: u32 = 0u32; pub const WHEEL_DELTA: u32 = 120u32; pub const WH_HARDWARE: u32 = 8u32; pub const WH_MAX: u32 = 14u32; pub const WH_MAXHOOK: u32 = 14u32; pub const WH_MIN: i32 = -1i32; pub const WH_MINHOOK: i32 = -1i32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct WINDOWINFO { pub cbSize: u32, pub rcWindow: super::super::Foundation::RECT, pub rcClient: super::super::Foundation::RECT, pub dwStyle: u32, pub dwExStyle: u32, pub dwWindowStatus: u32, pub cxWindowBorders: u32, pub cyWindowBorders: u32, pub atomWindowType: u16, pub wCreatorVersion: u16, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for WINDOWINFO {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for WINDOWINFO { fn clone(&self) -> Self { *self } } #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct WINDOWPLACEMENT { pub length: u32, pub flags: WINDOWPLACEMENT_FLAGS, pub showCmd: SHOW_WINDOW_CMD, pub ptMinPosition: super::super::Foundation::POINT, pub ptMaxPosition: super::super::Foundation::POINT, pub rcNormalPosition: super::super::Foundation::RECT, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for WINDOWPLACEMENT {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for WINDOWPLACEMENT { fn clone(&self) -> Self { *self } } pub type WINDOWPLACEMENT_FLAGS = u32; pub const WPF_ASYNCWINDOWPLACEMENT: WINDOWPLACEMENT_FLAGS = 4u32; pub const WPF_RESTORETOMAXIMIZED: WINDOWPLACEMENT_FLAGS = 2u32; pub const WPF_SETMINPOSITION: WINDOWPLACEMENT_FLAGS = 1u32; #[repr(C)] #[cfg(feature = "Win32_Foundation")] pub struct WINDOWPOS { pub hwnd: super::super::Foundation::HWND, pub hwndInsertAfter: super::super::Foundation::HWND, pub x: i32, pub y: i32, pub cx: i32, pub cy: i32, pub flags: SET_WINDOW_POS_FLAGS, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for WINDOWPOS {} #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for WINDOWPOS { fn clone(&self) -> Self { *self } } pub type WINDOWS_HOOK_ID = i32; pub const WH_CALLWNDPROC: WINDOWS_HOOK_ID = 4i32; pub const WH_CALLWNDPROCRET: WINDOWS_HOOK_ID = 12i32; pub const WH_CBT: WINDOWS_HOOK_ID = 5i32; pub const WH_DEBUG: WINDOWS_HOOK_ID = 9i32; pub const WH_FOREGROUNDIDLE: WINDOWS_HOOK_ID = 11i32; pub const WH_GETMESSAGE: WINDOWS_HOOK_ID = 3i32; pub const WH_JOURNALPLAYBACK: WINDOWS_HOOK_ID = 1i32; pub const WH_JOURNALRECORD: WINDOWS_HOOK_ID = 0i32; pub const WH_KEYBOARD: WINDOWS_HOOK_ID = 2i32; pub const WH_KEYBOARD_LL: WINDOWS_HOOK_ID = 13i32; pub const WH_MOUSE: WINDOWS_HOOK_ID = 7i32; pub const WH_MOUSE_LL: WINDOWS_HOOK_ID = 14i32; pub const WH_MSGFILTER: WINDOWS_HOOK_ID = -1i32; pub const WH_SHELL: WINDOWS_HOOK_ID = 10i32; pub const WH_SYSMSGFILTER: WINDOWS_HOOK_ID = 6i32; pub type WINDOW_DISPLAY_AFFINITY = u32; pub const WDA_NONE: WINDOW_DISPLAY_AFFINITY = 0u32; pub const WDA_MONITOR: WINDOW_DISPLAY_AFFINITY = 1u32; pub const WDA_EXCLUDEFROMCAPTURE: WINDOW_DISPLAY_AFFINITY = 17u32; pub type WINDOW_EX_STYLE = u32; pub const WS_EX_DLGMODALFRAME: WINDOW_EX_STYLE = 1u32; pub const WS_EX_NOPARENTNOTIFY: WINDOW_EX_STYLE = 4u32; pub const WS_EX_TOPMOST: WINDOW_EX_STYLE = 8u32; pub const WS_EX_ACCEPTFILES: WINDOW_EX_STYLE = 16u32; pub const WS_EX_TRANSPARENT: WINDOW_EX_STYLE = 32u32; pub const WS_EX_MDICHILD: WINDOW_EX_STYLE = 64u32; pub const WS_EX_TOOLWINDOW: WINDOW_EX_STYLE = 128u32; pub const WS_EX_WINDOWEDGE: WINDOW_EX_STYLE = 256u32; pub const WS_EX_CLIENTEDGE: WINDOW_EX_STYLE = 512u32; pub const WS_EX_CONTEXTHELP: WINDOW_EX_STYLE = 1024u32; pub const WS_EX_RIGHT: WINDOW_EX_STYLE = 4096u32; pub const WS_EX_LEFT: WINDOW_EX_STYLE = 0u32; pub const WS_EX_RTLREADING: WINDOW_EX_STYLE = 8192u32; pub const WS_EX_LTRREADING: WINDOW_EX_STYLE = 0u32; pub const WS_EX_LEFTSCROLLBAR: WINDOW_EX_STYLE = 16384u32; pub const WS_EX_RIGHTSCROLLBAR: WINDOW_EX_STYLE = 0u32; pub const WS_EX_CONTROLPARENT: WINDOW_EX_STYLE = 65536u32; pub const WS_EX_STATICEDGE: WINDOW_EX_STYLE = 131072u32; pub const WS_EX_APPWINDOW: WINDOW_EX_STYLE = 262144u32; pub const WS_EX_OVERLAPPEDWINDOW: WINDOW_EX_STYLE = 768u32; pub const WS_EX_PALETTEWINDOW: WINDOW_EX_STYLE = 392u32; pub const WS_EX_LAYERED: WINDOW_EX_STYLE = 524288u32; pub const WS_EX_NOINHERITLAYOUT: WINDOW_EX_STYLE = 1048576u32; pub const WS_EX_NOREDIRECTIONBITMAP: WINDOW_EX_STYLE = 2097152u32; pub const WS_EX_LAYOUTRTL: WINDOW_EX_STYLE = 4194304u32; pub const WS_EX_COMPOSITED: WINDOW_EX_STYLE = 33554432u32; pub const WS_EX_NOACTIVATE: WINDOW_EX_STYLE = 134217728u32; pub type WINDOW_LONG_PTR_INDEX = i32; pub const GWL_EXSTYLE: WINDOW_LONG_PTR_INDEX = -20i32; pub const GWLP_HINSTANCE: WINDOW_LONG_PTR_INDEX = -6i32; pub const GWLP_HWNDPARENT: WINDOW_LONG_PTR_INDEX = -8i32; pub const GWLP_ID: WINDOW_LONG_PTR_INDEX = -12i32; pub const GWL_STYLE: WINDOW_LONG_PTR_INDEX = -16i32; pub const GWLP_USERDATA: WINDOW_LONG_PTR_INDEX = -21i32; pub const GWLP_WNDPROC: WINDOW_LONG_PTR_INDEX = -4i32; pub const GWL_HINSTANCE: WINDOW_LONG_PTR_INDEX = -6i32; pub const GWL_ID: WINDOW_LONG_PTR_INDEX = -12i32; pub const GWL_USERDATA: WINDOW_LONG_PTR_INDEX = -21i32; pub const GWL_WNDPROC: WINDOW_LONG_PTR_INDEX = -4i32; pub const GWL_HWNDPARENT: WINDOW_LONG_PTR_INDEX = -8i32; pub type WINDOW_MESSAGE_FILTER_ACTION = u32; pub const MSGFLT_ALLOW: WINDOW_MESSAGE_FILTER_ACTION = 1u32; pub const MSGFLT_DISALLOW: WINDOW_MESSAGE_FILTER_ACTION = 2u32; pub const MSGFLT_RESET: WINDOW_MESSAGE_FILTER_ACTION = 0u32; pub type WINDOW_STYLE = u32; pub const WS_OVERLAPPED: WINDOW_STYLE = 0u32; pub const WS_POPUP: WINDOW_STYLE = 2147483648u32; pub const WS_CHILD: WINDOW_STYLE = 1073741824u32; pub const WS_MINIMIZE: WINDOW_STYLE = 536870912u32; pub const WS_VISIBLE: WINDOW_STYLE = 268435456u32; pub const WS_DISABLED: WINDOW_STYLE = 134217728u32; pub const WS_CLIPSIBLINGS: WINDOW_STYLE = 67108864u32; pub const WS_CLIPCHILDREN: WINDOW_STYLE = 33554432u32; pub const WS_MAXIMIZE: WINDOW_STYLE = 16777216u32; pub const WS_CAPTION: WINDOW_STYLE = 12582912u32; pub const WS_BORDER: WINDOW_STYLE = 8388608u32; pub const WS_DLGFRAME: WINDOW_STYLE = 4194304u32; pub const WS_VSCROLL: WINDOW_STYLE = 2097152u32; pub const WS_HSCROLL: WINDOW_STYLE = 1048576u32; pub const WS_SYSMENU: WINDOW_STYLE = 524288u32; pub const WS_THICKFRAME: WINDOW_STYLE = 262144u32; pub const WS_GROUP: WINDOW_STYLE = 131072u32; pub const WS_TABSTOP: WINDOW_STYLE = 65536u32; pub const WS_MINIMIZEBOX: WINDOW_STYLE = 131072u32; pub const WS_MAXIMIZEBOX: WINDOW_STYLE = 65536u32; pub const WS_TILED: WINDOW_STYLE = 0u32; pub const WS_ICONIC: WINDOW_STYLE = 536870912u32; pub const WS_SIZEBOX: WINDOW_STYLE = 262144u32; pub const WS_TILEDWINDOW: WINDOW_STYLE = 13565952u32; pub const WS_OVERLAPPEDWINDOW: WINDOW_STYLE = 13565952u32; pub const WS_POPUPWINDOW: WINDOW_STYLE = 2156396544u32; pub const WS_CHILDWINDOW: WINDOW_STYLE = 1073741824u32; pub const WS_ACTIVECAPTION: WINDOW_STYLE = 1u32; pub const WINEVENT_INCONTEXT: u32 = 4u32; pub const WINEVENT_OUTOFCONTEXT: u32 = 0u32; pub const WINEVENT_SKIPOWNPROCESS: u32 = 2u32; pub const WINEVENT_SKIPOWNTHREAD: u32 = 1u32; pub const WINSTA_ACCESSCLIPBOARD: i32 = 4i32; pub const WINSTA_ACCESSGLOBALATOMS: i32 = 32i32; pub const WINSTA_CREATEDESKTOP: i32 = 8i32; pub const WINSTA_ENUMDESKTOPS: i32 = 1i32; pub const WINSTA_ENUMERATE: i32 = 256i32; pub const WINSTA_EXITWINDOWS: i32 = 64i32; pub const WINSTA_READATTRIBUTES: i32 = 2i32; pub const WINSTA_READSCREEN: i32 = 512i32; pub const WINSTA_WRITEATTRIBUTES: i32 = 16i32; pub const WMSZ_BOTTOM: u32 = 6u32; pub const WMSZ_BOTTOMLEFT: u32 = 7u32; pub const WMSZ_BOTTOMRIGHT: u32 = 8u32; pub const WMSZ_LEFT: u32 = 1u32; pub const WMSZ_RIGHT: u32 = 2u32; pub const WMSZ_TOP: u32 = 3u32; pub const WMSZ_TOPLEFT: u32 = 4u32; pub const WMSZ_TOPRIGHT: u32 = 5u32; pub const WM_ACTIVATE: u32 = 6u32; pub const WM_ACTIVATEAPP: u32 = 28u32; pub const WM_AFXFIRST: u32 = 864u32; pub const WM_AFXLAST: u32 = 895u32; pub const WM_APP: u32 = 32768u32; pub const WM_APPCOMMAND: u32 = 793u32; pub const WM_ASKCBFORMATNAME: u32 = 780u32; pub const WM_CANCELJOURNAL: u32 = 75u32; pub const WM_CANCELMODE: u32 = 31u32; pub const WM_CAPTURECHANGED: u32 = 533u32; pub const WM_CHANGECBCHAIN: u32 = 781u32; pub const WM_CHANGEUISTATE: u32 = 295u32; pub const WM_CHAR: u32 = 258u32; pub const WM_CHARTOITEM: u32 = 47u32; pub const WM_CHILDACTIVATE: u32 = 34u32; pub const WM_CLEAR: u32 = 771u32; pub const WM_CLIPBOARDUPDATE: u32 = 797u32; pub const WM_CLOSE: u32 = 16u32; pub const WM_COMMAND: u32 = 273u32; pub const WM_COMMNOTIFY: u32 = 68u32; pub const WM_COMPACTING: u32 = 65u32; pub const WM_COMPAREITEM: u32 = 57u32; pub const WM_COPY: u32 = 769u32; pub const WM_COPYDATA: u32 = 74u32; pub const WM_CREATE: u32 = 1u32; pub const WM_CTLCOLORBTN: u32 = 309u32; pub const WM_CTLCOLORDLG: u32 = 310u32; pub const WM_CTLCOLOREDIT: u32 = 307u32; pub const WM_CTLCOLORLISTBOX: u32 = 308u32; pub const WM_CTLCOLORMSGBOX: u32 = 306u32; pub const WM_CTLCOLORSCROLLBAR: u32 = 311u32; pub const WM_CTLCOLORSTATIC: u32 = 312u32; pub const WM_CUT: u32 = 768u32; pub const WM_DEADCHAR: u32 = 259u32; pub const WM_DELETEITEM: u32 = 45u32; pub const WM_DESTROY: u32 = 2u32; pub const WM_DESTROYCLIPBOARD: u32 = 775u32; pub const WM_DEVICECHANGE: u32 = 537u32; pub const WM_DEVMODECHANGE: u32 = 27u32; pub const WM_DISPLAYCHANGE: u32 = 126u32; pub const WM_DPICHANGED: u32 = 736u32; pub const WM_DPICHANGED_AFTERPARENT: u32 = 739u32; pub const WM_DPICHANGED_BEFOREPARENT: u32 = 738u32; pub const WM_DRAWCLIPBOARD: u32 = 776u32; pub const WM_DRAWITEM: u32 = 43u32; pub const WM_DROPFILES: u32 = 563u32; pub const WM_DWMCOLORIZATIONCOLORCHANGED: u32 = 800u32; pub const WM_DWMCOMPOSITIONCHANGED: u32 = 798u32; pub const WM_DWMNCRENDERINGCHANGED: u32 = 799u32; pub const WM_DWMSENDICONICLIVEPREVIEWBITMAP: u32 = 806u32; pub const WM_DWMSENDICONICTHUMBNAIL: u32 = 803u32; pub const WM_DWMWINDOWMAXIMIZEDCHANGE: u32 = 801u32; pub const WM_ENABLE: u32 = 10u32; pub const WM_ENDSESSION: u32 = 22u32; pub const WM_ENTERIDLE: u32 = 289u32; pub const WM_ENTERMENULOOP: u32 = 529u32; pub const WM_ENTERSIZEMOVE: u32 = 561u32; pub const WM_ERASEBKGND: u32 = 20u32; pub const WM_EXITMENULOOP: u32 = 530u32; pub const WM_EXITSIZEMOVE: u32 = 562u32; pub const WM_FONTCHANGE: u32 = 29u32; pub const WM_GESTURE: u32 = 281u32; pub const WM_GESTURENOTIFY: u32 = 282u32; pub const WM_GETDLGCODE: u32 = 135u32; pub const WM_GETDPISCALEDSIZE: u32 = 740u32; pub const WM_GETFONT: u32 = 49u32; pub const WM_GETHOTKEY: u32 = 51u32; pub const WM_GETICON: u32 = 127u32; pub const WM_GETMINMAXINFO: u32 = 36u32; pub const WM_GETOBJECT: u32 = 61u32; pub const WM_GETTEXT: u32 = 13u32; pub const WM_GETTEXTLENGTH: u32 = 14u32; pub const WM_GETTITLEBARINFOEX: u32 = 831u32; pub const WM_HANDHELDFIRST: u32 = 856u32; pub const WM_HANDHELDLAST: u32 = 863u32; pub const WM_HELP: u32 = 83u32; pub const WM_HOTKEY: u32 = 786u32; pub const WM_HSCROLL: u32 = 276u32; pub const WM_HSCROLLCLIPBOARD: u32 = 782u32; pub const WM_ICONERASEBKGND: u32 = 39u32; pub const WM_IME_CHAR: u32 = 646u32; pub const WM_IME_COMPOSITION: u32 = 271u32; pub const WM_IME_COMPOSITIONFULL: u32 = 644u32; pub const WM_IME_CONTROL: u32 = 643u32; pub const WM_IME_ENDCOMPOSITION: u32 = 270u32; pub const WM_IME_KEYDOWN: u32 = 656u32; pub const WM_IME_KEYLAST: u32 = 271u32; pub const WM_IME_KEYUP: u32 = 657u32; pub const WM_IME_NOTIFY: u32 = 642u32; pub const WM_IME_REQUEST: u32 = 648u32; pub const WM_IME_SELECT: u32 = 645u32; pub const WM_IME_SETCONTEXT: u32 = 641u32; pub const WM_IME_STARTCOMPOSITION: u32 = 269u32; pub const WM_INITDIALOG: u32 = 272u32; pub const WM_INITMENU: u32 = 278u32; pub const WM_INITMENUPOPUP: u32 = 279u32; pub const WM_INPUT: u32 = 255u32; pub const WM_INPUTLANGCHANGE: u32 = 81u32; pub const WM_INPUTLANGCHANGEREQUEST: u32 = 80u32; pub const WM_INPUT_DEVICE_CHANGE: u32 = 254u32; pub const WM_KEYDOWN: u32 = 256u32; pub const WM_KEYFIRST: u32 = 256u32; pub const WM_KEYLAST: u32 = 265u32; pub const WM_KEYUP: u32 = 257u32; pub const WM_KILLFOCUS: u32 = 8u32; pub const WM_LBUTTONDBLCLK: u32 = 515u32; pub const WM_LBUTTONDOWN: u32 = 513u32; pub const WM_LBUTTONUP: u32 = 514u32; pub const WM_MBUTTONDBLCLK: u32 = 521u32; pub const WM_MBUTTONDOWN: u32 = 519u32; pub const WM_MBUTTONUP: u32 = 520u32; pub const WM_MDIACTIVATE: u32 = 546u32; pub const WM_MDICASCADE: u32 = 551u32; pub const WM_MDICREATE: u32 = 544u32; pub const WM_MDIDESTROY: u32 = 545u32; pub const WM_MDIGETACTIVE: u32 = 553u32; pub const WM_MDIICONARRANGE: u32 = 552u32; pub const WM_MDIMAXIMIZE: u32 = 549u32; pub const WM_MDINEXT: u32 = 548u32; pub const WM_MDIREFRESHMENU: u32 = 564u32; pub const WM_MDIRESTORE: u32 = 547u32; pub const WM_MDISETMENU: u32 = 560u32; pub const WM_MDITILE: u32 = 550u32; pub const WM_MEASUREITEM: u32 = 44u32; pub const WM_MENUCHAR: u32 = 288u32; pub const WM_MENUCOMMAND: u32 = 294u32; pub const WM_MENUDRAG: u32 = 291u32; pub const WM_MENUGETOBJECT: u32 = 292u32; pub const WM_MENURBUTTONUP: u32 = 290u32; pub const WM_MENUSELECT: u32 = 287u32; pub const WM_MOUSEACTIVATE: u32 = 33u32; pub const WM_MOUSEFIRST: u32 = 512u32; pub const WM_MOUSEHWHEEL: u32 = 526u32; pub const WM_MOUSELAST: u32 = 526u32; pub const WM_MOUSEMOVE: u32 = 512u32; pub const WM_MOUSEWHEEL: u32 = 522u32; pub const WM_MOVE: u32 = 3u32; pub const WM_MOVING: u32 = 534u32; pub const WM_NCACTIVATE: u32 = 134u32; pub const WM_NCCALCSIZE: u32 = 131u32; pub const WM_NCCREATE: u32 = 129u32; pub const WM_NCDESTROY: u32 = 130u32; pub const WM_NCHITTEST: u32 = 132u32; pub const WM_NCLBUTTONDBLCLK: u32 = 163u32; pub const WM_NCLBUTTONDOWN: u32 = 161u32; pub const WM_NCLBUTTONUP: u32 = 162u32; pub const WM_NCMBUTTONDBLCLK: u32 = 169u32; pub const WM_NCMBUTTONDOWN: u32 = 167u32; pub const WM_NCMBUTTONUP: u32 = 168u32; pub const WM_NCMOUSEHOVER: u32 = 672u32; pub const WM_NCMOUSELEAVE: u32 = 674u32; pub const WM_NCMOUSEMOVE: u32 = 160u32; pub const WM_NCPAINT: u32 = 133u32; pub const WM_NCPOINTERDOWN: u32 = 578u32; pub const WM_NCPOINTERUP: u32 = 579u32; pub const WM_NCPOINTERUPDATE: u32 = 577u32; pub const WM_NCRBUTTONDBLCLK: u32 = 166u32; pub const WM_NCRBUTTONDOWN: u32 = 164u32; pub const WM_NCRBUTTONUP: u32 = 165u32; pub const WM_NCXBUTTONDBLCLK: u32 = 173u32; pub const WM_NCXBUTTONDOWN: u32 = 171u32; pub const WM_NCXBUTTONUP: u32 = 172u32; pub const WM_NEXTDLGCTL: u32 = 40u32; pub const WM_NEXTMENU: u32 = 531u32; pub const WM_NOTIFYFORMAT: u32 = 85u32; pub const WM_NULL: u32 = 0u32; pub const WM_PAINT: u32 = 15u32; pub const WM_PAINTCLIPBOARD: u32 = 777u32; pub const WM_PAINTICON: u32 = 38u32; pub const WM_PALETTECHANGED: u32 = 785u32; pub const WM_PALETTEISCHANGING: u32 = 784u32; pub const WM_PARENTNOTIFY: u32 = 528u32; pub const WM_PASTE: u32 = 770u32; pub const WM_PENWINFIRST: u32 = 896u32; pub const WM_PENWINLAST: u32 = 911u32; pub const WM_POINTERACTIVATE: u32 = 587u32; pub const WM_POINTERCAPTURECHANGED: u32 = 588u32; pub const WM_POINTERDEVICECHANGE: u32 = 568u32; pub const WM_POINTERDEVICEINRANGE: u32 = 569u32; pub const WM_POINTERDEVICEOUTOFRANGE: u32 = 570u32; pub const WM_POINTERDOWN: u32 = 582u32; pub const WM_POINTERENTER: u32 = 585u32; pub const WM_POINTERHWHEEL: u32 = 591u32; pub const WM_POINTERLEAVE: u32 = 586u32; pub const WM_POINTERROUTEDAWAY: u32 = 594u32; pub const WM_POINTERROUTEDRELEASED: u32 = 595u32; pub const WM_POINTERROUTEDTO: u32 = 593u32; pub const WM_POINTERUP: u32 = 583u32; pub const WM_POINTERUPDATE: u32 = 581u32; pub const WM_POINTERWHEEL: u32 = 590u32; pub const WM_POWER: u32 = 72u32; pub const WM_POWERBROADCAST: u32 = 536u32; pub const WM_PRINT: u32 = 791u32; pub const WM_QUERYDRAGICON: u32 = 55u32; pub const WM_QUERYENDSESSION: u32 = 17u32; pub const WM_QUERYNEWPALETTE: u32 = 783u32; pub const WM_QUERYOPEN: u32 = 19u32; pub const WM_QUERYUISTATE: u32 = 297u32; pub const WM_QUEUESYNC: u32 = 35u32; pub const WM_QUIT: u32 = 18u32; pub const WM_RBUTTONDBLCLK: u32 = 518u32; pub const WM_RBUTTONDOWN: u32 = 516u32; pub const WM_RBUTTONUP: u32 = 517u32; pub const WM_RENDERALLFORMATS: u32 = 774u32; pub const WM_RENDERFORMAT: u32 = 773u32; pub const WM_SETCURSOR: u32 = 32u32; pub const WM_SETFOCUS: u32 = 7u32; pub const WM_SETFONT: u32 = 48u32; pub const WM_SETHOTKEY: u32 = 50u32; pub const WM_SETICON: u32 = 128u32; pub const WM_SETREDRAW: u32 = 11u32; pub const WM_SETTEXT: u32 = 12u32; pub const WM_SETTINGCHANGE: u32 = 26u32; pub const WM_SHOWWINDOW: u32 = 24u32; pub const WM_SIZE: u32 = 5u32; pub const WM_SIZECLIPBOARD: u32 = 779u32; pub const WM_SIZING: u32 = 532u32; pub const WM_SPOOLERSTATUS: u32 = 42u32; pub const WM_STYLECHANGED: u32 = 125u32; pub const WM_STYLECHANGING: u32 = 124u32; pub const WM_SYNCPAINT: u32 = 136u32; pub const WM_SYSCHAR: u32 = 262u32; pub const WM_SYSCOLORCHANGE: u32 = 21u32; pub const WM_SYSCOMMAND: u32 = 274u32; pub const WM_SYSDEADCHAR: u32 = 263u32; pub const WM_SYSKEYDOWN: u32 = 260u32; pub const WM_SYSKEYUP: u32 = 261u32; pub const WM_TABLET_FIRST: u32 = 704u32; pub const WM_TABLET_LAST: u32 = 735u32; pub const WM_TCARD: u32 = 82u32; pub const WM_THEMECHANGED: u32 = 794u32; pub const WM_TIMECHANGE: u32 = 30u32; pub const WM_TIMER: u32 = 275u32; pub const WM_TOUCH: u32 = 576u32; pub const WM_TOUCHHITTESTING: u32 = 589u32; pub const WM_UNDO: u32 = 772u32; pub const WM_UNINITMENUPOPUP: u32 = 293u32; pub const WM_UPDATEUISTATE: u32 = 296u32; pub const WM_USER: u32 = 1024u32; pub const WM_USERCHANGED: u32 = 84u32; pub const WM_VKEYTOITEM: u32 = 46u32; pub const WM_VSCROLL: u32 = 277u32; pub const WM_VSCROLLCLIPBOARD: u32 = 778u32; pub const WM_WINDOWPOSCHANGED: u32 = 71u32; pub const WM_WINDOWPOSCHANGING: u32 = 70u32; pub const WM_WININICHANGE: u32 = 26u32; pub const WM_WTSSESSION_CHANGE: u32 = 689u32; pub const WM_XBUTTONDBLCLK: u32 = 525u32; pub const WM_XBUTTONDOWN: u32 = 523u32; pub const WM_XBUTTONUP: u32 = 524u32; #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct WNDCLASSA { pub style: WNDCLASS_STYLES, pub lpfnWndProc: WNDPROC, pub cbClsExtra: i32, pub cbWndExtra: i32, pub hInstance: super::super::Foundation::HINSTANCE, pub hIcon: HICON, pub hCursor: HCURSOR, pub hbrBackground: super::super::Graphics::Gdi::HBRUSH, pub lpszMenuName: super::super::Foundation::PSTR, pub lpszClassName: super::super::Foundation::PSTR, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for WNDCLASSA {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for WNDCLASSA { fn clone(&self) -> Self { *self } } #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct WNDCLASSEXA { pub cbSize: u32, pub style: WNDCLASS_STYLES, pub lpfnWndProc: WNDPROC, pub cbClsExtra: i32, pub cbWndExtra: i32, pub hInstance: super::super::Foundation::HINSTANCE, pub hIcon: HICON, pub hCursor: HCURSOR, pub hbrBackground: super::super::Graphics::Gdi::HBRUSH, pub lpszMenuName: super::super::Foundation::PSTR, pub lpszClassName: super::super::Foundation::PSTR, pub hIconSm: HICON, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for WNDCLASSEXA {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for WNDCLASSEXA { fn clone(&self) -> Self { *self } } #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct WNDCLASSEXW { pub cbSize: u32, pub style: WNDCLASS_STYLES, pub lpfnWndProc: WNDPROC, pub cbClsExtra: i32, pub cbWndExtra: i32, pub hInstance: super::super::Foundation::HINSTANCE, pub hIcon: HICON, pub hCursor: HCURSOR, pub hbrBackground: super::super::Graphics::Gdi::HBRUSH, pub lpszMenuName: super::super::Foundation::PWSTR, pub lpszClassName: super::super::Foundation::PWSTR, pub hIconSm: HICON, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for WNDCLASSEXW {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for WNDCLASSEXW { fn clone(&self) -> Self { *self } } #[repr(C)] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct WNDCLASSW { pub style: WNDCLASS_STYLES, pub lpfnWndProc: WNDPROC, pub cbClsExtra: i32, pub cbWndExtra: i32, pub hInstance: super::super::Foundation::HINSTANCE, pub hIcon: HICON, pub hCursor: HCURSOR, pub hbrBackground: super::super::Graphics::Gdi::HBRUSH, pub lpszMenuName: super::super::Foundation::PWSTR, pub lpszClassName: super::super::Foundation::PWSTR, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for WNDCLASSW {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for WNDCLASSW { fn clone(&self) -> Self { *self } } pub type WNDCLASS_STYLES = u32; pub const CS_VREDRAW: WNDCLASS_STYLES = 1u32; pub const CS_HREDRAW: WNDCLASS_STYLES = 2u32; pub const CS_DBLCLKS: WNDCLASS_STYLES = 8u32; pub const CS_OWNDC: WNDCLASS_STYLES = 32u32; pub const CS_CLASSDC: WNDCLASS_STYLES = 64u32; pub const CS_PARENTDC: WNDCLASS_STYLES = 128u32; pub const CS_NOCLOSE: WNDCLASS_STYLES = 512u32; pub const CS_SAVEBITS: WNDCLASS_STYLES = 2048u32; pub const CS_BYTEALIGNCLIENT: WNDCLASS_STYLES = 4096u32; pub const CS_BYTEALIGNWINDOW: WNDCLASS_STYLES = 8192u32; pub const CS_GLOBALCLASS: WNDCLASS_STYLES = 16384u32; pub const CS_IME: WNDCLASS_STYLES = 65536u32; pub const CS_DROPSHADOW: WNDCLASS_STYLES = 131072u32; #[cfg(feature = "Win32_Foundation")] pub type WNDENUMPROC = ::core::option::Option<unsafe extern "system" fn(param0: super::super::Foundation::HWND, param1: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL>; #[cfg(feature = "Win32_Foundation")] pub type WNDPROC = ::core::option::Option<unsafe extern "system" fn(param0: super::super::Foundation::HWND, param1: u32, param2: super::super::Foundation::WPARAM, param3: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT>; pub const WSF_VISIBLE: i32 = 1i32; pub const WTS_CONSOLE_CONNECT: u32 = 1u32; pub const WTS_CONSOLE_DISCONNECT: u32 = 2u32; pub const WTS_REMOTE_CONNECT: u32 = 3u32; pub const WTS_REMOTE_DISCONNECT: u32 = 4u32; pub const WTS_SESSION_CREATE: u32 = 10u32; pub const WTS_SESSION_LOCK: u32 = 7u32; pub const WTS_SESSION_LOGOFF: u32 = 6u32; pub const WTS_SESSION_LOGON: u32 = 5u32; pub const WTS_SESSION_REMOTE_CONTROL: u32 = 9u32; pub const WTS_SESSION_TERMINATE: u32 = 11u32; pub const WTS_SESSION_UNLOCK: u32 = 8u32; pub const WVR_ALIGNBOTTOM: u32 = 64u32; pub const WVR_ALIGNLEFT: u32 = 32u32; pub const WVR_ALIGNRIGHT: u32 = 128u32; pub const WVR_ALIGNTOP: u32 = 16u32; pub const WVR_HREDRAW: u32 = 256u32; pub const WVR_VALIDRECTS: u32 = 1024u32; pub const WVR_VREDRAW: u32 = 512u32; pub const __WARNING_BANNED_API_USAGE: u32 = 28719u32; pub const __WARNING_CYCLOMATIC_COMPLEXITY: u32 = 28734u32; pub const __WARNING_DEREF_NULL_PTR: u32 = 6011u32; pub const __WARNING_HIGH_PRIORITY_OVERFLOW_POSTCONDITION: u32 = 26045u32; pub const __WARNING_INCORRECT_ANNOTATION: u32 = 26007u32; pub const __WARNING_INVALID_PARAM_VALUE_1: u32 = 6387u32; pub const __WARNING_INVALID_PARAM_VALUE_3: u32 = 28183u32; pub const __WARNING_MISSING_ZERO_TERMINATION2: u32 = 6054u32; pub const __WARNING_POSTCONDITION_NULLTERMINATION_VIOLATION: u32 = 26036u32; pub const __WARNING_POST_EXPECTED: u32 = 28210u32; pub const __WARNING_POTENTIAL_BUFFER_OVERFLOW_HIGH_PRIORITY: u32 = 26015u32; pub const __WARNING_POTENTIAL_RANGE_POSTCONDITION_VIOLATION: u32 = 26071u32; pub const __WARNING_PRECONDITION_NULLTERMINATION_VIOLATION: u32 = 26035u32; pub const __WARNING_RANGE_POSTCONDITION_VIOLATION: u32 = 26061u32; pub const __WARNING_RETURNING_BAD_RESULT: u32 = 28196u32; pub const __WARNING_RETURN_UNINIT_VAR: u32 = 6101u32; pub const __WARNING_USING_UNINIT_VAR: u32 = 6001u32;
#[cfg(target_arch = "wasm32")] pub mod near_blockchain { use super::sys; use near_bindgen::BlockchainInterface; /// Implementation of the blockchain interface that contracts actually use during the execution /// of the contract. pub struct NearBlockchain {} impl BlockchainInterface for NearBlockchain { unsafe fn read_register(&self, register_id: u64, ptr: u64) { sys::read_register(register_id, ptr) } unsafe fn register_len(&self, register_id: u64) -> u64 { sys::register_len(register_id) } unsafe fn current_account_id(&self, register_id: u64) { sys::current_account_id(register_id) } unsafe fn signer_account_id(&self, register_id: u64) { sys::signer_account_id(register_id) } unsafe fn signer_account_pk(&self, register_id: u64) { sys::signer_account_pk(register_id) } unsafe fn predecessor_account_id(&self, register_id: u64) { sys::predecessor_account_id(register_id) } unsafe fn input(&self, register_id: u64) { sys::input(register_id) } unsafe fn block_index(&self) -> u64 { sys::block_index() } unsafe fn block_timestamp(&self) -> u64 { sys::block_timestamp() } unsafe fn storage_usage(&self) -> u64 { sys::storage_usage() } unsafe fn account_balance(&self, balance_ptr: u64) { sys::account_balance(balance_ptr) } unsafe fn attached_deposit(&self, balance_ptr: u64) { sys::attached_deposit(balance_ptr) } unsafe fn prepaid_gas(&self) -> u64 { sys::prepaid_gas() } unsafe fn used_gas(&self) -> u64 { sys::used_gas() } unsafe fn random_seed(&self, register_id: u64) { sys::random_seed(register_id) } unsafe fn sha256(&self, value_len: u64, value_ptr: u64, register_id: u64) { sys::sha256(value_len, value_ptr, register_id) } unsafe fn value_return(&self, value_len: u64, value_ptr: u64) { sys::value_return(value_len, value_ptr) } unsafe fn panic(&self) { sys::panic() } unsafe fn panic_utf8(&self, len: u64, ptr: u64) { sys::panic_utf8(len, ptr) } unsafe fn log_utf8(&self, len: u64, ptr: u64) { sys::log_utf8(len, ptr) } unsafe fn log_utf16(&self, len: u64, ptr: u64) { sys::log_utf16(len, ptr) } unsafe fn promise_create( &self, account_id_len: u64, account_id_ptr: u64, method_name_len: u64, method_name_ptr: u64, arguments_len: u64, arguments_ptr: u64, amount_ptr: u64, gas: u64, ) -> u64 { sys::promise_create( account_id_len, account_id_ptr, method_name_len, method_name_ptr, arguments_len, arguments_ptr, amount_ptr, gas, ) } unsafe fn promise_then( &self, promise_index: u64, account_id_len: u64, account_id_ptr: u64, method_name_len: u64, method_name_ptr: u64, arguments_len: u64, arguments_ptr: u64, amount_ptr: u64, gas: u64, ) -> u64 { sys::promise_then( promise_index, account_id_len, account_id_ptr, method_name_len, method_name_ptr, arguments_len, arguments_ptr, amount_ptr, gas, ) } unsafe fn promise_and(&self, promise_idx_ptr: u64, promise_idx_count: u64) -> u64 { sys::promise_and(promise_idx_ptr, promise_idx_count) } unsafe fn promise_batch_create(&self, account_id_len: u64, account_id_ptr: u64) -> u64 { sys::promise_batch_create(account_id_len, account_id_ptr) } unsafe fn promise_batch_then( &self, promise_index: u64, account_id_len: u64, account_id_ptr: u64, ) -> u64 { sys::promise_batch_then(promise_index, account_id_len, account_id_ptr) } unsafe fn promise_batch_action_create_account(&self, promise_index: u64) { sys::promise_batch_action_create_account(promise_index) } unsafe fn promise_batch_action_deploy_contract( &self, promise_index: u64, code_len: u64, code_ptr: u64, ) { sys::promise_batch_action_deploy_contract(promise_index, code_len, code_ptr) } unsafe fn promise_batch_action_function_call( &self, promise_index: u64, method_name_len: u64, method_name_ptr: u64, arguments_len: u64, arguments_ptr: u64, amount_ptr: u64, gas: u64, ) { sys::promise_batch_action_function_call( promise_index, method_name_len, method_name_ptr, arguments_len, arguments_ptr, amount_ptr, gas, ) } unsafe fn promise_batch_action_transfer(&self, promise_index: u64, amount_ptr: u64) { sys::promise_batch_action_transfer(promise_index, amount_ptr) } unsafe fn promise_batch_action_stake( &self, promise_index: u64, amount_ptr: u64, public_key_len: u64, public_key_ptr: u64, ) { sys::promise_batch_action_stake( promise_index, amount_ptr, public_key_len, public_key_ptr, ) } unsafe fn promise_batch_action_add_key_with_full_access( &self, promise_index: u64, public_key_len: u64, public_key_ptr: u64, nonce: u64, ) { sys::promise_batch_action_add_key_with_full_access( promise_index, public_key_len, public_key_ptr, nonce, ) } unsafe fn promise_batch_action_add_key_with_function_call( &self, promise_index: u64, public_key_len: u64, public_key_ptr: u64, nonce: u64, allowance_ptr: u64, receiver_id_len: u64, receiver_id_ptr: u64, method_names_len: u64, method_names_ptr: u64, ) { sys::promise_batch_action_add_key_with_function_call( promise_index, public_key_len, public_key_ptr, nonce, allowance_ptr, receiver_id_len, receiver_id_ptr, method_names_len, method_names_ptr, ) } unsafe fn promise_batch_action_delete_key( &self, promise_index: u64, public_key_len: u64, public_key_ptr: u64, ) { sys::promise_batch_action_delete_key(promise_index, public_key_len, public_key_ptr) } unsafe fn promise_batch_action_delete_account( &self, promise_index: u64, beneficiary_id_len: u64, beneficiary_id_ptr: u64, ) { sys::promise_batch_action_delete_account( promise_index, beneficiary_id_len, beneficiary_id_ptr, ) } unsafe fn promise_results_count(&self) -> u64 { sys::promise_results_count() } unsafe fn promise_result(&self, result_idx: u64, register_id: u64) -> u64 { sys::promise_result(result_idx, register_id) } unsafe fn promise_return(&self, promise_id: u64) { sys::promise_return(promise_id) } unsafe fn storage_write( &self, key_len: u64, key_ptr: u64, value_len: u64, value_ptr: u64, register_id: u64, ) -> u64 { sys::storage_write(key_len, key_ptr, value_len, value_ptr, register_id) } unsafe fn storage_read(&self, key_len: u64, key_ptr: u64, register_id: u64) -> u64 { sys::storage_read(key_len, key_ptr, register_id) } unsafe fn storage_remove(&self, key_len: u64, key_ptr: u64, register_id: u64) -> u64 { sys::storage_remove(key_len, key_ptr, register_id) } unsafe fn storage_has_key(&self, key_len: u64, key_ptr: u64) -> u64 { sys::storage_has_key(key_len, key_ptr) } unsafe fn storage_iter_prefix(&self, prefix_len: u64, prefix_ptr: u64) -> u64 { sys::storage_iter_prefix(prefix_len, prefix_ptr) } unsafe fn storage_iter_range( &self, start_len: u64, start_ptr: u64, end_len: u64, end_ptr: u64, ) -> u64 { sys::storage_iter_range(start_len, start_ptr, end_len, end_ptr) } unsafe fn storage_iter_next( &self, iterator_id: u64, key_register_id: u64, value_register_id: u64, ) -> u64 { sys::storage_iter_next(iterator_id, key_register_id, value_register_id) } } }
use structopt::StructOpt; use super::{CliCommand, GlobalFlags}; pub const AFTER_HELP: &str = r#"EXAMPLES: To search all repositories for a package containing a substring: $ deck search firefox To search a specific repository for a package: $ deck search --only-in stable firefox To search for a specific package with JSON output: $ deck search --json firefox | jq '.[].name' This command will always search locally fetched repositories and never reach out to the internet. To see the most up to date results, first run `deck update`. "#; #[derive(Debug, StructOpt)] pub struct Search { /// Output search results in JSON format #[structopt(long = "json", conflicts_with = "recutils")] json: bool, /// Output search results in GNU Recutils format #[structopt(long = "recutils")] recutils: bool, /// Limit search results to a specific set of repositories #[structopt(empty_values = false, long = "repo", value_name = "REPO")] repo: Option<String>, /// Regular expression(s) for filtering package names #[structopt(value_name = "PATTERN", required = true)] patterns: Vec<String>, } impl CliCommand for Search { fn run(self, _flags: GlobalFlags) -> Result<(), String> { unimplemented!() } }
fn main() { let stdin = std::io::stdin(); let mut rd = ProconReader::new(stdin.lock()); let n: usize = rd.get(); let m: usize = rd.get(); let edges: Vec<(usize, usize, usize)> = (0..m) .map(|_| { let u: usize = rd.get(); let v: usize = rd.get(); let c: usize = rd.get(); (u - 1, v - 1, c - 1) }) .collect(); let mut g = vec![vec![]; n]; for &(u, v, c) in &edges { g[u].push((v, c)); g[v].push((u, c)); } use std::collections::VecDeque; let mut ans = vec![None; n]; let mut q = VecDeque::new(); ans[0] = Some(0); q.push_back(0); while let Some(u) = q.pop_front() { let c_u = ans[u].unwrap(); for &(v, c) in &g[u] { if ans[v].is_some() { continue; } if c == c_u { ans[v] = Some((c_u + 1) % n); } else { ans[v] = Some(c); } q.push_back(v); } } if ans.iter().any(|&a| a.is_none()) { println!("No"); // ? } else { ans.iter().map(|a| a.unwrap() + 1).for_each(|a| { println!("{}", a); }); } } pub struct ProconReader<R: std::io::Read> { reader: R, } impl<R: std::io::Read> ProconReader<R> { pub fn new(reader: R) -> Self { Self { reader } } pub fn get<T: std::str::FromStr>(&mut self) -> T { use std::io::Read; let buf = self .reader .by_ref() .bytes() .map(|b| b.unwrap()) .skip_while(|&byte| byte == b' ' || byte == b'\n' || byte == b'\r') .take_while(|&byte| byte != b' ' && byte != b'\n' && byte != b'\r') .collect::<Vec<_>>(); std::str::from_utf8(&buf) .unwrap() .parse() .ok() .expect("Parse Error.") } }
use super::streaming::{ file_streamers, frame_stream, FileReceiver, FileSender, FrameMessage, FrameReader, FrameWriter, }; use crate::{ config::Config, fs::FileInfo, sync::file_events_buffer::FileEventsBuffer, sync::FileAction, IronCarrierError, }; use std::{collections::HashMap}; use tokio::{ fs::File, io::{AsyncRead, AsyncWrite, ReadHalf, WriteHalf}, net::TcpStream, }; type RpcResult<T> = Result<T, IronCarrierError>; macro_rules! send_message { ($self:expr, $func:ident()) => { if $self.status == PeerStatus::Disconnected { log::warn!("attempted to call disconnected peer"); return Err(IronCarrierError::PeerDisconectedError($self.address.to_owned()).into()); } log::debug!("sending message {} to peer", stringify!($func)); let message = FrameMessage::new(stringify!($func)); $self.frame_writer.write_frame(message).await?; }; ($self:expr, $func:ident($($arg:expr),+)) => { if $self.status == PeerStatus::Disconnected { log::warn!("attempted to call disconnected peer"); return Err(IronCarrierError::PeerDisconectedError($self.address.to_owned()).into()); } log::debug!("sending message {} to peer", stringify!($func)); let message = FrameMessage::new(stringify!($func)) $( .with_arg(&$arg)? )+; $self.frame_writer.write_frame(message).await?; }; } macro_rules! rpc_call { ($self:expr, $func:ident($($arg:expr),*)) => {{ send_message!($self, $func($($arg),*)); log::debug!("waiting response for {}", stringify!($func)); let response_message = $self.frame_reader.next_frame().await?; match response_message { Some(message) => { if message.frame_ident() == stringify!($func) { log::debug!("received response from peer"); Ok(()) } else { log::error!("received wrong response {}", message.frame_ident()); Err(IronCarrierError::ParseCommandError) } } None => { log::error!("didn't receive response for {}", stringify!($func)); Err(IronCarrierError::ParseCommandError) } } }}; ($self:expr, $func:ident($($arg:expr),*), $t:ty) => {{ send_message!($self, $func($($arg),*)); log::debug!("waiting response for {}", stringify!($func)); let response_message = $self.frame_reader.next_frame().await?; match response_message { Some(mut message) => { if message.frame_ident() == stringify!($func) { log::debug!("received response from peer"); Ok(message.next_arg::<$t>()?) } else { log::error!("received wrong response {}", message.frame_ident()); Err(IronCarrierError::ParseCommandError) } } None => { log::error!("didn't receive response for {}", stringify!($func)); Err(IronCarrierError::ParseCommandError) } } }}; ($self:expr, $func:ident($($arg:expr),*), [$t:ty],+) => {{ send_message!($self, $func($($arg),*)) log::debug!("waiting response for {}", stringify!($func)); let response_message = $self.frame_reader.as_mut().unwrap().next_frame().await?; match response_message { Some(message) => { if message.is_same_message(stringify!($func)) { log::debug!("received response from peer"); Ok($( message.next_arg::<$t>()?, )*) } else { log::error!("received wrong response {}", message.frame_name()); Err(IronCarrierError::ParseCommandError) } } None => { log::error!("didn't receive response for {}", stringify!($func)); Err(IronCarrierError::ParseCommandError) } } }} } #[derive(PartialEq)] enum PeerStatus { Disconnected, Connected, Syncing, } pub(crate) struct Peer<'a, TReader, TWriter> where TReader: AsyncRead + Unpin, TWriter: AsyncWrite + Unpin, { address: &'a str, config: &'a Config, status: PeerStatus, frame_writer: FrameWriter<TWriter>, frame_reader: FrameReader<TReader>, file_sender: FileSender<TWriter>, file_receiver: FileReceiver<'a, TReader>, events_buffer: &'a FileEventsBuffer, peer_sync_hash: HashMap<String, u64>, } impl<'a> Peer<'a, ReadHalf<TcpStream>, WriteHalf<TcpStream>> { pub async fn new( address: &'a str, config: &'a Config, events_buffer: &'a FileEventsBuffer, ) -> crate::Result<Peer<'a, ReadHalf<TcpStream>, WriteHalf<TcpStream>>> { log::info!("connecting to peer {:?}", address); let (frame_reader, frame_writer) = frame_stream(TcpStream::connect(address).await?); let (file_receiver, file_sender) = file_streamers( TcpStream::connect(address).await?, config.clone(), address.split(':').next().unwrap().to_string(), ); Ok(Peer { address, frame_writer, frame_reader, file_sender, file_receiver, peer_sync_hash: HashMap::new(), status: PeerStatus::Connected, config, events_buffer, }) } pub fn get_address(&'a self) -> &'a str { &self.address } async fn send_server_port(&mut self) -> crate::Result<()> { log::debug!("setting peer port to {}", self.config.port); rpc_call!(self, set_peer_port(self.config.port))?; Ok(()) } async fn fetch_peer_status(&mut self) -> crate::Result<()> { log::debug!("asking peer for status"); let sync_hash = rpc_call!(self, server_sync_hash(), RpcResult<HashMap<String, u64>>)?; self.peer_sync_hash = sync_hash?; Ok(()) } pub fn need_to_sync(&self, alias: &str, hash: u64) -> bool { self.peer_sync_hash .get(alias) .map(|h| *h != hash) .unwrap_or(false) } pub async fn fetch_files_for_alias(&mut self, alias: &str) -> crate::Result<Vec<FileInfo>> { log::debug!("querying peer for list of files for alias {}", alias); let result = rpc_call!(self, query_file_list(alias), RpcResult<Vec<FileInfo>>)?; match result { Ok(files) => Ok(files), Err(err) => Err(err.into()), } } pub async fn sync_action<'b>(&mut self, action: &'b FileAction) -> crate::Result<()> { match action { FileAction::Create(file_info) | FileAction::Update(file_info) => { self.send_file(&file_info).await? } FileAction::Move(src, dest) => { log::debug!( "asking peer {} to move file {:?} to {:?}", self.address, src.path, dest.path ); rpc_call!(self, move_file(src, dest))? } FileAction::Remove(file_info) => { log::debug!( "asking peer {} to remove file {:?}", self.address, file_info.path ); rpc_call!(self, delete_file(file_info))? } FileAction::Request(file_info) => { log::debug!("asking peer {} for file {:?}", self.address, file_info.path); self.request_file(&file_info).await? } } Ok(()) } async fn send_file(&mut self, file_info: &FileInfo) -> crate::Result<()> { log::debug!("sending file {:?} to peer {}", file_info.path, self.address); let file_handle = rpc_call!(self, create_or_update_file(file_info), u64)?; if file_handle > 0 { let file_path = file_info.get_absolute_path(&self.config)?; let mut file = File::open(file_path).await?; self.file_sender.send_file(file_handle, &mut file).await?; } else { log::debug!("peer refused file"); } Ok(()) } async fn request_file(&mut self, file_info: &FileInfo) -> crate::Result<()> { let file_handle = self.file_receiver.prepare_file_transfer(file_info.clone()); rpc_call!(self, request_file(file_info, file_handle))?; self.file_receiver.wait_files(&self.events_buffer).await?; Ok(()) } pub async fn start_sync(&mut self) -> crate::Result<()> { log::debug!("asking peer {} to start sync", self.address); rpc_call!(self, init_sync())?; log::debug!("starting sync with peer {}", self.address); self.status = PeerStatus::Syncing; self.fetch_peer_status().await } pub async fn finish_sync(&mut self, two_way_sync: bool) -> crate::Result<()> { log::debug!("finishing sync with peer {}", self.address); rpc_call!(self, finish_sync(two_way_sync))?; self.status = PeerStatus::Connected; // self.disconnect().await; Ok(()) } }
use std::collections::BTreeMap; use proconio::input; fn main() { input! { n: usize, k: usize, p: [usize; n], }; let mut map = BTreeMap::<usize, usize>::new(); let mut next = vec![0; n + 1]; let mut ans = vec![-1; n + 1]; for i in 0..n { if let Some((&top, &count)) = map.range(p[i]..).next() { map.remove(&top); let new_count = count + 1; if new_count == k { ans[p[i]] = (i + 1) as i32; let mut q = top; while q > 0 { ans[q] = (i + 1) as i32; q = next[q]; } } else { next[p[i]] = top; map.insert(p[i], new_count); } } else { if k == 1 { ans[p[i]] = (i + 1) as i32; } else { map.insert(p[i], 1); } } } for i in 1..=n { println!("{}", ans[i]); } }
extern crate libc; extern crate arrayfire as af; extern crate time; // use std::marker::PhantomData; use self::af::*; use std::rc::Rc; use std::cell::RefCell; use std::collections::HashMap; use std::fmt; use std::ops; // a simple Array can be made a variable // let d = Array::new(&d_input, d_dims); // var!(x = array(d)); // Array can be cloned without cloning deep data #[derive(Clone)] pub struct Var<E> { pub name: &'static str, pub value: E, } // Expr typeclass representing the expression evaluation in a given shared context pub trait Expr<Ctx, Value> { fn eval(& self, ctx: & Ctx) -> Value; } impl Expr<SharedCtx, SharedValue> for Var<Array> { fn eval(& self, ctx: & SharedCtx) -> SharedValue { Ctx::eval_arrayvar(ctx, self) } } impl<E : Clone + Expr<SharedCtx, SharedValue>> Expr<SharedCtx, SharedValue> for Var<E> { fn eval(& self, ctx: & SharedCtx) -> SharedValue { Ctx::eval_exprvar(ctx, self) } } pub type SharedValue = Rc<RefCell<Value>>; pub type SharedCtx = Rc<RefCell<Ctx>>; // The context of execution pub struct Ctx { // the variables mapped to instantiated values by their name vars: HashMap<&'static str, SharedValue>, // all the instantiated values as ref-counted mutable refcells (vars are also values) vals: Vec<SharedValue>, count: usize, } impl Ctx { pub fn new() -> SharedCtx { Rc::new(RefCell::new(Ctx { vars : HashMap::new(), vals : vec![], count : 0, })) } pub fn get_next_idx( this: &SharedCtx, ) -> usize { let mut r = this.borrow_mut(); let v = r.count; r.count += 1; v } pub fn find_var( this: &SharedCtx, name: &str, ) -> Option<SharedValue> { this.borrow().vars.get(name).map(|x| x.clone()) } pub fn eval_arrayvar( this: &SharedCtx, var: &Var<Array>, ) -> SharedValue { match Self::find_var(this, var.name) { Some(v) => v.clone(), None => Self::new_var( this, VarType::VarV(var.name), var.value.clone(), vec![], vec![], Rc::new(|e| { () }), ) } } pub fn eval_exprvar<E : Clone + Expr<SharedCtx, SharedValue>>( this: &SharedCtx, var: &Var<E>, ) -> SharedValue { match Self::find_var(this, var.name) { Some(v) => v.clone(), None => { let ev = var.value.eval(this); let r = ev.borrow(); Self::new_var( this, VarType::VarE(var.name, r.idx), r.value.clone(), vec![ev.clone()], vec![], Rc::new(|e| { let ev = e.borrow(); println!("grad_fun add {} {:?} {}", ev.idx, ev.tpe, ev.grads.len()); Value::add_grads(&ev.inputs[0], &ev.grads); }), ) } } } pub fn new_val( this: &SharedCtx, tpe: ValueType, value: Array, inputs: Vec<SharedValue>, grads: Vec<Array>, grad_fun: Rc<Fn(&SharedValue) -> ()>, ) -> SharedValue { let idx = Ctx::get_next_idx(this); let v = Rc::new(RefCell::new(Value { value : value, idx : idx, tpe : tpe, inputs: inputs, ctx : this.clone(), grads: grads, grad_fun: grad_fun, })); let mut rthis = this.borrow_mut(); rthis.vals.push(v.clone()); v } pub fn new_var( this: &SharedCtx, tpe: VarType, value: Array, inputs: Vec<SharedValue>, grads: Vec<Array>, grad_fun: Rc<Fn(&SharedValue) -> ()>, ) -> SharedValue { let name = match tpe { VarType::VarV(name) => name, VarType::VarE(name, _) => name }; // ugly way to use immutable & mutable &self :( let mut result: Option<SharedValue> = None; if let Some(v) = this.borrow().vars.get(name) { println!("already found variable {}", name); result = Some(v.clone()) } if let Some(v) = result { v } else { println!("Inserting variable {}", name); let v = Ctx::new_val(this, ValueType::Var(tpe), value, inputs, grads, grad_fun); this.borrow_mut().vars.insert(name, v.clone()); v.clone() } } } #[derive(Debug)] pub enum VarType { VarV(&'static str), VarE(&'static str, usize), } #[derive(Debug)] pub enum ValueType { Var(VarType), Expr, } pub struct Value { pub value: Array, pub idx: usize, pub tpe: ValueType, pub inputs: Vec<SharedValue>, ctx: SharedCtx, pub grads: Vec<Array>, pub grad_fun: Rc<Fn(&SharedValue) -> ()> } impl fmt::Display for Value { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "[idx:{}, tpe:{:?}]", self.idx, self.tpe) } } impl Value { pub fn add_grad(this: &SharedValue, grad: &Array) -> () { this.borrow_mut().grads.push(grad.clone()); } pub fn add_grads(this: &SharedValue, grad: &Vec<Array>) -> () { this.borrow_mut().grads.extend(grad.clone()); } pub fn dag(this: &SharedValue) -> Vec<SharedValue> { let mut m = HashMap::new(); let mut dag = Vec::new(); { let mut stack: Vec<SharedValue> = vec![this.clone()]; while let Some(e) = stack.pop() { let ev = e.borrow(); if !m.contains_key(&ev.idx) { for input in ev.inputs.iter() { stack.push(input.clone()); } m.insert(ev.idx, true); // println!("dag add {} {:?}", ev.idx, ev.tpe); dag.push(e.clone()); } else { // println!("dag already found {} {:?}", ev.idx, ev.tpe); } } } dag } pub fn set_grad(this: &SharedValue, grads: Vec<Array>) -> () { this.borrow_mut().grads = grads; } pub fn compute_grad(this: &SharedValue) -> () { let mut grad = this.borrow().grads[0].clone(); if this.borrow().grads.len() > 1 { for arr in this.borrow().grads.split_at(1).1.iter() { grad = add(&grad, arr, false); } } // println!("compute_grad {} {:?}", this.borrow().idx, this.borrow().tpe); // af_print!("compute_grad grad:", grad); Value::set_grad(this, vec![grad]); } // computes backprop on mutable graph pub fn backprop(this: &SharedValue, force: bool) -> () { if !this.borrow().grads.is_empty() && !force { return; } let dims = this.borrow().value.dims(); let ones = af::constant(1, dims); Value::add_grad(this, &ones); let dag = Value::dag(this); for e in dag.iter() { println!("backprop {} {:?}", e.borrow().idx, e.borrow().tpe); Value::compute_grad(e); (e.borrow().grad_fun)(e); } } pub fn grad_by_var(this: &SharedValue, var_name: &str) -> Option<Array> { Value::backprop(this, false); Ctx::find_var(&this.borrow().ctx, var_name).map(|var| { if var.borrow().grads.len() > 0 { var.borrow().grads[0].clone() } else { let dims = var.borrow().value.dims(); af::constant(0, dims) } }) } } pub trait Gradient<T> { fn grad(&self, var: &T) -> Option<Array>; } impl Gradient<String> for SharedValue { fn grad(&self, var: &String) -> Option<Array> { Value::grad_by_var(self, var) } } impl<E : Clone> Gradient<Var<E>> for SharedValue { fn grad(&self, var: &Var<E>) -> Option<Array> { Value::grad_by_var(self, var.name) } }
use projecteuler::helper; fn main() { helper::check_bench(|| { solve(2_000_000); }); assert_eq!(solve(2_000_000), 2772); dbg!(solve(2_000_000)); } //solved using a boundary walk //for the given problem the cursor is moved a total of 2210 times. fn solve(goal: usize) -> usize { let mut cursor = Cursor::new(); while cursor.count < goal { cursor.inc_n(); cursor.inc_m(); } let mut opt = cursor; while cursor.n > 0 { while cursor.count < goal { cursor.inc_m(); } while cursor.count > goal { cursor.dec_m(); } opt = best_cursor(goal, opt, cursor); cursor.inc_m(); opt = best_cursor(goal, opt, cursor); cursor.dec_n(); } opt.n * opt.m } fn best_cursor(goal: usize, c1: Cursor, c2: Cursor) -> Cursor { let dist1 = if goal < c1.count { c1.count - goal } else { goal - c1.count }; let dist2 = if goal < c2.count { c2.count - goal } else { goal - c2.count }; if dist1 < dist2 { c1 } else { c2 } } #[derive(Debug, Clone, Copy)] struct Cursor { n: usize, m: usize, count: usize, } impl Cursor { fn new() -> Self { Self { n: 1, m: 1, count: 1, } } fn inc_n(&mut self) { self.n += 1; self.count += self.n * ((self.m * (self.m + 1)) / 2); } fn inc_m(&mut self) { self.m += 1; self.count += self.m * ((self.n * (self.n + 1)) / 2); } fn dec_n(&mut self) { self.count -= self.n * ((self.m * (self.m + 1)) / 2); self.n -= 1; } fn dec_m(&mut self) { self.count -= self.m * ((self.n * (self.n + 1)) / 2); self.m -= 1; } }
use crate::pointer_trait::{AsPtr, CanTransmuteElement, GetPointerKind, PK_Reference}; use std::{ fmt::{self, Display}, ops::Deref, ptr::NonNull, }; /// A wrapper type for vtable static references, /// and other constants that have `non-'static` generic parameters /// but are safe to reference for the lifetime of `T`. /// /// # Purpose /// /// This type is necessary because Rust doesn't understand that vtables live for `'static`, /// even though they have `non-'static` type parameters. /// /// # Example /// /// This defines a non-extensible vtable,using a StaticRef as the pointer to the vtable. /// /// ``` /// use abi_stable::{ /// marker_type::ErasedObject, /// prefix_type::{PrefixTypeTrait, WithMetadata}, /// sabi_extern_fn, /// sabi_types::StaticRef, /// staticref, StableAbi, /// }; /// /// use std::{marker::PhantomData, ops::Deref}; /// /// fn main() { /// let boxed = BoxLike::new("foo".to_string()); /// assert_eq!(boxed.as_str(), "foo"); /// } /// /// /// An ffi-safe `Box<T>` /// #[repr(C)] /// #[derive(StableAbi)] /// pub struct BoxLike<T> { /// data: *mut T, /// /// vtable: StaticRef<VTable<T>>, /// /// _marker: PhantomData<T>, /// } /// /// impl<T> BoxLike<T> { /// pub fn new(value: T) -> Self { /// Self { /// data: Box::into_raw(Box::new(value)), /// vtable: VTable::<T>::VTABLE, /// _marker: PhantomData, /// } /// } /// } /// /// impl<T> Drop for BoxLike<T> { /// fn drop(&mut self) { /// unsafe { /// (self.vtable.drop_)(self.data); /// } /// } /// } /// /// impl<T> Deref for BoxLike<T> { /// type Target = T; /// /// fn deref(&self) -> &T { /// unsafe { &*self.data } /// } /// } /// /// #[repr(C)] /// #[derive(StableAbi)] /// pub struct VTable<T> { /// drop_: unsafe extern "C" fn(*mut T), /// } /// /// impl<T> VTable<T> { /// // The `staticref` macro declares a `StaticRef<VTable<T>>` constant. /// staticref!(const VTABLE: Self = Self{ /// drop_: drop_box::<T>, /// }); /// } /// /// #[sabi_extern_fn] /// unsafe fn drop_box<T>(object: *mut T) { /// drop(Box::from_raw(object)); /// } /// /// ``` #[repr(transparent)] #[derive(StableAbi)] pub struct StaticRef<T> { ref_: NonNull<T>, } impl<T> Display for StaticRef<T> where T: Display, { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { Display::fmt(&**self, f) } } impl<T> Clone for StaticRef<T> { fn clone(&self) -> Self { *self } } impl<T> Copy for StaticRef<T> {} unsafe impl<'a, T: 'a> Sync for StaticRef<T> where &'a T: Sync {} unsafe impl<'a, T: 'a> Send for StaticRef<T> where &'a T: Send {} shared_impls! { mod=static_ref_impls new_type=StaticRef[][T], original_type=AAAA, } impl<T> StaticRef<T> { /// Constructs this StaticRef from a raw pointer. /// /// # Safety /// /// You must ensure that the raw pointer is valid for the entire program's lifetime. /// /// # Example /// /// ``` /// use abi_stable::sabi_types::StaticRef; /// /// struct GetPtr<T>(T); /// /// impl<T> GetPtr<T> { /// const PTR: *const Option<T> = &None; /// /// const STATIC: StaticRef<Option<T>> = unsafe { StaticRef::from_raw(Self::PTR) }; /// } /// {} /// ``` pub const unsafe fn from_raw(ref_: *const T) -> Self { Self { ref_: unsafe { NonNull::new_unchecked(ref_ as *mut T) }, } } /// Constructs this StaticRef from a static reference /// /// This implicitly requires that `T:'static`. /// /// # Example /// /// ``` /// use abi_stable::sabi_types::StaticRef; /// /// struct GetPtr<T>(T); /// /// impl<T> GetPtr<T> /// where /// T: 'static, /// { /// const REF: &'static Option<T> = &None; /// /// const STATIC: StaticRef<Option<T>> = StaticRef::new(Self::REF); /// } /// /// ``` pub const fn new(ref_: &'static T) -> Self { Self { ref_: unsafe { NonNull::new_unchecked(ref_ as *const T as *mut T) }, } } /// Creates a StaticRef by heap allocating and leaking `val`. pub fn leak_value(val: T) -> Self { // Safety: This is safe, because the value is a leaked heap allocation. unsafe { Self::from_raw(crate::utils::leak_value(val)) } } /// Gets access to the reference. /// /// This returns `&'a T` instead of `&'static T` to support vtables of `non-'static` types. /// /// # Example /// /// ``` /// use abi_stable::sabi_types::StaticRef; /// /// struct GetPtr<T>(T); /// /// impl<T> GetPtr<T> { /// const PTR: *const Option<T> = &None; /// /// const STATIC: StaticRef<Option<T>> = unsafe { StaticRef::from_raw(Self::PTR) }; /// } /// /// let reference: &'static Option<String> = GetPtr::<String>::STATIC.get(); /// /// ``` pub const fn get<'a>(self) -> &'a T { unsafe { crate::utils::deref!(self.ref_.as_ptr() as *const T) } } /// Gets access to the referenced value,as a raw pointer. /// /// # Example /// /// ``` /// use abi_stable::sabi_types::StaticRef; /// use std::convert::Infallible; /// /// struct GetPtr<T>(T); /// /// impl<T> GetPtr<T> { /// const PTR: *const Option<T> = &None; /// /// const STATIC: StaticRef<Option<T>> = unsafe { StaticRef::from_raw(Self::PTR) }; /// } /// /// let reference: *const Option<Infallible> = GetPtr::<Infallible>::STATIC.as_ptr(); /// /// ``` pub const fn as_ptr(self) -> *const T { self.ref_.as_ptr() as *const T } /// Transmutes this `StaticRef<T>` to a `StaticRef<U>`. /// /// # Safety /// /// StaticRef has the same rules that references have regarding /// transmuting from one type to another: /// /// # Example /// /// ``` /// use abi_stable::sabi_types::StaticRef; /// /// struct GetPtr<T>(T); /// /// impl<T> GetPtr<T> { /// const PTR: *const Option<T> = &None; /// /// const STATIC: StaticRef<Option<T>> = unsafe { StaticRef::from_raw(Self::PTR) }; /// } /// /// let reference: StaticRef<Option<[(); 0xFFF_FFFF]>> = /// unsafe { GetPtr::<()>::STATIC.transmute::<Option<[(); 0xFFF_FFFF]>>() }; /// /// ``` pub const unsafe fn transmute<U>(self) -> StaticRef<U> { unsafe { StaticRef::from_raw(self.ref_.as_ptr() as *const T as *const U) } } } impl<T> Deref for StaticRef<T> { type Target = T; fn deref(&self) -> &T { self.get() } } unsafe impl<T> AsPtr for StaticRef<T> { fn as_ptr(&self) -> *const T { self.ref_.as_ptr() as *const T } } unsafe impl<T> GetPointerKind for StaticRef<T> { type Kind = PK_Reference; type PtrTarget = T; } unsafe impl<T, U> CanTransmuteElement<U> for StaticRef<T> { type TransmutedPtr = StaticRef<U>; #[inline(always)] unsafe fn transmute_element_(self) -> StaticRef<U> { unsafe { self.transmute() } } } #[cfg(test)] mod tests { use super::*; #[test] fn construction_test() { unsafe { let three: *const i32 = &3; assert_eq!(*StaticRef::from_raw(three), 3); } assert_eq!(*StaticRef::new(&5), 5); assert_eq!(*StaticRef::leak_value(8), 8); } #[test] fn access() { let reference = StaticRef::new(&8); const SREF: StaticRef<u8> = StaticRef::new(&8); const REF: &u8 = SREF.get(); assert_eq!(*reference.get(), 8); assert_eq!(*REF, 8); unsafe { assert_eq!(*reference.as_ptr(), 8); } } #[test] fn transmutes() { let reference = StaticRef::new(&(!0u32)); unsafe { assert_eq!(*reference.transmute::<i32>(), -1); } } }
use std::collections::HashMap; #[allow(dead_code)] fn two_sum(nums: Vec<i32>, target: i32) -> Vec<i32> { let mut num_indices: HashMap<i32, usize> = HashMap::new(); for (i, &x) in nums.iter().enumerate() { let result = num_indices.get(&(target - x)).filter(|&&j| i != j); if let Some(&j) = result { return vec![j as i32, i as i32]; } else { num_indices.insert(x, i); } } vec![] } #[allow(dead_code)] fn two_sum_naive(nums: Vec<i32>, target: i32) -> Vec<i32> { for (i, &x) in nums.iter().enumerate() { let result = nums .iter() .enumerate() .skip(i + 1) .find(|&(j, &y)| x + y == target && i != j) .map(|(j, _)| vec![i as i32, j as i32]); if let Some(indices) = result { return indices; } } vec![] } #[cfg(test)] mod tests { use super::*; use std::collections::HashSet; macro_rules! set { [ $($x:expr),*] => { { let mut temp_set = HashSet::new(); $( temp_set.insert($x); )* temp_set } }; } #[test] fn test_two_sum_naive() { two_sum_tests(two_sum_naive); } #[test] fn test_two_sum() { two_sum_tests(two_sum); } fn two_sum_tests<F>(fun: F) where F: Fn(Vec<i32>, i32) -> Vec<i32>, { assert_eq!(to_set(&fun(vec![2, 7, 11, 15], 9)), set![0, 1]); assert_eq!(to_set(&fun(vec![3, 2, 4], 6)), set![1, 2]); assert_eq!(to_set(&fun(vec![2, 5, 5, 11], 10)), set![1, 2]); assert_eq!(to_set(&fun(vec![0, 4, 3, 0], 0)), set![0, 3]); } fn to_set(s: &[i32]) -> HashSet<i32> { s.iter().cloned().collect() } }
#[doc = "Reader of register BITBANG"] pub type R = crate::R<u8, super::BITBANG>; #[doc = "Writer for register BITBANG"] pub type W = crate::W<u8, super::BITBANG>; #[doc = "Register BITBANG `reset()`'s with value 0"] impl crate::ResetValue for super::BITBANG { type Type = u8; #[inline(always)] fn reset_value() -> Self::Type { 0 } } #[doc = "Reader of field `mosi`"] pub type MOSI_R = crate::R<bool, bool>; #[doc = "Write proxy for field `mosi`"] pub struct MOSI_W<'a> { w: &'a mut W, } impl<'a> MOSI_W<'a> { #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"Writes raw bits to the field"] #[inline(always)] pub fn bit(self, value: bool) -> &'a mut W { self.w.bits = (self.w.bits & !0x01) | ((value as u8) & 0x01); self.w } } #[doc = "Reader of field `clk`"] pub type CLK_R = crate::R<bool, bool>; #[doc = "Write proxy for field `clk`"] pub struct CLK_W<'a> { w: &'a mut W, } impl<'a> CLK_W<'a> { #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"Writes raw bits to the field"] #[inline(always)] pub fn bit(self, value: bool) -> &'a mut W { self.w.bits = (self.w.bits & !(0x01 << 1)) | (((value as u8) & 0x01) << 1); self.w } } #[doc = "Reader of field `cs_n`"] pub type CS_N_R = crate::R<bool, bool>; #[doc = "Write proxy for field `cs_n`"] pub struct CS_N_W<'a> { w: &'a mut W, } impl<'a> CS_N_W<'a> { #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"Writes raw bits to the field"] #[inline(always)] pub fn bit(self, value: bool) -> &'a mut W { self.w.bits = (self.w.bits & !(0x01 << 2)) | (((value as u8) & 0x01) << 2); self.w } } #[doc = "Reader of field `dir`"] pub type DIR_R = crate::R<bool, bool>; #[doc = "Write proxy for field `dir`"] pub struct DIR_W<'a> { w: &'a mut W, } impl<'a> DIR_W<'a> { #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"Writes raw bits to the field"] #[inline(always)] pub fn bit(self, value: bool) -> &'a mut W { self.w.bits = (self.w.bits & !(0x01 << 3)) | (((value as u8) & 0x01) << 3); self.w } } impl R { #[doc = "Bit 0 - MOSI output pin, valid whenever `dir` is `0`."] #[inline(always)] pub fn mosi(&self) -> MOSI_R { MOSI_R::new((self.bits & 0x01) != 0) } #[doc = "Bit 1 - Output value for SPI CLK line."] #[inline(always)] pub fn clk(&self) -> CLK_R { CLK_R::new(((self.bits >> 1) & 0x01) != 0) } #[doc = "Bit 2 - Output value of SPI CSn line."] #[inline(always)] pub fn cs_n(&self) -> CS_N_R { CS_N_R::new(((self.bits >> 2) & 0x01) != 0) } #[doc = "Bit 3 - Dual/Quad SPI reuses pins SPI pin direction."] #[inline(always)] pub fn dir(&self) -> DIR_R { DIR_R::new(((self.bits >> 3) & 0x01) != 0) } } impl W { #[doc = "Bit 0 - MOSI output pin, valid whenever `dir` is `0`."] #[inline(always)] pub fn mosi(&mut self) -> MOSI_W { MOSI_W { w: self } } #[doc = "Bit 1 - Output value for SPI CLK line."] #[inline(always)] pub fn clk(&mut self) -> CLK_W { CLK_W { w: self } } #[doc = "Bit 2 - Output value of SPI CSn line."] #[inline(always)] pub fn cs_n(&mut self) -> CS_N_W { CS_N_W { w: self } } #[doc = "Bit 3 - Dual/Quad SPI reuses pins SPI pin direction."] #[inline(always)] pub fn dir(&mut self) -> DIR_W { DIR_W { w: self } } }
use failure::{format_err, Fallible}; use std::path::Path; use std::process::ExitStatus; use super::{cmd, util}; pub fn run(files: Vec<&str>, stdin: &str) -> Fallible<ExitStatus> { let work_dir = util::dirname(files[0])?; let obj_name = "a.o"; let bin_name = "a.out"; let status = cmd::run( work_dir, vec!["nasm", "-f", "elf64", "-o", obj_name, files[0]], )?; if !status.success() { return Ok(status); } let status = cmd::run(work_dir, vec!["ld", "-o", bin_name, obj_name])?; if !status.success() { return Ok(status); } let bin_path_buf = Path::new(work_dir).join(bin_name); let bin_path = bin_path_buf .to_str() .ok_or(format_err!("invalid bin_path"))?; cmd::run_stdin(work_dir, vec![bin_path], stdin) }
#[macro_use(assert_approx_eq)] extern crate assert_approx_eq; /// library that calculates averages and percentiles mod lib { use std::f32; /// Returns the nth percentile of the given array /// /// Args: /// /// * `array`: mutable reference to the array to modify /// * `percentile`: the expected percentile /// /// Returns: /// /// calculated nth percentile #[allow(dead_code)] pub fn get_percentile( array: &Vec<f32>, percentile: u8, ) -> f32 { let mut sorted_array = array.clone(); sorted_array.sort_by(|a, b| a.partial_cmp(b).unwrap()); const ONE_HUNDRED_PERCENT: f32 = 100.0; let array_length = sorted_array.len() as f32; let index = percentile as f32 / ONE_HUNDRED_PERCENT * array_length; if (index.floor() - index).abs() <= f32::EPSILON { let index = index as usize; let start = index - 1; let end = index + 1; return get_average(&sorted_array[start..end]); } sorted_array[index.floor() as usize] } /// Returns the average of values into the dynamic array /// /// Args: /// /// * `array`: slice of values /// /// Returns: /// /// calculated average pub fn get_average(slice: &[f32]) -> f32 { let sum: f32 = slice.iter().sum(); return sum / (slice.len() as f32); } } #[cfg(test)] mod tests;
// 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. use { crate::model::*, clonable_error::ClonableError, cm_rust::CapabilityPath, failure::{Error, Fail}, fidl::endpoints, fidl_fuchsia_io::{ DirectoryMarker, DirectoryProxy, MODE_TYPE_DIRECTORY, OPEN_RIGHT_READABLE, OPEN_RIGHT_WRITABLE, }, fidl_fuchsia_sys2 as fsys, std::{path::PathBuf, sync::Arc}, }; const FLAGS: u32 = OPEN_RIGHT_READABLE | OPEN_RIGHT_WRITABLE; /// Errors related to isolated storage. #[derive(Debug, Fail, Clone)] pub enum StorageError { #[fail( display = "failed to open isolated storage from {}'s directory {} for {}: {} ", dir_source_moniker, dir_source_path, relative_moniker, err )] Open { dir_source_moniker: AbsoluteMoniker, dir_source_path: CapabilityPath, relative_moniker: RelativeMoniker, #[fail(cause)] err: ClonableError, }, #[fail( display = "failed to remove isolated storage from {}'s directory {} for {}: {} ", dir_source_moniker, dir_source_path, relative_moniker, err )] Remove { dir_source_moniker: AbsoluteMoniker, dir_source_path: CapabilityPath, relative_moniker: RelativeMoniker, #[fail(cause)] err: ClonableError, }, #[fail(display = "storage path for {} was invalid", relative_moniker)] InvalidStoragePath { relative_moniker: RelativeMoniker }, #[fail(display = "invalid utf8")] InvalidUtf8, } impl StorageError { pub fn open( dir_source_moniker: AbsoluteMoniker, dir_source_path: CapabilityPath, relative_moniker: RelativeMoniker, err: impl Into<Error>, ) -> Self { Self::Open { dir_source_moniker, dir_source_path, relative_moniker, err: err.into().into() } } pub fn remove( dir_source_moniker: AbsoluteMoniker, dir_source_path: CapabilityPath, relative_moniker: RelativeMoniker, err: impl Into<Error>, ) -> Self { Self::Remove { dir_source_moniker, dir_source_path, relative_moniker, err: err.into().into(), } } pub fn invalid_storage_path(relative_moniker: RelativeMoniker) -> Self { Self::InvalidStoragePath { relative_moniker } } } /// Open the isolated storage sub-directory for the given component, creating it if necessary. /// `dir_source_realm` and `dir_source_path` are the realm hosting the directory and its capability /// path. pub async fn open_isolated_storage( model: &Model, dir_source_realm: Arc<Realm>, dir_source_path: &CapabilityPath, storage_type: fsys::StorageType, relative_moniker: &RelativeMoniker, open_mode: u32, ) -> Result<DirectoryProxy, StorageError> { const FLAGS: u32 = OPEN_RIGHT_READABLE | OPEN_RIGHT_WRITABLE; let (dir_proxy, local_server_end) = endpoints::create_proxy::<DirectoryMarker>().expect("failed to create proxy"); model .bind_instance_open_outgoing( dir_source_realm.clone(), FLAGS, open_mode, dir_source_path, local_server_end.into_channel(), ) .await .map_err(|e| { StorageError::open( dir_source_realm.abs_moniker.clone(), dir_source_path.clone(), relative_moniker.clone(), e, ) })?; let storage_proxy = io_util::create_sub_directories( &dir_proxy, &generate_storage_path(Some(storage_type), &relative_moniker), ) .map_err(|e| { StorageError::open( dir_source_realm.abs_moniker.clone(), dir_source_path.clone(), relative_moniker.clone(), e, ) })?; Ok(storage_proxy) } /// Delete the isolated storage sub-directory for the given component. `dir_source_realm` and /// `dir_source_path` are the realm hosting the directory and its capability path. pub async fn delete_isolated_storage( model: &Model, dir_source_realm: Arc<Realm>, dir_source_path: &CapabilityPath, relative_moniker: &RelativeMoniker, ) -> Result<(), StorageError> { let (root_dir, local_server_end) = endpoints::create_proxy::<DirectoryMarker>().expect("failed to create proxy"); model .bind_instance_open_outgoing( dir_source_realm.clone(), FLAGS, MODE_TYPE_DIRECTORY, dir_source_path, local_server_end.into_channel(), ) .await .map_err(|e| { StorageError::open( dir_source_realm.abs_moniker.clone(), dir_source_path.clone(), relative_moniker.clone(), e, ) })?; let storage_path = generate_storage_path(None, &relative_moniker); if storage_path.parent().is_none() { return Err(StorageError::invalid_storage_path(relative_moniker.clone())); } let dir_path = storage_path.parent().unwrap(); let name = storage_path .file_name() .ok_or(StorageError::invalid_storage_path(relative_moniker.clone()))? .to_str() .ok_or(StorageError::InvalidUtf8)?; let dir = if dir_path.parent().is_none() { root_dir } else { io_util::open_directory(&root_dir, dir_path, FLAGS).map_err(|e| { StorageError::open( dir_source_realm.abs_moniker.clone(), dir_source_path.clone(), relative_moniker.clone(), e, ) })? }; // TODO(36377): This function is subject to races. If another process has a handle to the // isolated storage directory, it can add files while this function is running. That could // cause it to spin or fail because a subdir was not empty after it removed all the contents. // It's also possible that the directory was already deleted by the backing component or a // prior run. files_async::remove_dir_recursive(&dir, name).await.map_err(|e| { StorageError::remove( dir_source_realm.abs_moniker.clone(), dir_source_path.clone(), relative_moniker.clone(), e, ) })?; Ok(()) } /// Generates the path into a directory the provided component will be afforded for storage /// /// The path of the sub-directory for a component that uses a storage capability is based on: /// /// - Each component instance's child moniker as given in the `children` section of its parent's /// manifest, for each component instance in the path from the [`storage` /// declaration][storage-syntax] to the [`use` declaration][use-syntax]. /// - The storage type. /// /// These names are used as path elements, separated by elements of the name "children". The /// storage type is then appended to this path. /// /// For example, if the following component instance tree exists, with `a` declaring storage /// capabilities, and then cache storage being offered down the chain to `d`: /// /// ``` /// a <- declares storage, offers cache storage to b /// | /// b <- offers cache storage to c /// | /// c <- offers cache storage to d /// | /// d <- uses cache storage as `/my_cache` /// ``` /// /// When `d` attempts to access `/my_cache` the framework creates the sub-directory /// `b:0/children/c:0/children/d:0/cache` in the directory used by `a` to declare storage /// capabilities. Then, the framework gives 'd' access to this new directory. fn generate_storage_path( type_: Option<fsys::StorageType>, relative_moniker: &RelativeMoniker, ) -> PathBuf { assert!( !relative_moniker.down_path().is_empty(), "storage capability appears to have been exposed or used by its source" ); let mut down_path = relative_moniker.down_path().iter(); let mut dir_path = vec![down_path.next().unwrap().as_str().to_string()]; while let Some(p) = down_path.next() { dir_path.push("children".to_string()); dir_path.push(p.as_str().to_string()); } match type_ { Some(fsys::StorageType::Data) => dir_path.push("data".to_string()), Some(fsys::StorageType::Cache) => dir_path.push("cache".to_string()), Some(fsys::StorageType::Meta) => dir_path.push("meta".to_string()), None => {} } dir_path.into_iter().collect() } #[cfg(test)] mod tests { use super::*; use { crate::{ model::testing::routing_test_helpers::RoutingTest, model::testing::test_helpers::{self, default_component_decl}, }, cm_rust::*, fidl_fuchsia_sys2::StorageType, std::convert::{TryFrom, TryInto}, }; #[fuchsia_async::run_singlethreaded(test)] async fn open_isolated_storage_test() { let components = vec![ ( "a", ComponentDecl { children: vec![ ChildDecl { name: "b".to_string(), url: "test:///b".to_string(), startup: fsys::StartupMode::Lazy, }, ChildDecl { name: "c".to_string(), url: "test:///c".to_string(), startup: fsys::StartupMode::Lazy, }, ], ..default_component_decl() }, ), ( "b", ComponentDecl { exposes: vec![ExposeDecl::Directory(ExposeDirectoryDecl { source_path: "/data".try_into().unwrap(), source: ExposeSource::Self_, target_path: "/data".try_into().unwrap(), target: ExposeTarget::Realm, })], ..default_component_decl() }, ), ]; let test = RoutingTest::new("a", components).await; let b_moniker = vec!["b:0"].into(); let dir_source_realm = test.model.look_up_realm(&b_moniker).await.expect("lookup failed"); let dir_source_path = CapabilityPath::try_from("/data").unwrap(); let relative_moniker = RelativeMoniker::new(vec![], vec!["c:0".into(), "coll:d:1".into()]); // Open. let dir = open_isolated_storage( &test.model, dir_source_realm.clone(), &dir_source_path, fsys::StorageType::Data, &relative_moniker, OPEN_RIGHT_READABLE | OPEN_RIGHT_WRITABLE, ) .await .expect("failed to open isolated storage"); assert_eq!(test_helpers::list_directory(&dir).await, Vec::<String>::new()); test_helpers::write_file(&dir, "file", "hippos").await; assert_eq!(test_helpers::list_directory(&dir).await, vec!["file".to_string()]); // Open again. let dir = open_isolated_storage( &test.model, dir_source_realm.clone(), &dir_source_path, fsys::StorageType::Data, &relative_moniker, OPEN_RIGHT_READABLE | OPEN_RIGHT_WRITABLE, ) .await .expect("failed to open isolated storage"); assert_eq!(test_helpers::list_directory(&dir).await, vec!["file".to_string()]); // Open another component's storage. let relative_moniker = RelativeMoniker::new(vec![], vec!["c:0".into(), "coll:d:1".into(), "e:0".into()]); let dir = open_isolated_storage( &test.model, dir_source_realm.clone(), &dir_source_path, fsys::StorageType::Data, &relative_moniker, OPEN_RIGHT_READABLE | OPEN_RIGHT_WRITABLE, ) .await .expect("failed to open isolated storage"); assert_eq!(test_helpers::list_directory(&dir).await, Vec::<String>::new()); test_helpers::write_file(&dir, "file", "hippos").await; assert_eq!(test_helpers::list_directory(&dir).await, vec!["file".to_string()]); // Open a different storage type. let dir = open_isolated_storage( &test.model, dir_source_realm.clone(), &dir_source_path, fsys::StorageType::Cache, &relative_moniker, OPEN_RIGHT_READABLE | OPEN_RIGHT_WRITABLE, ) .await .expect("failed to open isolated storage"); assert_eq!(test_helpers::list_directory(&dir).await, Vec::<String>::new()); test_helpers::write_file(&dir, "file", "hippos").await; assert_eq!(test_helpers::list_directory(&dir).await, vec!["file".to_string()]); // Error -- tried to open nonexistent storage. let root_moniker = vec![].into(); let root_realm = test.model.look_up_realm(&root_moniker).await.expect("lookup failed"); let err = open_isolated_storage( &test.model, root_realm, &dir_source_path, fsys::StorageType::Data, &relative_moniker, OPEN_RIGHT_READABLE | OPEN_RIGHT_WRITABLE, ) .await .expect_err("open isolated storage not meant to succeed"); match err { StorageError::Open { .. } => {} _ => { panic!("unexpected error: {:?}", err); } } } #[fuchsia_async::run_singlethreaded(test)] async fn delete_isolated_storage_test() { let components = vec![ ( "a", ComponentDecl { children: vec![ ChildDecl { name: "b".to_string(), url: "test:///b".to_string(), startup: fsys::StartupMode::Lazy, }, ChildDecl { name: "c".to_string(), url: "test:///c".to_string(), startup: fsys::StartupMode::Lazy, }, ], ..default_component_decl() }, ), ( "b", ComponentDecl { exposes: vec![ExposeDecl::Directory(ExposeDirectoryDecl { source_path: "/data".try_into().unwrap(), source: ExposeSource::Self_, target_path: "/data".try_into().unwrap(), target: ExposeTarget::Realm, })], ..default_component_decl() }, ), ]; let test = RoutingTest::new("a", components).await; let b_moniker = vec!["b:0"].into(); let dir_source_realm = test.model.look_up_realm(&b_moniker).await.expect("lookup failed"); let dir_source_path = CapabilityPath::try_from("/data").unwrap(); let parent_moniker = RelativeMoniker::new(vec![], vec!["c:0".into()]); let child_moniker = RelativeMoniker::new(vec![], vec!["c:0".into(), "coll:d:1".into()]); // Open and write to all storage types in child. for storage_type in vec![fsys::StorageType::Data, fsys::StorageType::Cache, fsys::StorageType::Meta] { let dir = open_isolated_storage( &test.model, dir_source_realm.clone(), &dir_source_path, storage_type, &child_moniker, OPEN_RIGHT_READABLE | OPEN_RIGHT_WRITABLE, ) .await .expect("failed to open isolated storage"); assert_eq!(test_helpers::list_directory(&dir).await, Vec::<String>::new()); test_helpers::write_file(&dir, "file", "hippos").await; assert_eq!(test_helpers::list_directory(&dir).await, vec!["file".to_string()]); } // Open parent's storage. let dir = open_isolated_storage( &test.model, dir_source_realm.clone(), &dir_source_path, fsys::StorageType::Data, &parent_moniker, OPEN_RIGHT_READABLE | OPEN_RIGHT_WRITABLE, ) .await .expect("failed to open isolated storage"); assert_eq!(test_helpers::list_directory(&dir).await, Vec::<String>::new()); test_helpers::write_file(&dir, "file", "hippos").await; assert_eq!(test_helpers::list_directory(&dir).await, vec!["file".to_string()]); // Delete the child's storage. delete_isolated_storage( &test.model, dir_source_realm.clone(), &dir_source_path, &child_moniker, ) .await .expect("failed to delete child's isolated storage"); // Open parent's storage again. Should work. let dir = open_isolated_storage( &test.model, dir_source_realm.clone(), &dir_source_path, fsys::StorageType::Data, &parent_moniker, OPEN_RIGHT_READABLE | OPEN_RIGHT_WRITABLE, ) .await .expect("failed to open isolated storage"); assert_eq!(test_helpers::list_directory(&dir).await, vec!["file".to_string()]); // Open list of children from parent. Should not contain child directory. assert_eq!( test.list_directory_in_storage(parent_moniker.clone(), "children").await, Vec::<String>::new(), ); // Error -- tried to delete nonexistent storage. let err = delete_isolated_storage( &test.model, dir_source_realm.clone(), &dir_source_path, &child_moniker, ) .await .expect_err("delete isolated storage not meant to succeed"); match err { StorageError::Remove { .. } => {} _ => { panic!("unexpected error: {:?}", err); } } } #[test] fn generate_storage_path_test() { for (type_, relative_moniker, expected_output) in vec![ ( Some(StorageType::Data), RelativeMoniker::from_absolute( &AbsoluteMoniker::from(vec![]), &AbsoluteMoniker::from(vec!["a:1"]), ), "a:1/data", ), ( Some(StorageType::Cache), RelativeMoniker::from_absolute( &AbsoluteMoniker::from(vec![]), &AbsoluteMoniker::from(vec!["a:1"]), ), "a:1/cache", ), ( Some(StorageType::Meta), RelativeMoniker::from_absolute( &AbsoluteMoniker::from(vec![]), &AbsoluteMoniker::from(vec!["a:1"]), ), "a:1/meta", ), ( None, RelativeMoniker::from_absolute( &AbsoluteMoniker::from(vec![]), &AbsoluteMoniker::from(vec!["a:1"]), ), "a:1", ), ( Some(StorageType::Data), RelativeMoniker::from_absolute( &AbsoluteMoniker::from(vec![]), &AbsoluteMoniker::from(vec!["a:1", "b:2"]), ), "a:1/children/b:2/data", ), ( Some(StorageType::Cache), RelativeMoniker::from_absolute( &AbsoluteMoniker::from(vec![]), &AbsoluteMoniker::from(vec!["a:1", "b:2"]), ), "a:1/children/b:2/cache", ), ( Some(StorageType::Meta), RelativeMoniker::from_absolute( &AbsoluteMoniker::from(vec![]), &AbsoluteMoniker::from(vec!["a:1", "b:2"]), ), "a:1/children/b:2/meta", ), ( None, RelativeMoniker::from_absolute( &AbsoluteMoniker::from(vec![]), &AbsoluteMoniker::from(vec!["a:1", "b:2"]), ), "a:1/children/b:2", ), ( Some(StorageType::Data), RelativeMoniker::from_absolute( &AbsoluteMoniker::from(vec![]), &AbsoluteMoniker::from(vec!["a:1", "b:2", "c:3"]), ), "a:1/children/b:2/children/c:3/data", ), ( Some(StorageType::Cache), RelativeMoniker::from_absolute( &AbsoluteMoniker::from(vec![]), &AbsoluteMoniker::from(vec!["a:1", "b:2", "c:3"]), ), "a:1/children/b:2/children/c:3/cache", ), ( Some(StorageType::Meta), RelativeMoniker::from_absolute( &AbsoluteMoniker::from(vec![]), &AbsoluteMoniker::from(vec!["a:1", "b:2", "c:3"]), ), "a:1/children/b:2/children/c:3/meta", ), ( None, RelativeMoniker::from_absolute( &AbsoluteMoniker::from(vec![]), &AbsoluteMoniker::from(vec!["a:1", "b:2", "c:3"]), ), "a:1/children/b:2/children/c:3", ), ] { assert_eq!( generate_storage_path(type_, &relative_moniker), PathBuf::from(expected_output) ) } } }
pub mod error; pub mod key; // /// Load helper. // /// // /// Call this function whenever you need to load a resource and that you want logged information, // /// such as failures, timing, etc. // pub fn load_with<T, A, E, F>( // path: &Path, // loader: F // ) -> Result<A, E> // where F: FnOnce() -> Result<A, E>, // T: TyDesc { // info!("loading {} {}", T::TY_DESC, path.display()); // // let start_time = Instant::now(); // let r = loader(); // let t = start_time.elapsed(); // let ns = t.as_secs() as f64 * 1e9 + t.subsec_nanos() as f64; // let (pretty_time, suffix) = load_time(ns); // // if let Ok(_) = r { // info!("loaded {} {}: {:.3}{}", T::TY_DESC, path.display(), pretty_time, suffix); // } else { // err!("fail to load {} {}: {:.3}{}", T::TY_DESC, path.display(), pretty_time, suffix); // } // // r // }
use serde::Deserialize; #[derive(Deserialize)] #[serde(rename_all = "PascalCase")] pub struct Data { pub id: usize, pub material_id: usize, pub sort_order: usize, pub name_text_map_hash: usize, pub desc_text_map_hash: usize, pub icon: String, }
extern crate oxygengine_core as core; pub mod component; pub mod nav_mesh_asset_protocol; pub mod resource; pub mod system; pub mod prelude { pub use crate::{component::*, nav_mesh_asset_protocol::*, resource::*, system::*}; } use crate::{ component::NavAgent, resource::NavMeshesRes, system::{NavAgentMaintainSystem, SimpleNavDriverSystem}, }; use core::{app::AppBuilder, ignite_proxy, prefab::PrefabManager}; ignite_proxy! { struct NavAgentId {} } ignite_proxy! { struct NavVec3 { pub x: Scalar, pub y: Scalar, pub z: Scalar, } } ignite_proxy! { struct NavTriangle { pub first: u32, pub second: u32, pub third: u32, } } pub fn bundle_installer(builder: &mut AppBuilder) { builder.install_resource(NavMeshesRes::default()); builder.install_system(NavAgentMaintainSystem::default(), "nav-agent-maintain", &[]); builder.install_system( SimpleNavDriverSystem, "simple-nav-driver", &["nav-agent-maintain"], ); } pub fn prefabs_installer(prefabs: &mut PrefabManager) { prefabs.register_component_factory::<NavAgent>("NavAgent"); }
use std::collections::HashMap; struct X { roots: HashMap<i32, i32> } fn read(x: &X, key: i32) -> Option<&i32> { x.roots.get(&key) } fn write(x: &mut X, key: i32, newval: i32) { x.roots.insert(key, newval); } fn main() { let mut x = X{roots: HashMap::new()}; let _y = { read(&x, 42) }; write(&mut x, 42, 99); }
extern crate peg_syntax_ext; use peg_syntax_ext::peg; peg!{memo r#" #[cache] r -> &'input str = s:$([a-z]+) { s } pub parse = r '+' r { () } / r ' ' r { () } "#} #[test] fn main() { assert_eq!(memo::parse("abc zzz"), Ok(())); }
use std::heap::{Heap, Alloc, Layout}; use core::mem; use core::ptr; use Fail; use backtrace::Backtrace; pub(crate) struct ErrorImpl { inner: &'static mut Inner, } // Dynamically sized inner value struct Inner { backtrace: Backtrace, vtable: *const VTable, failure: FailData, } unsafe impl Send for Inner { } unsafe impl Sync for Inner { } extern { type VTable; type FailData; } #[allow(dead_code)] struct InnerRaw<F> { header: InnerHeader, failure: F, } #[allow(dead_code)] struct InnerHeader { backtrace: Backtrace, vtable: *const VTable, } struct TraitObject { #[allow(dead_code)] data: *const FailData, vtable: *const VTable, } impl<F: Fail> From<F> for ErrorImpl { fn from(failure: F) -> ErrorImpl { let backtrace = if failure.backtrace().is_none() { Backtrace::new() } else { Backtrace::none() }; unsafe { let vtable = mem::transmute::<_, TraitObject>(&failure as &Fail).vtable; let ptr: *mut InnerRaw<F> = match Heap.alloc(Layout::new::<InnerRaw<F>>()) { Ok(p) => p as *mut InnerRaw<F>, Err(e) => Heap.oom(e), }; // N.B. must use `ptr::write`, not `=`, to avoid dropping the contents of `*ptr` ptr::write(ptr, InnerRaw { header: InnerHeader { backtrace, vtable, }, failure, }); let inner: &'static mut Inner = mem::transmute(ptr); ErrorImpl { inner } } } } impl ErrorImpl { pub(crate) fn failure(&self) -> &Fail { unsafe { mem::transmute::<TraitObject, &Fail>(TraitObject { data: &self.inner.failure as *const FailData, vtable: self.inner.vtable, }) } } pub(crate) fn failure_mut(&mut self) -> &mut Fail { unsafe { mem::transmute::<TraitObject, &mut Fail>(TraitObject { data: &mut self.inner.failure as *const FailData, vtable: self.inner.vtable, }) } } pub(crate) fn backtrace(&self) -> &Backtrace { &self.inner.backtrace } pub(crate) fn downcast<T: Fail>(self) -> Result<T, ErrorImpl> { let ret: Option<T> = self.failure().downcast_ref().map(|fail| { unsafe { // drop the backtrace let _ = ptr::read(&self.inner.backtrace as *const Backtrace); // read out the fail type ptr::read(fail as *const T) } }); match ret { Some(ret) => { // forget self (backtrace is dropped, failure is moved mem::forget(self); Ok(ret) } _ => Err(self) } } } #[cfg(test)] mod test { use std::mem::size_of; use super::ErrorImpl; #[test] fn assert_is_one_word() { assert_eq!(size_of::<ErrorImpl>(), size_of::<usize>()); } }
type Point = (i32, i32); fn distance(a: Point, b: Point) -> i32 { (a.0 - b.0).abs() + (a.1 - b.1).abs() } fn input_points(input: String) -> Vec<Point> { input .split("\n") .map(|x| { let parts: Vec<_> = x.split(", ").collect(); ( parts.get(0).unwrap().parse::<i32>().unwrap(), parts.get(1).unwrap().parse::<i32>().unwrap(), ) }) .collect() } fn find_bounds(points: &Vec<Point>) -> ((i32, i32), (i32, i32)) { let min_x = points.into_iter().map(|x| x.0).min().unwrap(); let max_x = points.into_iter().map(|x| x.0).max().unwrap(); let min_y = points.into_iter().map(|x| x.1).min().unwrap(); let max_y = points.into_iter().map(|x| x.1).max().unwrap(); ((min_x, min_y), (max_x, max_y)) } fn region_within(input: String, n: i32) -> i32 { let points = &input_points(input); let ((min_x, min_y), (max_x, max_y)) = find_bounds(points); let mut count = 0; for x in min_x..=max_x { for y in min_y..=max_y { let total_distance: i32 = points.into_iter().map(|p| distance((x, y), *p)).sum(); if total_distance < n { count += 1; } } } count } fn main() { println!("{}", region_within(include_str!("input.txt").into(), 10000)); } #[test] fn test_06b() { let input = vec!["1, 1", "1, 6", "8, 3", "3, 4", "5, 5", "8, 9"]; let result = region_within(input.join("\n").into(), 32); assert_eq!(result, 16); }
/* Original Author: FoxBoxPDX <foxboxpdx@gmail.com> License Copyright 2021 Melondog Software. All rights reserved. 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 openssl; extern crate time; extern crate uuid; use openssl::sign::Signer; use openssl::pkey::PKey; use openssl::hash::MessageDigest; use openssl::sha::Sha256; use openssl::base64::encode_block; use time::OffsetDateTime; use uuid::Uuid; use std::collections::HashMap; /* Akamai Edgegrid {OPEN} signing library This library provides a struct and helper functions that add EdgeGrid authentication support as specified at https://developer.akamai.com/introduction/Client_Auth.html It should work with any HTTP client library (Reqwest, Hyper, etc) that allows headers to be specified. See README.md for additional information */ // Reusable authenticator struct what with the functions that do the things #[derive(Default)] pub struct Authenticator { pub host: String, pub client_token: String, pub client_secret: String, pub access_token: String, } // Data required to generate the EdgeGrid authentication header for a particular api request #[derive(Default)] pub struct RequestData { pub request_uri: String, pub headers: HashMap<String, String>, pub body: String, pub max_body: usize, pub unsigned_header: String, pub signed_header: String } impl Authenticator { /* Private Static Methods */ // Compute an HMAC digest using SHA256 and encode to base64 fn base64_hmac_sha256(data: &str, keystr: &str) -> String { let key = PKey::hmac(keystr.as_bytes()).unwrap(); let mut signer = Signer::new(MessageDigest::sha256(), &key).unwrap(); // For some reason, sign_oneshot_to_vec is missing from the MUSL-C // version of Openssl v0.10.33, so we gotta do this the long way // let hmac = signer.sign_oneshot_to_vec(data.as_bytes()).unwrap(); signer.update(data.as_bytes()).unwrap(); let hmac = signer.sign_to_vec().unwrap(); encode_block(&hmac).trim().to_string() } // Compute a SHA256 hash, encode to base64, trim any whitespace fn base64_sha256(data: &str) -> String { let mut hasher = Sha256::new(); hasher.update(data.as_bytes()); let retval = hasher.finish(); encode_block(&retval).trim().to_string() } // Normalize any headers to be used in the signature // Convert header keys to lowercase, trim whitespace, and join everything // together into a tab-separated string fn normalize_headers(headers: &HashMap<String, String>) -> String { let mut retval = String::from(""); let mut normed = Vec::new(); for (key, value) in headers.iter() { normed.push(format!("{}:{}", key.to_ascii_lowercase(), value.trim())); } retval.push_str(&normed.join("\t")); retval } // If a request body is present, ensure it is no larger than [max_body] bytes long // and generate a base64'd sha256 hash of it fn process_body(body: &str, max: usize, method: &str) -> (String, String) { // Don't bother doing anything if this isn't a POST request or there's no body if method == "POST" && body.len() > 0 && max > 0 { // Truncate if needed if body.len() > max { body.to_string().truncate(max); } // Make hash and return let hash = Authenticator::base64_sha256(body); (hash, body.to_string()) } else { ("".to_string(), "".to_string()) } } /* Private Instance Methods */ // Create a base64'd SHA256 HMAC digest signing key based on the secret and timestamp fn make_signing_key(&self, timestamp: &str) -> String { Authenticator::base64_hmac_sha256(timestamp, &self.client_secret) } // Create a tab-separated string with all data that will be used in signing fn make_data_to_sign(&self, request: &mut RequestData, method: &str) -> String { let (body_hash, trunc_body) = Authenticator::process_body(&request.body, request.max_body, method); // Replace the USRQ body with truncated body request.body = trunc_body; // Normalize the headers if any exist let normalized = Authenticator::normalize_headers(&request.headers); // Generate string let data_to_sign: Vec<&str> = vec![ method, "https", &self.host, &request.request_uri, &normalized, &body_hash, &request.unsigned_header ]; data_to_sign.join("\t") } // Build and sign the authorization header fn make_auth_header(&self, timestamp: &str, request: &mut RequestData, method: &str) { // Generate the unsigned auth header by combining tokens, timestamp, and a nonce let auth_header = format!("EG1-HMAC-SHA256 client_token={};access_token={};timestamp={};nonce={};", self.client_token, self.access_token, timestamp, Uuid::new_v4() ); // Toss that into the UR struct so it can be passed around easier request.unsigned_header = auth_header.to_string(); // Send everything off for signing and add the resulting base64 sha256 HMAC to the header string; // return the result request.signed_header = format!("{}signature={}", auth_header, self.sign_request(request, method, timestamp)); } fn sign_request(&self, request: &mut RequestData, method: &str, timestamp: &str) -> String { let data = self.make_data_to_sign(request, method); let key = self.make_signing_key(timestamp); Authenticator::base64_hmac_sha256(&data, &key) } /* Public Methods */ // Create a new, reusable EdgeGrid Authenticator struct for a given API hostname // with the appropriate tokens and secrets pub fn new(h: &str, ct: &str, cs: &str, at: &str) -> Authenticator { Authenticator { host: h.to_string(), client_token: ct.to_string(), client_secret: cs.to_string(), access_token: at.to_string(), ..Default::default() } } pub fn get(&self, mut request: RequestData) -> String { // Generate a timestamp in the format Akamai demands let timestamp = OffsetDateTime::now_utc().format("%Y%m%dT%H:%M:%S+0000"); // Do all the things self.make_auth_header(&timestamp, &mut request, "GET"); // Hand the result back request.signed_header } // Generate the Authroization header for a POST request pub fn post(&self, mut request: RequestData) -> (String, String) { // Generate timestamp let timestamp = OffsetDateTime::now_utc().format("%Y%m%dT%H:%M:%S+0000"); // Do all the things self.make_auth_header(&timestamp, &mut request, "POST"); // Hand back the result (request.signed_header, request.body) } } impl RequestData { pub fn new(uri: &str) -> RequestData { RequestData { request_uri: uri.to_string(), ..Default::default() } } pub fn with_headers(mut self, headers: HashMap<String, String>) -> Self { self.headers = headers; self } pub fn with_body(mut self, body: &str) -> Self { self.body = body.to_string(); self } pub fn with_max_body(mut self, max: usize) -> Self { self.max_body = max; self } } #[macro_export] macro_rules! sign_get_request { // Takes an Authenticator and a URI ($auther:expr, $uri:expr) => { $auther.get(edgegrid_rs::RequestData::new($uri)) }; // Takes an Authenticator, a URI, and hashmap of headers ($auther:expr, $uri:expr, $heads:expr) => { $auther.get(edgegrid_rs::RequestData::new($uri).with_headers($heads)) }; } #[macro_export] macro_rules! sign_post_request { // Takes an Authenticator and a URI ($auther:expr, $uri:expr) => { $auther.post(mut RequestData::new($uri)) }; // Takes an Authenticator, a URI, and a body ($auther:expr, $uri:expr, $body:expr) => { $auther.post(mut RequestData::new($uri).with_body($body)) }; // Takes an authenticator, a uri, a body, and a max_body ($auther:expr, $uri:expr, $body:expr, $max:expr) => { $auther.post(mut RequestData::new($uri).with_body($body).with_max_body($max)) }; // Takes auth, uri, body, max_body, and header hashmap ($auther:expr, $uri:expr, $body:expr, $max:expr, $heads:expr) => { $auther.post(mut RequestData::new($uri).with_body($body).with_max_body($max).with_headers($heads)) }; }
pub mod sx1250_eu868; pub mod sx1250_us915;
use actix_files as fs; use actix_web::{http::StatusCode, web, HttpResponse, Responder}; use deadpool_postgres::{Client, Pool}; use slog::{crit, error, o, Logger}; use std::{io, process::Command}; use validator::Validate; use crate::{constants, db, errors::CustomError, models, utils}; pub async fn get_client(pool: Pool, log: Logger) -> Result<Client, CustomError> { pool.get().await.map_err(|err| { let sublog = log.new(o!("cause" => err.to_string())); crit!(sublog, "Error creating database client"); CustomError::DbError }) } pub fn log_error(log: Logger) -> impl Fn(CustomError) -> CustomError { move |err| { let sublog = log.new(o!("cause" => err.to_string())); error!(sublog, "{}", err.name()); err } } // This handler uses JSON extractor with limit. pub async fn submit_score( state: web::Data<models::AppState>, item: web::Json<models::ScoreEntry>, ) -> Result<impl Responder, CustomError> { // Validate JSON input payload. match item.validate() { Ok(_) => (), Err(_e) => return Err(CustomError::ValidationError), } // Validate each material. if !item.materials.is_empty() { for material in item.materials.clone().iter() { match material.validate() { Ok(_) => (), Err(_e) => return Err(CustomError::ValidationError), } } } let log = state.log.new(o!("handler" => "submit_score")); let client: Client = get_client(state.pool.clone(), log.clone()).await?; // By default, return error. let mut result: Result<Vec<models::LeaderboardSingleEntry>, CustomError> = Err(CustomError::Internal); let values = utils::get_values_of_materials(&client) .await .map_err(|_err| CustomError::DbError)?; // Pass the fetched material names from database for input verification // purposes. let allowed_to_add_score: bool = utils::check_if_materials_total_value_sum_up_to_score( item.score, item.materials.clone(), item.bonus, values.clone(), ) .await .map_err(|_err| CustomError::ValidationError)?; if allowed_to_add_score { // Do not need to add any materials to aggregate if material vector is empty. let added_to_materials: bool = if !item.materials.is_empty() { utils::add_materials_to_aggregate(&client, item.materials.clone()) .await .map_err(|_err| CustomError::DbError)? } else { true }; // Only add score entry if there are materials added to the material table. if added_to_materials { result = Ok(db::add_score_entry(&client, item) .await .map_err(|_err| CustomError::DbError)?); } } else { return Err(CustomError::ValidationError); } // Echo JSON response partially back if everything is okay (follow standard // military communication procedure, protocol & etiquette). result .map(|score| { HttpResponse::Ok() .header("Content-Security-Policy", "default-src 'self'") .header("Strict-Transport-Security", "max-age=3600") .header("X-XSS-Protection", "1; mode=block") .json(score.get(0)) }) .map_err(log_error(log)) } pub async fn get_leaderboard( state: web::Data<models::AppState>, web::Query(query): web::Query<models::LeaderboardQueryRequest>, ) -> Result<impl Responder, CustomError> { match query.validate() { Ok(_) => (), Err(_e) => return Err(CustomError::ValidationError), } let log = state.log.new(o!("handler" => "get_leaderboard")); let client: Client = get_client(state.pool.clone(), log.clone()).await?; // Map text/string/bpchar/varchar to integer since integer-based // operations/comparisons are generally much faster. let mapped_difficulty = constants::DIFFICULTY_MAP .get::<str>(&query.difficulty.clone()) .expect("error mapping difficulty string to integer"); let result = db::get_score_entries(&client, query.max_entries, *mapped_difficulty).await; result .map(|scores| { HttpResponse::Ok() .header("Content-Security-Policy", "default-src 'self'") .header("Strict-Transport-Security", "max-age=3600") .header("X-XSS-Protection", "1; mode=block") .json(scores) }) .map_err(log_error(log)) } pub async fn get_materials( state: web::Data<models::AppState>, ) -> Result<impl Responder, CustomError> { let log = state.log.new(o!("handler" => "get_materials")); let client: Client = get_client(state.pool.clone(), log.clone()).await?; let result = db::get_total_materials(&client).await; result .map(|materials| { HttpResponse::Ok() .header("Content-Security-Policy", "default-src 'self'") .header("Strict-Transport-Security", "max-age=3600") .header("X-XSS-Protection", "1; mode=block") .json(materials) }) .map_err(log_error(log)) } pub async fn vsauce_handler() -> Result<impl Responder, std::io::Error> { Ok(HttpResponse::Ok() .header("Content-Security-Policy", "default-src 'self'") .header("Strict-Transport-Security", "max-age=3600") .header("X-XSS-Protection", "1; mode=block") .body("This resource does not exist... Or does it? *VSauce music plays*")) } pub async fn fortune_cookie_handler() -> Result<impl Responder, std::io::Error> { let fortune: String; if cfg!(target_os = "windows") { fortune = "No fortune cookies on Windows. 😔".to_string(); } else { // Need to run `sudo apt install fortune` first since this command is not // built-in on Ubuntu. let output = Command::new("/usr/games/fortune") .arg("-s") .output() .and_then(|r| match r.status.success() { true => Ok(r), false => Err(io::Error::new( io::ErrorKind::InvalidData, "some error caused the child process to not run properly", )), }); fortune = match output { Ok(_) => std::str::from_utf8(&output.unwrap().stdout) .unwrap() .to_string(), Err(_e) => "Unfortunately, some internal server error that has occurred prevents us \ from giving a fortune cookie to you. Apologies! 😔" .to_string(), } } Ok(HttpResponse::Ok() .header("Content-Security-Policy", "default-src 'self'") .header("Strict-Transport-Security", "max-age=3600") .header("X-XSS-Protection", "1; mode=block") .body(fortune)) } pub async fn favicon_handler() -> Result<fs::NamedFile, std::io::Error> { // Development mode. #[cfg(debug_assertions)] return Ok(fs::NamedFile::open("static/favicon.ico")?.set_status_code(StatusCode::OK)); // Production mode. #[cfg(not(debug_assertions))] return Ok( fs::NamedFile::open("/root/overdue_backend/static/favicon.ico")? .set_status_code(StatusCode::OK), ); } pub async fn default_handler() -> Result<fs::NamedFile, std::io::Error> { // Development mode. #[cfg(debug_assertions)] return Ok( fs::NamedFile::open("static/detected_cheater.png")?.set_status_code(StatusCode::NOT_FOUND) ); // Production mode. #[cfg(not(debug_assertions))] return Ok( fs::NamedFile::open("/root/overdue_backend/static/detected_cheater.png")? .set_status_code(StatusCode::NOT_FOUND), ); }
use std::collections::HashMap; use std::fs; mod player; use player::Player; mod card_deck; mod game_rules; use game_rules::GameRules; mod game_state; use game_state::GameState; mod user_input; fn main() { let yams = fs::read_to_string("poo_head_rules.yaml").expect("Something went wrong reading the file"); let game_rules: GameRules = serde_yaml::from_str(&yams).unwrap(); // TODO: Get players from user. Use min and max player count from game rules let players: Vec<Player> = vec![ Player { name: "Alice".into(), hand: HashMap::new(), }, Player { name: "Bob".into(), hand: HashMap::new(), }, ]; let mut game_state = GameState::new(game_rules, players); game_state.deal(); // TODO: Handle user errors game_state.play_game(); } // fn play_turn(game_state: &mut GameState) { // if game_state.communal_cards.len() > 0 { // println!("Pick it up (y/N):"); // let pick_it_up_answer: String = read!(); // // let player = game_state.player_on_turn(); // if pick_it_up_answer == "y" { // // pick_it_up(game_state, player); // pick_it_up(game_state); // return; // } // } // // println!("What card do you want to play:"); // let card_to_play_index: usize = read!(); // // let player = game_state.player_on_turn(); // if card_to_play_index >= player.hand.cards.len() { // println!("Sorry, card index out of range!"); // return play_turn(game_state); // } // // let card_to_play = player.hand.cards.remove(card_to_play_index); // if valid_card_to_play(game_state, &card_to_play) { // if card_to_play.rank == Rank::from_usize(3) { // // TODO: Determine next player // // TODO: Pick it up on next player // // TODO: Skip next player // return; // } // // if card_to_play.rank == Rank::from_usize(10) { // game_state.communal_cards.drain(0..); // play_turn(game_state); // return; // } // // // TODO: Need to encode wild card into rank comparisons // // if let Some(last_played_card) = game_state.communal_cards.last() { // if last_played_card.rank == card_to_play.rank { // game_state.communal_cards.push(card_to_play); // println!("PUSHING"); // // TODO: Skip next player // return; // } // } // // game_state.communal_cards.push(card_to_play); // } else { // println!("Sorry, you can't play that card!"); // let player = game_state.player_on_turn(); // player.hand.cards.insert(card_to_play_index, card_to_play); // return play_turn(game_state); // } // } // // fn pick_it_up(game_state: &mut GameState) { // // fn pick_it_up(game_state: &mut GameState, player: &mut Player) { // return; // } // // fn valid_card_to_play(game_state: &GameState, card_to_play: &Card) -> bool { // if let Some(last_played_card) = game_state.communal_cards.last() { // if card_to_play.rank >= last_played_card.rank { // true // } else { // false // } // } else { // true // } // }
use ipfs_embed::{Config, Ipfs}; use libipld::cbor::DagCborCodec; use libipld::multihash::Code; use libipld::{alias, Cid, DagCbor, DefaultParams, Result}; use std::convert::TryFrom; use std::path::Path; const ROOT: &str = alias!(root); #[derive(Debug, Default, DagCbor)] pub struct Block { prev: Option<Cid>, id: u32, loopback: Option<Cid>, payload: Vec<u8>, } fn loopback(block: u32) -> Option<u32> { let x = block.trailing_zeros(); if x > 1 && block > 0 { Some(block - (1 << (x - 1))) } else { None } } /*pub struct ChainSyncer<S: StoreParams, T: Storage<S>> { index: sled::Db, storage: BitswapStorage<S, T>, } impl<S: StoreParams, T: Storage<S>> ChainSyncer<S, T> { pub fn new(index: sled::Db, storage: BitswapStorage<S, T>) -> Arc<Self> { Arc::new(Self { index, storage }) } fn lookup_cid(&self, id: u32) -> Result<Option<Cid>> { if let Some(cid) = self.index.get(id.to_be_bytes())? { Ok(Some(Cid::try_from(&cid[..]).unwrap())) } else { Ok(None) } } fn loopback_cid(&self, id: u32) -> Result<Option<Cid>> { if let Some(id) = loopback(id) { Ok(self.lookup_cid(id)?) } else { Ok(None) } } } impl<S: StoreParams, T: Storage<S>> BitswapSync for ChainSyncer<S, T> where S::Codecs: Into<DagCborCodec>, { fn references(&self, cid: &Cid) -> Box<dyn Iterator<Item = Cid>> { if let Some(data) = self.storage.get(cid) { let ipld_block = libipld::Block::<S>::new_unchecked(*cid, data); if let Ok(block) = ipld_block.decode::<DagCborCodec, Block>() { let loopback = self.loopback_cid(block.id); let block_loopback = block.loopback; let valid_loopback = match (loopback, block_loopback) { (Ok(Some(cid1)), Some(cid2)) => cid1 == cid2, (Ok(None), _) => true, (Ok(Some(_)), None) => false, (Err(err), _) => { log::error!("{:?}", err); true } }; if valid_loopback { match (block.prev, block.loopback) { (Some(cid1), Some(cid2)) => { let cid1 = std::iter::once(cid1); let cid2 = std::iter::once(cid2); return Box::new(cid1.chain(cid2)); } (Some(cid), None) => return Box::new(std::iter::once(cid)), _ => {} } } else { log::error!("rejecting block due to invalid loopback"); } } } Box::new(std::iter::empty()) } fn contains(&self, cid: &Cid) -> bool { self.storage.contains(cid) } }*/ pub struct BlockChain { index: sled::Db, ipfs: Ipfs<DefaultParams>, root_cid: Option<Cid>, root_id: u32, } impl BlockChain { pub async fn open<P: AsRef<Path>>(path: P, cache_size: u64) -> Result<Self> { let index = sled::open(path.as_ref().join("index"))?; let config = Config::new(Some(path.as_ref().join("blocks")), cache_size); //let config = Config::new(None, cache_size); let ipfs = Ipfs::new(config).await?; ipfs.listen_on("/ip4/127.0.0.1/tcp/0".parse()?).await?; let root_cid = ipfs.resolve(ROOT)?; let mut chain = Self { index, ipfs, root_cid, root_id: 0, }; if root_cid.is_none() { // insert the genesis block chain.push(vec![], false)?; } chain.root_id = chain.get_by_cid(chain.root_cid.as_ref().unwrap())?.id; Ok(chain) } pub fn lookup_cid(&self, id: u32) -> Result<Option<Cid>> { if let Some(cid) = self.index.get(id.to_be_bytes())? { Ok(Some(Cid::try_from(&cid[..]).unwrap())) } else { Ok(None) } } pub fn get_by_cid(&self, cid: &Cid) -> Result<Block> { let block = self.ipfs.get(cid)?; let block = block.decode::<DagCborCodec, Block>()?; Ok(block) } pub fn get_by_id(&self, id: u32) -> Result<Option<Block>> { if let Some(cid) = self.lookup_cid(id)? { Ok(Some(self.get_by_cid(&cid)?)) } else { Ok(None) } } pub fn loopback_cid(&self, id: u32) -> Result<Option<Cid>> { if let Some(id) = loopback(id) { Ok(Some(self.lookup_cid(id)?.unwrap())) } else { Ok(None) } } fn index_block(&self, id: u32, cid: &Cid) -> Result<()> { self.index.insert(id.to_be_bytes(), cid.to_bytes())?; Ok(()) } pub fn push(&mut self, payload: Vec<u8>, import: bool) -> Result<Cid> { if import { tracing::trace!("chain: import"); } else { tracing::trace!("chain: push"); } let id = if self.root_cid.is_none() { 0 } else { self.root_id + 1 }; let loopback = self.loopback_cid(id)?; //let loopback = None; let block = Block { prev: self.root_cid, id, loopback, payload, }; let ipld_block = libipld::Block::encode(DagCborCodec, Code::Blake3_256, &block)?; let cid = *ipld_block.cid(); let _ = self.ipfs.insert(&ipld_block)?; self.index_block(id, &cid)?; if !import { self.ipfs.alias(ROOT, Some(&cid))?; } self.root_id = id; self.root_cid = Some(cid); Ok(cid) } pub async fn sync(&mut self, root: Cid) -> Result<()> { tracing::trace!("chain: sync"); //let syncer = ChainSyncer::new(self.index.clone(), self.ipfs.bitswap_storage()); let tmp = self.ipfs.create_temp_pin()?; self.ipfs.temp_pin(&tmp, &root)?; self.ipfs.sync(&root).await?; let mut cid = root; let mut block = self.get_by_cid(&root)?; let prev_root_id = self.root_id; let new_root_id = block.id; for _ in prev_root_id..new_root_id { self.index_block(block.id, &cid)?; cid = block.prev.unwrap(); block = self.get_by_cid(&cid)?; } self.ipfs.alias(ROOT, Some(&root))?; self.ipfs.flush().await?; self.root_id = block.id; self.root_cid = Some(cid); Ok(()) } pub fn root(&self) -> &Cid { self.root_cid.as_ref().unwrap() } } #[async_std::main] async fn main() -> Result<()> { tracing_subscriber::fmt() .with_env_filter(tracing_subscriber::EnvFilter::from_default_env()) .init(); let mut local1 = BlockChain::open("/tmp/local1", 1000).await?; let mut local2 = BlockChain::open("/tmp/local2", 1000).await?; ipfs_embed::telemetry("127.0.0.1:8080".parse()?, &local1.ipfs)?; for i in 0..100 { local1.push((i + 1usize).to_ne_bytes().to_vec(), true)?; } let root = *local1.root(); local1.sync(root).await?; println!("starting sync"); let start = std::time::Instant::now(); local2.sync(root).await?; let end = std::time::Instant::now(); println!("time to sync {}ms", end.duration_since(start).as_millis()); /*let root = local1.push(b"hello world".to_vec()).await?; local2.sync(&root).await?; let block = local2.get_by_id(1).await?; assert_eq!(block.unwrap().payload, b"hello world".to_vec()); let root = local2.push(b"another block".to_vec()).await?; local1.sync(&root).await?; let block = local1.get_by_id(1).await?; assert_eq!(block.unwrap().payload, b"hello world".to_vec()); let block = local1.get_by_id(2).await?; assert_eq!(block.unwrap().payload, b"another block".to_vec());*/ Ok(()) }
#![warn(rust_2018_idioms)] use linkerd_channel::{channel, error::TrySendError, Receiver, Sender}; use std::sync::Arc; use tokio_test::task; use tokio_test::{assert_err, assert_ok, assert_pending, assert_ready, assert_ready_ok}; trait AssertSend: Send {} impl AssertSend for Sender<i32> {} impl AssertSend for Receiver<i32> {} #[tokio::test] async fn send_recv_with_buffer() { let (mut tx, mut rx) = channel::<i32>(16); // Using poll_ready / try_send assert_ready_ok!(task::spawn(tx.ready()).poll()); tx.try_send(1).unwrap(); // Without poll_ready tx.send(2).await.unwrap(); drop(tx); let val = rx.recv().await; assert_eq!(val, Some(1)); let val = rx.recv().await; assert_eq!(val, Some(2)); let val = rx.recv().await; assert!(val.is_none()); } #[tokio::test] async fn ready_disarm() { let (tx, mut rx) = channel::<i32>(2); let mut tx1 = tx.clone(); let mut tx2 = tx.clone(); let mut tx3 = tx.clone(); let mut tx4 = tx; // We should be able to `poll_ready` two handles without problem let _ = assert_ok!(tx1.ready().await); let _ = assert_ok!(tx2.ready().await); // But a third should not be ready let mut r3 = task::spawn(tx3.ready()); assert_pending!(r3.poll()); let mut r4 = task::spawn(tx4.ready()); assert_pending!(r4.poll()); // Using one of the readyd slots should allow a new handle to become ready tx1.send(1).await.unwrap(); // We also need to receive for the slot to be free assert!(!r3.is_woken()); rx.recv().await.unwrap(); // Now there's a free slot! assert!(r3.is_woken()); assert!(!r4.is_woken()); // Dropping a permit should also open up a slot drop(tx2); assert!(r4.is_woken()); let mut r1 = task::spawn(tx1.ready()); assert_pending!(r1.poll()); } #[tokio::test] async fn send_recv_stream_with_buffer() { use futures::stream::StreamExt; let (mut tx, mut rx) = channel::<i32>(16); tokio::spawn(async move { assert_ok!(tx.send(1).await); assert_ok!(tx.send(2).await); }); assert_eq!(Some(1), rx.next().await); assert_eq!(Some(2), rx.next().await); assert_eq!(None, rx.next().await); } #[tokio::test] async fn async_send_recv_with_buffer() { let (mut tx, mut rx) = channel(16); tokio::spawn(async move { assert_ok!(tx.send(1).await); assert_ok!(tx.send(2).await); }); assert_eq!(Some(1), rx.recv().await); assert_eq!(Some(2), rx.recv().await); assert_eq!(None, rx.recv().await); } #[tokio::test] async fn start_send_past_cap() { let (mut tx1, mut rx) = channel(1); let mut tx2 = tx1.clone(); assert_ok!(tx1.try_send(())); let mut r1 = task::spawn(tx1.ready()); assert_pending!(r1.poll()); { let mut r2 = task::spawn(tx2.ready()); assert_pending!(r2.poll()); drop(r1); drop(tx1); assert!(rx.recv().await.is_some()); assert!(r2.is_woken()); } drop(tx2); assert!(rx.recv().await.is_none()); } #[test] #[should_panic] fn buffer_gteq_one() { channel::<i32>(0); } #[tokio::test] async fn no_t_bounds_buffer() { struct NoImpls; let (tx, mut rx) = channel(100); // sender should be Debug even though T isn't Debug println!("{:?}", tx); // same with Receiver println!("{:?}", rx); // and sender should be Clone even though T isn't Clone assert!(tx.clone().send(NoImpls).await.is_ok()); assert!(rx.recv().await.is_some()); } #[tokio::test] async fn send_recv_buffer_limited() { let (mut tx, mut rx) = channel::<i32>(1); // ready capacity assert_ok!(tx.ready().await); // Send first message tx.try_send(1).unwrap(); // Not ready let mut p2 = task::spawn(tx.ready()); assert_pending!(p2.poll()); // Take the value assert!(rx.recv().await.is_some()); // Notified assert!(p2.is_woken()); // Send second assert_ready_ok!(p2.poll()); drop(p2); tx.try_send(2).unwrap(); assert!(rx.recv().await.is_some()); } #[tokio::test] async fn tx_close_gets_none() { let (_, mut rx) = channel::<i32>(10); assert!(rx.recv().await.is_none()); } #[tokio::test] async fn try_send_fail() { let (mut tx, mut rx) = channel(1); tx.ready().await.unwrap(); tx.try_send("hello").unwrap(); // This should fail match assert_err!(tx.try_send("fail")) { TrySendError::Full(..) => {} _ => panic!(), } assert_eq!(rx.recv().await, Some("hello")); assert_ok!(tx.try_send("goodbye")); drop(tx); assert_eq!(rx.recv().await, Some("goodbye")); assert!(rx.recv().await.is_none()); } #[tokio::test] async fn drop_tx_releases_permit() { // ready reserves a permit capacity, ensure that the capacity is // released if tx is dropped w/o sending a value. let (mut tx1, _rx) = channel::<i32>(1); let mut tx2 = tx1.clone(); assert_ok!(tx1.ready().await); let mut ready2 = task::spawn(tx2.ready()); assert_pending!(ready2.poll()); drop(tx1); assert!(ready2.is_woken()); assert_ready_ok!(ready2.poll()); } #[tokio::test] async fn dropping_rx_closes_channel() { let (mut tx, rx) = channel(100); let msg = Arc::new(()); assert_ok!(tx.try_send(msg.clone())); drop(rx); assert_err!(tx.ready().await); assert_eq!(1, Arc::strong_count(&msg)); } #[test] fn dropping_rx_closes_channel_for_try() { let (mut tx, rx) = channel(100); let msg = Arc::new(()); tx.try_send(msg.clone()).unwrap(); drop(rx); { let err = assert_err!(tx.try_send(msg.clone())); match err { TrySendError::Closed(..) => {} _ => panic!(), } } assert_eq!(1, Arc::strong_count(&msg)); } #[test] fn unconsumed_messages_are_dropped() { let msg = Arc::new(()); let (mut tx, rx) = channel(100); tx.try_send(msg.clone()).unwrap(); assert_eq!(2, Arc::strong_count(&msg)); drop((tx, rx)); assert_eq!(1, Arc::strong_count(&msg)); }
use super::{common::ListenerId, listener::Listener}; use std::collections::HashMap; #[derive(Default)] pub struct Listeners { listeners: HashMap<ListenerId, Box<dyn Listener>>, } impl Listeners { pub fn add(&mut self, listener: Box<dyn Listener>) { self.listeners.insert(listener.get_id(), listener); } pub fn get(&self, id: ListenerId) -> Option<&Box<dyn Listener>> { self.listeners.get(&id) } pub fn get_mut(&mut self, id: ListenerId) -> Option<&mut Box<dyn Listener>> { self.listeners.get_mut(&id) } pub fn iter(&self) -> impl Iterator<Item = &Box<dyn Listener>> { self.listeners.values() } pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut Box<dyn Listener>> { self.listeners.values_mut() } }
use std::fmt::Debug; #[derive(PartialEq)] struct School([u64; 10]); impl Debug for School { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { for i in 0..=8 { write!(f, "{}:{}, ", i, self.0[i])?; } Ok(()) } } impl School { fn from_fishes_iter(fishes: impl Iterator<Item = u64>) -> School { let mut school = [0; 10]; for fish in fishes { school[fish as usize] += 1; } School(school) } fn from_str(input: &str) -> School { Self::from_fishes_iter( input .trim() .split(',') .map(|tok| tok.parse::<u64>().unwrap()), ) } fn simulate_for(&mut self, cycles: u32) { for _ in 0..cycles { self.do_sim_cycle(); } } fn do_sim_cycle(&mut self) { let school = &mut self.0; let mut school_8_add = 0; // Each day, a 0 becomes a 6 and adds a new 8 to the end of the list, if school[0] > 0 { school[7] += school[0]; school_8_add = school[0]; school[0] = 0; } // while each other number decreases by 1 if it was present at the start of the day. school.copy_within(1..=9, 0); school[8] += school_8_add; } fn count(&self) -> u64 { self.0.iter().sum() } } fn part1(input: &str) -> u64 { let mut school = School::from_str(input); school.simulate_for(80); school.count() } fn part2(input: &str) -> u64 { let mut school = School::from_str(input); school.simulate_for(256); school.count() } #[cfg(test)] const TEST_INPUT: &str = "3,4,3,1,2"; #[test] fn cycle_test() { let test_days: [&[u64]; 19] = [ &[3, 4, 3, 1, 2], &[2, 3, 2, 0, 1], &[1, 2, 1, 6, 0, 8], &[0, 1, 0, 5, 6, 7, 8], &[6, 0, 6, 4, 5, 6, 7, 8, 8], &[5, 6, 5, 3, 4, 5, 6, 7, 7, 8], &[4, 5, 4, 2, 3, 4, 5, 6, 6, 7], &[3, 4, 3, 1, 2, 3, 4, 5, 5, 6], &[2, 3, 2, 0, 1, 2, 3, 4, 4, 5], &[1, 2, 1, 6, 0, 1, 2, 3, 3, 4, 8], &[0, 1, 0, 5, 6, 0, 1, 2, 2, 3, 7, 8], &[6, 0, 6, 4, 5, 6, 0, 1, 1, 2, 6, 7, 8, 8, 8], &[5, 6, 5, 3, 4, 5, 6, 0, 0, 1, 5, 6, 7, 7, 7, 8, 8], &[4, 5, 4, 2, 3, 4, 5, 6, 6, 0, 4, 5, 6, 6, 6, 7, 7, 8, 8], &[3, 4, 3, 1, 2, 3, 4, 5, 5, 6, 3, 4, 5, 5, 5, 6, 6, 7, 7, 8], &[2, 3, 2, 0, 1, 2, 3, 4, 4, 5, 2, 3, 4, 4, 4, 5, 5, 6, 6, 7], &[ 1, 2, 1, 6, 0, 1, 2, 3, 3, 4, 1, 2, 3, 3, 3, 4, 4, 5, 5, 6, 8, ], &[ 0, 1, 0, 5, 6, 0, 1, 2, 2, 3, 0, 1, 2, 2, 2, 3, 3, 4, 4, 5, 7, 8, ], &[ 6, 0, 6, 4, 5, 6, 0, 1, 1, 2, 6, 0, 1, 1, 1, 2, 2, 3, 3, 4, 6, 7, 8, 8, 8, 8, ], ]; let mut test_school = School::from_fishes_iter(test_days[0].iter().cloned()); for (i, day) in test_days.into_iter().enumerate() { if i == 0 { eprint!("Initial state: "); } else { eprint!("After {i} days: "); } assert_eq!(test_school, School::from_fishes_iter(day.iter().cloned())); test_school.do_sim_cycle(); eprintln!("[OK]"); } } aoc::tests! { fn part1: TEST_INPUT => 5934; in => 374994; fn part2: TEST_INPUT => 26984457539; in => 1686252324092; } aoc::main!(part1, part2);
use std::process::{ Child, Command, Stdio, ExitStatus }; use std::io::{ BufWriter, Read, Write }; use std::path::{ Path, PathBuf }; use std::net::{ TcpListener, TcpStream }; use std::thread; use std::fs::File; extern crate argparse; extern crate rand; use argparse::{ ArgumentParser }; use rand::distributions::{IndependentSample, Range}; struct ListenerData { listener: TcpListener, port: u16, } fn create_listener() -> Result<ListenerData, &'static str> { let possible_port_values = Range::new( 1024, 65535 ); let mut rng = rand::thread_rng(); for _ in 1..5 { let try_port = possible_port_values.ind_sample( &mut rng ); let result = TcpListener::bind( ( "127.0.0.1", try_port ) ); if result.is_ok() { return Ok( ListenerData{ listener: result.unwrap(), port: try_port } ) } } Err( &"Failed to bind port" ) } fn main() { let mut wrapper_id = String::new(); let mut pid_path = String::new(); let mut package_path = String::new(); let mut game_path = String::new(); let mut game_args: Vec<String> = std::vec::Vec::new(); { let mut ap: ArgumentParser = ArgumentParser::new(); ap.refer( &mut wrapper_id ).add_argument( "wrapper-id", argparse::Store, "A unique identifier for the wrapper" ).required(); ap.refer( &mut pid_path ).add_argument( "pid-path", argparse::Store, "Path to the pid directory" ).required(); ap.refer( &mut package_path ).add_argument( "package-path", argparse::Store, "Path to the package installation directory" ).required(); ap.refer( &mut game_path ).add_argument( "game-path", argparse::Store, "Path to the game file relative to the package installation directory" ).required(); ap.refer( &mut game_args ).add_argument( "game-args", argparse::Collect, "Additional arguments to the game file" ); ap.parse_args_or_exit(); } let listener_data = create_listener().unwrap(); let listener = listener_data.listener; let task_wrapper_id = wrapper_id.clone(); let task_package_path = package_path.clone(); let task_game_path = game_path.clone(); let task_game_args = game_args.clone(); thread::spawn( move || { for stream in listener.incoming() { let mut stream: TcpStream = stream.unwrap_or_else( |e| panic!( "Could not get incoming connection stream: {}", e ) ); let out_str = String::from( "v0.2.1:Game Wrapper:" ) + &task_wrapper_id + ":" + &task_package_path + ":" + &task_game_path + ":\"" + &task_game_args.join( &"\",\"" ) + "\""; stream.write( out_str.as_bytes() ).unwrap_or_else( |e| panic!( "Could not send reply to the new connection: {}", e ) ); } } ); let mut pid_path = PathBuf::from( pid_path ); pid_path.push( wrapper_id ); match File::create( &pid_path ) { Ok( f ) => { let mut writer = BufWriter::new( f ); writer.write( listener_data.port.to_string().as_bytes() ) .expect( "Failed to write pid file" ); writer.flush() .expect( "Failed to flush pid file" ); drop( writer ); }, Err( e ) => println!( "Failed to write pid file: {}", e ), }; // Get the full game file path. let mut game_file = PathBuf::from( package_path.clone() ); game_file.push( game_path ); // Current working directory is the directory of the game executable let cwd: &Path = game_file.parent() .expect( "Could not get parent dir from path" ); let mut package_credentials: PathBuf = PathBuf::from( &package_path ); package_credentials.push( ".gj-credentials" ); let mut game_file_credentials: PathBuf = PathBuf::from( cwd ); game_file_credentials.push( ".gj-credentials" ); // Copy over the credential file from the package directory to the game executable's directory. if package_credentials != game_file_credentials { std::fs::copy( package_credentials.as_path(), game_file_credentials.as_path() ).unwrap(); } let mut game_handle: Child = Command::new( &game_file ) .current_dir( cwd ) .args( game_args.as_slice() ) .stderr( Stdio::piped() ) .spawn() .unwrap_or_else( |e| panic!( "Couldn't launch game: {}", e ) ); let result: ExitStatus = game_handle.wait().unwrap_or_else( |e| panic!( "Couldn't wait for game to launch/finish {}", e ) ); if std::fs::remove_file( &pid_path ).is_err() { println!( "Failed to remove pid file: {}", pid_path.display() ); } println!( "Game exited with exit code {}", result.code().expect( "Could not discern wrapped game exit code" ) ); if !result.success() { let mut err_str = String::new(); match game_handle.stderr.expect( "Could not get err stream" ).read_to_string( &mut err_str ) { Err(e) => panic!( "Could not read err stream {}", e ), Ok(_) => println!( "Stderr: {}", err_str ), } } }
pub mod batch; pub mod buffer; pub mod encoding; pub mod http; pub mod retries; pub mod retries2; #[cfg(feature = "rusoto_core")] pub mod rusoto; pub mod service; pub mod service2; pub mod sink; pub mod tcp; #[cfg(test)] pub mod test; pub mod udp; #[cfg(all(feature = "sinks-socket", unix))] pub mod unix; pub mod uri; use crate::event::{self, Event}; use bytes::Bytes; use encoding::{EncodingConfig, EncodingConfiguration}; use serde::{Deserialize, Serialize}; use snafu::Snafu; pub use batch::{Batch, BatchConfig, BatchSettings, BatchSize, PushResult}; pub use buffer::json::{BoxedRawValue, JsonArrayBuffer}; pub use buffer::metrics::{MetricBuffer, MetricEntry}; pub use buffer::partition::Partition; pub use buffer::vec::VecBuffer; pub use buffer::vec2::{Length, VecBuffer2}; pub use buffer::{Buffer, Compression, PartitionBuffer, PartitionInnerBuffer}; pub use service::{ServiceBuilderExt, TowerRequestConfig, TowerRequestLayer, TowerRequestSettings}; pub use sink::{BatchSink, PartitionBatchSink, StreamSink}; pub use uri::UriSerde; #[derive(Debug, Snafu)] enum SinkBuildError { #[snafu(display("Missing host in address field"))] MissingHost, #[snafu(display("Missing port in address field"))] MissingPort, } /** * Enum representing different ways to encode events as they are sent into a Sink. */ #[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "snake_case")] pub enum Encoding { Text, Json, } /** * Encodes the given event into raw bytes that can be sent into a Sink, according to * the given encoding. If there are any errors encoding the event, logs a warning * and returns None. **/ pub fn encode_event(mut event: Event, encoding: &EncodingConfig<Encoding>) -> Option<Bytes> { encoding.apply_rules(&mut event); let log = event.into_log(); let b = match encoding.codec() { Encoding::Json => serde_json::to_vec(&log), Encoding::Text => { let bytes = log .get(&event::log_schema().message_key()) .map(|v| v.as_bytes().to_vec()) .unwrap_or_default(); Ok(bytes) } }; b.map(|mut b| { b.push(b'\n'); Bytes::from(b) }) .map_err(|error| error!(message = "Unable to encode.", %error)) .ok() }
use std::sync::atomic::{AtomicU32, Ordering}; pub struct Counter(AtomicU32); impl Counter { pub fn increment(&self) -> u32 { self.0.fetch_add(1, Ordering::Relaxed); self.0.load(Ordering::Relaxed) } } pub fn create_counter() -> Counter { Counter(AtomicU32::new(0)) }
fn main() { let s = "hello world".to_string(); println!("{}", s); let mut s1 = String::new(); s1.push_str("hello world"); println!("{}", s1); println!("Hello, world!"); }
#[test] fn it_adds_two() { assert_eq!(4, 2 + 2); }
mod render; pub use render::Render;
use std::collections::VecDeque; use std::marker::PhantomData; use std::net::IpAddr; use actix_service::Service; use futures::{Async, Future, Poll}; use trust_dns_resolver::config::{ResolverConfig, ResolverOpts}; pub use trust_dns_resolver::error::ResolveError; use trust_dns_resolver::lookup_ip::LookupIpFuture; use trust_dns_resolver::system_conf::read_system_conf; use trust_dns_resolver::{AsyncResolver, Background}; /// Host name of the request pub trait RequestHost { fn host(&self) -> &str; } impl RequestHost for String { fn host(&self) -> &str { self.as_ref() } } pub struct Resolver<T = String> { resolver: AsyncResolver, req: PhantomData<T>, } impl<T: RequestHost> Default for Resolver<T> { fn default() -> Self { let (cfg, opts) = if let Ok((cfg, opts)) = read_system_conf() { (cfg, opts) } else { (ResolverConfig::default(), ResolverOpts::default()) }; Resolver::new(cfg, opts) } } impl<T: RequestHost> Resolver<T> { /// Create new resolver instance with custom configuration and options. pub fn new(cfg: ResolverConfig, opts: ResolverOpts) -> Self { let (resolver, bg) = AsyncResolver::new(cfg, opts); tokio_current_thread::spawn(bg); Resolver { resolver, req: PhantomData, } } /// Change type of resolver request. pub fn into_request<T2: RequestHost>(&self) -> Resolver<T2> { Resolver { resolver: self.resolver.clone(), req: PhantomData, } } } impl<T> Clone for Resolver<T> { fn clone(&self) -> Self { Resolver { resolver: self.resolver.clone(), req: PhantomData, } } } impl<T: RequestHost> Service for Resolver<T> { type Request = T; type Response = (T, VecDeque<IpAddr>); type Error = ResolveError; type Future = ResolverFuture<T>; fn poll_ready(&mut self) -> Poll<(), Self::Error> { Ok(Async::Ready(())) } fn call(&mut self, req: T) -> Self::Future { if let Ok(ip) = req.host().parse() { let mut addrs = VecDeque::new(); addrs.push_back(ip); ResolverFuture::new(req, &self.resolver, Some(addrs)) } else { ResolverFuture::new(req, &self.resolver, None) } } } #[doc(hidden)] /// Resolver future pub struct ResolverFuture<T> { req: Option<T>, lookup: Option<Background<LookupIpFuture>>, addrs: Option<VecDeque<IpAddr>>, } impl<T: RequestHost> ResolverFuture<T> { pub fn new(addr: T, resolver: &AsyncResolver, addrs: Option<VecDeque<IpAddr>>) -> Self { // we need to do dns resolution let lookup = Some(resolver.lookup_ip(addr.host())); ResolverFuture { lookup, addrs, req: Some(addr), } } } impl<T: RequestHost> Future for ResolverFuture<T> { type Item = (T, VecDeque<IpAddr>); type Error = ResolveError; fn poll(&mut self) -> Poll<Self::Item, Self::Error> { if let Some(addrs) = self.addrs.take() { Ok(Async::Ready((self.req.take().unwrap(), addrs))) } else { match self.lookup.as_mut().unwrap().poll() { Ok(Async::NotReady) => Ok(Async::NotReady), Ok(Async::Ready(ips)) => Ok(Async::Ready(( self.req.take().unwrap(), ips.iter().collect(), ))), Err(err) => Err(err), } } } }
extern crate hmac; #[macro_use] extern crate hyper; extern crate reqwest; extern crate rustc_serialize; extern crate serde_json; extern crate sha2; extern crate time; use hmac::{Hmac, Mac}; use hyper::header::{Headers, ContentType}; use rustc_serialize::hex::ToHex; use serde_json::{Value, Map}; use sha2::Sha256; use std::io::Read; // set your API credentials here const API_KEY: &str = "API_KEY"; const HMAC_SECRET: &str = "HMAC_SECRET"; const BASE_URL: &str = "https://api.svb.com"; // define custom headers header! { (XTimestamp, "X-Timestamp") => [String] } header! { (XSignature, "X-Signature") => [String] } header! { (Authorization, "Authorization") => [String] } fn get(path: &str, query: &str) { let timestamp = format!("{}", time::get_time().sec); // generate HMAC signature let mut mac = Hmac::<Sha256>::new(HMAC_SECRET.as_bytes()); let message = timestamp.to_owned() + "\nGET\n" + path + "\n" + query + "\n"; mac.input(message.as_bytes()); let signature = mac.result().code().to_hex(); // assemble the URL let mut base_url: String = BASE_URL.to_owned(); base_url.push_str(path); base_url.push_str("?"); base_url.push_str(query); // attach headers let mut headers = Headers::new(); headers.set(XTimestamp(timestamp)); headers.set(ContentType::json()); headers.set(XSignature(signature)); headers.set(Authorization(("Bearer ".to_owned() + API_KEY).to_owned())); // with reqwest's RequestBuilder let client = reqwest::Client::new().expect("client failed to construct"); let mut response = client.get(&base_url) .headers(headers) .body("".to_owned()) .send() .expect("Failed to send request"); let mut body = String::new(); response.read_to_string(&mut body).expect("Failed to read response"); println!("{}", body); } fn post(path: &str) { // build up JSON body using serde_json let mut jsonbody = Map::new(); jsonbody.insert("lang".to_string(), Value::String("rust".to_string())); let jsonstr = serde_json::to_string(&jsonbody).unwrap(); let timestamp = format!("{}", time::get_time().sec); // generate HMAC signature let mut mac = Hmac::<Sha256>::new(HMAC_SECRET.as_bytes()); let message = timestamp.to_owned() + "\nPOST\n" + path + "\n\n" + &jsonstr; mac.input(message.as_bytes()); let signature = mac.result().code().to_hex(); // assemble the URL let mut base_url: String = BASE_URL.to_owned(); base_url.push_str(path); // attach headers let mut headers = Headers::new(); headers.set(XTimestamp(timestamp)); headers.set(ContentType::json()); headers.set(XSignature(signature)); headers.set(Authorization(("Bearer ".to_owned() + API_KEY).to_owned())); // with reqwest's RequestBuilder let client = reqwest::Client::new().expect("client failed to construct"); let mut response = client.post(&base_url) .headers(headers) .body(jsonstr) .send() .expect("Failed to send request"); let mut body = String::new(); response.read_to_string(&mut body).expect("Failed to read response"); println!("{}", body); } fn main() { get("/v1", "lang=rust"); post("/v1"); }
use bevy::prelude::*; use bevy_egui::{ egui::{self, Ui}, EguiContext, }; use bevy_prototype_lyon::{ prelude::{FillOptions, GeometryBuilder, TessellationMode}, shapes::{self, RegularPolygonFeature}, }; use crate::{demo_camera_plugin::Page, MultishapeTag, WINDOW_WIDTH}; #[allow(clippy::suboptimal_flops)] // can't use mul_add in consts. const X_OFFSET: f32 = 3.0 * WINDOW_WIDTH + WINDOW_WIDTH / 5.0; /// Tags the regular polygon entity. pub struct PolygonTag; #[derive(Debug)] struct PolygonInspector { pos_x: f32, pos_y: f32, rotation: f32, color: egui::Color32, sides: usize, feature: RegularPolygonFeature, } impl Default for PolygonInspector { fn default() -> Self { Self { pos_x: 0.0, pos_y: 0.0, rotation: 0.0, color: egui::Color32::GOLD, sides: 3, feature: RegularPolygonFeature::Radius(100.0), } } } #[derive(Debug)] struct MultishapeInspector { pos_x: f32, pos_y: f32, rotation: f32, scale: f32, } impl Default for MultishapeInspector { fn default() -> Self { Self { pos_x: 0.0, pos_y: 0.0, rotation: 0.0, scale: 1.0, } } } pub struct DemoInspectorPlugin; impl Plugin for DemoInspectorPlugin { fn build(&self, app: &mut AppBuilder) { app.add_resource(PolygonInspector::default()) .add_resource(MultishapeInspector::default()) .add_system(update_polygon_inspector.system()) .add_system(replace_polygon.system()) .add_system(update_multishape_inspector.system()); } } fn update_polygon_inspector( page: Res<Page>, mut inspector: ResMut<PolygonInspector>, mut egui_context: ResMut<EguiContext>, ) { if page.0 == 3 { let ctx = &mut egui_context.ctx; egui::Window::new("Polygon Inspector") .fixed_pos([50.0, 200.0]) .show(ctx, |ui| { polygon_bevy_properties(ui, &mut inspector); ui.separator(); polygon_shape_properties(ui, &mut inspector); }); } } fn polygon_bevy_properties(ui: &mut Ui, inspector: &mut ResMut<PolygonInspector>) { ui.horizontal(|ui| { ui.label("x"); ui.add(egui::widgets::DragValue::f32(&mut inspector.pos_x)); }); ui.horizontal(|ui| { ui.label("y"); ui.add(egui::widgets::DragValue::f32(&mut inspector.pos_y)); }); ui.horizontal(|ui| { ui.label("rotation"); ui.drag_angle(&mut inspector.rotation); }); ui.horizontal(|ui| { ui.label("color"); ui.color_edit_button_srgba(&mut inspector.color); }); } fn polygon_shape_properties(ui: &mut Ui, inspector: &mut ResMut<PolygonInspector>) { ui.horizontal(|ui| { ui.label("sides"); ui.add(egui::widgets::Slider::usize(&mut inspector.sides, 3..=10)); ui.label(inspector.sides.to_string()); }); egui::containers::combo_box_with_label( ui, "Polygon feature", format!("{:?}", inspector.feature), |ui| { ui.selectable_value( &mut inspector.feature, RegularPolygonFeature::Radius(100.0), "Radius", ); ui.selectable_value( &mut inspector.feature, RegularPolygonFeature::Apothem(100.0), "Apothem", ); ui.selectable_value( &mut inspector.feature, RegularPolygonFeature::SideLength(100.0), "Side length", ); }, ); match inspector.feature { RegularPolygonFeature::Radius(ref mut r) => { ui.add(egui::widgets::Slider::f32(r, 10.0..=200.0)); } RegularPolygonFeature::Apothem(ref mut a) => { ui.add(egui::widgets::Slider::f32(a, 10.0..=200.0)); } RegularPolygonFeature::SideLength(ref mut s) => { ui.add(egui::widgets::Slider::f32(s, 10.0..=200.0)); } } } fn replace_polygon( commands: &mut Commands, query: Query<Entity, With<PolygonTag>>, mut materials: ResMut<Assets<ColorMaterial>>, inspector: ChangedRes<PolygonInspector>, ) { for entity in query.iter() { commands.despawn(entity); } let fill_mode = TessellationMode::Fill(FillOptions::default()); let polygon = shapes::RegularPolygon { sides: inspector.sides, feature: inspector.feature, center: Vec2::new(0.0, 0.0), }; let r = f32::from(inspector.color.r()) / 255.0; let g = f32::from(inspector.color.g()) / 255.0; let b = f32::from(inspector.color.b()) / 255.0; let a = f32::from(inspector.color.a()) / 255.0; commands .spawn(GeometryBuilder::build_as( &polygon, materials.add(ColorMaterial::color(Color::rgba_linear(r, g, b, a))), fill_mode, Transform { translation: Vec3::new(X_OFFSET + inspector.pos_x, inspector.pos_y, 0.0), rotation: Quat::from_axis_angle(Vec3::unit_z(), inspector.rotation), ..Transform::default() }, )) .with(PolygonTag); } fn update_multishape_inspector( mut query: Query<&mut Transform, With<MultishapeTag>>, page: Res<Page>, mut inspector: ResMut<MultishapeInspector>, mut egui_context: ResMut<EguiContext>, ) { if page.0 == 4 { let ctx = &mut egui_context.ctx; egui::Window::new("Multishape Inspector") .fixed_pos([50.0, 200.0]) .show(ctx, |ui| { ui.horizontal(|ui| { ui.label("x"); ui.add(egui::widgets::DragValue::f32(&mut inspector.pos_x)); }); ui.horizontal(|ui| { ui.label("y"); ui.add(egui::widgets::DragValue::f32(&mut inspector.pos_y)); }); ui.horizontal(|ui| { ui.label("rotation"); ui.drag_angle(&mut inspector.rotation); }); ui.horizontal(|ui| { ui.label("scale"); ui.add( egui::widgets::DragValue::f32(&mut inspector.scale) .clamp_range(-1.5..=1.5) .speed(0.1), ); }); for mut transform in query.iter_mut() { transform.translation.x = WINDOW_WIDTH.mul_add(4.0, inspector.pos_x); transform.translation.y = inspector.pos_y; transform.rotation = Quat::from_axis_angle(Vec3::unit_z(), inspector.rotation); transform.scale = Vec3::splat(inspector.scale); } }); } }
use std::path::Path; use crate::jvm::maven_module::MavenModuleAnalyzer; use crate::{files, ModuleAnalyzer, ProjectStructureAnalyzer}; pub struct MavenProjectStructureAnalyzer {} impl Default for MavenProjectStructureAnalyzer { fn default() -> Self { MavenProjectStructureAnalyzer {} } } impl ProjectStructureAnalyzer for MavenProjectStructureAnalyzer { fn get_project_name(&self, project_path: &str) -> String { Path::new(project_path) .file_name() .unwrap() .to_os_string() .into_string() .unwrap() } fn get_project_type(&self) -> String { "maven".to_string() } fn is_related(&self, project_path: &str) -> bool { let files = files::list_file_names(project_path); for file_name in files.iter() { if is_build_file(file_name) { return true; } } false } fn get_module_analyzers(&self) -> Vec<Box<dyn ModuleAnalyzer>> { vec![Box::new(MavenModuleAnalyzer {})] } } fn is_build_file(file_name: &str) -> bool { match file_name { "pom.xml" => true, "build.gradle" => true, _ => false, } } #[cfg(test)] mod tests { use std::path::PathBuf; use crate::files::join_path; use crate::jvm::psa_maven::MavenProjectStructureAnalyzer; use crate::{DependencyScope, Project, ProjectStructureAnalyzer}; #[test] fn should_analysis_maven_project_sub_modules() { let project = do_analysis(vec![ "_fixtures", "projects", "java", "multi_mod_maven_project", ]); let project_module = project.project_module.unwrap(); let module1 = project_module.sub_modules.get(0).unwrap(); let module2 = project_module.sub_modules.get(1).unwrap(); assert_eq!(project_module.sub_modules.len(), 2); assert_eq!(project.project_type, "maven"); assert_eq!(project_module.name, "multi_mod_maven_project"); assert_eq!(module1.name, "module1"); assert_eq!(module2.name, "module2"); } #[test] fn should_detect_project_module_content_root() { let project = do_analysis(vec![ "_fixtures", "projects", "java", "multi_mod_maven_project", ]); let project_module = project.project_module.unwrap(); let project_content_root = &project_module.content_root; let expect_source_path = join_path("", vec!["src", "main", "java"]); assert_eq!(project_content_root.source_root.len(), 1); assert_eq!( project_content_root.source_root.get(0).unwrap().as_str(), expect_source_path.as_str() ); let expect_resource_path = join_path("", vec!["src", "main", "resources"]); assert_eq!(project_content_root.resource_root.len(), 1); assert_eq!( project_content_root.resource_root.get(0).unwrap().as_str(), expect_resource_path.as_str() ); let expect_test_source_root = join_path("", vec!["src", "test", "java"]); assert_eq!(project_content_root.test_source_root.len(), 1); assert_eq!( project_content_root .test_source_root .get(0) .unwrap() .as_str(), expect_test_source_root.as_str() ); let expect_test_resources_root = join_path("", vec!["src", "test", "resources"]); assert_eq!(project_content_root.test_resource_root.len(), 1); assert_eq!( project_content_root.test_resource_root.get(0).unwrap(), expect_test_resources_root.as_str() ); } #[test] fn should_detect_sub_module_content_root() { let project = do_analysis(vec![ "_fixtures", "projects", "java", "multi_mod_maven_project", ]); let project_module = project.project_module.unwrap(); let module1 = project_module.sub_modules.get(0).unwrap(); let content_root = &module1.content_root; let expect_source_path = join_path("", vec!["src", "main", "java"]); assert_eq!( content_root.source_root.get(0).unwrap().as_str(), expect_source_path ); let expect_test_source_root = join_path("", vec!["src", "test", "java"]); assert_eq!( content_root.test_source_root.get(0).unwrap().as_str(), expect_test_source_root.as_str() ); let expect_test_source_root = join_path("", vec!["src", "test", "java"]); assert_eq!( content_root.test_source_root.get(0).unwrap().as_str(), expect_test_source_root.as_str() ); let expect_test_resources_root = join_path("", vec!["src", "test", "resources"]); assert_eq!( content_root.test_resource_root.get(0).unwrap(), expect_test_resources_root.as_str() ); } #[test] fn should_analysis_dependencies() { let project = do_analysis(vec![ "_fixtures", "projects", "java", "multi_mod_maven_project", ]); let project_module = project.project_module; let project_dependencies = project_module.unwrap().dependencies; assert_eq!(project_dependencies.len(), 2); let dep1 = project_dependencies.get(0).unwrap(); assert_eq!(dep1.name, "spring-boot-starter-web"); assert_eq!(dep1.group, "org.springframework.boot"); assert_eq!(dep1.version, "2.0.0.RELEASE"); assert_eq!(dep1.scope, DependencyScope::Test); let dep2 = project_dependencies.get(1).unwrap(); assert_eq!(dep2.name, "spring-boot-starter-logging"); assert_eq!(dep2.group, "org.springframework.boot"); assert_eq!(dep2.version, "1.0.0.RELEASE"); assert_eq!(dep2.scope, DependencyScope::Compile); } #[test] fn should_analysis_submodule_dependencies() { let project = do_analysis(vec![ "_fixtures", "projects", "java", "multi_mod_maven_project", ]); let project_module = project.project_module.unwrap(); let module1 = project_module.sub_modules.get(0).unwrap(); let module2 = project_module.sub_modules.get(1).unwrap(); let module1_dependencies = &module1.dependencies; let module2_dependencies = &module2.dependencies; assert_eq!(module1_dependencies.len(), 2); assert_eq!(module2_dependencies.len(), 2); let dep1 = module1_dependencies.get(0).unwrap(); assert_eq!(dep1.name, "spring-boot-starter-web"); assert_eq!(dep1.group, "org.springframework.boot"); assert_eq!(dep1.version, "2.0.0.RELEASE"); assert_eq!(dep1.scope, DependencyScope::Test); let dep2 = module1_dependencies.get(1).unwrap(); assert_eq!(dep2.name, "spring-boot-starter-logging"); assert_eq!(dep2.group, "org.springframework.boot"); assert_eq!(dep2.version, "1.0.1.RELEASE"); assert_eq!(dep2.scope, DependencyScope::Compile); let dep1 = module2_dependencies.get(0).unwrap(); assert_eq!(dep1.name, "spring-boot-starter-web"); assert_eq!(dep1.group, "org.springframework.boot"); assert_eq!(dep1.version, "2.0.0.RELEASE"); assert_eq!(dep1.scope, DependencyScope::Test); let dep2 = module2_dependencies.get(1).unwrap(); assert_eq!(dep2.name, "spring-boot-starter-logging"); assert_eq!(dep2.group, "org.springframework.boot"); assert_eq!(dep2.version, "1.0.2.RELEASE"); assert_eq!(dep2.scope, DependencyScope::Compile); } fn do_analysis(path: Vec<&str>) -> Project { let mut project_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR")) .parent() .unwrap() .to_path_buf(); for path in path.into_iter() { project_dir.push(path); } let analyzer = MavenProjectStructureAnalyzer::default(); analyzer.analysis(project_dir.display().to_string().as_str()) } }
use ::amethyst::controls::HideCursor; use ::amethyst::controls::WindowFocus; use ::amethyst::core::math::UnitQuaternion; use ::amethyst::shrev::EventChannel; use ::amethyst::winit::{DeviceEvent, Event}; use ::amethyst::core::*; use ::amethyst::ecs::*; use serde::Serialize; use std::hash::Hash; use std::marker::PhantomData; #[derive(Debug, Clone, Default, Serialize, Deserialize)] pub struct RotationControl { pub mouse_accum_x: f32, pub mouse_accum_y: f32, } impl Component for RotationControl { type Storage = DenseVecStorage<Self>; } /// The system that manages the view rotation. /// Controlled by the mouse. /// Put the RotationControl component on the Camera. The Camera should be a child of the player collider entity. #[derive(Debug)] pub struct FPSRotationRhusicsSystem<A, B> { sensitivity_x: f32, sensitivity_y: f32, _marker1: PhantomData<A>, _marker2: PhantomData<B>, event_reader: Option<ReaderId<Event>>, } impl<A, B> FPSRotationRhusicsSystem<A, B> where A: Send + Sync + Hash + Eq + Clone + 'static, B: Send + Sync + Hash + Eq + Clone + 'static, { pub fn new(sensitivity_x: f32, sensitivity_y: f32) -> Self { FPSRotationRhusicsSystem { sensitivity_x, sensitivity_y, _marker1: PhantomData, _marker2: PhantomData, event_reader: None, } } } impl<'a, A, B> System<'a> for FPSRotationRhusicsSystem<A, B> where A: Send + Sync + Hash + Eq + Clone + 'static, B: Send + Sync + Hash + Eq + Clone + 'static, { type SystemData = ( Entities<'a>, Write<'a, EventChannel<Event>>, WriteStorage<'a, Transform>, WriteStorage<'a, RotationControl>, Read<'a, WindowFocus>, Read<'a, HideCursor>, ReadStorage<'a, Parent>, ); fn run( &mut self, ( entities, mut events, mut transforms, mut rotation_controls, focus, hide, parents, ): Self::SystemData, ) { if self.event_reader.is_none() { self.event_reader = Some(events.register_reader()); } let focused = focus.is_focused; let win_events = events .read(&mut self.event_reader.as_mut().unwrap()) .collect::<Vec<_>>(); if !win_events.iter().any(|e| match e { Event::DeviceEvent { event: DeviceEvent::MouseMotion { .. }, .. } => true, _ => false, }) { // Patch until we have physics constraints for (rotation_control, parent) in (&rotation_controls, &parents).join() { // Player collider if let Some(tr) = transforms.get_mut(parent.entity) { *tr.rotation_mut() = UnitQuaternion::from_euler_angles(0.0, rotation_control.mouse_accum_x, 0.0); } } } else { for event in win_events { if focused && hide.hide { if let Event::DeviceEvent { ref event, .. } = *event { if let DeviceEvent::MouseMotion { delta: (x, y) } = *event { // camera for (entity, mut rotation_control, parent) in (&*entities, &mut rotation_controls, &parents).join() { rotation_control.mouse_accum_x -= x as f32 * self.sensitivity_x; rotation_control.mouse_accum_y -= y as f32 * self.sensitivity_y; // Limit maximum vertical angle to prevent locking the quaternion and/or going upside down. // rotation_control.mouse_accum_y = rotation_control.mouse_accum_y.max(-89.5).min(89.5); rotation_control.mouse_accum_y = rotation_control .mouse_accum_y .max(-std::f64::consts::FRAC_PI_2 as f32 + 0.001) .min(std::f64::consts::FRAC_PI_2 as f32 - 0.001); // Camera if let Some(tr) = transforms.get_mut(entity) { *tr.rotation_mut() = UnitQuaternion::from_euler_angles( rotation_control.mouse_accum_y, 0.0, 0.0, ); } // Player collider if let Some(tr) = transforms.get_mut(parent.entity) { *tr.rotation_mut() = UnitQuaternion::from_euler_angles( 0.0, rotation_control.mouse_accum_x, 0.0, ); } } } } } } } } }
#[macro_use] extern crate log; #[macro_use] extern crate failure; use std::env; use std::thread; use std::path::PathBuf; use std::time::Duration; use telebot::{Bot, functions::ParseMode, error::ErrorKind as ErrorTelegram}; use futures::{Future, Stream, IntoFuture, future::Either}; use hex_database::{Instance, GossipConf}; use telebot::functions::FunctionSendMessage; use telebot::functions::FunctionSendAudio; use telebot::functions::FunctionEditMessageText; use telebot::functions::FunctionGetFile; use telebot::objects::Message; use telebot::objects::Audio; use telebot::file; use hyper::Uri; use failure::{Fail, Error}; use hex_conf::Conf; use crate::download::DownloadProgress; mod download; mod upload; mod external; mod error; fn run_bot(instance: Instance, conf: Conf, path: PathBuf) { let key = env::var("TELEGRAM_BOT_KEY").unwrap(); let mut bot = Bot::new(&key).timeout(200); let external = external::ExternalMusic::new(instance.reader(), instance.writer(), path.clone(), conf.spotify.clone().unwrap()); let read = instance.reader(); let search = bot.new_cmd("/suche") .and_then(move |(bot, msg)| { let Message { text, chat, .. } = msg; read.search_limited(&text.unwrap(), 0) .map_err(|x| format_err!("{:?}", x)) .map(|x| { let mut result = x.into_iter().take(10) .map(|x| format!("*{}* (_{}_) von {}", x.title.unwrap_or("unbekannt".into()), x.album.unwrap_or("unbekannt".into()), x.interpret.unwrap_or("unbekannt".into()))) .collect::<Vec<String>>().join("\n"); if result.is_empty() { result = "Kein Ergebnis!".into(); } result }).into_future() .and_then(move |result| bot.message(chat.id, result).parse_mode(ParseMode::Markdown).send()) }) .for_each(|_| Ok(())); let external = bot.new_cmd("/external") .and_then(move |(bot, msg)| { let Message { text, chat, .. } = msg; match text { Some(ref x) if !x.is_empty() => { external.add_playlist(&x); bot.message(chat.id, "Habe playlist hinzugefügt!".into()).send() }, _ => { let current_playlist = external.current_playlist(); if let Some(current_playlist) = current_playlist { bot.message(chat.id, format!("Nehme den Song {} in der Playlist {} auf", current_playlist.1, current_playlist.0)).send() } else { bot.message(chat.id, "Nehme gerade keine Playlist auf!".into()).send() } } } }) .for_each(|_| Ok(())); let read = instance.reader(); let files = instance.files(); let pathc = path.clone(); let download = bot.new_cmd("/lade") .and_then(move |(bot, msg)| { let result = read.search_limited(&msg.text.unwrap(), 0).unwrap(); bot.message(msg.chat.id, format!("download 0/{}", result.len())).send() .map(|(bot, msg)| (result, bot, msg)) }) .and_then(move |(result, bot, msg)| { let result_len = result.len(); let download = download::State::new(files.clone(), result, pathc.clone()); let bot2 = bot.clone(); let Message {chat, message_id, ..} = msg; let chat_id = chat.id; let tmp = download.recv .map_err(|_| ErrorTelegram::Unknown.into()) .and_then(move |x| { let DownloadProgress { result, num } = x; match result { Ok((path, track)) => { Either::A(bot .audio(chat_id) .duration(track.duration as i64) .file(file::File::Disk { path: path }) .performer(track.interpret.unwrap_or("unbekannt".into())) .title(track.title.unwrap_or("unbekannt".into())) .send() .map_err(|x| { eprintln!("{:?}", x); x }).map(move |_| num) ) }, Err(err) => { Either::B( bot.message(chat_id, format!("Konnte Song nicht laden = {:?}", err)).send().map_err(|x| { eprintln!("{:?}", x); x }).map(move |_| num) ) } } }) .and_then(move |num| bot2.edit_message_text(format!("download {}/{}", num+1, result_len)).chat_id(chat_id).message_id(message_id).send()) .for_each(|_| Ok(())); tokio::spawn(tmp.map_err(|_| ())); Ok(()) }) .for_each(|_| Ok(())); let write = instance.writer(); let path2 = path.clone(); let stream = bot.get_stream(None) .filter_map(|(bot, x)| x.message.map(|x| (bot,x))) .filter_map(|(bot, x)| { let Message { audio, chat, .. } = x; audio.map(|x| (bot, x, chat)) }) .filter(|(_, x, _)| x.mime_type.as_ref().map(|x| x.starts_with("audio")) == Some(true)) .and_then(|(bot, x, chat)| { let Audio { file_id, mime_type, .. } = x; let ext; if let Some(mime_type) = mime_type { ext = match mime_type.as_str() { "audio/mpeg" => "mp3", "audio/aac" => "aac", "audio/wav" => "wav", "audio/ogg" => "oga", "audio/webm" => "weba", _ => "" }; } else { ext = ""; } let file_name = format!("{}.{}", file_id, ext); bot.get_file(file_id).send().map(|(bot, y)| (bot, y, file_name, chat)) }) .filter_map(|(bot, msg, file_name, chat)| msg.file_path.map(|x| (bot, x, file_name, chat))) .and_then(move |(bot, file_path, file_name, chat)| { let path2 = path2.clone(); let download_link = format!("https://api.telegram.org/file/bot{}/{}", key, file_path).parse::<Uri>().unwrap(); let track = bot.inner.get(download_link) .and_then(|x| { x.into_body().concat2() }) .map_err(|x| Error::from(x.context(ErrorTelegram::Hyper))) .and_then(move |x| upload::Upload::new(file_name, x.to_vec(), path2) .into_future() .map_err(|x| Error::from(x.context(ErrorTelegram::Channel)))).wait(); let answ = match track { Ok(track) => { match write.add_track(track.clone()) { Ok(_) => format!("Habe {} gespeichert", track.title.unwrap()), Err(e) => format!("Fehler ist aufgetreten: {:?}", e) } }, Err(e) => { format!("Fehler is aufgetreten: {:?}", e) } }; bot.message(chat.id, answ).send() }) .for_each(|_| Ok(())); let chain = stream.into_future().join(search.join(download.join(external))) .inspect(|err| eprintln!("Telegram eventloop crashed = {:?}", err)) .map_err(|_| ()).map(|_| ()); let gossip = instance.for_each(|_| Ok(())).into_future() .inspect(|err| eprintln!("Database eventloop crashed = {:?}", err)) .map_err(|_| ()).map(|_| ()); let chain = chain.join(gossip).map(|_| ()); tokio::run(chain); } fn main() { env_logger::init(); let (mut conf, path) = hex_conf::Conf::new().unwrap(); loop { let mut gossip = GossipConf::new(); if let Some(peer) = conf.peer.take() { gossip = gossip .addr((conf.host, peer.port)) .id(peer.id()) .network_key(peer.network_key()) .discover(peer.discover) .contacts(peer.contacts); } let instance = Instance::from_file(path.join("music.db"), gossip); run_bot(instance, conf.clone(), path.clone()); thread::sleep(Duration::from_millis(2000)); } }
use crate::any::AnyConnection; use crate::connection::ConnectOptions; use crate::error::Error; use futures_core::future::BoxFuture; use log::LevelFilter; use std::str::FromStr; use std::time::Duration; #[cfg(feature = "postgres")] use crate::postgres::PgConnectOptions; #[cfg(feature = "mysql")] use crate::mysql::MySqlConnectOptions; #[cfg(feature = "sqlite")] use crate::sqlite::SqliteConnectOptions; use crate::any::kind::AnyKind; #[cfg(feature = "mssql")] use crate::mssql::MssqlConnectOptions; /// Opaque options for connecting to a database. These may only be constructed by parsing from /// a connection url. /// /// ```text /// postgres://postgres:password@localhost/database /// mysql://root:password@localhost/database /// ``` #[derive(Debug, Clone)] pub struct AnyConnectOptions(pub(crate) AnyConnectOptionsKind); impl AnyConnectOptions { pub fn kind(&self) -> AnyKind { match &self.0 { #[cfg(feature = "postgres")] AnyConnectOptionsKind::Postgres(_) => AnyKind::Postgres, #[cfg(feature = "mysql")] AnyConnectOptionsKind::MySql(_) => AnyKind::MySql, #[cfg(feature = "sqlite")] AnyConnectOptionsKind::Sqlite(_) => AnyKind::Sqlite, #[cfg(feature = "mssql")] AnyConnectOptionsKind::Mssql(_) => AnyKind::Mssql, } } } macro_rules! try_from_any_connect_options_to { ($to:ty, $kind:path, $name:expr) => { impl TryFrom<AnyConnectOptions> for $to { type Error = Error; fn try_from(value: AnyConnectOptions) -> Result<Self, Self::Error> { #[allow(irrefutable_let_patterns)] if let $kind(connect_options) = value.0 { Ok(connect_options) } else { Err(Error::Configuration( format!("Not {} typed AnyConnectOptions", $name).into(), )) } } } impl AnyConnectOptions { paste::item! { pub fn [< as_ $name >] (&self) -> Option<&$to> { #[allow(irrefutable_let_patterns)] if let $kind(ref connect_options) = self.0 { Some(connect_options) } else { None } } pub fn [< as_ $name _mut >] (&mut self) -> Option<&mut $to> { #[allow(irrefutable_let_patterns)] if let $kind(ref mut connect_options) = self.0 { Some(connect_options) } else { None } } } } }; } #[cfg(feature = "postgres")] try_from_any_connect_options_to!( PgConnectOptions, AnyConnectOptionsKind::Postgres, "postgres" ); #[cfg(feature = "mysql")] try_from_any_connect_options_to!(MySqlConnectOptions, AnyConnectOptionsKind::MySql, "mysql"); #[cfg(feature = "sqlite")] try_from_any_connect_options_to!( SqliteConnectOptions, AnyConnectOptionsKind::Sqlite, "sqlite" ); #[cfg(feature = "mssql")] try_from_any_connect_options_to!(MssqlConnectOptions, AnyConnectOptionsKind::Mssql, "mssql"); #[derive(Debug, Clone)] pub(crate) enum AnyConnectOptionsKind { #[cfg(feature = "postgres")] Postgres(PgConnectOptions), #[cfg(feature = "mysql")] MySql(MySqlConnectOptions), #[cfg(feature = "sqlite")] Sqlite(SqliteConnectOptions), #[cfg(feature = "mssql")] Mssql(MssqlConnectOptions), } #[cfg(feature = "postgres")] impl From<PgConnectOptions> for AnyConnectOptions { fn from(options: PgConnectOptions) -> Self { Self(AnyConnectOptionsKind::Postgres(options)) } } #[cfg(feature = "mysql")] impl From<MySqlConnectOptions> for AnyConnectOptions { fn from(options: MySqlConnectOptions) -> Self { Self(AnyConnectOptionsKind::MySql(options)) } } #[cfg(feature = "sqlite")] impl From<SqliteConnectOptions> for AnyConnectOptions { fn from(options: SqliteConnectOptions) -> Self { Self(AnyConnectOptionsKind::Sqlite(options)) } } #[cfg(feature = "mssql")] impl From<MssqlConnectOptions> for AnyConnectOptions { fn from(options: MssqlConnectOptions) -> Self { Self(AnyConnectOptionsKind::Mssql(options)) } } impl FromStr for AnyConnectOptions { type Err = Error; fn from_str(url: &str) -> Result<Self, Self::Err> { match AnyKind::from_str(url)? { #[cfg(feature = "postgres")] AnyKind::Postgres => { PgConnectOptions::from_str(url).map(AnyConnectOptionsKind::Postgres) } #[cfg(feature = "mysql")] AnyKind::MySql => MySqlConnectOptions::from_str(url).map(AnyConnectOptionsKind::MySql), #[cfg(feature = "sqlite")] AnyKind::Sqlite => { SqliteConnectOptions::from_str(url).map(AnyConnectOptionsKind::Sqlite) } #[cfg(feature = "mssql")] AnyKind::Mssql => MssqlConnectOptions::from_str(url).map(AnyConnectOptionsKind::Mssql), } .map(AnyConnectOptions) } } impl ConnectOptions for AnyConnectOptions { type Connection = AnyConnection; #[inline] fn connect(&self) -> BoxFuture<'_, Result<AnyConnection, Error>> { Box::pin(AnyConnection::establish(self)) } fn log_statements(&mut self, level: LevelFilter) -> &mut Self { match &mut self.0 { #[cfg(feature = "postgres")] AnyConnectOptionsKind::Postgres(o) => { o.log_statements(level); } #[cfg(feature = "mysql")] AnyConnectOptionsKind::MySql(o) => { o.log_statements(level); } #[cfg(feature = "sqlite")] AnyConnectOptionsKind::Sqlite(o) => { o.log_statements(level); } #[cfg(feature = "mssql")] AnyConnectOptionsKind::Mssql(o) => { o.log_statements(level); } }; self } fn log_slow_statements(&mut self, level: LevelFilter, duration: Duration) -> &mut Self { match &mut self.0 { #[cfg(feature = "postgres")] AnyConnectOptionsKind::Postgres(o) => { o.log_slow_statements(level, duration); } #[cfg(feature = "mysql")] AnyConnectOptionsKind::MySql(o) => { o.log_slow_statements(level, duration); } #[cfg(feature = "sqlite")] AnyConnectOptionsKind::Sqlite(o) => { o.log_slow_statements(level, duration); } #[cfg(feature = "mssql")] AnyConnectOptionsKind::Mssql(o) => { o.log_slow_statements(level, duration); } }; self } }
use crate::lib::{ default_sub_command, file_to_lines, parse_isize, parse_lines, Command, SumChecker, }; use anyhow::Error; use clap::{value_t_or_exit, App, Arg, ArgMatches, SubCommand}; use simple_error::SimpleError; pub const ENCODING_ERROR: Command = Command::new(sub_command, "encoding-error", run); #[derive(Debug)] struct EncodingErrorArgs { file: String, preamble_length: usize, exploit: bool, } fn sub_command() -> App<'static, 'static> { default_sub_command( &ENCODING_ERROR, "Takes a file with one number on each line and a preamble find the number that does not fit the \ encoding.", "Path to the input file. Each line contains one integer.", ) .arg( Arg::with_name("preamble") .short("p") .help("Length of the preamble for the XMAS protocol.") .takes_value(true) .required(true), ) .arg( Arg::with_name("exploit") .short("e") .help("If passed, finds the exploit number based on the number found that did not fit encoding.") ) .subcommand( SubCommand::with_name("part1") .about( "Finds the value that does not fit then encoding using dfeault input.", ) .version("1.0.0"), ) .subcommand( SubCommand::with_name("part2") .about( "Finds the value that does not fit then encoding using dfeault input. \ Then finds the exploit value.", ) .version("1.0.0"), ) } fn run(arguments: &ArgMatches) -> Result<(), Error> { let encoding_error_arguments = match arguments.subcommand_name() { Some("part1") => EncodingErrorArgs { file: "day9/input.txt".to_string(), preamble_length: 25, exploit: false, }, Some("part2") => EncodingErrorArgs { file: "day9/input.txt".to_string(), preamble_length: 25, exploit: true, }, _ => EncodingErrorArgs { file: value_t_or_exit!(arguments.value_of("file"), String), preamble_length: value_t_or_exit!(arguments.value_of("preamble"), usize), exploit: arguments.is_present("exploit"), }, }; process_numbers(&encoding_error_arguments) .map(|result| { println!("{:#?}", result); }) .map(|_| ()) } fn process_numbers(encoding_error_arguments: &EncodingErrorArgs) -> Result<isize, Error> { file_to_lines(&encoding_error_arguments.file) .and_then(|lines| parse_lines(lines, parse_numbers)) .map(|numbers| { let result = find_missing_number(&numbers, &encoding_error_arguments.preamble_length); if encoding_error_arguments.exploit { let exploit_range = find_continous_sequence_of_at_least_two_that_sum_to_target(&result, &numbers); let min = (&exploit_range) .into_iter() .fold( isize::MAX, |low, number| { if low < *number { low } else { *number } }, ); let max = (&exploit_range) .into_iter() .fold( isize::MIN, |high, number| { if high > *number { high } else { *number } }, ); min + max } else { result } }) } fn find_missing_number(numbers: &Vec<isize>, preamble_length: &usize) -> isize { *numbers .windows(preamble_length + 1) .map(|window| window.split_last().unwrap()) .map(|(test_number, preamble)| { SumChecker::with_vec(&preamble.to_vec()) .find_sum_of_n(test_number, 2) .map_err(|_| test_number) }) .find_map(|result| result.err()) .unwrap_or(&0) } fn find_continous_sequence_of_at_least_two_that_sum_to_target( target: &isize, numbers: &Vec<isize>, ) -> Vec<isize> { let mut low = 0; let mut high = 1; loop { match sum_from_low_to_high(&low, &high, numbers) { sum if sum > *target => low += 1, sum if sum < *target => high += 1, _ => break, } } numbers[low..high].to_vec() } fn sum_from_low_to_high(low: &usize, high: &usize, numbers: &Vec<isize>) -> isize { numbers[*low..*high] .iter() .fold(0, |acc, number| acc + number) } fn parse_numbers(line: &String) -> Result<isize, Error> { parse_isize(line) .map_err(|_| SimpleError::new("Parse Error").into()) .map(|(_, number)| number) }
#![allow(dead_code)] pub mod utils; mod multiplexer; use std::sync::Arc; use types::*; use protocol::types::*; use super::RedisClient; use self::multiplexer::Multiplexer; use error::{ RedisError, RedisErrorKind }; use super::utils as client_utils; use futures::future::{ loop_fn, Loop, lazy }; use futures::Future; use futures::sync::oneshot::{ Sender as OneshotSender, }; use futures::sync::mpsc::{ UnboundedSender, UnboundedReceiver, unbounded }; use futures::stream::Stream; use tokio_core::reactor::{ Handle }; use tokio_core::net::{ TcpStream }; use tokio_timer::Timer; use parking_lot::{ RwLock }; use std::net::{ ToSocketAddrs }; use tokio_io::codec::Framed; use futures::stream::{ SplitSink, SplitStream }; use std::rc::Rc; use std::cell::RefCell; use std::collections::VecDeque; /// A future that resolves when the connection to the Redis server closes. pub type ConnectionFuture = Box<Future<Item=Option<RedisError>, Error=RedisError>>; pub type RedisTransport = Framed<TcpStream, RedisCodec>; pub type RedisSink = SplitSink<RedisTransport>; pub type RedisStream = SplitStream<RedisTransport>; pub type SplitTransport = (RedisSink, RedisStream); fn init_clustered( client: RedisClient, handle: Handle, config: Rc<RefCell<RedisConfig>>, state: Arc<RwLock<ClientState>>, error_tx: Rc<RefCell<VecDeque<UnboundedSender<RedisError>>>>, message_tx: Rc<RefCell<VecDeque<UnboundedSender<(String, RedisValue)>>>>, command_tx: Rc<RefCell<Option<UnboundedSender<RedisCommand>>>>, connect_tx: Rc<RefCell<VecDeque<OneshotSender<Result<RedisClient, RedisError>>>>>, reconnect_tx: Rc<RefCell<VecDeque<UnboundedSender<RedisClient>>>>, remote_tx: Rc<RefCell<VecDeque<OneshotSender<Result<(), RedisError>>>>>, ) -> ConnectionFuture { Box::new(lazy(move || { let memo = ( client, handle, config, state, error_tx, message_tx, command_tx, connect_tx, reconnect_tx, remote_tx ); // TODO change this to queue up commands while the cluster's state is being refreshed loop_fn(memo, move |(client, handle, config, state, error_tx, message_tx, command_tx, connect_tx, reconnect_tx, remote_tx)| { let cluster_handle = handle.clone(); let hosts: Vec<(String, u16)> = { let config_ref = config.borrow(); match *config_ref { RedisConfig::Clustered { ref hosts, .. } => hosts.clone(), _ => panic!("unreachable. this is a bug.") } }; let key = utils::read_auth_key(&config); let mult_client = client.clone(); let mult_config = config.clone(); let mult_message_tx = message_tx.clone(); let mult_error_tx = error_tx.clone(); let mult_command_tx = command_tx.clone(); let mult_state = state.clone(); let mult_connect_tx = connect_tx.clone(); let mult_reconnect_tx = reconnect_tx.clone(); let mult_remote_tx = remote_tx.clone(); let cluster_config = config.clone(); let (latency_stats, size_stats) = client.metrics_trackers_cloned(); let init_size_stats = size_stats.clone(); utils::build_cluster_cache(handle.clone(), &config, size_stats.clone()).and_then(move |cache: ClusterKeyCache| { utils::create_all_transports(cluster_config, cluster_handle, hosts, key, init_size_stats).and_then(|result| { Ok((result, cache)) }) }) .and_then(move |(mut transports, cache): (Vec<(String, RedisTransport)>, ClusterKeyCache)| { let (tx, rx): (UnboundedSender<RedisCommand>, UnboundedReceiver<RedisCommand>) = unbounded(); let multiplexer = Multiplexer::new( mult_config.clone(), mult_message_tx.clone(), mult_error_tx.clone(), mult_command_tx.clone(), mult_state.clone(), latency_stats, size_stats ); multiplexer.sinks.set_cluster_cache(cache); for (server, transport) in transports.drain(..) { let (sink, stream) = transport.split(); multiplexer.sinks.set_clustered_sink(server, sink); multiplexer.streams.add_stream(stream); } // resolves when inbound responses stop let multiplexer_ft = utils::create_multiplexer_ft(multiplexer.clone(), mult_state.clone()); // resolves when outbound requests stop let commands_ft = utils::create_commands_ft(rx, mult_error_tx, multiplexer.clone(), mult_state.clone()); // resolves when both sides of the channel stop let connection_ft = utils::create_connection_ft(commands_ft, multiplexer_ft, mult_state.clone()); utils::set_command_tx(&mult_command_tx, tx); utils::emit_connect(&mult_connect_tx, mult_remote_tx, &mult_client); let _ = utils::emit_reconnect(&mult_reconnect_tx, &mult_client); client_utils::set_client_state(&mult_state, ClientState::Connected); connection_ft.then(move |result| { multiplexer.sinks.close(); multiplexer.streams.close(); // TODO if error emit on error stream? //if let Err(ref e) = result { // //} result }) }) .then(move |result| { match result { Ok(_) => Ok::<Loop<_, _>, RedisError>(Loop::Break(None)), Err(e) => match *e.kind() { RedisErrorKind::Cluster => { Ok(Loop::Continue((client, handle, config, state, error_tx, message_tx, command_tx, connect_tx, reconnect_tx, remote_tx))) }, _ => { utils::emit_connect_error(&connect_tx, remote_tx, &e); Ok(Loop::Break(Some(e))) } } } }) }).from_err::<RedisError>() })) } fn init_centralized( client: RedisClient, handle: &Handle, config: Rc<RefCell<RedisConfig>>, state: Arc<RwLock<ClientState>>, error_tx: Rc<RefCell<VecDeque<UnboundedSender<RedisError>>>>, message_tx: Rc<RefCell<VecDeque<UnboundedSender<(String, RedisValue)>>>>, command_tx: Rc<RefCell<Option<UnboundedSender<RedisCommand>>>>, connect_tx: Rc<RefCell<VecDeque<OneshotSender<Result<RedisClient, RedisError>>>>>, reconnect_tx: Rc<RefCell<VecDeque<UnboundedSender<RedisClient>>>>, remote_tx: Rc<RefCell<VecDeque<OneshotSender<Result<(), RedisError>>>>>, ) -> ConnectionFuture { let addr_str = fry!(utils::read_centralized_host(&config)); let mut addr = fry!(addr_str.to_socket_addrs()); let addr = match addr.next() { Some(a) => a, None => return client_utils::future_error(RedisError::new( RedisErrorKind::Unknown, format!("Could not resolve hostname {}.", addr_str) )) }; client_utils::set_client_state(&state, ClientState::Connecting); let error_connect_tx = connect_tx.clone(); let error_remote_tx = remote_tx.clone(); let (latency_stats, size_stats) = client.metrics_trackers_cloned(); Box::new(utils::create_transport(&addr, &handle, config.clone(), state.clone(), size_stats.clone()).and_then(move |(redis_sink, redis_stream)| { let (tx, rx): (UnboundedSender<RedisCommand>, UnboundedReceiver<RedisCommand>) = unbounded(); let multiplexer = Multiplexer::new( config.clone(), message_tx.clone(), error_tx.clone(), command_tx.clone(), state.clone(), latency_stats, size_stats ); multiplexer.sinks.set_centralized_sink(redis_sink); multiplexer.streams.add_stream(redis_stream); // resolves when inbound responses stop let multiplexer_ft = utils::create_multiplexer_ft(multiplexer.clone(), state.clone()); // resolves when outbound requests stop let commands_ft = utils::create_commands_ft(rx, error_tx, multiplexer, state.clone()); // resolves when both sides of the channel stop let connection_ft = utils::create_connection_ft(commands_ft, multiplexer_ft, state.clone()); debug!("Redis client successfully connected."); utils::set_command_tx(&command_tx, tx); utils::emit_connect(&connect_tx, remote_tx, &client); let _ = utils::emit_reconnect(&reconnect_tx, &client); client_utils::set_client_state(&state, ClientState::Connected); // resolve the outer future when the socket is connected and authenticated // the inner future `connection_ft` resolves when the connection is closed by either end connection_ft }) .then(move |result| { debug!("Centralized connection future closed with result {:?}.", result); if let Err(ref e) = result { utils::emit_connect_error(&error_connect_tx, error_remote_tx, &e); } result })) } pub fn init( client: RedisClient, handle: &Handle, config: Rc<RefCell<RedisConfig>>, state: Arc<RwLock<ClientState>>, error_tx: Rc<RefCell<VecDeque<UnboundedSender<RedisError>>>>, message_tx: Rc<RefCell<VecDeque<UnboundedSender<(String, RedisValue)>>>>, command_tx: Rc<RefCell<Option<UnboundedSender<RedisCommand>>>>, connect_tx: Rc<RefCell<VecDeque<OneshotSender<Result<RedisClient, RedisError>>>>>, reconnect_tx: Rc<RefCell<VecDeque<UnboundedSender<RedisClient>>>>, remote_tx: Rc<RefCell<VecDeque<OneshotSender<Result<(), RedisError>>>>>, ) -> ConnectionFuture { let is_clustered = { let config_ref = config.borrow(); match *config_ref { RedisConfig::Centralized { .. } => false, RedisConfig::Clustered { .. } => true } }; if is_clustered { init_clustered(client,handle.clone(), config, state, error_tx, message_tx, command_tx, connect_tx, reconnect_tx, remote_tx) }else{ init_centralized(client,handle, config, state, error_tx, message_tx, command_tx, connect_tx, reconnect_tx, remote_tx) } } pub fn init_with_policy( client: RedisClient, handle: &Handle, config: Rc<RefCell<RedisConfig>>, state: Arc<RwLock<ClientState>>, closed: Arc<RwLock<bool>>, error_tx: Rc<RefCell<VecDeque<UnboundedSender<RedisError>>>>, message_tx: Rc<RefCell<VecDeque<UnboundedSender<(String, RedisValue)>>>>, command_tx: Rc<RefCell<Option<UnboundedSender<RedisCommand>>>>, reconnect_tx: Rc<RefCell<VecDeque<UnboundedSender<RedisClient>>>>, connect_tx: Rc<RefCell<VecDeque<OneshotSender<Result<RedisClient, RedisError>>>>>, remote_tx: Rc<RefCell<VecDeque<OneshotSender<Result<(), RedisError>>>>>, policy: ReconnectPolicy, ) -> Box<Future<Item=(), Error=RedisError>> { let handle = handle.clone(); let timer = Timer::default(); Box::new(lazy(move || { loop_fn((handle, timer, policy), move |(handle, timer, policy)| { let (_client, _config, _state, _error_tx, _message_tx, _command_tx, _connect_tx, _reconnect_tx, _remote_tx) = ( client.clone(), config.clone(), state.clone(), error_tx.clone(), message_tx.clone(), command_tx.clone(), connect_tx.clone(), reconnect_tx.clone(), remote_tx.clone() ); let reconnect_tx_copy = reconnect_tx.clone(); let command_tx_copy = command_tx.clone(); let state_copy = state.clone(); let error_tx_copy = error_tx.clone(); let client_copy = client.clone(); let connect_tx_copy = connect_tx.clone(); let message_tx_copy = message_tx.clone(); let closed_copy = closed.clone(); let remote_tx_copy = remote_tx.clone(); let is_clustered = { let config_ref = _config.borrow(); match *config_ref { RedisConfig::Centralized {..} => false, RedisConfig::Clustered {..} => true } }; let connection_ft = if is_clustered { Box::new(init_clustered(client_copy, handle.clone(), _config, _state, _error_tx, _message_tx, _command_tx, _connect_tx, _reconnect_tx, _remote_tx)) }else{ Box::new(init_centralized(client_copy, &handle, _config, _state, _error_tx, _message_tx, _command_tx, _connect_tx, _reconnect_tx, _remote_tx)) }; Box::new(connection_ft.then(move |result| { utils::reconnect(handle, timer, policy, state_copy, closed_copy,error_tx_copy, message_tx_copy, command_tx_copy, reconnect_tx_copy, connect_tx_copy, remote_tx_copy, result) })) }) .map(|_: ()| ()) }) .from_err::<RedisError>()) }
macro_rules! ffi_wrap { ($fname:ident, $target:ident) => {{ let result: SigarResult<$target> = unsafe { let sigar_ptr = SigarPtr::new()?; let mut info: $target = Default::default(); let res = $fname(sigar_ptr.ptr, &mut info); if res != SIGAR_CODE_OK { return Err(Error::new(sigar_ptr.ptr, res)); } Ok(info) }; result }}; ($fname:ident, ($($arg:expr), +), $target:ident) => {{ let result: SigarResult<$target> = unsafe { let sigar_ptr = SigarPtr::new()?; let mut info: $target = Default::default(); let res = $fname( sigar_ptr.ptr, $( $arg, )+ &mut info, ); if res != SIGAR_CODE_OK { return Err(Error::new(sigar_ptr.ptr, res)); } Ok(info) }; result }}; ($func:tt, $target:ident) => {{ let result: SigarResult<$target> = unsafe { let sigar_ptr = SigarPtr::new()?; let mut info: $target = Default::default(); let res = $func( sigar_ptr.ptr, &mut info, ); if res != SIGAR_CODE_OK { return Err(Error::new(sigar_ptr.ptr, res)); } Ok(info) }; result }}; } macro_rules! ffi_wrap_destroy { ($fnget:ident, $fndestroy:ident, $target:ident, $trans:tt) => { unsafe { let sigar_ptr = SigarPtr::new()?; let mut info: $target = Default::default(); let res = $fnget(sigar_ptr.ptr, &mut info); if res != SIGAR_CODE_OK { return Err(Error::new(sigar_ptr.ptr, res)); } let entity = $trans(&info); let res = $fndestroy(sigar_ptr.ptr, &mut info); if res != SIGAR_CODE_OK { return Err(Error::from_str("failed to destroy sigar")); } Ok(entity) } }; ($fnget:tt, $fndestroy:ident, $target:ident, $trans:tt) => { unsafe { let sigar_ptr = SigarPtr::new()?; let mut info: $target = Default::default(); let res = $fnget(sigar_ptr.ptr, &mut info); if res != SIGAR_CODE_OK { return Err(Error::new(sigar_ptr.ptr, res)); } let entity = $trans(&info); let res = $fndestroy(sigar_ptr.ptr, &mut info); if res != SIGAR_CODE_OK { return Err(Error::from_str("failed to destroy sigar")); } Ok(entity) } }; } macro_rules! ffi_wrap_sigar_t { ($func:tt) => {{ let sigar_ptr = SigarPtr::new()?; let ret = $func(sigar_ptr.ptr); Ok(ret) }}; } macro_rules! value_convert { ($struct:ident, $src:expr, $($field:ident), *) => { $struct { $( $field: $src.$field.cast_to(), )* } }; ($struct:ident, $src:ident, $($field:ident), *, $(($ofield:ident : $oexpr:expr),) *) => { $struct { $( $field: $src.$field.cast_to(), )* $( $ofield: $oexpr, )* } }; } macro_rules! ffi_extract_list { ($raw:ident, $trans:ident) => {{ let mut list = Vec::with_capacity($raw.number as usize); let data = from_raw_parts($raw.data, $raw.number as usize); for one in data { list.push($trans(one)); } list }}; ($raw:ident, $trans:path) => {{ let mut list = Vec::with_capacity($raw.number as usize); let data = from_raw_parts($raw.data, $raw.number as usize); for one in data { list.push($trans(one)); } list }}; ($raw:ident, $trans:tt) => {{ let mut list = Vec::with_capacity($raw.number as usize); let data = from_raw_parts($raw.data, $raw.number as usize); for one in data { list.push($trans(one)); } list }}; }
// Copyright (c) 2021 Quark Container Authors / 2018 The gVisor Authors. // // 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 alloc::sync::Arc; use alloc::string::String; use alloc::string::ToString; use spin::Mutex; use super::super::super::qlib::common::*; use super::super::super::task::*; use super::super::ramfs::symlink::*; use super::super::dirent::*; use super::super::mount::*; use super::super::inode::*; use super::symlink_proc::*; pub struct MountsNode {} impl ReadLinkNode for MountsNode { fn ReadLink(&self, _link: &Symlink, _task: &Task, _dir: &Inode) -> Result<String> { return Ok("self/mounts".to_string()) } fn GetLink(&self, link: &Symlink, task: &Task, dir: &Inode) -> Result<Dirent> { return link.GetLink(task, dir); } } pub fn NewMounts(task: &Task, msrc: &Arc<Mutex<MountSource>>) -> Inode { let node = MountsNode {}; return SymlinkNode::New(task, msrc, node, None) }
extern crate bytebeat; use std::io::{Read, Write}; fn main() { let mut code = String::new(); std::io::stdin().read_to_string(&mut code).unwrap(); let code = bytebeat::parse_beat(&code).unwrap(); let code = bytebeat::compile(code).unwrap(); for i in 0..60 { let buf: Vec<_> = (i * 8000..(i + 1) * 8000) .map(|t| bytebeat::eval_beat(&code, t).into()) .collect(); std::io::stdout().write_all(&buf[..]).unwrap(); } }
//! Mutators that can handle recursive types. //! //! There are two main mutators: //! 1. [`RecursiveMutator`] is the top-level mutator for the recursive type //! 2. [`RecurToMutator`] is the mutator used at points of recursion. It is essentially a weak reference to [`RecursiveMutator`] //! //! In practice, you will want to use the [`make_mutator!`](crate::make_mutator) procedural macro to create recursive mutators. //! For example: //! ``` //! # #![feature(no_coverage)] //! use fuzzcheck::mutators::{option::OptionMutator, boxed::BoxMutator}; //! use fuzzcheck::mutators::recursive::{RecursiveMutator, RecurToMutator}; //! use fuzzcheck::DefaultMutator; //! use fuzzcheck::make_mutator; //! //! #[derive(Clone)] //! struct S { //! content: bool, //! next: Option<Box<S>> // the type recurses here //! } //! //! make_mutator! { //! name: SMutator, //! recursive: true, // this is important //! default: false, //! type: struct S { //! content: bool, //! // We need to specify a concrete sub-mutator for this field to avoid creating an infinite type. //! // We use the standard Option and Box mutators, but replace what would be SMutator<M0, M1> by //! // RecurToMutator<SMutator<M0>>, which indicates that this is a point of recursion //! // and the mutator should be a weak reference to a RecursiveMutator //! // The M0 part refers to the mutator for the `content: bool` field. //! #[field_mutator(OptionMutator<Box<S>, BoxMutator<RecurToMutator<SMutator<M0>>>>)] //! next: Option<Box<S>> //! } //! } //! # fn main() { //! //! let s_mutator = RecursiveMutator::new(|mutator| { //! SMutator::new( //! /*content_mutator:*/ bool::default_mutator(), //! /*next_mutator:*/ OptionMutator::new(BoxMutator::new(RecurToMutator::from(mutator))) //! ) //! }); //! // s_mutator impl Mutator<S> //! # } //! ``` use std::any::Any; use std::fmt::Debug; use std::rc::{Rc, Weak}; use crate::Mutator; /// The ArbitraryStep that is used for recursive mutators #[derive(Clone, Debug, PartialEq, Eq)] pub enum RecursingArbitraryStep<AS> { Default, Initialized(AS), } impl<AS> Default for RecursingArbitraryStep<AS> { #[no_coverage] fn default() -> Self { Self::Default } } /** A wrapper that allows a mutator to call itself recursively. For example, it is used to provide mutators for types such as: ``` struct S { content: bool, // to mutate this field, a mutator must be able to recursively call itself next: Option<Box<S>> } ``` `RecursiveMutator` is only the top-level type. It must be used in conjuction with [`RecurToMutator`](crate::mutators::recursive::RecurToMutator) at points of recursion. For example: ``` # #![feature(no_coverage)] use fuzzcheck::DefaultMutator; use fuzzcheck::mutators::{option::OptionMutator, boxed::BoxMutator}; use fuzzcheck::mutators::recursive::{RecursiveMutator, RecurToMutator}; # use fuzzcheck::make_mutator; # #[derive(Clone)] # struct S { # content: bool, # next: Option<Box<S>> # } # make_mutator! { # name: SMutator, # recursive: true, # default: false, # type: struct S { # content: bool, # #[field_mutator(OptionMutator<Box<S>, BoxMutator<RecurToMutator<SMutator<M0>>>>)] # next: Option<Box<S>> # } # } let s_mutator = RecursiveMutator::new(|mutator| { SMutator::new( /*content_mutator:*/ bool::default_mutator(), /*next_mutator:*/ OptionMutator::new(BoxMutator::new(RecurToMutator::from(mutator))) ) }); ``` */ pub struct RecursiveMutator<M> { pub mutator: Rc<M>, rng: fastrand::Rng, } impl<M> RecursiveMutator<M> { /// Create a new `RecursiveMutator` using a weak reference to itself. #[no_coverage] pub fn new(data_fn: impl FnOnce(&Weak<M>) -> M) -> Self { Self { mutator: Rc::new_cyclic(data_fn), rng: fastrand::Rng::new(), } } } /// A mutator that defers to a weak reference of a /// [`RecursiveMutator`](crate::mutators::recursive::RecursiveMutator) pub struct RecurToMutator<M> { reference: Weak<M>, } impl<M> From<&Weak<M>> for RecurToMutator<M> { #[no_coverage] fn from(reference: &Weak<M>) -> Self { Self { reference: reference.clone(), } } } impl<T, M> Mutator<T> for RecurToMutator<M> where M: Mutator<T>, T: Clone + 'static, { #[doc(hidden)] type Cache = <M as Mutator<T>>::Cache; #[doc(hidden)] type MutationStep = <M as Mutator<T>>::MutationStep; #[doc(hidden)] type ArbitraryStep = RecursingArbitraryStep<<M as Mutator<T>>::ArbitraryStep>; #[doc(hidden)] type UnmutateToken = <M as Mutator<T>>::UnmutateToken; #[doc(hidden)] #[no_coverage] fn initialize(&self) {} #[doc(hidden)] #[no_coverage] fn default_arbitrary_step(&self) -> Self::ArbitraryStep { RecursingArbitraryStep::Default } #[doc(hidden)] #[no_coverage] fn is_valid(&self, value: &T) -> bool { self.reference.upgrade().unwrap().is_valid(value) } #[doc(hidden)] #[no_coverage] fn validate_value(&self, value: &T) -> Option<Self::Cache> { self.reference.upgrade().unwrap().validate_value(value) } #[doc(hidden)] #[no_coverage] fn default_mutation_step(&self, value: &T, cache: &Self::Cache) -> Self::MutationStep { self.reference.upgrade().unwrap().default_mutation_step(value, cache) } #[doc(hidden)] #[no_coverage] fn global_search_space_complexity(&self) -> f64 { std::f64::INFINITY } #[doc(hidden)] #[no_coverage] fn max_complexity(&self) -> f64 { // can potentially recur infinitely std::f64::INFINITY } #[doc(hidden)] #[no_coverage] fn min_complexity(&self) -> f64 { // this will crash if called before the RecurToMutator is connected // to the RecursiveMutator self.reference.upgrade().unwrap().min_complexity() } #[doc(hidden)] #[no_coverage] fn complexity(&self, value: &T, cache: &Self::Cache) -> f64 { self.reference.upgrade().unwrap().complexity(value, cache) } #[doc(hidden)] #[no_coverage] fn ordered_arbitrary(&self, step: &mut Self::ArbitraryStep, max_cplx: f64) -> Option<(T, f64)> { match step { RecursingArbitraryStep::Default => { let inner_step = self.reference.upgrade().unwrap().default_arbitrary_step(); *step = RecursingArbitraryStep::Initialized(inner_step); self.ordered_arbitrary(step, max_cplx) } RecursingArbitraryStep::Initialized(inner_step) => self .reference .upgrade() .unwrap() .ordered_arbitrary(inner_step, max_cplx), } } #[doc(hidden)] #[no_coverage] fn random_arbitrary(&self, max_cplx: f64) -> (T, f64) { self.reference.upgrade().unwrap().random_arbitrary(max_cplx) } #[doc(hidden)] #[no_coverage] fn ordered_mutate( &self, value: &mut T, cache: &mut Self::Cache, step: &mut Self::MutationStep, subvalue_provider: &dyn crate::SubValueProvider, max_cplx: f64, ) -> Option<(Self::UnmutateToken, f64)> { self.reference .upgrade() .unwrap() .ordered_mutate(value, cache, step, subvalue_provider, max_cplx) } #[doc(hidden)] #[no_coverage] fn random_mutate(&self, value: &mut T, cache: &mut Self::Cache, max_cplx: f64) -> (Self::UnmutateToken, f64) { self.reference.upgrade().unwrap().random_mutate(value, cache, max_cplx) } #[doc(hidden)] #[no_coverage] fn unmutate(&self, value: &mut T, cache: &mut Self::Cache, t: Self::UnmutateToken) { self.reference.upgrade().unwrap().unmutate(value, cache, t) } #[doc(hidden)] #[no_coverage] fn visit_subvalues<'a>(&self, value: &'a T, cache: &'a Self::Cache, visit: &mut dyn FnMut(&'a dyn Any, f64)) { self.reference.upgrade().unwrap().visit_subvalues(value, cache, visit) } } #[derive(Clone)] pub struct RecursiveMutatorCache<T, C> { inner: C, _cloned_self: Box<(T, C)>, sub_self_values: Vec<(*const T, f64)>, } #[derive(Clone, Debug, PartialEq, Eq)] pub struct RecursiveMutatorMutationStep<MS> { mutation_step: MS, idx_sub_self_values: usize, } pub enum RecursiveMutatorUnmutateToken<T, UnmutateToken> { Replace(T), Token(UnmutateToken), } impl<M, T: Clone + 'static> Mutator<T> for RecursiveMutator<M> where M: Mutator<T>, { #[doc(hidden)] type Cache = RecursiveMutatorCache<T, M::Cache>; #[doc(hidden)] type MutationStep = RecursiveMutatorMutationStep<M::MutationStep>; #[doc(hidden)] type ArbitraryStep = M::ArbitraryStep; #[doc(hidden)] type UnmutateToken = RecursiveMutatorUnmutateToken<T, M::UnmutateToken>; #[doc(hidden)] #[no_coverage] fn initialize(&self) { self.mutator.initialize(); } #[doc(hidden)] #[no_coverage] fn default_arbitrary_step(&self) -> Self::ArbitraryStep { self.mutator.default_arbitrary_step() } #[doc(hidden)] #[no_coverage] fn is_valid(&self, value: &T) -> bool { self.mutator.is_valid(value) } #[doc(hidden)] #[no_coverage] fn validate_value(&self, value: &T) -> Option<Self::Cache> { if let Some(cache) = self.mutator.validate_value(value) { let cloned_self = Box::new((value.clone(), cache.clone())); let mut sub_self_values = vec![]; let mut visit_subvalues = #[no_coverage] |subvalue: &dyn Any, cplx: f64| { if let Some(sub_self_value) = subvalue.downcast_ref::<T>() && let Some(subcache) = self.mutator.validate_value(sub_self_value) { let subcplx = self.mutator.complexity(sub_self_value, &subcache); assert_eq!(cplx, subcplx); sub_self_values.push((sub_self_value as *const _, subcplx)); } }; self.mutator .visit_subvalues(&cloned_self.0, &cloned_self.1, &mut visit_subvalues); Some(RecursiveMutatorCache { inner: cache, _cloned_self: cloned_self, sub_self_values, }) } else { None } } #[doc(hidden)] #[no_coverage] fn default_mutation_step(&self, value: &T, cache: &Self::Cache) -> Self::MutationStep { let mutation_step = self.mutator.default_mutation_step(value, &cache.inner); RecursiveMutatorMutationStep { mutation_step, idx_sub_self_values: 0, } } #[doc(hidden)] #[no_coverage] fn global_search_space_complexity(&self) -> f64 { self.mutator.global_search_space_complexity() } #[doc(hidden)] #[no_coverage] fn max_complexity(&self) -> f64 { self.mutator.max_complexity() } #[doc(hidden)] #[no_coverage] fn min_complexity(&self) -> f64 { self.mutator.min_complexity() } #[doc(hidden)] #[no_coverage] fn complexity(&self, value: &T, cache: &Self::Cache) -> f64 { self.mutator.complexity(value, &cache.inner) } #[doc(hidden)] #[no_coverage] fn ordered_arbitrary(&self, step: &mut Self::ArbitraryStep, max_cplx: f64) -> Option<(T, f64)> { self.mutator.ordered_arbitrary(step, max_cplx) } #[doc(hidden)] #[no_coverage] fn random_arbitrary(&self, max_cplx: f64) -> (T, f64) { self.mutator.random_arbitrary(max_cplx) } #[doc(hidden)] #[no_coverage] fn ordered_mutate( &self, value: &mut T, cache: &mut Self::Cache, step: &mut Self::MutationStep, subvalue_provider: &dyn crate::SubValueProvider, max_cplx: f64, ) -> Option<(Self::UnmutateToken, f64)> { if step.idx_sub_self_values < cache.sub_self_values.len() { let (subself, cplx) = cache.sub_self_values[step.idx_sub_self_values]; let subself = unsafe { subself.as_ref() }.unwrap(); let mut tmp = subself.clone(); step.idx_sub_self_values += 1; std::mem::swap(value, &mut tmp); Some((RecursiveMutatorUnmutateToken::Replace(tmp), cplx)) } else { if let Some((token, cplx)) = self.mutator.ordered_mutate( value, &mut cache.inner, &mut step.mutation_step, subvalue_provider, max_cplx, ) { Some((RecursiveMutatorUnmutateToken::Token(token), cplx)) } else { None } } } #[doc(hidden)] #[no_coverage] fn random_mutate(&self, value: &mut T, cache: &mut Self::Cache, max_cplx: f64) -> (Self::UnmutateToken, f64) { if !cache.sub_self_values.is_empty() && self.rng.usize(..100) == 0 { let idx = self.rng.usize(..cache.sub_self_values.len()); let (subself, cplx) = cache.sub_self_values[idx]; let subself = unsafe { subself.as_ref() }.unwrap(); let mut tmp = subself.clone(); std::mem::swap(value, &mut tmp); (RecursiveMutatorUnmutateToken::Replace(tmp), cplx) } else { let (token, cplx) = self.mutator.random_mutate(value, &mut cache.inner, max_cplx); let token = RecursiveMutatorUnmutateToken::Token(token); (token, cplx) } } #[doc(hidden)] #[no_coverage] fn unmutate(&self, value: &mut T, cache: &mut Self::Cache, t: Self::UnmutateToken) { match t { RecursiveMutatorUnmutateToken::Replace(x) => { let _ = std::mem::replace(value, x); } RecursiveMutatorUnmutateToken::Token(t) => self.mutator.unmutate(value, &mut cache.inner, t), } } #[doc(hidden)] #[no_coverage] fn visit_subvalues<'a>(&self, value: &'a T, cache: &'a Self::Cache, visit: &mut dyn FnMut(&'a dyn Any, f64)) { self.mutator.visit_subvalues(value, &cache.inner, visit) } }
use std::collections::hash_map::DefaultHasher; use std::hash::{Hash, Hasher}; use std::time::Duration; use libp2p::autonat; use libp2p::dcutr; use libp2p::gossipsub::{self, IdentTopic, MessageAuthenticity, MessageId}; use libp2p::identify; use libp2p::kad::{record::store::MemoryStore, Kademlia, KademliaConfig, KademliaEvent}; use libp2p::ping; use libp2p::relay::client as relay_client; use libp2p::request_response::{self, ProtocolSupport}; use libp2p::swarm::NetworkBehaviour; use libp2p::{identity, kad}; #[derive(NetworkBehaviour)] #[behaviour(out_event = "Event", event_process = false)] pub struct Behaviour { relay: relay_client::Behaviour, autonat: autonat::Behaviour, dcutr: dcutr::Behaviour, ping: ping::Behaviour, identify: identify::Behaviour, pub kademlia: Kademlia<MemoryStore>, pub gossipsub: gossipsub::Behaviour, pub block_sync: request_response::Behaviour<super::sync::BlockSyncCodec>, } pub const KADEMLIA_PROTOCOL_NAME: &[u8] = b"/pathfinder/kad/1.0.0"; // FIXME: clarify what version number should be // FIXME: we're also missing the starting '/' const PROTOCOL_VERSION: &str = "starknet/0.9.1"; impl Behaviour { pub fn new(identity: &identity::Keypair) -> (Self, relay_client::Transport) { const PROVIDER_PUBLICATION_INTERVAL: Duration = Duration::from_secs(600); let mut kademlia_config = KademliaConfig::default(); kademlia_config.set_record_ttl(Some(Duration::from_secs(0))); kademlia_config.set_provider_record_ttl(Some(PROVIDER_PUBLICATION_INTERVAL * 3)); kademlia_config.set_provider_publication_interval(Some(PROVIDER_PUBLICATION_INTERVAL)); // This makes sure that the DHT we're implementing is incompatible with the "default" IPFS // DHT from libp2p. kademlia_config .set_protocol_names(vec![std::borrow::Cow::Borrowed(KADEMLIA_PROTOCOL_NAME)]); let peer_id = identity.public().to_peer_id(); let kademlia = Kademlia::with_config(peer_id, MemoryStore::new(peer_id), kademlia_config); // FIXME: find out how we should derive message id let message_id_fn = |message: &gossipsub::Message| { let mut s = DefaultHasher::new(); message.data.hash(&mut s); MessageId::from(s.finish().to_string()) }; let gossipsub_config = libp2p::gossipsub::ConfigBuilder::default() .message_id_fn(message_id_fn) .build() .expect("valid gossipsub config"); let gossipsub = gossipsub::Behaviour::new( MessageAuthenticity::Signed(identity.clone()), gossipsub_config, ) .expect("valid gossipsub params"); let block_sync = request_response::Behaviour::new( super::sync::BlockSyncCodec(), std::iter::once((super::sync::BlockSyncProtocol(), ProtocolSupport::Full)), Default::default(), ); let (relay_transport, relay) = relay_client::new(peer_id); ( Self { relay, autonat: autonat::Behaviour::new(peer_id, Default::default()), dcutr: dcutr::Behaviour::new(peer_id), ping: ping::Behaviour::new(ping::Config::new()), identify: identify::Behaviour::new( identify::Config::new(PROTOCOL_VERSION.to_string(), identity.public()) .with_agent_version(format!("pathfinder/{}", env!("CARGO_PKG_VERSION"))), ), kademlia, gossipsub, block_sync, }, relay_transport, ) } pub fn provide_capability(&mut self, capability: &str) -> anyhow::Result<()> { let key = string_to_key(capability); self.kademlia.start_providing(key)?; Ok(()) } pub fn subscribe_topic(&mut self, topic: &IdentTopic) -> anyhow::Result<()> { self.gossipsub.subscribe(topic)?; Ok(()) } } #[derive(Debug)] pub enum Event { Relay(relay_client::Event), Autonat(autonat::Event), Dcutr(dcutr::Event), Ping(ping::Event), Identify(Box<identify::Event>), Kademlia(KademliaEvent), Gossipsub(gossipsub::Event), BlockSync(request_response::Event<p2p_proto::sync::Request, p2p_proto::sync::Response>), } impl From<relay_client::Event> for Event { fn from(event: relay_client::Event) -> Self { Event::Relay(event) } } impl From<autonat::Event> for Event { fn from(event: autonat::Event) -> Self { Event::Autonat(event) } } impl From<dcutr::Event> for Event { fn from(event: dcutr::Event) -> Self { Event::Dcutr(event) } } impl From<ping::Event> for Event { fn from(event: ping::Event) -> Self { Event::Ping(event) } } impl From<identify::Event> for Event { fn from(event: identify::Event) -> Self { Event::Identify(Box::new(event)) } } impl From<KademliaEvent> for Event { fn from(event: KademliaEvent) -> Self { Event::Kademlia(event) } } impl From<gossipsub::Event> for Event { fn from(event: gossipsub::Event) -> Self { Event::Gossipsub(event) } } impl From<request_response::Event<p2p_proto::sync::Request, p2p_proto::sync::Response>> for Event { fn from( event: request_response::Event<p2p_proto::sync::Request, p2p_proto::sync::Response>, ) -> Self { Event::BlockSync(event) } } fn string_to_key(input: &str) -> kad::record::Key { use sha2::{Digest, Sha256}; let mut hasher = Sha256::new(); hasher.update(input.as_bytes()); let result = hasher.finalize(); kad::record::Key::new(&result.as_slice()) }
pub static TILE_SIZE: i16 = 24; pub static UPS: u64 = 60; pub static MAX_FPS: u64 = 240; pub static TARGET_ASPECT: (u32, u32) = (1120, 800); pub static BOARD_SIZE_Y: i16 = 800; pub static BOARD_SIZE_X: i16 = 1120; pub static WALK_SPEED: f64 = 200.0; pub static ACCELERATION: f64 = 1000.0; pub static FRICTION: f64 = 0.7; pub static JUMP_SPEED: f64 = 350.0; pub static GRAVITY: f64 = 400.0; pub static BACKGROUND_PARRALAX_FACTOR: f64 = 0.7; pub static MAP_TILES_PARRALAX_FACTOR: f64 = 1.2;
use crate::{ encryption::ElGamal, types::{Cipher, PublicKey}, }; use alloc::vec::Vec; use core::ops::{AddAssign, Sub}; use num_bigint::{BigUint, RandBigInt}; use num_traits::{One, Zero}; use rand::Rng; use std::boxed::Box; use std::panic; #[derive(Clone, Eq, PartialEq, Debug, Hash)] pub struct Random; impl Random { pub fn generate_random_encryptions_encoded( pk: &PublicKey, q: &BigUint, number: usize, ) -> Vec<Cipher> { let mut encryptions: Vec<Cipher> = Vec::new(); for i in 0..number { let nr = BigUint::from(i); let r = Random::get_random_less_than(q); let enc = ElGamal::encrypt_encode(&nr, &r, pk); encryptions.push(enc); } encryptions } /// used to suppress the panic message when using panic::catch_unwind fn catch_unwind_silent<F: FnOnce() -> R + panic::UnwindSafe, R>( f: F, ) -> std::thread::Result<R> { let prev_hook = panic::take_hook(); panic::set_hook(Box::new(|_| {})); let result = panic::catch_unwind(f); panic::set_hook(prev_hook); result } pub fn generate_encryptions( pk: &PublicKey, q: &BigUint, number: usize, votes: Vec<u32>, ) -> Vec<Cipher> { assert!(!votes.is_empty(), "there must be at least one value!"); let mut encryptions: Vec<Cipher> = Vec::new(); 'outer: loop { for vote in votes.iter() { // once sufficient encryptions have been generate // leave both loops if encryptions.len() == number { break 'outer; } let r = Random::get_random_less_than(q); let nr = BigUint::from(*vote); let result = Self::catch_unwind_silent(|| ElGamal::encrypt(&nr, &r, pk)); if result.is_ok() { let enc = result.unwrap(); encryptions.push(enc.clone()); } } } encryptions } pub fn generate_random_encryptions(pk: &PublicKey, q: &BigUint, number: usize) -> Vec<Cipher> { let mut encryptions: Vec<Cipher> = Vec::new(); let mut i: u32 = 0; while encryptions.len() != number { let nr = BigUint::from(i); let r = Random::get_random_less_than(q); let result = Self::catch_unwind_silent(|| ElGamal::encrypt(&nr, &r, pk)); if result.is_ok() { let enc = result.unwrap(); encryptions.push(enc.clone()); } i += 1u32; } encryptions } /// Shuffles a vector of encryptions (permuatation + re-encryption) /// /// Arguments /// * `pk` - public key /// * `q` - the group modulus /// * `encryptions` - a vector of encrypted votes pub fn generate_shuffle( pk: &PublicKey, q: &BigUint, encryptions: Vec<Cipher>, ) -> Vec<(Cipher, BigUint, usize)> { // create a permutation of size let size = encryptions.len(); let permutation = Random::generate_permutation(&size); // create {size} random values < q let mut randoms: Vec<BigUint> = Vec::new(); for _ in 0..size { randoms.push(Random::get_random_less_than(&q)); } // shuffle (permute + re-encrypt) the encryptions ElGamal::shuffle(&encryptions, &permutation, &randoms, &pk) } /// Generates a permutation of size: `size` /// /// Arguments /// * `size` - size of the permuatation pub fn generate_permutation(size: &usize) -> Vec<usize> { assert!(*size > 0, "size must be greater than zero!"); let mut rng = rand::thread_rng(); let mut permutation: Vec<usize> = Vec::new(); // vector containing the range of values from 0 up to the size of the vector - 1 let mut range: Vec<usize> = (0..*size).collect(); for index in 0..*size { // get random integer let random = rng.gen_range(index, size); // get the element in the range at the random position let value = range.get(random); match value { Some(value) => { // store the value of the element at the random position permutation.push(*value); // swap positions range[random] = range[index]; } None => panic!( "Index out of bounds: index: {:?}, upper bound: {:?}", random, size ), } } permutation } /// Generates a random value: 0 < x < number /// /// Arguments /// * `number` - upper limit pub fn get_random_less_than(number: &BigUint) -> BigUint { assert!(*number > BigUint::zero(), "q must be greater than zero!"); let one = BigUint::one(); let upper_bound = number.clone().sub(one); let bit_size: u64 = upper_bound.bits(); let mut rng = rand::thread_rng(); rng.gen_biguint(bit_size) % number } /// Generates a random prime /// /// Arguments /// * `bit_size` - size of prime pub fn generate_random_prime(bit_size: u64) -> BigUint { let mut rng = rand::thread_rng(); let mut candidate = rng.gen_biguint(bit_size); let two = BigUint::from(2u32); if &candidate % &two == BigUint::zero() { candidate.add_assign(BigUint::one()) } while !Self::is_prime(&candidate, 128) { candidate.add_assign(two.clone()); } candidate } /// Miller-Rabin Primality Test /// /// https://en.wikipedia.org/wiki/Miller-Rabin_primality_test pub fn is_prime(num: &BigUint, certainty: u32) -> bool { let zero: BigUint = BigUint::zero(); let one: BigUint = BigUint::one(); let two = one.clone() + one.clone(); if *num == two { return true; } if num % two.clone() == zero { return false; } let num_less_one = num - one.clone(); // write n-12**s * d let mut d = num_less_one.clone(); let mut s: BigUint = Zero::zero(); while d.clone() % two.clone() == zero.clone() { d /= two.clone(); s += one.clone(); } let mut k = 0; let mut rng = rand::thread_rng(); // test for probable prime while k < certainty { let a = rng.gen_biguint_range(&two, num); let mut x = a.modpow(&d, num); if x != one.clone() && x != num_less_one { let mut random = zero.clone(); loop { x = x.modpow(&two, num); if x == num_less_one { break; } else if x == one.clone() || random == (s.clone() - one.clone()) { return false; } random += one.clone(); } } k += 2; } true } } #[cfg(test)] mod tests { use crate::encryption::ElGamal; use crate::helper::Helper; use crate::random::Random; use num_bigint::BigUint; use std::vec::Vec; #[test] fn it_should_generate_random_number() { let number = BigUint::parse_bytes(b"123", 10).unwrap(); for _ in 0..20 { let random = Random::get_random_less_than(&number); assert!(random < number); } } #[test] fn check_that_2_is_prime() { let number = BigUint::parse_bytes(b"2", 10).unwrap(); let is_prime = Random::is_prime(&number, 20); assert!(is_prime); } #[test] fn check_that_11_is_prime() { let number = BigUint::from(11u32); let is_prime = Random::is_prime(&number, 20); assert!(is_prime); } #[test] fn check_that_84532559_is_prime() { let number = BigUint::parse_bytes(b"84532559", 10).unwrap(); let is_prime = Random::is_prime(&number, 20); assert!(is_prime); } #[test] fn check_that_84532560_is_not_prime() { let number = BigUint::parse_bytes(b"84532560", 10).unwrap(); let is_prime = Random::is_prime(&number, 20); assert!(!is_prime); } #[test] fn it_should_generate_a_random_prime() { let bit_size = 256; let byte_size = 32; let prime = Random::generate_random_prime(bit_size); // check that the prime is in range bit_size - 8 <= prime <= bit_size assert!(prime.bits().le(&bit_size)); assert!(prime.bits().ge(&(bit_size - 8))); // check that the prime has the same number of bytes as requested assert!(prime.to_bytes_le().len() == byte_size); let is_prime = Random::is_prime(&prime, 128); assert!(is_prime); } #[test] #[should_panic(expected = "size must be greater than zero!")] fn permutation_size_zero_should_panic() { let size = 0; Random::generate_permutation(&size); } #[test] fn it_should_generate_a_permutation_for_three_numbers() { let size = 3; let permutation = Random::generate_permutation(&size); // check that the permutation has the expected size assert!(permutation.len() == (size as usize)); // check that 0, 1, 2 occur at least once each assert!(permutation.iter().any(|&value| value == 0)); assert!(permutation.iter().any(|&value| value == 1)); assert!(permutation.iter().any(|&value| value == 2)); } #[test] fn it_should_generate_a_random_encryptions_encoded() { let number = 2usize; let (params, _, pk) = Helper::setup_sm_system(); let q = params.q(); let encryptions = Random::generate_random_encryptions_encoded(&pk, &q, number); assert_eq!(encryptions.len(), number); } #[test] fn it_should_generate_a_random_encryptions() { let number = 2usize; let (params, _, pk) = Helper::setup_sm_system(); let q = params.q(); let encryptions = Random::generate_random_encryptions(&pk, &q, number); assert_eq!(encryptions.len(), number); } #[test] fn it_should_generate_an_encryption_of_one_and_two() { let votes = vec![1u32, 2u32]; let number = 2usize; let (params, sk, pk) = Helper::setup_sm_system(); let q = params.q(); let encryptions = Random::generate_encryptions(&pk, &q, number, votes.clone()); let decryptions = encryptions .iter() .map(|cipher| ElGamal::decrypt(cipher, &sk)) .collect::<Vec<BigUint>>(); // check that 1, 2 occur once each for vote in votes { assert!(decryptions .iter() .any(|value| value == &BigUint::from(vote))); } assert_eq!(decryptions.len(), number); } }
use proconio::input; #[allow(unused_imports)] use proconio::marker::*; #[allow(unused_imports)] use std::cmp::*; #[allow(unused_imports)] use std::collections::*; #[allow(unused_imports)] use std::f64::consts::*; #[allow(unused)] const INF: usize = std::usize::MAX / 4; #[allow(unused)] const M: usize = 1000000007; fn main() { input! { h: usize, w: usize, k: usize, x1: Usize1, y1: Usize1, x2: Usize1, y2: Usize1, c: [Chars; h], } }
use ic_cdk_macros::*; use ic_cdk::export::candid; #[import(canister = "counter_mo")] struct CounterCanister; #[update] async fn read() -> candid::Nat { CounterCanister::read().await.0 } #[update] async fn inc() -> () { CounterCanister::inc().await } #[update] async fn write(input: candid::Nat) -> () { CounterCanister::write(input).await }
pub mod home; pub mod create_sso;
extern crate clap; extern crate crossbeam_channel; #[macro_use] extern crate cursive; #[cfg(feature = "share_clipboard")] extern crate clipboard; extern crate directories; extern crate failure; extern crate futures; #[macro_use] extern crate lazy_static; extern crate librespot_core; extern crate librespot_playback; extern crate librespot_protocol; extern crate rspotify; extern crate tokio_core; extern crate tokio_timer; extern crate unicode_width; extern crate webbrowser; #[cfg(feature = "mpris")] extern crate dbus; #[macro_use] extern crate serde; extern crate serde_json; extern crate toml; #[macro_use] extern crate log; extern crate chrono; extern crate fern; extern crate rand; extern crate url; extern crate strum; extern crate strum_macros; use std::fs; use std::path::PathBuf; use std::process; use std::str::FromStr; use std::sync::Arc; use clap::{App, Arg}; use cursive::traits::Identifiable; use cursive::{Cursive, CursiveExt}; use std::ffi::CString; use librespot_core::authentication::Credentials; use librespot_core::cache::Cache; use librespot_playback::audio_backend; mod album; mod artist; mod authentication; mod command; mod commands; mod config; mod episode; mod events; mod library; mod playable; mod playlist; mod queue; mod show; mod spotify; mod theme; mod track; mod traits; mod ui; #[cfg(feature = "mpris")] mod mpris; use crate::commands::CommandManager; use crate::events::{Event, EventManager}; use crate::library::Library; use crate::spotify::PlayerEvent; use crate::ui::contextmenu::ContextMenu; fn setup_logging(filename: &str) -> Result<(), fern::InitError> { fern::Dispatch::new() // Perform allocation-free log formatting .format(|out, message, record| { out.finish(format_args!( "{} [{}] [{}] {}", chrono::Local::now().format("[%Y-%m-%d][%H:%M:%S]"), record.target(), record.level(), message )) }) // Add blanket level filter - .level(log::LevelFilter::Trace) // - and per-module overrides .level_for("librespot", log::LevelFilter::Debug) // Output to stdout, files, and other Dispatch configurations .chain(fern::log_file(filename)?) // Apply globally .apply()?; Ok(()) } fn credentials_prompt(reset: bool, error_message: Option<String>) -> Credentials { let path = config::config_path("credentials.toml"); if reset && fs::remove_file(&path).is_err() { error!("could not delete credential file"); } if let Some(message) = error_message { let mut siv = cursive::default(); let dialog = cursive::views::Dialog::around(cursive::views::TextView::new(format!( "Connection error:\n{}", message ))) .button("Ok", |s| s.quit()); siv.add_layer(dialog); siv.run(); } let creds = crate::config::load_or_generate_default(&path, authentication::create_credentials, true) .unwrap_or_else(|e| { eprintln!("{}", e); process::exit(1); }); #[cfg(target_family = "unix")] std::fs::set_permissions(path, std::os::unix::fs::PermissionsExt::from_mode(0o600)) .unwrap_or_else(|e| { eprintln!("{}", e); process::exit(1); }); creds } type UserData = Arc<UserDataInner>; struct UserDataInner { pub cmd: CommandManager, } fn main() { let buf = CString::new("").unwrap(); unsafe { libc::setlocale(libc::LC_ALL, buf.as_ptr()) }; let backends = { let backends: Vec<&str> = audio_backend::BACKENDS.iter().map(|b| b.0).collect(); format!("Audio backends: {}", backends.join(", ")) }; let matches = App::new("ncspot") .version(env!("CARGO_PKG_VERSION")) .author("Henrik Friedrichsen <henrik@affekt.org> and contributors") .about("cross-platform ncurses Spotify client") .after_help(&*backends) .arg( Arg::with_name("debug") .short("d") .long("debug") .value_name("FILE") .help("Enable debug logging to the specified file") .takes_value(true), ) .arg( Arg::with_name("basepath") .short("b") .long("basepath") .value_name("PATH") .help("custom basepath to config/cache files") .takes_value(true), ) .get_matches(); if let Some(filename) = matches.value_of("debug") { setup_logging(filename).expect("can't setup logging"); } if let Some(basepath) = matches.value_of("basepath") { let path = PathBuf::from_str(basepath).expect("invalid path"); if !path.exists() { fs::create_dir_all(&path).expect("could not create basepath directory"); } *config::BASE_PATH.write().unwrap() = Some(path); } // Things here may cause the process to abort; we must do them before creating curses windows // otherwise the error message will not be seen by a user let cfg: crate::config::Config = config::load().unwrap_or_else(|e| { eprintln!("{}", e); process::exit(1); }); let cache = Cache::new(config::cache_path("librespot"), true); let mut credentials = { let cached_credentials = cache.credentials(); match cached_credentials { Some(c) => { info!("Using cached credentials"); c } None => credentials_prompt(false, None), } }; while let Err(error) = spotify::Spotify::test_credentials(credentials.clone()) { let reset = error .get_ref() .map_or(false, |err| err.to_string().contains("BadCredentials")); debug!("credential reset: {:?}", reset); let error_msg = match error.get_ref() { Some(inner) => inner.to_string(), None => error.to_string(), }; credentials = credentials_prompt(reset, Some(error_msg)); } let theme = theme::load(&cfg); let mut cursive = Cursive::default(); cursive.set_theme(theme.clone()); let event_manager = EventManager::new(cursive.cb_sink().clone()); let spotify = Arc::new(spotify::Spotify::new( event_manager.clone(), credentials, &cfg, )); let queue = Arc::new(queue::Queue::new(spotify.clone())); #[cfg(feature = "mpris")] let mpris_manager = Arc::new(mpris::MprisManager::new(spotify.clone(), queue.clone())); let library = Arc::new(Library::new( &event_manager, spotify.clone(), cfg.use_nerdfont.unwrap_or(false), )); let mut cmd_manager = CommandManager::new(spotify.clone(), queue.clone(), library.clone(), &cfg); cmd_manager.register_all(); cmd_manager.register_keybindings(&mut cursive); let user_data: UserData = Arc::new(UserDataInner { cmd: cmd_manager }); cursive.set_user_data(user_data); let search = ui::search::SearchView::new( event_manager.clone(), spotify.clone(), queue.clone(), library.clone(), ); let libraryview = ui::library::LibraryView::new(queue.clone(), library.clone()); let queueview = ui::queue::QueueView::new(queue.clone(), library.clone()); let status = ui::statusbar::StatusBar::new(queue.clone(), library, cfg.use_nerdfont.unwrap_or(false)); let mut layout = ui::layout::Layout::new(status, &event_manager, theme) .view("search", search.with_name("search"), "Search") .view("library", libraryview.with_name("library"), "Library") .view("queue", queueview, "Queue"); // initial view is library layout.set_view("library"); cursive.add_global_callback(':', move |s| { if s.find_name::<ContextMenu>("contextmenu").is_none() { s.call_on_name("main", |v: &mut ui::layout::Layout| { v.enable_cmdline(); }); } }); layout.cmdline.set_on_edit(move |s, cmd, _| { s.call_on_name("main", |v: &mut ui::layout::Layout| { if cmd.is_empty() { v.clear_cmdline(); } }); }); { let ev = event_manager.clone(); layout.cmdline.set_on_submit(move |s, cmd| { { let mut main = s.find_name::<ui::layout::Layout>("main").unwrap(); main.clear_cmdline(); } let c = &cmd[1..]; let parsed = command::parse(c); if let Some(parsed) = parsed { if let Some(data) = s.user_data::<UserData>().cloned() { data.cmd.handle(s, parsed) } } ev.trigger(); }); } cursive.add_fullscreen_layer(layout.with_name("main")); // cursive event loop while cursive.is_running() { cursive.step(); for event in event_manager.msg_iter() { match event { Event::Player(state) => { trace!("event received: {:?}", state); spotify.update_status(state.clone()); #[cfg(feature = "mpris")] mpris_manager.update(); if state == PlayerEvent::FinishedTrack { queue.next(false); } } Event::SessionDied => spotify.start_worker(None), } } } }
#![feature(collections)] use std::io::BufRead; use std::collections::BitVec; fn sort(mut input: BitVec, blueprint: &Vec<Vec<u32>>) -> (BitVec, u32) { for comparator in blueprint.iter().skip(1) { if input.get(comparator[0] as usize).unwrap() == false && input.get(comparator[1] as usize).unwrap() == true { input.set(comparator[0] as usize, true); input.set(comparator[1] as usize, false); }} (input, blueprint[0][0]) } fn is_sorted((output, nwire): (BitVec, u32)) -> bool { let mut control = true; for i in 0..nwire { if output.get(i as usize).unwrap() != control { if control == true { control = false } else { return false } } } true } fn main() { 'file: for ref filename in std::env::args().skip(1) { let file = match std::fs::File::open(filename) { Ok(file) => file, Err(error) => { println!("{}: {}", filename, error); continue } }; let blueprint: Vec<Vec<u32>> = std::io::BufReader::new(file).lines().map(|l| l.unwrap().split_whitespace().map(|s| s.parse().unwrap()).collect()).collect(); if blueprint[0][0] > 31 { println!("{}: can't have more than 31 wires", filename); continue } for i in 0..2u32.pow(blueprint[0][0].clone()) { let input = unsafe { std::slice::from_raw_parts(&i as *const _ as *const u8, 4) }; if !is_sorted(sort(BitVec::from_bytes(input), &blueprint)) { println!("{}: not a valid network", filename); continue 'file } } println!("{}: valid network", filename) } }
use sfml::system::*; use sfml::window::*; use sfml::graphics::*; use std::error; use crate::population::Population; use crate::pawn::Pawn; use crate::world::World; use crate::tile::Tile; use crate::tile::TileType; const TILE_WIDTH: usize = 25; const TILE_HEIGHT: usize = 25; pub struct Game { window: RenderWindow, population: Population, world: World } impl Game { pub fn new(aa_level: u32, width: u32, height: u32) -> Game { let context = ContextSettings { antialiasing_level: aa_level, ..Default::default() }; let render_window = RenderWindow::new( (width, height), "SFML", Style::CLOSE, &context ); let mut population = Population::new(); let test_pawn = Pawn::new(1, 1, String::from("test")); population.push_pawn(test_pawn); let world = World::new(100, 100); Game { window: render_window, population: population, world: world } } pub fn run(&mut self) { loop { while let Some(event) = self.window.poll_event() { match event { Event::Closed => { self.window.close(); return; }, _ => {} } } self.render(); self.window.display(); } } fn render(&mut self) { //render tiles depending on type let mut tile_rect = RectangleShape::with_size(Vector2f::new(TILE_WIDTH as f32, TILE_HEIGHT as f32)); for (i, tile) in self.world.iter().enumerate() { let &(x, y) = tile.get_position(); tile_rect.set_position(Vector2f::new((x * TILE_WIDTH as i32) as f32, (y * TILE_HEIGHT as i32) as f32)); let color: Color = match tile.get_tile_type() { TileType::Dirt => { Color::rgb(165,42,42) }, TileType::Stone => { Color::rgb(128,128,128) }, TileType::Water => { Color::BLUE.clone() }, TileType::Grass => { Color::GREEN.clone() } }; tile_rect.set_fill_color(&color); self.window.draw(&tile_rect); } } }
use tokio::sync::Semaphore; // Note: semaphore.add_permits requires this to be less than usize::MAX >> 3 const MAX_SEMAPHORE_PERMITS: usize = 1000; /// A shutdown mechanism that supports three use-cases: /// - sending a shutdown signal, /// - polling if the shutdown signal has been sent and /// - blocking to await a shutdown signal. /// /// I implemented the shutdown mechanism using a semaphore. The semaphore is initialised to 0, and /// it is incremented to 1 once the shutdown signal has been sent. Blocking until the shutdown /// signal is sent is implemented by waiting on the semaphore. The semaphore also supports /// non-blocking polling, therefore to see if the signal has been sent, I can poll the semaphore to /// see if its counter is above 0. #[derive(Debug)] pub struct ShutdownSignal { semaphore: Semaphore, } impl ShutdownSignal { pub fn new() -> Self { Self { semaphore: Semaphore::new(0), } } pub fn poll_terminated(&self) -> bool { self.semaphore.try_acquire().is_ok() } pub fn shutdown(&self) { self.semaphore.add_permits(MAX_SEMAPHORE_PERMITS); } pub async fn await_shutdown_signal(&self) { let _permit = self.semaphore.acquire().await; } // _permit dropped here } #[cfg(test)] mod tests { use std::time::Duration; use futures::future::join; use tokio::time::delay_for; use super::*; #[test] fn test_shutdown() { let signal = ShutdownSignal::new(); signal.shutdown(); } #[tokio::test] async fn test_async() { use std::sync::Arc; let signal = Arc::new(ShutdownSignal::new()); let s1 = signal.clone(); let th1 = tokio::spawn(async move { delay_for(Duration::from_millis(200)).await; let signal = s1; signal.shutdown(); }); join(th1, signal.await_shutdown_signal()).await; } }
use std::cell::RefCell; use std::fmt; use std::rc::Rc; use crate::function::Function; use crate::object::*; #[derive(PartialEq)] pub enum Value { Bool(bool), Nil, Number(f64), Obj(Rc<Obj>), } impl Value { pub fn new_with_object(obj: Obj) -> Value { let obj = Rc::new(obj); Value::Obj(obj) } pub fn new_string(s: &str) -> Value { let s = String::from(s); let s = Obj::new_string(s); Value::new_with_object(s) } pub fn new_closure(function: &Rc<Function>, upvalues: Vec<Rc<RefCell<ObjUpvalue>>>) -> Value { let c = Obj::new_closure(function, upvalues); Value::new_with_object(c) } pub fn with_closure(closure: &Rc<ObjClosure>) -> Value { let c = Obj::with_closure(closure); Value::new_with_object(c) } pub fn is_number(&self) -> bool { match self { Value::Number(_) => true, _ => false, } } pub fn is_string(&self) -> bool { match self { Value::Obj(x) => x.is_string(), _ => false, } } pub fn is_falsey_rust(&self) -> bool { match self { Value::Bool(x) => !x, Value::Nil => true, _ => false, } } pub fn is_falsey(&self) -> Value { Value::Bool(self.is_falsey_rust()) } pub fn as_obj(&self) -> Option<&Rc<Obj>> { match self { Value::Obj(obj) => Some(obj), _ => None, } } pub fn as_closure(&self) -> Option<&Rc<ObjClosure>> { self.as_obj().and_then(|obj| obj.as_closure()) } } impl Clone for Value { fn clone(&self) -> Self { match self { Value::Bool(x) => Value::Bool(*x), Value::Nil => Value::Nil, Value::Number(x) => Value::Number(*x), Value::Obj(o) => { let o = Rc::clone(o); Value::Obj(o) } } } } impl fmt::Display for Value { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self { Value::Bool(x) => write!(f, "{}", x), Value::Nil => write!(f, "nil"), Value::Number(x) => write!(f, "{}", x), Value::Obj(x) => write!(f, "{}", x), } } } impl fmt::Debug for Value { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self) } }
//! Conversions between AnyLuaValue and structures. //! Also see macros. pub mod serialize; pub mod deserialize; pub mod json; pub use self::serialize::ToTable; pub use self::deserialize:: {FromTable, LuaDecoder, ConverterError, ConvertResult}; // Tests for serialize <-> deserialize compatability #[cfg(test)] mod tests { use hlua::any::AnyLuaValue; use hlua::any::AnyLuaValue::*; use super::*; #[derive(Debug, Clone, PartialEq, Eq, Hash)] struct Point { x: i32, y: u32 } #[derive(Debug, Clone, PartialEq, Eq)] struct Coord { name: String, point: Point } impl ToTable for Point { fn to_table(self) -> AnyLuaValue { LuaArray(vec![ (LuaString("x".to_string()), LuaNumber(self.x as f64)), (LuaString("y".to_string()), LuaNumber(self.y as f64)) ]) } } impl ToTable for Coord { fn to_table(self) -> AnyLuaValue { LuaArray(vec![ (LuaString("name".to_string()), LuaString(self.name)), (LuaString("point".to_string()), self.point.to_table()) ]) } } impl FromTable for Point { fn from_table(decoder: LuaDecoder) -> ConvertResult<Point> { let (decoder, x) = try!(decoder.read_field("x".to_string())); let (_, y) = try!(decoder.read_field("y".to_string())); Ok(Point { x: x, y: y }) } } impl FromTable for Coord { fn from_table(decoder: LuaDecoder) -> ConvertResult<Coord> { let (decoder, name) = try!(decoder.read_field("name".to_string())); let (_, point) = try!(decoder.read_field("point".to_string())); Ok(Coord { name: name, point: point }) } } #[test] fn test_point_and_coord() { let origin = Point { x: 0 , y: 0 }; let origin_table = origin.clone().to_table(); let origin_from_table = Point::from_lua_table(origin_table); assert_eq!(origin, origin_from_table.unwrap()); } }
// 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. const MaximumEvents: usize = 1024; /// Wraps event polling. #[derive(Debug)] pub(crate) struct EventPoll { arenas: Arenas, epoll_file_descriptor: EPollFileDescriptor, time_out: EPollTimeOut, spurious_event_suppression_of_already_closed_file_descriptors: UnsafeCell<HashSet<EventPollToken>>, } impl ArenasRegistrar for EventPoll { #[inline(always)] fn register_arena<A: Arena<R> + 'static, R: Reactor + 'static, T: Terminate>(&mut self, arena: A) -> CompressedTypeIdentifier { self.arenas.register_arena::<A, R, T>(arena) } } impl ReactorsRegistrar for EventPoll { #[inline(always)] unsafe fn add_a_new_reactor_efficiently<A: Arena<R> + 'static, R: Reactor + 'static>(&self, reactor_compressed_type_identifier: CompressedTypeIdentifier, registration_data: R::RegistrationData) -> Result<(), EventPollRegistrationError> { let arena = self.arenas.get_arena::<A, R>(reactor_compressed_type_identifier); R::do_initial_input_and_output_and_register_with_epoll_if_necesssary::<A, Self>(self, arena, reactor_compressed_type_identifier, registration_data) } #[inline(always)] fn add_a_new_reactor_slightly_slowly<A: Arena<R> + 'static, R: Reactor + 'static>(&self, registration_data: R::RegistrationData) -> Result<(), EventPollRegistrationError> { let (arena, reactor_compressed_type_identifier) = self.arenas.get_arena_and_reactor_compressed_type_identifier::<A, R>(); R::do_initial_input_and_output_and_register_with_epoll_if_necesssary::<A, Self>(self, arena, reactor_compressed_type_identifier, registration_data) } } impl EventPollRegister for EventPoll { #[inline(always)] fn register<A: Arena<R>, R: Reactor, F: FnOnce(&mut R, R::FileDescriptor) -> Result<(), EventPollRegistrationError>>(&self, arena: &A, reactor_compressed_type_identifier: CompressedTypeIdentifier, file_descriptor: R::FileDescriptor, add_flags: EPollAddFlags, initializer: F) -> Result<(), EventPollRegistrationError> { let (mut non_null, arena_index) = arena.allocate()?; let event_poll_token = EventPollToken::new(reactor_compressed_type_identifier, arena_index); match self.epoll_file_descriptor.add(file_descriptor.as_raw_fd(), add_flags, event_poll_token.0) { Err(error) => { arena.reclaim(arena_index); Err(EventPollRegistrationError::from(error)) } Ok(()) => { let uninitialized_reactor = unsafe { non_null.as_mut() }; initializer(uninitialized_reactor, file_descriptor) } } } } impl EventPoll { /// Creates a new instance. /// /// Only one instance per thread is normally required. #[inline(always)] pub(crate) fn new(arenas: Arenas, time_out_milliseconds: u16) -> Result<Self, CreationError> { Ok ( Self { arenas, epoll_file_descriptor: EPollFileDescriptor::new()?, time_out: EPollTimeOut::in_n_milliseconds(time_out_milliseconds), spurious_event_suppression_of_already_closed_file_descriptors: UnsafeCell::new(HashSet::with_capacity(MaximumEvents)) } ) } /// One iteration of an event loop. /// /// If interrupted by a signal then re-waits on epoll unless terminate has become true. #[inline(always)] pub(crate) fn event_loop_iteration<T: Terminate>(&self, terminate: &T) -> Result<(), String> { let mut events: [epoll_event; MaximumEvents] = unsafe { uninitialized() }; self.spurious_event_suppression_of_already_closed_file_descriptors().clear(); let ready_events = loop { match self.epoll_file_descriptor.wait(&mut events, self.time_out) { Ok(ready_events) => break ready_events, Err(EPollWaitError::Interrupted) => if likely!(terminate.should_continue()) { continue } else { return Ok(()) }, } }; for ready_event in ready_events { let event_poll_token = EventPollToken(ready_event.token()); if unlikely!(self.spurious_event_suppression_of_already_closed_file_descriptors().contains(&event_poll_token)) { continue } let result = self.react::<T>(event_poll_token, ready_event.flags(), terminate); if let Err(reason) = result { terminate.begin_termination(); return Err(reason) } } Ok(()) } #[inline(always)] fn spurious_event_suppression_of_already_closed_file_descriptors(&self) -> &mut HashSet<EventPollToken> { unsafe { &mut * self.spurious_event_suppression_of_already_closed_file_descriptors.get() } } #[inline(always)] fn react<T: Terminate>(&self, event_poll_token: EventPollToken, event_flags: EPollEventFlags, terminate: &T) -> Result<(), String> { let reactor_compressed_type_identifier = event_poll_token.reactor_compressed_type_identifier(); let (unsized_arena, react_function_pointer) = self.arenas.get_unsized_arena_and_react_function_pointer(reactor_compressed_type_identifier); react_function_pointer(self, unsized_arena, event_poll_token, event_flags, unsafe { NonNull::new_unchecked(terminate as *const _ as *mut _) }) } #[inline(always)] pub(crate) fn react_function_pointer<A: Arena<R>, R: Reactor, T: Terminate>(&self, arena: NonNull<A>, event_poll_token: EventPollToken, event_flags: EPollEventFlags, terminate: NonNull<T>) -> Result<(), String> { let arena = unsafe { & * arena.as_ptr() }; let terminate = unsafe { & * terminate.as_ptr() }; let arena_index = event_poll_token.arena_index(); let reactor = arena.get(arena_index); match reactor.react(event_flags, terminate) { Err(reason) => Err(reason), Ok(dispose) => { if unlikely!(dispose) { let first_insertion = self.spurious_event_suppression_of_already_closed_file_descriptors().insert(event_poll_token); debug_assert!(first_insertion, "Spurious event somehow not captured and double-close of file descriptor occurred"); arena.reclaim(arena_index); } Ok(()) } } } }
#![allow(dead_code)] use std::convert::TryInto; pub fn strin(s: &String, n: u32) -> char { let mut x = 0; let mut ret = '\0'; for c in s.chars() { if x == n { ret = c; break; } x+=1; } ret } pub fn strcmp(s1: &String,s2: &String) -> i8{ // Return 0: Strings match // Return 1: Unmatched char found // Return -1: Lengths different let t1 = s1; let t2 = s2; let mut ret = 0; let l = t1.len(); if l != t2.len() { ret = -1; } if ret == 0 { let mut x: u32 = 0; while x < l.try_into().unwrap() { if strin(t1,x) != strin(t2,x) { ret = 1; break; } x += 1; } } ret } pub fn strrev(s: &String) -> String{ let mut r = String::new(); for c in s.chars() { r = String::from(format!("{}",c))+&r } r } pub fn strsplit(s : &String, w:char) -> Vec<String> { let mut ret = vec![]; let mut tmp = String::new(); for c in s.chars() { if c == w { ret.push(tmp); tmp = String::new(); continue; } tmp = tmp + &format!("{}", c) } if tmp != String::from("") { ret.push(tmp); } ret }
mod events; mod input; mod internal; mod modules; mod time; mod window_context; use ecs::{RunSystemPhase, ECS}; use events::{EventChannel, EventSystem}; use modules::MODULE_LOADER; use renderer::RendererDevice; use window_context::WindowContext; extern crate bulletrs; extern crate cgmath; fn main() { let mut ecs = ECS::new(); let mut event_system = EventSystem::new(); let window_context = WindowContext::from_event_loop(&event_system); let renderer = RendererDevice::from_window(&window_context.window_context); let event_channel = EventChannel::new(); ecs.resources.set(renderer); ecs.resources.set(window_context); ecs.resources.set(event_channel); for loader in MODULE_LOADER.iter() { loader(&mut ecs); } while event_system.running { event_system.update_events(|event| ecs.run_systems(RunSystemPhase::Event(event))); ecs .resources .get_mut::<EventChannel>() .unwrap() .update_timers(|event| ecs.run_systems(RunSystemPhase::Update(event))); ecs.run_systems(RunSystemPhase::Render); } }