diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index 5a4f855f93..12c74c1de5 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -78,6 +78,7 @@ jobs: cargo clippy -p test_component && cargo clippy -p test_component_client && cargo clippy -p test_const_fields && + cargo clippy -p test_const_params && cargo clippy -p test_const_ptrs && cargo clippy -p test_core && cargo clippy -p test_debug && diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f631ee9262..a397590ba1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -85,6 +85,7 @@ jobs: cargo test --target ${{ matrix.target }} -p test_component && cargo test --target ${{ matrix.target }} -p test_component_client && cargo test --target ${{ matrix.target }} -p test_const_fields && + cargo test --target ${{ matrix.target }} -p test_const_params && cargo test --target ${{ matrix.target }} -p test_const_ptrs && cargo test --target ${{ matrix.target }} -p test_core && cargo test --target ${{ matrix.target }} -p test_debug && diff --git a/crates/libs/bindgen/src/constants.rs b/crates/libs/bindgen/src/constants.rs index 2639f11007..527062441a 100644 --- a/crates/libs/bindgen/src/constants.rs +++ b/crates/libs/bindgen/src/constants.rs @@ -2,7 +2,7 @@ use super::*; pub fn gen(gen: &Gen, def: Field) -> TokenStream { let name = to_ident(gen.reader.field_name(def)); - let ty = gen.reader.field_type(def, None).to_const(); + let ty = gen.reader.field_type(def, None).to_const_type(); let cfg = gen.reader.field_cfg(def); let doc = gen.cfg_doc(&cfg); let features = gen.cfg_features(&cfg); diff --git a/crates/libs/metadata/src/reader/mod.rs b/crates/libs/metadata/src/reader/mod.rs index 368b831077..6240325a44 100644 --- a/crates/libs/metadata/src/reader/mod.rs +++ b/crates/libs/metadata/src/reader/mod.rs @@ -394,7 +394,7 @@ impl<'a> Reader<'a> { let def = self.type_from_blob(&mut blob, enclosing, &[]).expect("Type not found"); if self.field_is_const(row) { - def.to_const() + def.to_const_type().to_const_ptr() } else { def } @@ -563,15 +563,25 @@ impl<'a> Reader<'a> { blob.read_usize(); blob.read_usize(); - let return_type = self.type_from_blob(&mut blob, None, generics); + let mut return_type = self.type_from_blob(&mut blob, None, generics); + let mut params: Vec = self .method_def_params(row) .filter_map(|param| { if self.param_sequence(param) == 0 { + if self.param_is_const(param) { + return_type = return_type.clone().map(|ty| ty.to_const_type()); + } None } else { - let ty = self.type_from_blob(&mut blob, None, generics).expect("Parameter type not found"); - let ty = if !self.param_flags(param).contains(ParamAttributes::OUTPUT) { ty.to_const() } else { ty }; + let is_output = self.param_flags(param).contains(ParamAttributes::OUTPUT); + let mut ty = self.type_from_blob(&mut blob, None, generics).expect("Parameter type not found"); + if self.param_is_const(param) || !is_output { + ty = ty.to_const_type(); + } + if !is_output { + ty = ty.to_const_ptr(); + } let kind = self.param_kind(param); Some(SignatureParam { def: param, ty, kind }) } @@ -788,6 +798,9 @@ impl<'a> Reader<'a> { } None } + pub fn param_is_const(&self, row: Param) -> bool { + self.param_attributes(row).any(|attribute| self.attribute_name(attribute) == "ConstAttribute") + } // // TypeDef table queries diff --git a/crates/libs/metadata/src/reader/type.rs b/crates/libs/metadata/src/reader/type.rs index 7f03f43b7d..222f901501 100644 --- a/crates/libs/metadata/src/reader/type.rs +++ b/crates/libs/metadata/src/reader/type.rs @@ -64,18 +64,25 @@ impl Type { } } - /// Converts the `Type` to an equivalent `const` variant if appropriate, typically used when the - /// mutability is informed by something outside of the type signature. - pub fn to_const(self) -> Self { + /// Converts the `Type` to an equivalent `const` variant if appropriate. + pub fn to_const_type(self) -> Self { match self { - Self::MutPtr(p) => Self::ConstPtr(p).to_const(), - Self::ConstPtr((kind, pointers)) => Self::ConstPtr((Box::new(kind.to_const()), pointers)), + Self::MutPtr((kind, pointers)) => Self::MutPtr((Box::new(kind.to_const_type()), pointers)), + Self::ConstPtr((kind, pointers)) => Self::ConstPtr((Box::new(kind.to_const_type()), pointers)), Self::PSTR => Self::PCSTR, Self::PWSTR => Self::PCWSTR, _ => self, } } + /// Converts a mutable pointer type, if appropriate, to a const pointer type. + pub fn to_const_ptr(self) -> Self { + match self { + Self::MutPtr((kind, pointers)) => Self::ConstPtr((kind, pointers)), + _ => self, + } + } + /// Removes one level of indirection, typically used when transforming a logical return or array parameter /// from its underlying type signature. pub fn deref(&self) -> Self { diff --git a/crates/libs/sys/src/Windows/Win32/Devices/AllJoyn/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/AllJoyn/mod.rs index fa17198d54..c1f52e38eb 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/AllJoyn/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/AllJoyn/mod.rs @@ -14,7 +14,7 @@ ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`, `\"Win32_Foundation\"`*"] fn AllJoynReceiveFromBus ( connectedbushandle : super::super::Foundation:: HANDLE , buffer : *mut ::core::ffi::c_void , bytestoread : u32 , bytestransferred : *mut u32 , reserved : *mut ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`, `\"Win32_Foundation\"`*"] fn AllJoynSendToBus ( connectedbushandle : super::super::Foundation:: HANDLE , buffer : *const ::core::ffi::c_void , bytestowrite : u32 , bytestransferred : *mut u32 , reserved : *mut ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn QCC_StatusText ( status : QStatus ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn QCC_StatusText ( status : QStatus ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_aboutdata_create ( defaultlanguage : :: windows_sys::core::PCSTR ) -> alljoyn_aboutdata ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_aboutdata_create_empty ( ) -> alljoyn_aboutdata ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_aboutdata_create_full ( arg : alljoyn_msgarg , language : :: windows_sys::core::PCSTR ) -> alljoyn_aboutdata ); @@ -33,7 +33,7 @@ ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_aboutdata_getdevicename ( data : alljoyn_aboutdata , devicename : *mut *mut i8 , language : :: windows_sys::core::PCSTR ) -> QStatus ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_aboutdata_getfield ( data : alljoyn_aboutdata , name : :: windows_sys::core::PCSTR , value : *mut alljoyn_msgarg , language : :: windows_sys::core::PCSTR ) -> QStatus ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_aboutdata_getfields ( data : alljoyn_aboutdata , fields : *const *const i8 , num_fields : usize ) -> usize ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_aboutdata_getfieldsignature ( data : alljoyn_aboutdata , fieldname : :: windows_sys::core::PCSTR ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_aboutdata_getfieldsignature ( data : alljoyn_aboutdata , fieldname : :: windows_sys::core::PCSTR ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_aboutdata_gethardwareversion ( data : alljoyn_aboutdata , hardwareversion : *mut *mut i8 ) -> QStatus ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_aboutdata_getmanufacturer ( data : alljoyn_aboutdata , manufacturer : *mut *mut i8 , language : :: windows_sys::core::PCSTR ) -> QStatus ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_aboutdata_getmodelnumber ( data : alljoyn_aboutdata , modelnumber : *mut *mut i8 ) -> QStatus ); @@ -146,16 +146,16 @@ ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busattachment_getalljoyndebugobj ( bus : alljoyn_busattachment ) -> alljoyn_proxybusobject ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busattachment_getalljoynproxyobj ( bus : alljoyn_busattachment ) -> alljoyn_proxybusobject ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busattachment_getconcurrency ( bus : alljoyn_busattachment ) -> u32 ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busattachment_getconnectspec ( bus : alljoyn_busattachment ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busattachment_getconnectspec ( bus : alljoyn_busattachment ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busattachment_getdbusproxyobj ( bus : alljoyn_busattachment ) -> alljoyn_proxybusobject ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busattachment_getglobalguidstring ( bus : alljoyn_busattachment ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busattachment_getglobalguidstring ( bus : alljoyn_busattachment ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busattachment_getinterface ( bus : alljoyn_busattachment , name : :: windows_sys::core::PCSTR ) -> alljoyn_interfacedescription ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busattachment_getinterfaces ( bus : alljoyn_busattachment , ifaces : *const alljoyn_interfacedescription , numifaces : usize ) -> usize ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busattachment_getkeyexpiration ( bus : alljoyn_busattachment , guid : :: windows_sys::core::PCSTR , timeout : *mut u32 ) -> QStatus ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busattachment_getpeerguid ( bus : alljoyn_busattachment , name : :: windows_sys::core::PCSTR , guid : :: windows_sys::core::PCSTR , guidsz : *mut usize ) -> QStatus ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busattachment_getpermissionconfigurator ( bus : alljoyn_busattachment ) -> alljoyn_permissionconfigurator ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busattachment_gettimestamp ( ) -> u32 ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busattachment_getuniquename ( bus : alljoyn_busattachment ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busattachment_getuniquename ( bus : alljoyn_busattachment ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busattachment_isconnected ( bus : alljoyn_busattachment ) -> i32 ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busattachment_ispeersecurityenabled ( bus : alljoyn_busattachment ) -> i32 ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busattachment_isstarted ( bus : alljoyn_busattachment ) -> i32 ); @@ -214,7 +214,7 @@ ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busobject_getannouncedinterfacenames ( bus : alljoyn_busobject , interfaces : *const *const i8 , numinterfaces : usize ) -> usize ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busobject_getbusattachment ( bus : alljoyn_busobject ) -> alljoyn_busattachment ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busobject_getname ( bus : alljoyn_busobject , buffer : :: windows_sys::core::PCSTR , buffersz : usize ) -> usize ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busobject_getpath ( bus : alljoyn_busobject ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busobject_getpath ( bus : alljoyn_busobject ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busobject_issecure ( bus : alljoyn_busobject ) -> i32 ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busobject_methodreply_args ( bus : alljoyn_busobject , msg : alljoyn_message , args : alljoyn_msgarg , numargs : usize ) -> QStatus ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_busobject_methodreply_err ( bus : alljoyn_busobject , msg : alljoyn_message , error : :: windows_sys::core::PCSTR , errormessage : :: windows_sys::core::PCSTR ) -> QStatus ); @@ -224,12 +224,12 @@ ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_credentials_clear ( cred : alljoyn_credentials ) -> ( ) ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_credentials_create ( ) -> alljoyn_credentials ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_credentials_destroy ( cred : alljoyn_credentials ) -> ( ) ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_credentials_getcertchain ( cred : alljoyn_credentials ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_credentials_getcertchain ( cred : alljoyn_credentials ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_credentials_getexpiration ( cred : alljoyn_credentials ) -> u32 ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_credentials_getlogonentry ( cred : alljoyn_credentials ) -> :: windows_sys::core::PSTR ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_credentials_getpassword ( cred : alljoyn_credentials ) -> :: windows_sys::core::PSTR ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_credentials_getprivateKey ( cred : alljoyn_credentials ) -> :: windows_sys::core::PSTR ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_credentials_getusername ( cred : alljoyn_credentials ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_credentials_getlogonentry ( cred : alljoyn_credentials ) -> :: windows_sys::core::PCSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_credentials_getpassword ( cred : alljoyn_credentials ) -> :: windows_sys::core::PCSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_credentials_getprivateKey ( cred : alljoyn_credentials ) -> :: windows_sys::core::PCSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_credentials_getusername ( cred : alljoyn_credentials ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_credentials_isset ( cred : alljoyn_credentials , creds : u16 ) -> i32 ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_credentials_setcertchain ( cred : alljoyn_credentials , certchain : :: windows_sys::core::PCSTR ) -> ( ) ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_credentials_setexpiration ( cred : alljoyn_credentials , expiration : u32 ) -> ( ) ); @@ -237,9 +237,9 @@ ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_credentials_setpassword ( cred : alljoyn_credentials , pwd : :: windows_sys::core::PCSTR ) -> ( ) ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_credentials_setprivatekey ( cred : alljoyn_credentials , pk : :: windows_sys::core::PCSTR ) -> ( ) ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_credentials_setusername ( cred : alljoyn_credentials , username : :: windows_sys::core::PCSTR ) -> ( ) ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_getbuildinfo ( ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_getbuildinfo ( ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_getnumericversion ( ) -> u32 ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_getversion ( ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_getversion ( ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_init ( ) -> QStatus ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_interfacedescription_activate ( iface : alljoyn_interfacedescription ) -> ( ) ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_interfacedescription_addannotation ( iface : alljoyn_interfacedescription , name : :: windows_sys::core::PCSTR , value : :: windows_sys::core::PCSTR ) -> QStatus ); @@ -265,7 +265,7 @@ ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_interfacedescription_getmemberdescriptionforlanguage ( iface : alljoyn_interfacedescription , member : :: windows_sys::core::PCSTR , description : :: windows_sys::core::PCSTR , maxlanguagelength : usize , languagetag : :: windows_sys::core::PCSTR ) -> usize ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_interfacedescription_getmembers ( iface : alljoyn_interfacedescription , members : *mut alljoyn_interfacedescription_member , nummembers : usize ) -> usize ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_interfacedescription_getmethod ( iface : alljoyn_interfacedescription , name : :: windows_sys::core::PCSTR , member : *mut alljoyn_interfacedescription_member ) -> i32 ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_interfacedescription_getname ( iface : alljoyn_interfacedescription ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_interfacedescription_getname ( iface : alljoyn_interfacedescription ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_interfacedescription_getproperties ( iface : alljoyn_interfacedescription , props : *mut alljoyn_interfacedescription_property , numprops : usize ) -> usize ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_interfacedescription_getproperty ( iface : alljoyn_interfacedescription , name : :: windows_sys::core::PCSTR , property : *mut alljoyn_interfacedescription_property ) -> i32 ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_interfacedescription_getpropertyannotation ( iface : alljoyn_interfacedescription , property : :: windows_sys::core::PCSTR , name : :: windows_sys::core::PCSTR , value : :: windows_sys::core::PCSTR , str_size : *mut usize ) -> i32 ); @@ -310,20 +310,20 @@ ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_eql ( one : alljoyn_message , other : alljoyn_message ) -> i32 ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getarg ( msg : alljoyn_message , argn : usize ) -> alljoyn_msgarg ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getargs ( msg : alljoyn_message , numargs : *mut usize , args : *mut alljoyn_msgarg ) -> ( ) ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getauthmechanism ( msg : alljoyn_message ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getauthmechanism ( msg : alljoyn_message ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getcallserial ( msg : alljoyn_message ) -> u32 ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getcompressiontoken ( msg : alljoyn_message ) -> u32 ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getdestination ( msg : alljoyn_message ) -> :: windows_sys::core::PSTR ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_geterrorname ( msg : alljoyn_message , errormessage : :: windows_sys::core::PCSTR , errormessage_size : *mut usize ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getdestination ( msg : alljoyn_message ) -> :: windows_sys::core::PCSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_geterrorname ( msg : alljoyn_message , errormessage : :: windows_sys::core::PCSTR , errormessage_size : *mut usize ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getflags ( msg : alljoyn_message ) -> u8 ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getinterface ( msg : alljoyn_message ) -> :: windows_sys::core::PSTR ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getmembername ( msg : alljoyn_message ) -> :: windows_sys::core::PSTR ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getobjectpath ( msg : alljoyn_message ) -> :: windows_sys::core::PSTR ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getreceiveendpointname ( msg : alljoyn_message ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getinterface ( msg : alljoyn_message ) -> :: windows_sys::core::PCSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getmembername ( msg : alljoyn_message ) -> :: windows_sys::core::PCSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getobjectpath ( msg : alljoyn_message ) -> :: windows_sys::core::PCSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getreceiveendpointname ( msg : alljoyn_message ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getreplyserial ( msg : alljoyn_message ) -> u32 ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getsender ( msg : alljoyn_message ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getsender ( msg : alljoyn_message ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getsessionid ( msg : alljoyn_message ) -> u32 ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getsignature ( msg : alljoyn_message ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_getsignature ( msg : alljoyn_message ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_gettimestamp ( msg : alljoyn_message ) -> u32 ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_gettype ( msg : alljoyn_message ) -> alljoyn_messagetype ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_message_isbroadcastsignal ( msg : alljoyn_message ) -> i32 ); @@ -351,7 +351,7 @@ ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_msgarg_equal ( lhv : alljoyn_msgarg , rhv : alljoyn_msgarg ) -> i32 ); ::windows_sys::core::link ! ( "msajapi.dll""cdecl" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_msgarg_get ( arg : alljoyn_msgarg , signature : :: windows_sys::core::PCSTR ) -> QStatus ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_msgarg_get_array_element ( arg : alljoyn_msgarg , index : usize , element : *mut alljoyn_msgarg ) -> ( ) ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_msgarg_get_array_elementsignature ( arg : alljoyn_msgarg , index : usize ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_msgarg_get_array_elementsignature ( arg : alljoyn_msgarg , index : usize ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_msgarg_get_array_numberofelements ( arg : alljoyn_msgarg ) -> usize ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_msgarg_get_bool ( arg : alljoyn_msgarg , b : *mut i32 ) -> QStatus ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_msgarg_get_bool_array ( arg : alljoyn_msgarg , length : *mut usize , ab : *mut i32 ) -> QStatus ); @@ -476,12 +476,12 @@ ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_proxybusobject_getchildren ( proxyobj : alljoyn_proxybusobject , children : *mut alljoyn_proxybusobject , numchildren : usize ) -> usize ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_proxybusobject_getinterface ( proxyobj : alljoyn_proxybusobject , iface : :: windows_sys::core::PCSTR ) -> alljoyn_interfacedescription ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_proxybusobject_getinterfaces ( proxyobj : alljoyn_proxybusobject , ifaces : *const alljoyn_interfacedescription , numifaces : usize ) -> usize ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_proxybusobject_getpath ( proxyobj : alljoyn_proxybusobject ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_proxybusobject_getpath ( proxyobj : alljoyn_proxybusobject ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_proxybusobject_getproperty ( proxyobj : alljoyn_proxybusobject , iface : :: windows_sys::core::PCSTR , property : :: windows_sys::core::PCSTR , value : alljoyn_msgarg ) -> QStatus ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_proxybusobject_getpropertyasync ( proxyobj : alljoyn_proxybusobject , iface : :: windows_sys::core::PCSTR , property : :: windows_sys::core::PCSTR , callback : alljoyn_proxybusobject_listener_getpropertycb_ptr , timeout : u32 , context : *mut ::core::ffi::c_void ) -> QStatus ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_proxybusobject_getservicename ( proxyobj : alljoyn_proxybusobject ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_proxybusobject_getservicename ( proxyobj : alljoyn_proxybusobject ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_proxybusobject_getsessionid ( proxyobj : alljoyn_proxybusobject ) -> u32 ); -::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_proxybusobject_getuniquename ( proxyobj : alljoyn_proxybusobject ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_proxybusobject_getuniquename ( proxyobj : alljoyn_proxybusobject ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_proxybusobject_implementsinterface ( proxyobj : alljoyn_proxybusobject , iface : :: windows_sys::core::PCSTR ) -> i32 ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_proxybusobject_introspectremoteobject ( proxyobj : alljoyn_proxybusobject ) -> QStatus ); ::windows_sys::core::link ! ( "msajapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] fn alljoyn_proxybusobject_introspectremoteobjectasync ( proxyobj : alljoyn_proxybusobject , callback : alljoyn_proxybusobject_listener_introspectcb_ptr , context : *mut ::core::ffi::c_void ) -> QStatus ); @@ -1902,7 +1902,7 @@ pub type alljoyn_busobject_prop_get_ptr = ::core::option::Option QStatus>; #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] -pub type alljoyn_interfacedescription_translation_callback_ptr = ::core::option::Option ::windows_sys::core::PSTR>; +pub type alljoyn_interfacedescription_translation_callback_ptr = ::core::option::Option ::windows_sys::core::PCSTR>; #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] pub type alljoyn_keystorelistener_acquireexclusivelock_ptr = ::core::option::Option QStatus>; #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] diff --git a/crates/libs/sys/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs index e04f54a30d..48d06f53de 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs @@ -658,9 +658,9 @@ #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "setupapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] fn SetupFindNextMatchLineW ( contextin : *const INFCONTEXT , key : :: windows_sys::core::PCWSTR , contextout : *mut INFCONTEXT ) -> super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] -::windows_sys::core::link ! ( "setupapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] fn SetupFreeSourceListA ( list : *mut *mut :: windows_sys::core::PSTR , count : u32 ) -> super::super::Foundation:: BOOL ); +::windows_sys::core::link ! ( "setupapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] fn SetupFreeSourceListA ( list : *mut *mut :: windows_sys::core::PCSTR , count : u32 ) -> super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] -::windows_sys::core::link ! ( "setupapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] fn SetupFreeSourceListW ( list : *mut *mut :: windows_sys::core::PWSTR , count : u32 ) -> super::super::Foundation:: BOOL ); +::windows_sys::core::link ! ( "setupapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] fn SetupFreeSourceListW ( list : *mut *mut :: windows_sys::core::PCWSTR , count : u32 ) -> super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "setupapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] fn SetupGetBackupInformationA ( queuehandle : *const ::core::ffi::c_void , backupparams : *mut SP_BACKUP_QUEUE_PARAMS_V2_A ) -> super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] @@ -816,9 +816,9 @@ #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "setupapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] fn SetupQueryInfVersionInformationW ( infinformation : *const SP_INF_INFORMATION , infindex : u32 , key : :: windows_sys::core::PCWSTR , returnbuffer : :: windows_sys::core::PWSTR , returnbuffersize : u32 , requiredsize : *mut u32 ) -> super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] -::windows_sys::core::link ! ( "setupapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] fn SetupQuerySourceListA ( flags : u32 , list : *mut *mut :: windows_sys::core::PSTR , count : *mut u32 ) -> super::super::Foundation:: BOOL ); +::windows_sys::core::link ! ( "setupapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] fn SetupQuerySourceListA ( flags : u32 , list : *mut *mut :: windows_sys::core::PCSTR , count : *mut u32 ) -> super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] -::windows_sys::core::link ! ( "setupapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] fn SetupQuerySourceListW ( flags : u32 , list : *mut *mut :: windows_sys::core::PWSTR , count : *mut u32 ) -> super::super::Foundation:: BOOL ); +::windows_sys::core::link ! ( "setupapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] fn SetupQuerySourceListW ( flags : u32 , list : *mut *mut :: windows_sys::core::PCWSTR , count : *mut u32 ) -> super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "setupapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] fn SetupQuerySpaceRequiredOnDriveA ( diskspace : *const ::core::ffi::c_void , drivespec : :: windows_sys::core::PCSTR , spacerequired : *mut i64 , reserved1 : *const ::core::ffi::c_void , reserved2 : u32 ) -> super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] diff --git a/crates/libs/sys/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs index 5eb84e101f..f95b2c3799 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs @@ -29,7 +29,7 @@ ::windows_sys::core::link ! ( "wsdapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_WebServicesOnDevices\"`*"] fn WSDXMLCleanupElement ( pany : *mut WSDXML_ELEMENT ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "wsdapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_WebServicesOnDevices\"`*"] fn WSDXMLCreateContext ( ppcontext : *mut IWSDXMLContext ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "wsdapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_WebServicesOnDevices\"`*"] fn WSDXMLGetNameFromBuiltinNamespace ( psznamespace : :: windows_sys::core::PCWSTR , pszname : :: windows_sys::core::PCWSTR , ppname : *mut *mut WSDXML_NAME ) -> :: windows_sys::core::HRESULT ); -::windows_sys::core::link ! ( "wsdapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_WebServicesOnDevices\"`*"] fn WSDXMLGetValueFromAny ( psznamespace : :: windows_sys::core::PCWSTR , pszname : :: windows_sys::core::PCWSTR , pany : *mut WSDXML_ELEMENT , ppszvalue : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT ); +::windows_sys::core::link ! ( "wsdapi.dll""system" #[doc = "*Required features: `\"Win32_Devices_WebServicesOnDevices\"`*"] fn WSDXMLGetValueFromAny ( psznamespace : :: windows_sys::core::PCWSTR , pszname : :: windows_sys::core::PCWSTR , pany : *mut WSDXML_ELEMENT , ppszvalue : *mut :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT ); pub type IWSDAddress = *mut ::core::ffi::c_void; pub type IWSDAsyncCallback = *mut ::core::ffi::c_void; pub type IWSDAsyncResult = *mut ::core::ffi::c_void; diff --git a/crates/libs/sys/src/Windows/Win32/Globalization/mod.rs b/crates/libs/sys/src/Windows/Win32/Globalization/mod.rs index 2210b9ba8e..fb9ca149b9 100644 --- a/crates/libs/sys/src/Windows/Win32/Globalization/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Globalization/mod.rs @@ -313,7 +313,7 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn u_digit ( ch : i32 , radix : i8 ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn u_enumCharNames ( start : i32 , limit : i32 , r#fn : *mut UEnumCharNamesFn , context : *mut ::core::ffi::c_void , namechoice : UCharNameChoice , perrorcode : *mut UErrorCode ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn u_enumCharTypes ( enumrange : *mut UCharEnumTypeRange , context : *const ::core::ffi::c_void ) -> ( ) ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn u_errorName ( code : UErrorCode ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn u_errorName ( code : UErrorCode ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn u_foldCase ( c : i32 , options : u32 ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn u_forDigit ( digit : i32 , radix : i8 ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn u_formatMessage ( locale : :: windows_sys::core::PCSTR , pattern : *const u16 , patternlength : i32 , result : *mut u16 , resultlength : i32 , status : *mut UErrorCode ) -> i32 ); @@ -329,9 +329,9 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn u_getIntPropertyValue ( c : i32 , which : UProperty ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn u_getNumericValue ( c : i32 ) -> f64 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn u_getPropertyEnum ( alias : :: windows_sys::core::PCSTR ) -> UProperty ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn u_getPropertyName ( property : UProperty , namechoice : UPropertyNameChoice ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn u_getPropertyName ( property : UProperty , namechoice : UPropertyNameChoice ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn u_getPropertyValueEnum ( property : UProperty , alias : :: windows_sys::core::PCSTR ) -> i32 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn u_getPropertyValueName ( property : UProperty , value : i32 , namechoice : UPropertyNameChoice ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn u_getPropertyValueName ( property : UProperty , value : i32 , namechoice : UPropertyNameChoice ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn u_getUnicodeVersion ( versionarray : *mut u8 ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn u_getVersion ( versionarray : *mut u8 ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn u_hasBinaryProperty ( c : i32 , which : UProperty ) -> i8 ); @@ -486,9 +486,9 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ubrk_current ( bi : *const UBreakIterator ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ubrk_first ( bi : *mut UBreakIterator ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ubrk_following ( bi : *mut UBreakIterator , offset : i32 ) -> i32 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ubrk_getAvailable ( index : i32 ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ubrk_getAvailable ( index : i32 ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ubrk_getBinaryRules ( bi : *mut UBreakIterator , binaryrules : *mut u8 , rulescapacity : i32 , status : *mut UErrorCode ) -> i32 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ubrk_getLocaleByType ( bi : *const UBreakIterator , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ubrk_getLocaleByType ( bi : *const UBreakIterator , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ubrk_getRuleStatus ( bi : *mut UBreakIterator ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ubrk_getRuleStatusVec ( bi : *mut UBreakIterator , fillinvec : *mut i32 , capacity : i32 , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ubrk_isBoundary ( bi : *mut UBreakIterator , offset : i32 ) -> i8 ); @@ -512,7 +512,7 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_equivalentTo ( cal1 : *const *const ::core::ffi::c_void , cal2 : *const *const ::core::ffi::c_void ) -> i8 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_get ( cal : *const *const ::core::ffi::c_void , field : UCalendarDateFields , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getAttribute ( cal : *const *const ::core::ffi::c_void , attr : UCalendarAttribute ) -> i32 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getAvailable ( localeindex : i32 ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getAvailable ( localeindex : i32 ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getCanonicalTimeZoneID ( id : *const u16 , len : i32 , result : *mut u16 , resultcapacity : i32 , issystemid : *mut i8 , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getDSTSavings ( zoneid : *const u16 , ec : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getDayOfWeekType ( cal : *const *const ::core::ffi::c_void , dayofweek : UCalendarDaysOfWeek , status : *mut UErrorCode ) -> UCalendarWeekdayType ); @@ -522,15 +522,15 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getHostTimeZone ( result : *mut u16 , resultcapacity : i32 , ec : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getKeywordValuesForLocale ( key : :: windows_sys::core::PCSTR , locale : :: windows_sys::core::PCSTR , commonlyused : i8 , status : *mut UErrorCode ) -> *mut UEnumeration ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getLimit ( cal : *const *const ::core::ffi::c_void , field : UCalendarDateFields , r#type : UCalendarLimitType , status : *mut UErrorCode ) -> i32 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getLocaleByType ( cal : *const *const ::core::ffi::c_void , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getLocaleByType ( cal : *const *const ::core::ffi::c_void , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getMillis ( cal : *const *const ::core::ffi::c_void , status : *mut UErrorCode ) -> f64 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getNow ( ) -> f64 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getTZDataVersion ( status : *mut UErrorCode ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getTZDataVersion ( status : *mut UErrorCode ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getTimeZoneDisplayName ( cal : *const *const ::core::ffi::c_void , r#type : UCalendarDisplayNameType , locale : :: windows_sys::core::PCSTR , result : *mut u16 , resultlength : i32 , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getTimeZoneID ( cal : *const *const ::core::ffi::c_void , result : *mut u16 , resultlength : i32 , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getTimeZoneIDForWindowsID ( winid : *const u16 , len : i32 , region : :: windows_sys::core::PCSTR , id : *mut u16 , idcapacity : i32 , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getTimeZoneTransitionDate ( cal : *const *const ::core::ffi::c_void , r#type : UTimeZoneTransitionType , transition : *mut f64 , status : *mut UErrorCode ) -> i8 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getType ( cal : *const *const ::core::ffi::c_void , status : *mut UErrorCode ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getType ( cal : *const *const ::core::ffi::c_void , status : *mut UErrorCode ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getWeekendTransition ( cal : *const *const ::core::ffi::c_void , dayofweek : UCalendarDaysOfWeek , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_getWindowsTimeZoneID ( id : *const u16 , len : i32 , winid : *mut u16 , winidcapacity : i32 , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_inDaylightTime ( cal : *const *const ::core::ffi::c_void , status : *mut UErrorCode ) -> i8 ); @@ -551,7 +551,7 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucal_setTimeZone ( cal : *mut *mut ::core::ffi::c_void , zoneid : *const u16 , len : i32 , status : *mut UErrorCode ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucasemap_close ( csm : *mut UCaseMap ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucasemap_getBreakIterator ( csm : *const UCaseMap ) -> *mut UBreakIterator ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucasemap_getLocale ( csm : *const UCaseMap ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucasemap_getLocale ( csm : *const UCaseMap ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucasemap_getOptions ( csm : *const UCaseMap ) -> u32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucasemap_open ( locale : :: windows_sys::core::PCSTR , options : u32 , perrorcode : *mut UErrorCode ) -> *mut UCaseMap ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucasemap_setBreakIterator ( csm : *mut UCaseMap , itertoadopt : *mut UBreakIterator , perrorcode : *mut UErrorCode ) -> ( ) ); @@ -586,30 +586,30 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_countAliases ( alias : :: windows_sys::core::PCSTR , perrorcode : *mut UErrorCode ) -> u16 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_countAvailable ( ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_countStandards ( ) -> u16 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_detectUnicodeSignature ( source : :: windows_sys::core::PCSTR , sourcelength : i32 , signaturelength : *mut i32 , perrorcode : *mut UErrorCode ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_detectUnicodeSignature ( source : :: windows_sys::core::PCSTR , sourcelength : i32 , signaturelength : *mut i32 , perrorcode : *mut UErrorCode ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_fixFileSeparator ( cnv : *const UConverter , source : *mut u16 , sourcelen : i32 ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_flushCache ( ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_fromAlgorithmic ( cnv : *mut UConverter , algorithmictype : UConverterType , target : :: windows_sys::core::PCSTR , targetcapacity : i32 , source : :: windows_sys::core::PCSTR , sourcelength : i32 , perrorcode : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_fromUChars ( cnv : *mut UConverter , dest : :: windows_sys::core::PCSTR , destcapacity : i32 , src : *const u16 , srclength : i32 , perrorcode : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_fromUCountPending ( cnv : *const UConverter , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_fromUnicode ( converter : *mut UConverter , target : *mut *mut i8 , targetlimit : :: windows_sys::core::PCSTR , source : *const *const u16 , sourcelimit : *const u16 , offsets : *mut i32 , flush : i8 , err : *mut UErrorCode ) -> ( ) ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getAlias ( alias : :: windows_sys::core::PCSTR , n : u16 , perrorcode : *mut UErrorCode ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getAlias ( alias : :: windows_sys::core::PCSTR , n : u16 , perrorcode : *mut UErrorCode ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getAliases ( alias : :: windows_sys::core::PCSTR , aliases : *const *const i8 , perrorcode : *mut UErrorCode ) -> ( ) ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getAvailableName ( n : i32 ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getAvailableName ( n : i32 ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getCCSID ( converter : *const UConverter , err : *mut UErrorCode ) -> i32 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getCanonicalName ( alias : :: windows_sys::core::PCSTR , standard : :: windows_sys::core::PCSTR , perrorcode : *mut UErrorCode ) -> :: windows_sys::core::PSTR ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getDefaultName ( ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getCanonicalName ( alias : :: windows_sys::core::PCSTR , standard : :: windows_sys::core::PCSTR , perrorcode : *mut UErrorCode ) -> :: windows_sys::core::PCSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getDefaultName ( ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getDisplayName ( converter : *const UConverter , displaylocale : :: windows_sys::core::PCSTR , displayname : *mut u16 , displaynamecapacity : i32 , err : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getFromUCallBack ( converter : *const UConverter , action : *mut UConverterFromUCallback , context : *const *const ::core::ffi::c_void ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getInvalidChars ( converter : *const UConverter , errbytes : :: windows_sys::core::PCSTR , len : *mut i8 , err : *mut UErrorCode ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getInvalidUChars ( converter : *const UConverter , erruchars : *mut u16 , len : *mut i8 , err : *mut UErrorCode ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getMaxCharSize ( converter : *const UConverter ) -> i8 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getMinCharSize ( converter : *const UConverter ) -> i8 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getName ( converter : *const UConverter , err : *mut UErrorCode ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getName ( converter : *const UConverter , err : *mut UErrorCode ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getNextUChar ( converter : *mut UConverter , source : *const *const i8 , sourcelimit : :: windows_sys::core::PCSTR , err : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getPlatform ( converter : *const UConverter , err : *mut UErrorCode ) -> UConverterPlatform ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getStandard ( n : u16 , perrorcode : *mut UErrorCode ) -> :: windows_sys::core::PSTR ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getStandardName ( name : :: windows_sys::core::PCSTR , standard : :: windows_sys::core::PCSTR , perrorcode : *mut UErrorCode ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getStandard ( n : u16 , perrorcode : *mut UErrorCode ) -> :: windows_sys::core::PCSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getStandardName ( name : :: windows_sys::core::PCSTR , standard : :: windows_sys::core::PCSTR , perrorcode : *mut UErrorCode ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getStarters ( converter : *const UConverter , starters : *mut i8 , err : *mut UErrorCode ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getSubstChars ( converter : *const UConverter , subchars : :: windows_sys::core::PCSTR , len : *mut i8 , err : *mut UErrorCode ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucnv_getToUCallBack ( converter : *const UConverter , action : *mut UConverterToUCallback , context : *const *const ::core::ffi::c_void ) -> ( ) ); @@ -650,7 +650,7 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucol_countAvailable ( ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucol_equal ( coll : *const UCollator , source : *const u16 , sourcelength : i32 , target : *const u16 , targetlength : i32 ) -> i8 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucol_getAttribute ( coll : *const UCollator , attr : UColAttribute , status : *mut UErrorCode ) -> UColAttributeValue ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucol_getAvailable ( localeindex : i32 ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucol_getAvailable ( localeindex : i32 ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucol_getBound ( source : *const u8 , sourcelength : i32 , boundtype : UColBoundMode , nooflevels : u32 , result : *mut u8 , resultlength : i32 , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucol_getContractionsAndExpansions ( coll : *const UCollator , contractions : *mut USet , expansions : *mut USet , addprefixes : i8 , status : *mut UErrorCode ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucol_getDisplayName ( objloc : :: windows_sys::core::PCSTR , disploc : :: windows_sys::core::PCSTR , result : *mut u16 , resultlength : i32 , status : *mut UErrorCode ) -> i32 ); @@ -659,7 +659,7 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucol_getKeywordValues ( keyword : :: windows_sys::core::PCSTR , status : *mut UErrorCode ) -> *mut UEnumeration ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucol_getKeywordValuesForLocale ( key : :: windows_sys::core::PCSTR , locale : :: windows_sys::core::PCSTR , commonlyused : i8 , status : *mut UErrorCode ) -> *mut UEnumeration ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucol_getKeywords ( status : *mut UErrorCode ) -> *mut UEnumeration ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucol_getLocaleByType ( coll : *const UCollator , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucol_getLocaleByType ( coll : *const UCollator , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucol_getMaxExpansion ( elems : *const UCollationElements , order : i32 ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucol_getMaxVariable ( coll : *const UCollator ) -> UColReorderCode ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucol_getOffset ( elems : *const UCollationElements ) -> i32 ); @@ -716,8 +716,8 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucsdet_enableInputFilter ( ucsd : *mut UCharsetDetector , filter : i8 ) -> i8 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucsdet_getAllDetectableCharsets ( ucsd : *const UCharsetDetector , status : *mut UErrorCode ) -> *mut UEnumeration ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucsdet_getConfidence ( ucsm : *const UCharsetMatch , status : *mut UErrorCode ) -> i32 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucsdet_getLanguage ( ucsm : *const UCharsetMatch , status : *mut UErrorCode ) -> :: windows_sys::core::PSTR ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucsdet_getName ( ucsm : *const UCharsetMatch , status : *mut UErrorCode ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucsdet_getLanguage ( ucsm : *const UCharsetMatch , status : *mut UErrorCode ) -> :: windows_sys::core::PCSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucsdet_getName ( ucsm : *const UCharsetMatch , status : *mut UErrorCode ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucsdet_getUChars ( ucsm : *const UCharsetMatch , buf : *mut u16 , cap : i32 , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucsdet_isInputFilterEnabled ( ucsd : *const UCharsetDetector ) -> i8 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ucsdet_open ( status : *mut UErrorCode ) -> *mut UCharsetDetector ); @@ -750,11 +750,11 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn udat_formatCalendarForFields ( format : *const *const ::core::ffi::c_void , calendar : *mut *mut ::core::ffi::c_void , result : *mut u16 , capacity : i32 , fpositer : *mut UFieldPositionIterator , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn udat_formatForFields ( format : *const *const ::core::ffi::c_void , datetoformat : f64 , result : *mut u16 , resultlength : i32 , fpositer : *mut UFieldPositionIterator , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn udat_get2DigitYearStart ( fmt : *const *const ::core::ffi::c_void , status : *mut UErrorCode ) -> f64 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn udat_getAvailable ( localeindex : i32 ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn udat_getAvailable ( localeindex : i32 ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn udat_getBooleanAttribute ( fmt : *const *const ::core::ffi::c_void , attr : UDateFormatBooleanAttribute , status : *mut UErrorCode ) -> i8 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn udat_getCalendar ( fmt : *const *const ::core::ffi::c_void ) -> *mut *mut ::core::ffi::c_void ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn udat_getContext ( fmt : *const *const ::core::ffi::c_void , r#type : UDisplayContextType , status : *mut UErrorCode ) -> UDisplayContext ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn udat_getLocaleByType ( fmt : *const *const ::core::ffi::c_void , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn udat_getLocaleByType ( fmt : *const *const ::core::ffi::c_void , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn udat_getNumberFormat ( fmt : *const *const ::core::ffi::c_void ) -> *mut *mut ::core::ffi::c_void ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn udat_getNumberFormatForField ( fmt : *const *const ::core::ffi::c_void , field : u16 ) -> *mut *mut ::core::ffi::c_void ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn udat_getSymbols ( fmt : *const *const ::core::ffi::c_void , r#type : UDateFormatSymbolType , symbolindex : i32 , result : *mut u16 , resultlength : i32 , status : *mut UErrorCode ) -> i32 ); @@ -802,7 +802,7 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn udtitvfmt_resultAsValue ( uresult : *const UFormattedDateInterval , ec : *mut UErrorCode ) -> *mut UFormattedValue ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uenum_close ( en : *mut UEnumeration ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uenum_count ( en : *mut UEnumeration , status : *mut UErrorCode ) -> i32 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uenum_next ( en : *mut UEnumeration , resultlength : *mut i32 , status : *mut UErrorCode ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uenum_next ( en : *mut UEnumeration , resultlength : *mut i32 , status : *mut UErrorCode ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uenum_openCharStringsEnumeration ( strings : *const *const i8 , count : i32 , ec : *mut UErrorCode ) -> *mut UEnumeration ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uenum_openUCharStringsEnumeration ( strings : *const *const u16 , count : i32 , ec : *mut UErrorCode ) -> *mut UEnumeration ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uenum_reset ( en : *mut UEnumeration , status : *mut UErrorCode ) -> ( ) ); @@ -814,7 +814,7 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ufmt_getArrayItemByIndex ( fmt : *mut *mut ::core::ffi::c_void , n : i32 , status : *mut UErrorCode ) -> *mut *mut ::core::ffi::c_void ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ufmt_getArrayLength ( fmt : *const *const ::core::ffi::c_void , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ufmt_getDate ( fmt : *const *const ::core::ffi::c_void , status : *mut UErrorCode ) -> f64 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ufmt_getDecNumChars ( fmt : *mut *mut ::core::ffi::c_void , len : *mut i32 , status : *mut UErrorCode ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ufmt_getDecNumChars ( fmt : *mut *mut ::core::ffi::c_void , len : *mut i32 , status : *mut UErrorCode ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ufmt_getDouble ( fmt : *mut *mut ::core::ffi::c_void , status : *mut UErrorCode ) -> f64 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ufmt_getInt64 ( fmt : *mut *mut ::core::ffi::c_void , status : *mut UErrorCode ) -> i64 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ufmt_getLong ( fmt : *mut *mut ::core::ffi::c_void , status : *mut UErrorCode ) -> i32 ); @@ -848,7 +848,7 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uldn_close ( ldn : *mut ULocaleDisplayNames ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uldn_getContext ( ldn : *const ULocaleDisplayNames , r#type : UDisplayContextType , perrorcode : *mut UErrorCode ) -> UDisplayContext ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uldn_getDialectHandling ( ldn : *const ULocaleDisplayNames ) -> UDialectHandling ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uldn_getLocale ( ldn : *const ULocaleDisplayNames ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uldn_getLocale ( ldn : *const ULocaleDisplayNames ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uldn_keyDisplayName ( ldn : *const ULocaleDisplayNames , key : :: windows_sys::core::PCSTR , result : *mut u16 , maxresultsize : i32 , perrorcode : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uldn_keyValueDisplayName ( ldn : *const ULocaleDisplayNames , key : :: windows_sys::core::PCSTR , value : :: windows_sys::core::PCSTR , result : *mut u16 , maxresultsize : i32 , perrorcode : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uldn_languageDisplayName ( ldn : *const ULocaleDisplayNames , lang : :: windows_sys::core::PCSTR , result : *mut u16 , maxresultsize : i32 , perrorcode : *mut UErrorCode ) -> i32 ); @@ -873,11 +873,11 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_canonicalize ( localeid : :: windows_sys::core::PCSTR , name : :: windows_sys::core::PCSTR , namecapacity : i32 , err : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_countAvailable ( ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_forLanguageTag ( langtag : :: windows_sys::core::PCSTR , localeid : :: windows_sys::core::PCSTR , localeidcapacity : i32 , parsedlength : *mut i32 , err : *mut UErrorCode ) -> i32 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_getAvailable ( n : i32 ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_getAvailable ( n : i32 ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_getBaseName ( localeid : :: windows_sys::core::PCSTR , name : :: windows_sys::core::PCSTR , namecapacity : i32 , err : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_getCharacterOrientation ( localeid : :: windows_sys::core::PCSTR , status : *mut UErrorCode ) -> ULayoutType ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_getCountry ( localeid : :: windows_sys::core::PCSTR , country : :: windows_sys::core::PCSTR , countrycapacity : i32 , err : *mut UErrorCode ) -> i32 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_getDefault ( ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_getDefault ( ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_getDisplayCountry ( locale : :: windows_sys::core::PCSTR , displaylocale : :: windows_sys::core::PCSTR , country : *mut u16 , countrycapacity : i32 , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_getDisplayKeyword ( keyword : :: windows_sys::core::PCSTR , displaylocale : :: windows_sys::core::PCSTR , dest : *mut u16 , destcapacity : i32 , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_getDisplayKeywordValue ( locale : :: windows_sys::core::PCSTR , keyword : :: windows_sys::core::PCSTR , displaylocale : :: windows_sys::core::PCSTR , dest : *mut u16 , destcapacity : i32 , status : *mut UErrorCode ) -> i32 ); @@ -885,8 +885,8 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_getDisplayName ( localeid : :: windows_sys::core::PCSTR , inlocaleid : :: windows_sys::core::PCSTR , result : *mut u16 , maxresultsize : i32 , err : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_getDisplayScript ( locale : :: windows_sys::core::PCSTR , displaylocale : :: windows_sys::core::PCSTR , script : *mut u16 , scriptcapacity : i32 , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_getDisplayVariant ( locale : :: windows_sys::core::PCSTR , displaylocale : :: windows_sys::core::PCSTR , variant : *mut u16 , variantcapacity : i32 , status : *mut UErrorCode ) -> i32 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_getISO3Country ( localeid : :: windows_sys::core::PCSTR ) -> :: windows_sys::core::PSTR ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_getISO3Language ( localeid : :: windows_sys::core::PCSTR ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_getISO3Country ( localeid : :: windows_sys::core::PCSTR ) -> :: windows_sys::core::PCSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_getISO3Language ( localeid : :: windows_sys::core::PCSTR ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_getISOCountries ( ) -> *mut *mut i8 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_getISOLanguages ( ) -> *mut *mut i8 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_getKeywordValue ( localeid : :: windows_sys::core::PCSTR , keywordname : :: windows_sys::core::PCSTR , buffer : :: windows_sys::core::PCSTR , buffercapacity : i32 , status : *mut UErrorCode ) -> i32 ); @@ -905,10 +905,10 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_setDefault ( localeid : :: windows_sys::core::PCSTR , status : *mut UErrorCode ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_setKeywordValue ( keywordname : :: windows_sys::core::PCSTR , keywordvalue : :: windows_sys::core::PCSTR , buffer : :: windows_sys::core::PCSTR , buffercapacity : i32 , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_toLanguageTag ( localeid : :: windows_sys::core::PCSTR , langtag : :: windows_sys::core::PCSTR , langtagcapacity : i32 , strict : i8 , err : *mut UErrorCode ) -> i32 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_toLegacyKey ( keyword : :: windows_sys::core::PCSTR ) -> :: windows_sys::core::PSTR ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_toLegacyType ( keyword : :: windows_sys::core::PCSTR , value : :: windows_sys::core::PCSTR ) -> :: windows_sys::core::PSTR ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_toUnicodeLocaleKey ( keyword : :: windows_sys::core::PCSTR ) -> :: windows_sys::core::PSTR ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_toUnicodeLocaleType ( keyword : :: windows_sys::core::PCSTR , value : :: windows_sys::core::PCSTR ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_toLegacyKey ( keyword : :: windows_sys::core::PCSTR ) -> :: windows_sys::core::PCSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_toLegacyType ( keyword : :: windows_sys::core::PCSTR , value : :: windows_sys::core::PCSTR ) -> :: windows_sys::core::PCSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_toUnicodeLocaleKey ( keyword : :: windows_sys::core::PCSTR ) -> :: windows_sys::core::PCSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uloc_toUnicodeLocaleType ( keyword : :: windows_sys::core::PCSTR , value : :: windows_sys::core::PCSTR ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ulocdata_close ( uld : *mut ULocaleData ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ulocdata_getCLDRVersion ( versionarray : *mut u8 , status : *mut UErrorCode ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ulocdata_getDelimiter ( uld : *mut ULocaleData , r#type : ULocaleDataDelimiterType , result : *mut u16 , resultlength : i32 , status : *mut UErrorCode ) -> i32 ); @@ -925,7 +925,7 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn umsg_clone ( fmt : *const *const ::core::ffi::c_void , status : *mut UErrorCode ) -> *mut ::core::ffi::c_void ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn umsg_close ( format : *mut *mut ::core::ffi::c_void ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn umsg_format ( fmt : *const *const ::core::ffi::c_void , result : *mut u16 , resultlength : i32 , status : *mut UErrorCode ) -> i32 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn umsg_getLocale ( fmt : *const *const ::core::ffi::c_void ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn umsg_getLocale ( fmt : *const *const ::core::ffi::c_void ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn umsg_open ( pattern : *const u16 , patternlength : i32 , locale : :: windows_sys::core::PCSTR , parseerror : *mut UParseError , status : *mut UErrorCode ) -> *mut *mut ::core::ffi::c_void ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn umsg_parse ( fmt : *const *const ::core::ffi::c_void , source : *const u16 , sourcelength : i32 , count : *mut i32 , status : *mut UErrorCode ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn umsg_setLocale ( fmt : *mut *mut ::core::ffi::c_void , locale : :: windows_sys::core::PCSTR ) -> ( ) ); @@ -976,10 +976,10 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn unum_formatInt64 ( fmt : *const *const ::core::ffi::c_void , number : i64 , result : *mut u16 , resultlength : i32 , pos : *mut UFieldPosition , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn unum_formatUFormattable ( fmt : *const *const ::core::ffi::c_void , number : *const *const ::core::ffi::c_void , result : *mut u16 , resultlength : i32 , pos : *mut UFieldPosition , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn unum_getAttribute ( fmt : *const *const ::core::ffi::c_void , attr : UNumberFormatAttribute ) -> i32 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn unum_getAvailable ( localeindex : i32 ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn unum_getAvailable ( localeindex : i32 ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn unum_getContext ( fmt : *const *const ::core::ffi::c_void , r#type : UDisplayContextType , status : *mut UErrorCode ) -> UDisplayContext ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn unum_getDoubleAttribute ( fmt : *const *const ::core::ffi::c_void , attr : UNumberFormatAttribute ) -> f64 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn unum_getLocaleByType ( fmt : *const *const ::core::ffi::c_void , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn unum_getLocaleByType ( fmt : *const *const ::core::ffi::c_void , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn unum_getSymbol ( fmt : *const *const ::core::ffi::c_void , symbol : UNumberFormatSymbol , buffer : *mut u16 , size : i32 , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn unum_getTextAttribute ( fmt : *const *const ::core::ffi::c_void , tag : UNumberFormatTextAttribute , result : *mut u16 , resultlength : i32 , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn unum_open ( style : UNumberFormatStyle , pattern : *const u16 , patternlength : i32 , locale : :: windows_sys::core::PCSTR , parseerr : *mut UParseError , status : *mut UErrorCode ) -> *mut *mut ::core::ffi::c_void ); @@ -1009,7 +1009,7 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn unumf_resultToString ( uresult : *const UFormattedNumber , buffer : *mut u16 , buffercapacity : i32 , ec : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn unumsys_close ( unumsys : *mut UNumberingSystem ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn unumsys_getDescription ( unumsys : *const UNumberingSystem , result : *mut u16 , resultlength : i32 , status : *mut UErrorCode ) -> i32 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn unumsys_getName ( unumsys : *const UNumberingSystem ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn unumsys_getName ( unumsys : *const UNumberingSystem ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn unumsys_getRadix ( unumsys : *const UNumberingSystem ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn unumsys_isAlgorithmic ( unumsys : *const UNumberingSystem ) -> i8 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn unumsys_open ( locale : :: windows_sys::core::PCSTR , status : *mut UErrorCode ) -> *mut UNumberingSystem ); @@ -1092,7 +1092,7 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uregion_getContainingRegionOfType ( uregion : *const URegion , r#type : URegionType ) -> *mut URegion ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uregion_getNumericCode ( uregion : *const URegion ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uregion_getPreferredValues ( uregion : *const URegion , status : *mut UErrorCode ) -> *mut UEnumeration ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uregion_getRegionCode ( uregion : *const URegion ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uregion_getRegionCode ( uregion : *const URegion ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uregion_getRegionFromCode ( regioncode : :: windows_sys::core::PCSTR , status : *mut UErrorCode ) -> *mut URegion ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uregion_getRegionFromNumericCode ( code : i32 , status : *mut UErrorCode ) -> *mut URegion ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uregion_getType ( uregion : *const URegion ) -> URegionType ); @@ -1112,8 +1112,8 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_getByKey ( resourcebundle : *const UResourceBundle , key : :: windows_sys::core::PCSTR , fillin : *mut UResourceBundle , status : *mut UErrorCode ) -> *mut UResourceBundle ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_getInt ( resourcebundle : *const UResourceBundle , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_getIntVector ( resourcebundle : *const UResourceBundle , len : *mut i32 , status : *mut UErrorCode ) -> *mut i32 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_getKey ( resourcebundle : *const UResourceBundle ) -> :: windows_sys::core::PSTR ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_getLocaleByType ( resourcebundle : *const UResourceBundle , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_getKey ( resourcebundle : *const UResourceBundle ) -> :: windows_sys::core::PCSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_getLocaleByType ( resourcebundle : *const UResourceBundle , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_getNextResource ( resourcebundle : *mut UResourceBundle , fillin : *mut UResourceBundle , status : *mut UErrorCode ) -> *mut UResourceBundle ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_getNextString ( resourcebundle : *mut UResourceBundle , len : *mut i32 , key : *const *const i8 , status : *mut UErrorCode ) -> *mut u16 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_getSize ( resourcebundle : *const UResourceBundle ) -> i32 ); @@ -1122,9 +1122,9 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_getStringByKey ( resb : *const UResourceBundle , key : :: windows_sys::core::PCSTR , len : *mut i32 , status : *mut UErrorCode ) -> *mut u16 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_getType ( resourcebundle : *const UResourceBundle ) -> UResType ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_getUInt ( resourcebundle : *const UResourceBundle , status : *mut UErrorCode ) -> u32 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_getUTF8String ( resb : *const UResourceBundle , dest : :: windows_sys::core::PCSTR , length : *mut i32 , forcecopy : i8 , status : *mut UErrorCode ) -> :: windows_sys::core::PSTR ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_getUTF8StringByIndex ( resb : *const UResourceBundle , stringindex : i32 , dest : :: windows_sys::core::PCSTR , plength : *mut i32 , forcecopy : i8 , status : *mut UErrorCode ) -> :: windows_sys::core::PSTR ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_getUTF8StringByKey ( resb : *const UResourceBundle , key : :: windows_sys::core::PCSTR , dest : :: windows_sys::core::PCSTR , plength : *mut i32 , forcecopy : i8 , status : *mut UErrorCode ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_getUTF8String ( resb : *const UResourceBundle , dest : :: windows_sys::core::PCSTR , length : *mut i32 , forcecopy : i8 , status : *mut UErrorCode ) -> :: windows_sys::core::PCSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_getUTF8StringByIndex ( resb : *const UResourceBundle , stringindex : i32 , dest : :: windows_sys::core::PCSTR , plength : *mut i32 , forcecopy : i8 , status : *mut UErrorCode ) -> :: windows_sys::core::PCSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_getUTF8StringByKey ( resb : *const UResourceBundle , key : :: windows_sys::core::PCSTR , dest : :: windows_sys::core::PCSTR , plength : *mut i32 , forcecopy : i8 , status : *mut UErrorCode ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_getVersion ( resb : *const UResourceBundle , versioninfo : *mut u8 ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_hasNext ( resourcebundle : *const UResourceBundle ) -> i8 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_open ( packagename : :: windows_sys::core::PCSTR , locale : :: windows_sys::core::PCSTR , status : *mut UErrorCode ) -> *mut UResourceBundle ); @@ -1134,11 +1134,11 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn ures_resetIterator ( resourcebundle : *mut UResourceBundle ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uscript_breaksBetweenLetters ( script : UScriptCode ) -> i8 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uscript_getCode ( nameorabbrorlocale : :: windows_sys::core::PCSTR , fillin : *mut UScriptCode , capacity : i32 , err : *mut UErrorCode ) -> i32 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uscript_getName ( scriptcode : UScriptCode ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uscript_getName ( scriptcode : UScriptCode ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uscript_getSampleString ( script : UScriptCode , dest : *mut u16 , capacity : i32 , perrorcode : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uscript_getScript ( codepoint : i32 , err : *mut UErrorCode ) -> UScriptCode ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uscript_getScriptExtensions ( c : i32 , scripts : *mut UScriptCode , capacity : i32 , errorcode : *mut UErrorCode ) -> i32 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uscript_getShortName ( scriptcode : UScriptCode ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uscript_getShortName ( scriptcode : UScriptCode ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uscript_getUsage ( script : UScriptCode ) -> UScriptUsage ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uscript_hasScript ( c : i32 , sc : UScriptCode ) -> i8 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uscript_isCased ( script : UScriptCode ) -> i8 ); @@ -1234,7 +1234,7 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uspoof_close ( sc : *mut USpoofChecker ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uspoof_closeCheckResult ( checkresult : *mut USpoofCheckResult ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uspoof_getAllowedChars ( sc : *const USpoofChecker , status : *mut UErrorCode ) -> *mut USet ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uspoof_getAllowedLocales ( sc : *mut USpoofChecker , status : *mut UErrorCode ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uspoof_getAllowedLocales ( sc : *mut USpoofChecker , status : *mut UErrorCode ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uspoof_getCheckResultChecks ( checkresult : *const USpoofCheckResult , status : *mut UErrorCode ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uspoof_getCheckResultNumerics ( checkresult : *const USpoofCheckResult , status : *mut UErrorCode ) -> *mut USet ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn uspoof_getCheckResultRestrictionLevel ( checkresult : *const USpoofCheckResult , status : *mut UErrorCode ) -> URestrictionLevel ); @@ -1289,7 +1289,7 @@ ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn utmscale_getTimeScaleValue ( timescale : UDateTimeScale , value : UTimeScaleValue , status : *mut UErrorCode ) -> i64 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn utmscale_toInt64 ( universaltime : i64 , timescale : UDateTimeScale , status : *mut UErrorCode ) -> i64 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn utrace_format ( outbuf : :: windows_sys::core::PCSTR , capacity : i32 , indent : i32 , fmt : :: windows_sys::core::PCSTR ) -> i32 ); -::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn utrace_functionName ( fnnumber : i32 ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn utrace_functionName ( fnnumber : i32 ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn utrace_getFunctions ( context : *const *const ::core::ffi::c_void , e : *mut UTraceEntry , x : *mut UTraceExit , d : *mut UTraceData ) -> ( ) ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn utrace_getLevel ( ) -> i32 ); ::windows_sys::core::link ! ( "icu.dll""cdecl" #[doc = "*Required features: `\"Win32_Globalization\"`*"] fn utrace_setFunctions ( context : *const ::core::ffi::c_void , e : UTraceEntry , x : UTraceExit , d : UTraceData ) -> ( ) ); diff --git a/crates/libs/sys/src/Windows/Win32/Graphics/Gdi/mod.rs b/crates/libs/sys/src/Windows/Win32/Graphics/Gdi/mod.rs index 38c07a21b5..803fe1ed66 100644 --- a/crates/libs/sys/src/Windows/Win32/Graphics/Gdi/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Graphics/Gdi/mod.rs @@ -135,13 +135,13 @@ #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "user32.dll""system" #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Foundation\"`*"] fn DrawStateW ( hdc : HDC , hbrfore : HBRUSH , qfncallback : DRAWSTATEPROC , ldata : super::super::Foundation:: LPARAM , wdata : super::super::Foundation:: WPARAM , x : i32 , y : i32 , cx : i32 , cy : i32 , uflags : DRAWSTATE_FLAGS ) -> super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] -::windows_sys::core::link ! ( "user32.dll""system" #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Foundation\"`*"] fn DrawTextA ( hdc : HDC , lpchtext : :: windows_sys::core::PSTR , cchtext : i32 , lprc : *mut super::super::Foundation:: RECT , format : DRAW_TEXT_FORMAT ) -> i32 ); +::windows_sys::core::link ! ( "user32.dll""system" #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Foundation\"`*"] fn DrawTextA ( hdc : HDC , lpchtext : :: windows_sys::core::PCSTR , cchtext : i32 , lprc : *mut super::super::Foundation:: RECT , format : DRAW_TEXT_FORMAT ) -> i32 ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "user32.dll""system" #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Foundation\"`*"] fn DrawTextExA ( hdc : HDC , lpchtext : :: windows_sys::core::PSTR , cchtext : i32 , lprc : *mut super::super::Foundation:: RECT , format : DRAW_TEXT_FORMAT , lpdtp : *const DRAWTEXTPARAMS ) -> i32 ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "user32.dll""system" #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Foundation\"`*"] fn DrawTextExW ( hdc : HDC , lpchtext : :: windows_sys::core::PWSTR , cchtext : i32 , lprc : *mut super::super::Foundation:: RECT , format : DRAW_TEXT_FORMAT , lpdtp : *const DRAWTEXTPARAMS ) -> i32 ); #[cfg(feature = "Win32_Foundation")] -::windows_sys::core::link ! ( "user32.dll""system" #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Foundation\"`*"] fn DrawTextW ( hdc : HDC , lpchtext : :: windows_sys::core::PWSTR , cchtext : i32 , lprc : *mut super::super::Foundation:: RECT , format : DRAW_TEXT_FORMAT ) -> i32 ); +::windows_sys::core::link ! ( "user32.dll""system" #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Foundation\"`*"] fn DrawTextW ( hdc : HDC , lpchtext : :: windows_sys::core::PCWSTR , cchtext : i32 , lprc : *mut super::super::Foundation:: RECT , format : DRAW_TEXT_FORMAT ) -> i32 ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "gdi32.dll""system" #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Foundation\"`*"] fn Ellipse ( hdc : HDC , left : i32 , top : i32 , right : i32 , bottom : i32 ) -> super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] diff --git a/crates/libs/sys/src/Windows/Win32/Graphics/OpenGL/mod.rs b/crates/libs/sys/src/Windows/Win32/Graphics/OpenGL/mod.rs index b2be96be41..379b696754 100644 --- a/crates/libs/sys/src/Windows/Win32/Graphics/OpenGL/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Graphics/OpenGL/mod.rs @@ -362,7 +362,7 @@ ::windows_sys::core::link ! ( "glu32.dll""system" #[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"] fn gluEndSurface ( nobj : *mut GLUnurbs ) -> ( ) ); ::windows_sys::core::link ! ( "glu32.dll""system" #[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"] fn gluEndTrim ( nobj : *mut GLUnurbs ) -> ( ) ); ::windows_sys::core::link ! ( "glu32.dll""system" #[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"] fn gluErrorString ( errcode : u32 ) -> *mut u8 ); -::windows_sys::core::link ! ( "glu32.dll""system" #[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"] fn gluErrorUnicodeStringEXT ( errcode : u32 ) -> :: windows_sys::core::PWSTR ); +::windows_sys::core::link ! ( "glu32.dll""system" #[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"] fn gluErrorUnicodeStringEXT ( errcode : u32 ) -> :: windows_sys::core::PCWSTR ); ::windows_sys::core::link ! ( "glu32.dll""system" #[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"] fn gluGetNurbsProperty ( nobj : *mut GLUnurbs , property : u32 , value : *mut f32 ) -> ( ) ); ::windows_sys::core::link ! ( "glu32.dll""system" #[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"] fn gluGetString ( name : u32 ) -> *mut u8 ); ::windows_sys::core::link ! ( "glu32.dll""system" #[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"] fn gluGetTessProperty ( tess : *mut GLUtesselator , which : u32 , value : *mut f64 ) -> ( ) ); diff --git a/crates/libs/sys/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/mod.rs b/crates/libs/sys/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/mod.rs index fc6a1c54cb..40162ad92a 100644 --- a/crates/libs/sys/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/mod.rs @@ -18,7 +18,7 @@ ::windows_sys::core::link ! ( "ndfapi.dll""system" #[doc = "*Required features: `\"Win32_NetworkManagement_NetworkDiagnosticsFramework\"`*"] fn NdfDiagnoseIncident ( handle : *const ::core::ffi::c_void , rootcausecount : *mut u32 , rootcauses : *mut *mut RootCauseInfo , dwwait : u32 , dwflags : u32 ) -> :: windows_sys::core::HRESULT ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "ndfapi.dll""system" #[doc = "*Required features: `\"Win32_NetworkManagement_NetworkDiagnosticsFramework\"`, `\"Win32_Foundation\"`*"] fn NdfExecuteDiagnosis ( handle : *const ::core::ffi::c_void , hwnd : super::super::Foundation:: HWND ) -> :: windows_sys::core::HRESULT ); -::windows_sys::core::link ! ( "ndfapi.dll""system" #[doc = "*Required features: `\"Win32_NetworkManagement_NetworkDiagnosticsFramework\"`*"] fn NdfGetTraceFile ( handle : *const ::core::ffi::c_void , tracefilelocation : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT ); +::windows_sys::core::link ! ( "ndfapi.dll""system" #[doc = "*Required features: `\"Win32_NetworkManagement_NetworkDiagnosticsFramework\"`*"] fn NdfGetTraceFile ( handle : *const ::core::ffi::c_void , tracefilelocation : *mut :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "ndfapi.dll""system" #[doc = "*Required features: `\"Win32_NetworkManagement_NetworkDiagnosticsFramework\"`*"] fn NdfRepairIncident ( handle : *const ::core::ffi::c_void , repairex : *const RepairInfoEx , dwwait : u32 ) -> :: windows_sys::core::HRESULT ); pub type INetDiagExtensibleHelper = *mut ::core::ffi::c_void; pub type INetDiagHelper = *mut ::core::ffi::c_void; diff --git a/crates/libs/sys/src/Windows/Win32/Networking/WinSock/mod.rs b/crates/libs/sys/src/Windows/Win32/Networking/WinSock/mod.rs index fa2a10302f..06dda9f8f6 100644 --- a/crates/libs/sys/src/Windows/Win32/Networking/WinSock/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Networking/WinSock/mod.rs @@ -29,34 +29,34 @@ ::windows_sys::core::link ! ( "mswsock.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] fn GetServiceW ( dwnamespace : u32 , lpguid : *const :: windows_sys::core::GUID , lpservicename : :: windows_sys::core::PCWSTR , dwproperties : u32 , lpbuffer : *mut ::core::ffi::c_void , lpdwbuffersize : *mut u32 , lpserviceasyncinfo : *const SERVICE_ASYNC_INFO ) -> i32 ); ::windows_sys::core::link ! ( "mswsock.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn GetTypeByNameA ( lpservicename : :: windows_sys::core::PCSTR , lpservicetype : *mut :: windows_sys::core::GUID ) -> i32 ); ::windows_sys::core::link ! ( "mswsock.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn GetTypeByNameW ( lpservicename : :: windows_sys::core::PCWSTR , lpservicetype : *mut :: windows_sys::core::GUID ) -> i32 ); -::windows_sys::core::link ! ( "ws2_32.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn InetNtopW ( family : i32 , paddr : *const ::core::ffi::c_void , pstringbuf : :: windows_sys::core::PWSTR , stringbufsize : usize ) -> :: windows_sys::core::PWSTR ); +::windows_sys::core::link ! ( "ws2_32.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn InetNtopW ( family : i32 , paddr : *const ::core::ffi::c_void , pstringbuf : :: windows_sys::core::PWSTR , stringbufsize : usize ) -> :: windows_sys::core::PCWSTR ); ::windows_sys::core::link ! ( "ws2_32.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn InetPtonW ( family : i32 , pszaddrstring : :: windows_sys::core::PCWSTR , paddrbuf : *mut ::core::ffi::c_void ) -> i32 ); #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] ::windows_sys::core::link ! ( "ws2_32.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] fn ProcessSocketNotifications ( completionport : super::super::Foundation:: HANDLE , registrationcount : u32 , registrationinfos : *mut SOCK_NOTIFY_REGISTRATION , timeoutms : u32 , completioncount : u32 , completionportentries : *mut super::super::System::IO:: OVERLAPPED_ENTRY , receivedentrycount : *mut u32 ) -> u32 ); ::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn RtlEthernetAddressToStringA ( addr : *const DL_EUI48 , s : :: windows_sys::core::PSTR ) -> :: windows_sys::core::PSTR ); ::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn RtlEthernetAddressToStringW ( addr : *const DL_EUI48 , s : :: windows_sys::core::PWSTR ) -> :: windows_sys::core::PWSTR ); -::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn RtlEthernetStringToAddressA ( s : :: windows_sys::core::PCSTR , terminator : *mut :: windows_sys::core::PSTR , addr : *mut DL_EUI48 ) -> i32 ); -::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn RtlEthernetStringToAddressW ( s : :: windows_sys::core::PCWSTR , terminator : *mut :: windows_sys::core::PWSTR , addr : *mut DL_EUI48 ) -> i32 ); +::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn RtlEthernetStringToAddressA ( s : :: windows_sys::core::PCSTR , terminator : *mut :: windows_sys::core::PCSTR , addr : *mut DL_EUI48 ) -> i32 ); +::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn RtlEthernetStringToAddressW ( s : :: windows_sys::core::PCWSTR , terminator : *mut :: windows_sys::core::PCWSTR , addr : *mut DL_EUI48 ) -> i32 ); ::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn RtlIpv4AddressToStringA ( addr : *const IN_ADDR , s : :: windows_sys::core::PSTR ) -> :: windows_sys::core::PSTR ); ::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn RtlIpv4AddressToStringExA ( address : *const IN_ADDR , port : u16 , addressstring : :: windows_sys::core::PSTR , addressstringlength : *mut u32 ) -> i32 ); ::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn RtlIpv4AddressToStringExW ( address : *const IN_ADDR , port : u16 , addressstring : :: windows_sys::core::PWSTR , addressstringlength : *mut u32 ) -> i32 ); ::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn RtlIpv4AddressToStringW ( addr : *const IN_ADDR , s : :: windows_sys::core::PWSTR ) -> :: windows_sys::core::PWSTR ); #[cfg(feature = "Win32_Foundation")] -::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] fn RtlIpv4StringToAddressA ( s : :: windows_sys::core::PCSTR , strict : super::super::Foundation:: BOOLEAN , terminator : *mut :: windows_sys::core::PSTR , addr : *mut IN_ADDR ) -> i32 ); +::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] fn RtlIpv4StringToAddressA ( s : :: windows_sys::core::PCSTR , strict : super::super::Foundation:: BOOLEAN , terminator : *mut :: windows_sys::core::PCSTR , addr : *mut IN_ADDR ) -> i32 ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] fn RtlIpv4StringToAddressExA ( addressstring : :: windows_sys::core::PCSTR , strict : super::super::Foundation:: BOOLEAN , address : *mut IN_ADDR , port : *mut u16 ) -> i32 ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] fn RtlIpv4StringToAddressExW ( addressstring : :: windows_sys::core::PCWSTR , strict : super::super::Foundation:: BOOLEAN , address : *mut IN_ADDR , port : *mut u16 ) -> i32 ); #[cfg(feature = "Win32_Foundation")] -::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] fn RtlIpv4StringToAddressW ( s : :: windows_sys::core::PCWSTR , strict : super::super::Foundation:: BOOLEAN , terminator : *mut :: windows_sys::core::PWSTR , addr : *mut IN_ADDR ) -> i32 ); +::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] fn RtlIpv4StringToAddressW ( s : :: windows_sys::core::PCWSTR , strict : super::super::Foundation:: BOOLEAN , terminator : *mut :: windows_sys::core::PCWSTR , addr : *mut IN_ADDR ) -> i32 ); ::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn RtlIpv6AddressToStringA ( addr : *const IN6_ADDR , s : :: windows_sys::core::PSTR ) -> :: windows_sys::core::PSTR ); ::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn RtlIpv6AddressToStringExA ( address : *const IN6_ADDR , scopeid : u32 , port : u16 , addressstring : :: windows_sys::core::PSTR , addressstringlength : *mut u32 ) -> i32 ); ::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn RtlIpv6AddressToStringExW ( address : *const IN6_ADDR , scopeid : u32 , port : u16 , addressstring : :: windows_sys::core::PWSTR , addressstringlength : *mut u32 ) -> i32 ); ::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn RtlIpv6AddressToStringW ( addr : *const IN6_ADDR , s : :: windows_sys::core::PWSTR ) -> :: windows_sys::core::PWSTR ); -::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn RtlIpv6StringToAddressA ( s : :: windows_sys::core::PCSTR , terminator : *mut :: windows_sys::core::PSTR , addr : *mut IN6_ADDR ) -> i32 ); +::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn RtlIpv6StringToAddressA ( s : :: windows_sys::core::PCSTR , terminator : *mut :: windows_sys::core::PCSTR , addr : *mut IN6_ADDR ) -> i32 ); ::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn RtlIpv6StringToAddressExA ( addressstring : :: windows_sys::core::PCSTR , address : *mut IN6_ADDR , scopeid : *mut u32 , port : *mut u16 ) -> i32 ); ::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn RtlIpv6StringToAddressExW ( addressstring : :: windows_sys::core::PCWSTR , address : *mut IN6_ADDR , scopeid : *mut u32 , port : *mut u16 ) -> i32 ); -::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn RtlIpv6StringToAddressW ( s : :: windows_sys::core::PCWSTR , terminator : *mut :: windows_sys::core::PWSTR , addr : *mut IN6_ADDR ) -> i32 ); +::windows_sys::core::link ! ( "ntdll.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn RtlIpv6StringToAddressW ( s : :: windows_sys::core::PCWSTR , terminator : *mut :: windows_sys::core::PCWSTR , addr : *mut IN6_ADDR ) -> i32 ); #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_IO"))] ::windows_sys::core::link ! ( "ws2_32.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_IO\"`*"] fn SetAddrInfoExA ( pname : :: windows_sys::core::PCSTR , pservicename : :: windows_sys::core::PCSTR , paddresses : *const SOCKET_ADDRESS , dwaddresscount : u32 , lpblob : *const super::super::System::Com:: BLOB , dwflags : u32 , dwnamespace : u32 , lpnspid : *const :: windows_sys::core::GUID , timeout : *const TIMEVAL , lpoverlapped : *const super::super::System::IO:: OVERLAPPED , lpcompletionroutine : LPLOOKUPSERVICE_COMPLETION_ROUTINE , lpnamehandle : *mut super::super::Foundation:: HANDLE ) -> i32 ); #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_IO"))] @@ -277,7 +277,7 @@ ::windows_sys::core::link ! ( "ws2_32.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn htons ( hostshort : u16 ) -> u16 ); ::windows_sys::core::link ! ( "ws2_32.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn inet_addr ( cp : :: windows_sys::core::PCSTR ) -> u32 ); ::windows_sys::core::link ! ( "ws2_32.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn inet_ntoa ( r#in : IN_ADDR ) -> :: windows_sys::core::PSTR ); -::windows_sys::core::link ! ( "ws2_32.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn inet_ntop ( family : i32 , paddr : *const ::core::ffi::c_void , pstringbuf : :: windows_sys::core::PSTR , stringbufsize : usize ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "ws2_32.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn inet_ntop ( family : i32 , paddr : *const ::core::ffi::c_void , pstringbuf : :: windows_sys::core::PSTR , stringbufsize : usize ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "ws2_32.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn inet_pton ( family : i32 , pszaddrstring : :: windows_sys::core::PCSTR , paddrbuf : *mut ::core::ffi::c_void ) -> i32 ); ::windows_sys::core::link ! ( "ws2_32.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn ioctlsocket ( s : SOCKET , cmd : i32 , argp : *mut u32 ) -> i32 ); ::windows_sys::core::link ! ( "ws2_32.dll""system" #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] fn listen ( s : SOCKET , backlog : i32 ) -> i32 ); diff --git a/crates/libs/sys/src/Windows/Win32/Networking/WindowsWebServices/mod.rs b/crates/libs/sys/src/Windows/Win32/Networking/WindowsWebServices/mod.rs index 5b7fbab040..bbc4dd002f 100644 --- a/crates/libs/sys/src/Windows/Win32/Networking/WindowsWebServices/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Networking/WindowsWebServices/mod.rs @@ -8,7 +8,7 @@ ::windows_sys::core::link ! ( "webauthn.dll""system" #[doc = "*Required features: `\"Win32_Networking_WindowsWebServices\"`, `\"Win32_Foundation\"`*"] fn WebAuthNFreeCredentialAttestation ( pwebauthncredentialattestation : *const WEBAUTHN_CREDENTIAL_ATTESTATION ) -> ( ) ); ::windows_sys::core::link ! ( "webauthn.dll""system" #[doc = "*Required features: `\"Win32_Networking_WindowsWebServices\"`*"] fn WebAuthNGetApiVersionNumber ( ) -> u32 ); ::windows_sys::core::link ! ( "webauthn.dll""system" #[doc = "*Required features: `\"Win32_Networking_WindowsWebServices\"`*"] fn WebAuthNGetCancellationId ( pcancellationid : *mut :: windows_sys::core::GUID ) -> :: windows_sys::core::HRESULT ); -::windows_sys::core::link ! ( "webauthn.dll""system" #[doc = "*Required features: `\"Win32_Networking_WindowsWebServices\"`*"] fn WebAuthNGetErrorName ( hr : :: windows_sys::core::HRESULT ) -> :: windows_sys::core::PWSTR ); +::windows_sys::core::link ! ( "webauthn.dll""system" #[doc = "*Required features: `\"Win32_Networking_WindowsWebServices\"`*"] fn WebAuthNGetErrorName ( hr : :: windows_sys::core::HRESULT ) -> :: windows_sys::core::PCWSTR ); ::windows_sys::core::link ! ( "webauthn.dll""system" #[doc = "*Required features: `\"Win32_Networking_WindowsWebServices\"`*"] fn WebAuthNGetW3CExceptionDOMError ( hr : :: windows_sys::core::HRESULT ) -> :: windows_sys::core::HRESULT ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "webauthn.dll""system" #[doc = "*Required features: `\"Win32_Networking_WindowsWebServices\"`, `\"Win32_Foundation\"`*"] fn WebAuthNIsUserVerifyingPlatformAuthenticatorAvailable ( pbisuserverifyingplatformauthenticatoravailable : *mut super::super::Foundation:: BOOL ) -> :: windows_sys::core::HRESULT ); diff --git a/crates/libs/sys/src/Windows/Win32/Security/Authentication/Identity/mod.rs b/crates/libs/sys/src/Windows/Win32/Security/Authentication/Identity/mod.rs index 1674956ced..6120384644 100644 --- a/crates/libs/sys/src/Windows/Win32/Security/Authentication/Identity/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Security/Authentication/Identity/mod.rs @@ -297,7 +297,7 @@ pub mod Provider; ::windows_sys::core::link ! ( "secur32.dll""system" #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] fn SspiCopyAuthIdentity ( authdata : *const ::core::ffi::c_void , authdatacopy : *mut *mut ::core::ffi::c_void ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "secur32.dll""system" #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] fn SspiDecryptAuthIdentity ( encryptedauthdata : *mut ::core::ffi::c_void ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "sspicli.dll""system" #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] fn SspiDecryptAuthIdentityEx ( options : u32 , encryptedauthdata : *mut ::core::ffi::c_void ) -> :: windows_sys::core::HRESULT ); -::windows_sys::core::link ! ( "secur32.dll""system" #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] fn SspiEncodeAuthIdentityAsStrings ( pauthidentity : *const ::core::ffi::c_void , ppszusername : *mut :: windows_sys::core::PWSTR , ppszdomainname : *mut :: windows_sys::core::PWSTR , ppszpackedcredentialsstring : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT ); +::windows_sys::core::link ! ( "secur32.dll""system" #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] fn SspiEncodeAuthIdentityAsStrings ( pauthidentity : *const ::core::ffi::c_void , ppszusername : *mut :: windows_sys::core::PCWSTR , ppszdomainname : *mut :: windows_sys::core::PCWSTR , ppszpackedcredentialsstring : *mut :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "secur32.dll""system" #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] fn SspiEncodeStringsAsAuthIdentity ( pszusername : :: windows_sys::core::PCWSTR , pszdomainname : :: windows_sys::core::PCWSTR , pszpackedcredentialsstring : :: windows_sys::core::PCWSTR , ppauthidentity : *mut *mut ::core::ffi::c_void ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "secur32.dll""system" #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] fn SspiEncryptAuthIdentity ( authdata : *mut ::core::ffi::c_void ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "sspicli.dll""system" #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] fn SspiEncryptAuthIdentityEx ( options : u32 , authdata : *mut ::core::ffi::c_void ) -> :: windows_sys::core::HRESULT ); @@ -310,8 +310,8 @@ pub mod Provider; ::windows_sys::core::link ! ( "credui.dll""system" #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`, `\"Win32_Foundation\"`*"] fn SspiIsPromptingNeeded ( errororntstatus : u32 ) -> super::super::super::Foundation:: BOOLEAN ); ::windows_sys::core::link ! ( "secur32.dll""system" #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] fn SspiLocalFree ( databuffer : *const ::core::ffi::c_void ) -> ( ) ); ::windows_sys::core::link ! ( "secur32.dll""system" #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] fn SspiMarshalAuthIdentity ( authidentity : *const ::core::ffi::c_void , authidentitylength : *mut u32 , authidentitybytearray : *mut *mut i8 ) -> :: windows_sys::core::HRESULT ); -::windows_sys::core::link ! ( "secur32.dll""system" #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] fn SspiPrepareForCredRead ( authidentity : *const ::core::ffi::c_void , psztargetname : :: windows_sys::core::PCWSTR , pcredmancredentialtype : *mut u32 , ppszcredmantargetname : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT ); -::windows_sys::core::link ! ( "secur32.dll""system" #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] fn SspiPrepareForCredWrite ( authidentity : *const ::core::ffi::c_void , psztargetname : :: windows_sys::core::PCWSTR , pcredmancredentialtype : *mut u32 , ppszcredmantargetname : *mut :: windows_sys::core::PWSTR , ppszcredmanusername : *mut :: windows_sys::core::PWSTR , ppcredentialblob : *mut *mut u8 , pcredentialblobsize : *mut u32 ) -> :: windows_sys::core::HRESULT ); +::windows_sys::core::link ! ( "secur32.dll""system" #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] fn SspiPrepareForCredRead ( authidentity : *const ::core::ffi::c_void , psztargetname : :: windows_sys::core::PCWSTR , pcredmancredentialtype : *mut u32 , ppszcredmantargetname : *mut :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT ); +::windows_sys::core::link ! ( "secur32.dll""system" #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] fn SspiPrepareForCredWrite ( authidentity : *const ::core::ffi::c_void , psztargetname : :: windows_sys::core::PCWSTR , pcredmancredentialtype : *mut u32 , ppszcredmantargetname : *mut :: windows_sys::core::PCWSTR , ppszcredmanusername : *mut :: windows_sys::core::PCWSTR , ppcredentialblob : *mut *mut u8 , pcredentialblobsize : *mut u32 ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "credui.dll""system" #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] fn SspiPromptForCredentialsA ( psztargetname : :: windows_sys::core::PCSTR , puiinfo : *const ::core::ffi::c_void , dwautherror : u32 , pszpackage : :: windows_sys::core::PCSTR , pinputauthidentity : *const ::core::ffi::c_void , ppauthidentity : *mut *mut ::core::ffi::c_void , pfsave : *mut i32 , dwflags : u32 ) -> u32 ); ::windows_sys::core::link ! ( "credui.dll""system" #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] fn SspiPromptForCredentialsW ( psztargetname : :: windows_sys::core::PCWSTR , puiinfo : *const ::core::ffi::c_void , dwautherror : u32 , pszpackage : :: windows_sys::core::PCWSTR , pinputauthidentity : *const ::core::ffi::c_void , ppauthidentity : *mut *mut ::core::ffi::c_void , pfsave : *mut i32 , dwflags : u32 ) -> u32 ); ::windows_sys::core::link ! ( "secur32.dll""system" #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] fn SspiUnmarshalAuthIdentity ( authidentitylength : u32 , authidentitybytearray : :: windows_sys::core::PCSTR , ppauthidentity : *mut *mut ::core::ffi::c_void ) -> :: windows_sys::core::HRESULT ); diff --git a/crates/libs/sys/src/Windows/Win32/Security/Cryptography/mod.rs b/crates/libs/sys/src/Windows/Win32/Security/Cryptography/mod.rs index ddc3c3468f..6eb0a84489 100644 --- a/crates/libs/sys/src/Windows/Win32/Security/Cryptography/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Security/Cryptography/mod.rs @@ -141,7 +141,7 @@ pub mod UI; ::windows_sys::core::link ! ( "crypt32.dll""system" #[doc = "*Required features: `\"Win32_Security_Cryptography\"`, `\"Win32_Foundation\"`*"] fn CertAddSerializedElementToStore ( hcertstore : HCERTSTORE , pbelement : *const u8 , cbelement : u32 , dwadddisposition : u32 , dwflags : u32 , dwcontexttypeflags : u32 , pdwcontexttype : *mut u32 , ppvcontext : *mut *mut ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "crypt32.dll""system" #[doc = "*Required features: `\"Win32_Security_Cryptography\"`, `\"Win32_Foundation\"`*"] fn CertAddStoreToCollection ( hcollectionstore : HCERTSTORE , hsiblingstore : HCERTSTORE , dwupdateflags : u32 , dwpriority : u32 ) -> super::super::Foundation:: BOOL ); -::windows_sys::core::link ! ( "crypt32.dll""system" #[doc = "*Required features: `\"Win32_Security_Cryptography\"`*"] fn CertAlgIdToOID ( dwalgid : u32 ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "crypt32.dll""system" #[doc = "*Required features: `\"Win32_Security_Cryptography\"`*"] fn CertAlgIdToOID ( dwalgid : u32 ) -> :: windows_sys::core::PCSTR ); ::windows_sys::core::link ! ( "crypt32.dll""system" #[doc = "*Required features: `\"Win32_Security_Cryptography\"`*"] fn CertCloseServerOcspResponse ( hserverocspresponse : *const ::core::ffi::c_void , dwflags : u32 ) -> ( ) ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "crypt32.dll""system" #[doc = "*Required features: `\"Win32_Security_Cryptography\"`, `\"Win32_Foundation\"`*"] fn CertCloseStore ( hcertstore : HCERTSTORE , dwflags : u32 ) -> super::super::Foundation:: BOOL ); @@ -314,9 +314,9 @@ pub mod UI; #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "crypt32.dll""system" #[doc = "*Required features: `\"Win32_Security_Cryptography\"`, `\"Win32_Foundation\"`*"] fn CertSetStoreProperty ( hcertstore : HCERTSTORE , dwpropid : u32 , dwflags : u32 , pvdata : *const ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] -::windows_sys::core::link ! ( "crypt32.dll""system" #[doc = "*Required features: `\"Win32_Security_Cryptography\"`, `\"Win32_Foundation\"`*"] fn CertStrToNameA ( dwcertencodingtype : CERT_QUERY_ENCODING_TYPE , pszx500 : :: windows_sys::core::PCSTR , dwstrtype : CERT_STRING_TYPE , pvreserved : *const ::core::ffi::c_void , pbencoded : *mut u8 , pcbencoded : *mut u32 , ppszerror : *mut :: windows_sys::core::PSTR ) -> super::super::Foundation:: BOOL ); +::windows_sys::core::link ! ( "crypt32.dll""system" #[doc = "*Required features: `\"Win32_Security_Cryptography\"`, `\"Win32_Foundation\"`*"] fn CertStrToNameA ( dwcertencodingtype : CERT_QUERY_ENCODING_TYPE , pszx500 : :: windows_sys::core::PCSTR , dwstrtype : CERT_STRING_TYPE , pvreserved : *const ::core::ffi::c_void , pbencoded : *mut u8 , pcbencoded : *mut u32 , ppszerror : *mut :: windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] -::windows_sys::core::link ! ( "crypt32.dll""system" #[doc = "*Required features: `\"Win32_Security_Cryptography\"`, `\"Win32_Foundation\"`*"] fn CertStrToNameW ( dwcertencodingtype : CERT_QUERY_ENCODING_TYPE , pszx500 : :: windows_sys::core::PCWSTR , dwstrtype : CERT_STRING_TYPE , pvreserved : *const ::core::ffi::c_void , pbencoded : *mut u8 , pcbencoded : *mut u32 , ppszerror : *mut :: windows_sys::core::PWSTR ) -> super::super::Foundation:: BOOL ); +::windows_sys::core::link ! ( "crypt32.dll""system" #[doc = "*Required features: `\"Win32_Security_Cryptography\"`, `\"Win32_Foundation\"`*"] fn CertStrToNameW ( dwcertencodingtype : CERT_QUERY_ENCODING_TYPE , pszx500 : :: windows_sys::core::PCWSTR , dwstrtype : CERT_STRING_TYPE , pvreserved : *const ::core::ffi::c_void , pbencoded : *mut u8 , pcbencoded : *mut u32 , ppszerror : *mut :: windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "crypt32.dll""system" #[doc = "*Required features: `\"Win32_Security_Cryptography\"`, `\"Win32_Foundation\"`*"] fn CertUnregisterPhysicalStore ( pvsystemstore : *const ::core::ffi::c_void , dwflags : u32 , pwszstorename : :: windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] @@ -414,7 +414,7 @@ pub mod UI; ::windows_sys::core::link ! ( "crypt32.dll""system" #[doc = "*Required features: `\"Win32_Security_Cryptography\"`, `\"Win32_Foundation\"`*"] fn CryptExportPublicKeyInfoFromBCryptKeyHandle ( hbcryptkey : BCRYPT_KEY_HANDLE , dwcertencodingtype : CERT_QUERY_ENCODING_TYPE , pszpublickeyobjid : :: windows_sys::core::PCSTR , dwflags : u32 , pvauxinfo : *const ::core::ffi::c_void , pinfo : *mut CERT_PUBLIC_KEY_INFO , pcbinfo : *mut u32 ) -> super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "crypt32.dll""system" #[doc = "*Required features: `\"Win32_Security_Cryptography\"`, `\"Win32_Foundation\"`*"] fn CryptFindCertificateKeyProvInfo ( pcert : *const CERT_CONTEXT , dwflags : CRYPT_FIND_FLAGS , pvreserved : *const ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); -::windows_sys::core::link ! ( "crypt32.dll""system" #[doc = "*Required features: `\"Win32_Security_Cryptography\"`*"] fn CryptFindLocalizedName ( pwszcryptname : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::PWSTR ); +::windows_sys::core::link ! ( "crypt32.dll""system" #[doc = "*Required features: `\"Win32_Security_Cryptography\"`*"] fn CryptFindLocalizedName ( pwszcryptname : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::PCWSTR ); ::windows_sys::core::link ! ( "crypt32.dll""system" #[doc = "*Required features: `\"Win32_Security_Cryptography\"`*"] fn CryptFindOIDInfo ( dwkeytype : u32 , pvkey : *const ::core::ffi::c_void , dwgroupid : u32 ) -> *mut CRYPT_OID_INFO ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "crypt32.dll""system" #[doc = "*Required features: `\"Win32_Security_Cryptography\"`, `\"Win32_Foundation\"`*"] fn CryptFormatObject ( dwcertencodingtype : CERT_QUERY_ENCODING_TYPE , dwformattype : u32 , dwformatstrtype : u32 , pformatstruct : *const ::core::ffi::c_void , lpszstructtype : :: windows_sys::core::PCSTR , pbencoded : *const u8 , cbencoded : u32 , pbformat : *mut ::core::ffi::c_void , pcbformat : *mut u32 ) -> super::super::Foundation:: BOOL ); @@ -13819,7 +13819,7 @@ pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE_IDENTIFIER = ::core::option::Opt pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE_PASSWORD = ::core::option::Option ()>; #[doc = "*Required features: `\"Win32_Security_Cryptography\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_GET = ::core::option::Option super::super::Foundation::BOOL>; +pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_GET = ::core::option::Option super::super::Foundation::BOOL>; #[doc = "*Required features: `\"Win32_Security_Cryptography\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_INITIALIZE = ::core::option::Option super::super::Foundation::BOOL>; diff --git a/crates/libs/sys/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs b/crates/libs/sys/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs index 60c76b268a..4870b6309d 100644 --- a/crates/libs/sys/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs @@ -19,7 +19,7 @@ ::windows_sys::core::link ! ( "diagnosticdataquery.dll""system" #[doc = "*Required features: `\"Win32_Security_DiagnosticDataQuery\"`*"] fn DdqGetDiagnosticRecordLocaleTags ( hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION , locale : :: windows_sys::core::PCWSTR , htagdescription : *mut super:: HDIAGNOSTIC_EVENT_TAG_DESCRIPTION ) -> :: windows_sys::core::HRESULT ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "diagnosticdataquery.dll""system" #[doc = "*Required features: `\"Win32_Security_DiagnosticDataQuery\"`, `\"Win32_Foundation\"`*"] fn DdqGetDiagnosticRecordPage ( hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION , searchcriteria : *const DIAGNOSTIC_DATA_SEARCH_CRITERIA , offset : u32 , pagerecordcount : u32 , baserowid : i64 , hrecord : *mut super:: HDIAGNOSTIC_RECORD ) -> :: windows_sys::core::HRESULT ); -::windows_sys::core::link ! ( "diagnosticdataquery.dll""system" #[doc = "*Required features: `\"Win32_Security_DiagnosticDataQuery\"`*"] fn DdqGetDiagnosticRecordPayload ( hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION , rowid : i64 , payload : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT ); +::windows_sys::core::link ! ( "diagnosticdataquery.dll""system" #[doc = "*Required features: `\"Win32_Security_DiagnosticDataQuery\"`*"] fn DdqGetDiagnosticRecordPayload ( hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION , rowid : i64 , payload : *mut :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "diagnosticdataquery.dll""system" #[doc = "*Required features: `\"Win32_Security_DiagnosticDataQuery\"`*"] fn DdqGetDiagnosticRecordProducerAtIndex ( hproducerdescription : super:: HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION , index : u32 , producerdescription : *mut DIAGNOSTIC_DATA_EVENT_PRODUCER_DESCRIPTION ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "diagnosticdataquery.dll""system" #[doc = "*Required features: `\"Win32_Security_DiagnosticDataQuery\"`*"] fn DdqGetDiagnosticRecordProducerCategories ( hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION , producername : :: windows_sys::core::PCWSTR , hcategorydescription : *mut super:: HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "diagnosticdataquery.dll""system" #[doc = "*Required features: `\"Win32_Security_DiagnosticDataQuery\"`*"] fn DdqGetDiagnosticRecordProducerCount ( hproducerdescription : super:: HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION , producerdescriptioncount : *mut u32 ) -> :: windows_sys::core::HRESULT ); diff --git a/crates/libs/sys/src/Windows/Win32/Security/EnterpriseData/mod.rs b/crates/libs/sys/src/Windows/Win32/Security/EnterpriseData/mod.rs index dab5d3fd8a..1da6ace6bb 100644 --- a/crates/libs/sys/src/Windows/Win32/Security/EnterpriseData/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Security/EnterpriseData/mod.rs @@ -8,7 +8,7 @@ ::windows_sys::core::link ! ( "srpapi.dll""system" #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`, `\"Win32_Foundation\"`, `\"Win32_Storage_Packaging_Appx\"`*"] fn SrpDoesPolicyAllowAppExecution ( packageid : *const super::super::Storage::Packaging::Appx:: PACKAGE_ID , isallowed : *mut super::super::Foundation:: BOOL ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "srpapi.dll""system" #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"] fn SrpEnablePermissiveModeFileEncryption ( enterpriseid : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT ); #[cfg(feature = "Win32_Foundation")] -::windows_sys::core::link ! ( "srpapi.dll""system" #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`, `\"Win32_Foundation\"`*"] fn SrpGetEnterpriseIds ( tokenhandle : super::super::Foundation:: HANDLE , numberofbytes : *mut u32 , enterpriseids : *mut :: windows_sys::core::PWSTR , enterpriseidcount : *mut u32 ) -> :: windows_sys::core::HRESULT ); +::windows_sys::core::link ! ( "srpapi.dll""system" #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`, `\"Win32_Foundation\"`*"] fn SrpGetEnterpriseIds ( tokenhandle : super::super::Foundation:: HANDLE , numberofbytes : *mut u32 , enterpriseids : *mut :: windows_sys::core::PCWSTR , enterpriseidcount : *mut u32 ) -> :: windows_sys::core::HRESULT ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "srpapi.dll""system" #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`, `\"Win32_Foundation\"`*"] fn SrpGetEnterprisePolicy ( tokenhandle : super::super::Foundation:: HANDLE , policyflags : *mut ENTERPRISE_DATA_POLICIES ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "srpapi.dll""system" #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"] fn SrpHostingInitialize ( version : SRPHOSTING_VERSION , r#type : SRPHOSTING_TYPE , pvdata : *const ::core::ffi::c_void , cbdata : u32 ) -> :: windows_sys::core::HRESULT ); diff --git a/crates/libs/sys/src/Windows/Win32/System/Diagnostics/Debug/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Diagnostics/Debug/mod.rs index 9c3e724fa7..a7de2491f0 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Diagnostics/Debug/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Diagnostics/Debug/mod.rs @@ -594,9 +594,9 @@ #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "dbghelp.dll""system" #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] fn SymSetSearchPathW ( hprocess : super::super::super::Foundation:: HANDLE , searchpatha : :: windows_sys::core::PCWSTR ) -> super::super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] -::windows_sys::core::link ! ( "dbghelp.dll""system" #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] fn SymSrvDeltaName ( hprocess : super::super::super::Foundation:: HANDLE , sympath : :: windows_sys::core::PCSTR , r#type : :: windows_sys::core::PCSTR , file1 : :: windows_sys::core::PCSTR , file2 : :: windows_sys::core::PCSTR ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "dbghelp.dll""system" #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] fn SymSrvDeltaName ( hprocess : super::super::super::Foundation:: HANDLE , sympath : :: windows_sys::core::PCSTR , r#type : :: windows_sys::core::PCSTR , file1 : :: windows_sys::core::PCSTR , file2 : :: windows_sys::core::PCSTR ) -> :: windows_sys::core::PCSTR ); #[cfg(feature = "Win32_Foundation")] -::windows_sys::core::link ! ( "dbghelp.dll""system" #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] fn SymSrvDeltaNameW ( hprocess : super::super::super::Foundation:: HANDLE , sympath : :: windows_sys::core::PCWSTR , r#type : :: windows_sys::core::PCWSTR , file1 : :: windows_sys::core::PCWSTR , file2 : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::PWSTR ); +::windows_sys::core::link ! ( "dbghelp.dll""system" #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] fn SymSrvDeltaNameW ( hprocess : super::super::super::Foundation:: HANDLE , sympath : :: windows_sys::core::PCWSTR , r#type : :: windows_sys::core::PCWSTR , file1 : :: windows_sys::core::PCWSTR , file2 : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::PCWSTR ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "dbghelp.dll""system" #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] fn SymSrvGetFileIndexInfo ( file : :: windows_sys::core::PCSTR , info : *mut SYMSRV_INDEX_INFO , flags : u32 ) -> super::super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] @@ -610,21 +610,21 @@ #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "dbghelp.dll""system" #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] fn SymSrvGetFileIndexesW ( file : :: windows_sys::core::PCWSTR , id : *mut :: windows_sys::core::GUID , val1 : *mut u32 , val2 : *mut u32 , flags : u32 ) -> super::super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] -::windows_sys::core::link ! ( "dbghelp.dll""system" #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] fn SymSrvGetSupplement ( hprocess : super::super::super::Foundation:: HANDLE , sympath : :: windows_sys::core::PCSTR , node : :: windows_sys::core::PCSTR , file : :: windows_sys::core::PCSTR ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "dbghelp.dll""system" #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] fn SymSrvGetSupplement ( hprocess : super::super::super::Foundation:: HANDLE , sympath : :: windows_sys::core::PCSTR , node : :: windows_sys::core::PCSTR , file : :: windows_sys::core::PCSTR ) -> :: windows_sys::core::PCSTR ); #[cfg(feature = "Win32_Foundation")] -::windows_sys::core::link ! ( "dbghelp.dll""system" #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] fn SymSrvGetSupplementW ( hprocess : super::super::super::Foundation:: HANDLE , sympath : :: windows_sys::core::PCWSTR , node : :: windows_sys::core::PCWSTR , file : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::PWSTR ); +::windows_sys::core::link ! ( "dbghelp.dll""system" #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] fn SymSrvGetSupplementW ( hprocess : super::super::super::Foundation:: HANDLE , sympath : :: windows_sys::core::PCWSTR , node : :: windows_sys::core::PCWSTR , file : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::PCWSTR ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "dbghelp.dll""system" #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] fn SymSrvIsStore ( hprocess : super::super::super::Foundation:: HANDLE , path : :: windows_sys::core::PCSTR ) -> super::super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "dbghelp.dll""system" #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] fn SymSrvIsStoreW ( hprocess : super::super::super::Foundation:: HANDLE , path : :: windows_sys::core::PCWSTR ) -> super::super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] -::windows_sys::core::link ! ( "dbghelp.dll""system" #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] fn SymSrvStoreFile ( hprocess : super::super::super::Foundation:: HANDLE , srvpath : :: windows_sys::core::PCSTR , file : :: windows_sys::core::PCSTR , flags : SYM_SRV_STORE_FILE_FLAGS ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "dbghelp.dll""system" #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] fn SymSrvStoreFile ( hprocess : super::super::super::Foundation:: HANDLE , srvpath : :: windows_sys::core::PCSTR , file : :: windows_sys::core::PCSTR , flags : SYM_SRV_STORE_FILE_FLAGS ) -> :: windows_sys::core::PCSTR ); #[cfg(feature = "Win32_Foundation")] -::windows_sys::core::link ! ( "dbghelp.dll""system" #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] fn SymSrvStoreFileW ( hprocess : super::super::super::Foundation:: HANDLE , srvpath : :: windows_sys::core::PCWSTR , file : :: windows_sys::core::PCWSTR , flags : SYM_SRV_STORE_FILE_FLAGS ) -> :: windows_sys::core::PWSTR ); +::windows_sys::core::link ! ( "dbghelp.dll""system" #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] fn SymSrvStoreFileW ( hprocess : super::super::super::Foundation:: HANDLE , srvpath : :: windows_sys::core::PCWSTR , file : :: windows_sys::core::PCWSTR , flags : SYM_SRV_STORE_FILE_FLAGS ) -> :: windows_sys::core::PCWSTR ); #[cfg(feature = "Win32_Foundation")] -::windows_sys::core::link ! ( "dbghelp.dll""system" #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] fn SymSrvStoreSupplement ( hprocess : super::super::super::Foundation:: HANDLE , srvpath : :: windows_sys::core::PCSTR , node : :: windows_sys::core::PCSTR , file : :: windows_sys::core::PCSTR , flags : u32 ) -> :: windows_sys::core::PSTR ); +::windows_sys::core::link ! ( "dbghelp.dll""system" #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] fn SymSrvStoreSupplement ( hprocess : super::super::super::Foundation:: HANDLE , srvpath : :: windows_sys::core::PCSTR , node : :: windows_sys::core::PCSTR , file : :: windows_sys::core::PCSTR , flags : u32 ) -> :: windows_sys::core::PCSTR ); #[cfg(feature = "Win32_Foundation")] -::windows_sys::core::link ! ( "dbghelp.dll""system" #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] fn SymSrvStoreSupplementW ( hprocess : super::super::super::Foundation:: HANDLE , sympath : :: windows_sys::core::PCWSTR , node : :: windows_sys::core::PCWSTR , file : :: windows_sys::core::PCWSTR , flags : u32 ) -> :: windows_sys::core::PWSTR ); +::windows_sys::core::link ! ( "dbghelp.dll""system" #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] fn SymSrvStoreSupplementW ( hprocess : super::super::super::Foundation:: HANDLE , sympath : :: windows_sys::core::PCWSTR , node : :: windows_sys::core::PCWSTR , file : :: windows_sys::core::PCWSTR , flags : u32 ) -> :: windows_sys::core::PCWSTR ); #[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "dbghelp.dll""system" #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] fn SymUnDName ( sym : *const IMAGEHLP_SYMBOL , undecname : :: windows_sys::core::PSTR , undecnamelength : u32 ) -> super::super::super::Foundation:: BOOL ); diff --git a/crates/libs/sys/src/Windows/Win32/System/ErrorReporting/mod.rs b/crates/libs/sys/src/Windows/Win32/System/ErrorReporting/mod.rs index 119c9a7b4e..a1a4d80980 100644 --- a/crates/libs/sys/src/Windows/Win32/System/ErrorReporting/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/ErrorReporting/mod.rs @@ -31,8 +31,8 @@ ::windows_sys::core::link ! ( "wer.dll""system" #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] fn WerReportSubmit ( hreporthandle : HREPORT , consent : WER_CONSENT , dwflags : WER_SUBMIT_FLAGS , psubmitresult : *mut WER_SUBMIT_RESULT ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] fn WerSetFlags ( dwflags : WER_FAULT_REPORTING ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "wer.dll""system" #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] fn WerStoreClose ( hreportstore : HREPORTSTORE ) -> ( ) ); -::windows_sys::core::link ! ( "wer.dll""system" #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] fn WerStoreGetFirstReportKey ( hreportstore : HREPORTSTORE , ppszreportkey : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT ); -::windows_sys::core::link ! ( "wer.dll""system" #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] fn WerStoreGetNextReportKey ( hreportstore : HREPORTSTORE , ppszreportkey : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT ); +::windows_sys::core::link ! ( "wer.dll""system" #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] fn WerStoreGetFirstReportKey ( hreportstore : HREPORTSTORE , ppszreportkey : *mut :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT ); +::windows_sys::core::link ! ( "wer.dll""system" #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] fn WerStoreGetNextReportKey ( hreportstore : HREPORTSTORE , ppszreportkey : *mut :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "wer.dll""system" #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] fn WerStoreGetReportCount ( hreportstore : HREPORTSTORE , pdwreportcount : *mut u32 ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "wer.dll""system" #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] fn WerStoreGetSizeOnDisk ( hreportstore : HREPORTSTORE , pqwsizeinbytes : *mut u64 ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "wer.dll""system" #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] fn WerStoreOpen ( repstoretype : REPORT_STORE_TYPES , phreportstore : *mut HREPORTSTORE ) -> :: windows_sys::core::HRESULT ); diff --git a/crates/libs/sys/src/Windows/Win32/System/HostComputeSystem/mod.rs b/crates/libs/sys/src/Windows/Win32/System/HostComputeSystem/mod.rs index cd1e7dc4f3..0005a6d91c 100644 --- a/crates/libs/sys/src/Windows/Win32/System/HostComputeSystem/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/HostComputeSystem/mod.rs @@ -33,7 +33,7 @@ ::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsGetProcessFromOperation ( operation : HCS_OPERATION ) -> HCS_PROCESS ); ::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsGetProcessInfo ( process : HCS_PROCESS , operation : HCS_OPERATION ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsGetProcessProperties ( process : HCS_PROCESS , operation : HCS_OPERATION , propertyquery : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT ); -::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsGetProcessorCompatibilityFromSavedState ( runtimefilename : :: windows_sys::core::PCWSTR , processorfeaturesstring : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT ); +::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsGetProcessorCompatibilityFromSavedState ( runtimefilename : :: windows_sys::core::PCWSTR , processorfeaturesstring : *mut :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsGetServiceProperties ( propertyquery : :: windows_sys::core::PCWSTR , result : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsGrantVmAccess ( vmid : :: windows_sys::core::PCWSTR , filepath : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsGrantVmGroupAccess ( filepath : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT ); diff --git a/crates/libs/sys/src/Windows/Win32/UI/Shell/PropertiesSystem/mod.rs b/crates/libs/sys/src/Windows/Win32/UI/Shell/PropertiesSystem/mod.rs index e60c189bdd..02aecd04f5 100644 --- a/crates/libs/sys/src/Windows/Win32/UI/Shell/PropertiesSystem/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/UI/Shell/PropertiesSystem/mod.rs @@ -280,7 +280,7 @@ #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] ::windows_sys::core::link ! ( "propsys.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`*"] fn PropVariantToStringVectorAlloc ( propvar : *const super::super::super::System::Com::StructuredStorage:: PROPVARIANT , pprgsz : *mut *mut :: windows_sys::core::PWSTR , pcelem : *mut u32 ) -> :: windows_sys::core::HRESULT ); #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] -::windows_sys::core::link ! ( "propsys.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`*"] fn PropVariantToStringWithDefault ( propvarin : *const super::super::super::System::Com::StructuredStorage:: PROPVARIANT , pszdefault : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::PWSTR ); +::windows_sys::core::link ! ( "propsys.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`*"] fn PropVariantToStringWithDefault ( propvarin : *const super::super::super::System::Com::StructuredStorage:: PROPVARIANT , pszdefault : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::PCWSTR ); #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] ::windows_sys::core::link ! ( "propsys.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`*"] fn PropVariantToUInt16 ( propvarin : *const super::super::super::System::Com::StructuredStorage:: PROPVARIANT , puiret : *mut u16 ) -> :: windows_sys::core::HRESULT ); #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] @@ -405,7 +405,7 @@ #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] ::windows_sys::core::link ! ( "propsys.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] fn VariantToStringArrayAlloc ( var : *const super::super::super::System::Com:: VARIANT , pprgsz : *mut *mut :: windows_sys::core::PWSTR , pcelem : *mut u32 ) -> :: windows_sys::core::HRESULT ); #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] -::windows_sys::core::link ! ( "propsys.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] fn VariantToStringWithDefault ( varin : *const super::super::super::System::Com:: VARIANT , pszdefault : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::PWSTR ); +::windows_sys::core::link ! ( "propsys.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] fn VariantToStringWithDefault ( varin : *const super::super::super::System::Com:: VARIANT , pszdefault : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::PCWSTR ); #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] ::windows_sys::core::link ! ( "propsys.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] fn VariantToUInt16 ( varin : *const super::super::super::System::Com:: VARIANT , puiret : *mut u16 ) -> :: windows_sys::core::HRESULT ); #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] diff --git a/crates/libs/sys/src/Windows/Win32/UI/Shell/mod.rs b/crates/libs/sys/src/Windows/Win32/UI/Shell/mod.rs index beee48eab6..580f0fa203 100644 --- a/crates/libs/sys/src/Windows/Win32/UI/Shell/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/UI/Shell/mod.rs @@ -303,7 +303,7 @@ pub mod PropertiesSystem; ::windows_sys::core::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchCanonicalizeEx ( pszpathout : :: windows_sys::core::PWSTR , cchpathout : usize , pszpathin : :: windows_sys::core::PCWSTR , dwflags : PATHCCH_OPTIONS ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchCombine ( pszpathout : :: windows_sys::core::PWSTR , cchpathout : usize , pszpathin : :: windows_sys::core::PCWSTR , pszmore : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchCombineEx ( pszpathout : :: windows_sys::core::PWSTR , cchpathout : usize , pszpathin : :: windows_sys::core::PCWSTR , pszmore : :: windows_sys::core::PCWSTR , dwflags : PATHCCH_OPTIONS ) -> :: windows_sys::core::HRESULT ); -::windows_sys::core::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchFindExtension ( pszpath : :: windows_sys::core::PCWSTR , cchpath : usize , ppszext : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT ); +::windows_sys::core::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchFindExtension ( pszpath : :: windows_sys::core::PCWSTR , cchpath : usize , ppszext : *mut :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathCchIsRoot ( pszpath : :: windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL ); ::windows_sys::core::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchRemoveBackslash ( pszpath : :: windows_sys::core::PWSTR , cchpath : usize ) -> :: windows_sys::core::HRESULT ); @@ -311,7 +311,7 @@ pub mod PropertiesSystem; ::windows_sys::core::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchRemoveExtension ( pszpath : :: windows_sys::core::PWSTR , cchpath : usize ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchRemoveFileSpec ( pszpath : :: windows_sys::core::PWSTR , cchpath : usize ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchRenameExtension ( pszpath : :: windows_sys::core::PWSTR , cchpath : usize , pszext : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT ); -::windows_sys::core::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchSkipRoot ( pszpath : :: windows_sys::core::PCWSTR , ppszrootend : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT ); +::windows_sys::core::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchSkipRoot ( pszpath : :: windows_sys::core::PCWSTR , ppszrootend : *mut :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchStripPrefix ( pszpath : :: windows_sys::core::PWSTR , cchpath : usize ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchStripToRoot ( pszpath : :: windows_sys::core::PWSTR , cchpath : usize ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCleanupSpec ( pszdir : :: windows_sys::core::PCWSTR , pszspec : :: windows_sys::core::PWSTR ) -> PCS_RET ); @@ -344,8 +344,8 @@ pub mod PropertiesSystem; ::windows_sys::core::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathFindOnPathA ( pszpath : :: windows_sys::core::PSTR , ppszotherdirs : *const *const i8 ) -> super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathFindOnPathW ( pszpath : :: windows_sys::core::PWSTR , ppszotherdirs : *const *const u16 ) -> super::super::Foundation:: BOOL ); -::windows_sys::core::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathFindSuffixArrayA ( pszpath : :: windows_sys::core::PCSTR , apszsuffix : *const :: windows_sys::core::PCSTR , iarraysize : i32 ) -> :: windows_sys::core::PSTR ); -::windows_sys::core::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathFindSuffixArrayW ( pszpath : :: windows_sys::core::PCWSTR , apszsuffix : *const :: windows_sys::core::PCWSTR , iarraysize : i32 ) -> :: windows_sys::core::PWSTR ); +::windows_sys::core::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathFindSuffixArrayA ( pszpath : :: windows_sys::core::PCSTR , apszsuffix : *const :: windows_sys::core::PCSTR , iarraysize : i32 ) -> :: windows_sys::core::PCSTR ); +::windows_sys::core::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathFindSuffixArrayW ( pszpath : :: windows_sys::core::PCWSTR , apszsuffix : *const :: windows_sys::core::PCWSTR , iarraysize : i32 ) -> :: windows_sys::core::PCWSTR ); ::windows_sys::core::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathGetArgsA ( pszpath : :: windows_sys::core::PCSTR ) -> :: windows_sys::core::PSTR ); ::windows_sys::core::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathGetArgsW ( pszpath : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::PWSTR ); ::windows_sys::core::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathGetCharTypeA ( ch : u8 ) -> u32 ); @@ -406,7 +406,7 @@ pub mod PropertiesSystem; #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsUNCA ( pszpath : :: windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] -::windows_sys::core::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsUNCEx ( pszpath : :: windows_sys::core::PCWSTR , ppszserver : *mut :: windows_sys::core::PWSTR ) -> super::super::Foundation:: BOOL ); +::windows_sys::core::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsUNCEx ( pszpath : :: windows_sys::core::PCWSTR , ppszserver : *mut :: windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] ::windows_sys::core::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsUNCServerA ( pszpath : :: windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL ); #[cfg(feature = "Win32_Foundation")] @@ -1089,8 +1089,8 @@ pub mod PropertiesSystem; ::windows_sys::core::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlEscapeA ( pszurl : :: windows_sys::core::PCSTR , pszescaped : :: windows_sys::core::PSTR , pcchescaped : *mut u32 , dwflags : u32 ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlEscapeW ( pszurl : :: windows_sys::core::PCWSTR , pszescaped : :: windows_sys::core::PWSTR , pcchescaped : *mut u32 , dwflags : u32 ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlFixupW ( pcszurl : :: windows_sys::core::PCWSTR , psztranslatedurl : :: windows_sys::core::PWSTR , cchmax : u32 ) -> :: windows_sys::core::HRESULT ); -::windows_sys::core::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlGetLocationA ( pszurl : :: windows_sys::core::PCSTR ) -> :: windows_sys::core::PSTR ); -::windows_sys::core::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlGetLocationW ( pszurl : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::PWSTR ); +::windows_sys::core::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlGetLocationA ( pszurl : :: windows_sys::core::PCSTR ) -> :: windows_sys::core::PCSTR ); +::windows_sys::core::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlGetLocationW ( pszurl : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::PCWSTR ); ::windows_sys::core::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlGetPartA ( pszin : :: windows_sys::core::PCSTR , pszout : :: windows_sys::core::PSTR , pcchout : *mut u32 , dwpart : u32 , dwflags : u32 ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlGetPartW ( pszin : :: windows_sys::core::PCWSTR , pszout : :: windows_sys::core::PWSTR , pcchout : *mut u32 , dwpart : u32 , dwflags : u32 ) -> :: windows_sys::core::HRESULT ); ::windows_sys::core::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlHashA ( pszurl : :: windows_sys::core::PCSTR , pbhash : *mut u8 , cbhash : u32 ) -> :: windows_sys::core::HRESULT ); diff --git a/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/WinML/impl.rs b/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/WinML/impl.rs index 37dc401dad..e00c675fe1 100644 --- a/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/WinML/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/WinML/impl.rs @@ -642,7 +642,7 @@ impl IWinMLEvaluationContext_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IWinMLModel_Impl: Sized { fn GetDescription(&self) -> ::windows::core::Result<*mut WINML_MODEL_DESC>; - fn EnumerateMetadata(&self, index: u32, pkey: *mut ::windows::core::PWSTR, pvalue: *mut ::windows::core::PWSTR) -> ::windows::core::Result<()>; + fn EnumerateMetadata(&self, index: u32, pkey: *mut ::windows::core::PCWSTR, pvalue: *mut ::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn EnumerateModelInputs(&self, index: u32) -> ::windows::core::Result<*mut WINML_VARIABLE_DESC>; fn EnumerateModelOutputs(&self, index: u32) -> ::windows::core::Result<*mut WINML_VARIABLE_DESC>; } @@ -662,7 +662,7 @@ impl IWinMLModel_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateMetadata, Impl: IWinMLModel_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: u32, pkey: *mut ::windows::core::PWSTR, pvalue: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumerateMetadata, Impl: IWinMLModel_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: u32, pkey: *mut ::windows::core::PCWSTR, pvalue: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.EnumerateMetadata(::core::mem::transmute_copy(&index), ::core::mem::transmute_copy(&pkey), ::core::mem::transmute_copy(&pvalue)).into() diff --git a/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/WinML/mod.rs b/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/WinML/mod.rs index a69ad4b0a0..0cfa13fb25 100644 --- a/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/WinML/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/WinML/mod.rs @@ -806,7 +806,7 @@ impl IWinMLModel { let mut result__ = ::windows::core::zeroed::<*mut WINML_MODEL_DESC>(); (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) } - pub unsafe fn EnumerateMetadata(&self, index: u32, pkey: *mut ::windows::core::PWSTR, pvalue: *mut ::windows::core::PWSTR) -> ::windows::core::Result<()> { + pub unsafe fn EnumerateMetadata(&self, index: u32, pkey: *mut ::windows::core::PCWSTR, pvalue: *mut ::windows::core::PCWSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).EnumerateMetadata)(::windows::core::Interface::as_raw(self), index, pkey, pvalue).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -850,7 +850,7 @@ unsafe impl ::windows::core::ComInterface for IWinMLModel { pub struct IWinMLModel_Vtbl { pub base__: ::windows::core::IUnknown_Vtbl, pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdescription: *mut *mut WINML_MODEL_DESC) -> ::windows::core::HRESULT, - pub EnumerateMetadata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, pkey: *mut ::windows::core::PWSTR, pvalue: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, + pub EnumerateMetadata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, pkey: *mut ::windows::core::PCWSTR, pvalue: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub EnumerateModelInputs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, ppinputdescriptor: *mut *mut WINML_VARIABLE_DESC) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] diff --git a/crates/libs/windows/src/Windows/Win32/Data/Xml/XmlLite/impl.rs b/crates/libs/windows/src/Windows/Win32/Data/Xml/XmlLite/impl.rs index 895488ae49..42a45b7f8b 100644 --- a/crates/libs/windows/src/Windows/Win32/Data/Xml/XmlLite/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Data/Xml/XmlLite/impl.rs @@ -10,13 +10,13 @@ pub trait IXmlReader_Impl: Sized { fn MoveToNextAttribute(&self) -> ::windows::core::HRESULT; fn MoveToAttributeByName(&self, pwszlocalname: &::windows::core::PCWSTR, pwsznamespaceuri: &::windows::core::PCWSTR) -> ::windows::core::HRESULT; fn MoveToElement(&self) -> ::windows::core::Result<()>; - fn GetQualifiedName(&self, ppwszqualifiedname: *mut ::windows::core::PWSTR, pcwchqualifiedname: *mut u32) -> ::windows::core::Result<()>; - fn GetNamespaceUri(&self, ppwsznamespaceuri: *mut ::windows::core::PWSTR, pcwchnamespaceuri: *mut u32) -> ::windows::core::Result<()>; - fn GetLocalName(&self, ppwszlocalname: *mut ::windows::core::PWSTR, pcwchlocalname: *mut u32) -> ::windows::core::Result<()>; - fn GetPrefix(&self, ppwszprefix: *mut ::windows::core::PWSTR, pcwchprefix: *mut u32) -> ::windows::core::Result<()>; - fn GetValue(&self, ppwszvalue: *mut ::windows::core::PWSTR, pcwchvalue: *mut u32) -> ::windows::core::Result<()>; + fn GetQualifiedName(&self, ppwszqualifiedname: *mut ::windows::core::PCWSTR, pcwchqualifiedname: *mut u32) -> ::windows::core::Result<()>; + fn GetNamespaceUri(&self, ppwsznamespaceuri: *mut ::windows::core::PCWSTR, pcwchnamespaceuri: *mut u32) -> ::windows::core::Result<()>; + fn GetLocalName(&self, ppwszlocalname: *mut ::windows::core::PCWSTR, pcwchlocalname: *mut u32) -> ::windows::core::Result<()>; + fn GetPrefix(&self, ppwszprefix: *mut ::windows::core::PCWSTR, pcwchprefix: *mut u32) -> ::windows::core::Result<()>; + fn GetValue(&self, ppwszvalue: *mut ::windows::core::PCWSTR, pcwchvalue: *mut u32) -> ::windows::core::Result<()>; fn ReadValueChunk(&self, pwchbuffer: ::windows::core::PWSTR, cwchchunksize: u32, pcwchread: *mut u32) -> ::windows::core::HRESULT; - fn GetBaseUri(&self, ppwszbaseuri: *mut ::windows::core::PWSTR, pcwchbaseuri: *mut u32) -> ::windows::core::Result<()>; + fn GetBaseUri(&self, ppwszbaseuri: *mut ::windows::core::PCWSTR, pcwchbaseuri: *mut u32) -> ::windows::core::Result<()>; fn IsDefault(&self) -> super::super::super::Foundation::BOOL; fn IsEmptyElement(&self) -> super::super::super::Foundation::BOOL; fn GetLineNumber(&self) -> ::windows::core::Result; @@ -87,27 +87,27 @@ impl IXmlReader_Vtbl { let this = (*this).get_impl(); this.MoveToElement().into() } - unsafe extern "system" fn GetQualifiedName, Impl: IXmlReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppwszqualifiedname: *mut ::windows::core::PWSTR, pcwchqualifiedname: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetQualifiedName, Impl: IXmlReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppwszqualifiedname: *mut ::windows::core::PCWSTR, pcwchqualifiedname: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetQualifiedName(::core::mem::transmute_copy(&ppwszqualifiedname), ::core::mem::transmute_copy(&pcwchqualifiedname)).into() } - unsafe extern "system" fn GetNamespaceUri, Impl: IXmlReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppwsznamespaceuri: *mut ::windows::core::PWSTR, pcwchnamespaceuri: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetNamespaceUri, Impl: IXmlReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppwsznamespaceuri: *mut ::windows::core::PCWSTR, pcwchnamespaceuri: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetNamespaceUri(::core::mem::transmute_copy(&ppwsznamespaceuri), ::core::mem::transmute_copy(&pcwchnamespaceuri)).into() } - unsafe extern "system" fn GetLocalName, Impl: IXmlReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppwszlocalname: *mut ::windows::core::PWSTR, pcwchlocalname: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetLocalName, Impl: IXmlReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppwszlocalname: *mut ::windows::core::PCWSTR, pcwchlocalname: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetLocalName(::core::mem::transmute_copy(&ppwszlocalname), ::core::mem::transmute_copy(&pcwchlocalname)).into() } - unsafe extern "system" fn GetPrefix, Impl: IXmlReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppwszprefix: *mut ::windows::core::PWSTR, pcwchprefix: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPrefix, Impl: IXmlReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppwszprefix: *mut ::windows::core::PCWSTR, pcwchprefix: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPrefix(::core::mem::transmute_copy(&ppwszprefix), ::core::mem::transmute_copy(&pcwchprefix)).into() } - unsafe extern "system" fn GetValue, Impl: IXmlReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppwszvalue: *mut ::windows::core::PWSTR, pcwchvalue: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetValue, Impl: IXmlReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppwszvalue: *mut ::windows::core::PCWSTR, pcwchvalue: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetValue(::core::mem::transmute_copy(&ppwszvalue), ::core::mem::transmute_copy(&pcwchvalue)).into() @@ -117,7 +117,7 @@ impl IXmlReader_Vtbl { let this = (*this).get_impl(); this.ReadValueChunk(::core::mem::transmute_copy(&pwchbuffer), ::core::mem::transmute_copy(&cwchchunksize), ::core::mem::transmute_copy(&pcwchread)) } - unsafe extern "system" fn GetBaseUri, Impl: IXmlReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppwszbaseuri: *mut ::windows::core::PWSTR, pcwchbaseuri: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetBaseUri, Impl: IXmlReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppwszbaseuri: *mut ::windows::core::PCWSTR, pcwchbaseuri: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetBaseUri(::core::mem::transmute_copy(&ppwszbaseuri), ::core::mem::transmute_copy(&pcwchbaseuri)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Data/Xml/XmlLite/mod.rs b/crates/libs/windows/src/Windows/Win32/Data/Xml/XmlLite/mod.rs index fba8ea28c8..776289ec65 100644 --- a/crates/libs/windows/src/Windows/Win32/Data/Xml/XmlLite/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Data/Xml/XmlLite/mod.rs @@ -112,25 +112,25 @@ impl IXmlReader { pub unsafe fn MoveToElement(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).MoveToElement)(::windows::core::Interface::as_raw(self)).ok() } - pub unsafe fn GetQualifiedName(&self, ppwszqualifiedname: *mut ::windows::core::PWSTR, pcwchqualifiedname: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> { + pub unsafe fn GetQualifiedName(&self, ppwszqualifiedname: *mut ::windows::core::PCWSTR, pcwchqualifiedname: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetQualifiedName)(::windows::core::Interface::as_raw(self), ppwszqualifiedname, ::core::mem::transmute(pcwchqualifiedname.unwrap_or(::std::ptr::null_mut()))).ok() } - pub unsafe fn GetNamespaceUri(&self, ppwsznamespaceuri: *mut ::windows::core::PWSTR, pcwchnamespaceuri: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> { + pub unsafe fn GetNamespaceUri(&self, ppwsznamespaceuri: *mut ::windows::core::PCWSTR, pcwchnamespaceuri: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetNamespaceUri)(::windows::core::Interface::as_raw(self), ppwsznamespaceuri, ::core::mem::transmute(pcwchnamespaceuri.unwrap_or(::std::ptr::null_mut()))).ok() } - pub unsafe fn GetLocalName(&self, ppwszlocalname: *mut ::windows::core::PWSTR, pcwchlocalname: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> { + pub unsafe fn GetLocalName(&self, ppwszlocalname: *mut ::windows::core::PCWSTR, pcwchlocalname: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetLocalName)(::windows::core::Interface::as_raw(self), ppwszlocalname, ::core::mem::transmute(pcwchlocalname.unwrap_or(::std::ptr::null_mut()))).ok() } - pub unsafe fn GetPrefix(&self, ppwszprefix: *mut ::windows::core::PWSTR, pcwchprefix: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> { + pub unsafe fn GetPrefix(&self, ppwszprefix: *mut ::windows::core::PCWSTR, pcwchprefix: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPrefix)(::windows::core::Interface::as_raw(self), ppwszprefix, ::core::mem::transmute(pcwchprefix.unwrap_or(::std::ptr::null_mut()))).ok() } - pub unsafe fn GetValue(&self, ppwszvalue: *mut ::windows::core::PWSTR, pcwchvalue: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> { + pub unsafe fn GetValue(&self, ppwszvalue: *mut ::windows::core::PCWSTR, pcwchvalue: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetValue)(::windows::core::Interface::as_raw(self), ppwszvalue, ::core::mem::transmute(pcwchvalue.unwrap_or(::std::ptr::null_mut()))).ok() } pub unsafe fn ReadValueChunk(&self, pwchbuffer: &mut [u16], pcwchread: *mut u32) -> ::windows::core::HRESULT { (::windows::core::Interface::vtable(self).ReadValueChunk)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pwchbuffer.as_ptr()), pwchbuffer.len() as _, pcwchread) } - pub unsafe fn GetBaseUri(&self, ppwszbaseuri: *mut ::windows::core::PWSTR, pcwchbaseuri: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> { + pub unsafe fn GetBaseUri(&self, ppwszbaseuri: *mut ::windows::core::PCWSTR, pcwchbaseuri: ::core::option::Option<*mut u32>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetBaseUri)(::windows::core::Interface::as_raw(self), ppwszbaseuri, ::core::mem::transmute(pcwchbaseuri.unwrap_or(::std::ptr::null_mut()))).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -201,13 +201,13 @@ pub struct IXmlReader_Vtbl { pub MoveToNextAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub MoveToAttributeByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszlocalname: ::windows::core::PCWSTR, pwsznamespaceuri: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub MoveToElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetQualifiedName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszqualifiedname: *mut ::windows::core::PWSTR, pcwchqualifiedname: *mut u32) -> ::windows::core::HRESULT, - pub GetNamespaceUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwsznamespaceuri: *mut ::windows::core::PWSTR, pcwchnamespaceuri: *mut u32) -> ::windows::core::HRESULT, - pub GetLocalName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszlocalname: *mut ::windows::core::PWSTR, pcwchlocalname: *mut u32) -> ::windows::core::HRESULT, - pub GetPrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszprefix: *mut ::windows::core::PWSTR, pcwchprefix: *mut u32) -> ::windows::core::HRESULT, - pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszvalue: *mut ::windows::core::PWSTR, pcwchvalue: *mut u32) -> ::windows::core::HRESULT, + pub GetQualifiedName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszqualifiedname: *mut ::windows::core::PCWSTR, pcwchqualifiedname: *mut u32) -> ::windows::core::HRESULT, + pub GetNamespaceUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwsznamespaceuri: *mut ::windows::core::PCWSTR, pcwchnamespaceuri: *mut u32) -> ::windows::core::HRESULT, + pub GetLocalName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszlocalname: *mut ::windows::core::PCWSTR, pcwchlocalname: *mut u32) -> ::windows::core::HRESULT, + pub GetPrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszprefix: *mut ::windows::core::PCWSTR, pcwchprefix: *mut u32) -> ::windows::core::HRESULT, + pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszvalue: *mut ::windows::core::PCWSTR, pcwchvalue: *mut u32) -> ::windows::core::HRESULT, pub ReadValueChunk: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwchbuffer: ::windows::core::PWSTR, cwchchunksize: u32, pcwchread: *mut u32) -> ::windows::core::HRESULT, - pub GetBaseUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszbaseuri: *mut ::windows::core::PWSTR, pcwchbaseuri: *mut u32) -> ::windows::core::HRESULT, + pub GetBaseUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszbaseuri: *mut ::windows::core::PCWSTR, pcwchbaseuri: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub IsDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::super::Foundation::BOOL, #[cfg(not(feature = "Win32_Foundation"))] diff --git a/crates/libs/windows/src/Windows/Win32/Devices/AllJoyn/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/AllJoyn/mod.rs index 42f3940c6b..8f8e26fd42 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/AllJoyn/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/AllJoyn/mod.rs @@ -81,8 +81,8 @@ where } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn QCC_StatusText(status: QStatus) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "msajapi.dll""system" fn QCC_StatusText ( status : QStatus ) -> :: windows::core::PSTR ); +pub unsafe fn QCC_StatusText(status: QStatus) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "msajapi.dll""system" fn QCC_StatusText ( status : QStatus ) -> :: windows::core::PCSTR ); QCC_StatusText(status) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] @@ -258,12 +258,12 @@ where } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_aboutdata_getfieldsignature(data: P0, fieldname: P1) -> ::windows::core::PSTR +pub unsafe fn alljoyn_aboutdata_getfieldsignature(data: P0, fieldname: P1) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, P1: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_aboutdata_getfieldsignature ( data : alljoyn_aboutdata , fieldname : :: windows::core::PCSTR ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_aboutdata_getfieldsignature ( data : alljoyn_aboutdata , fieldname : :: windows::core::PCSTR ) -> :: windows::core::PCSTR ); alljoyn_aboutdata_getfieldsignature(data.into_param().abi(), fieldname.into_param().abi()) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] @@ -1308,11 +1308,11 @@ where } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_busattachment_getconnectspec(bus: P0) -> ::windows::core::PSTR +pub unsafe fn alljoyn_busattachment_getconnectspec(bus: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_busattachment_getconnectspec ( bus : alljoyn_busattachment ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_busattachment_getconnectspec ( bus : alljoyn_busattachment ) -> :: windows::core::PCSTR ); alljoyn_busattachment_getconnectspec(bus.into_param().abi()) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] @@ -1326,11 +1326,11 @@ where } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_busattachment_getglobalguidstring(bus: P0) -> ::windows::core::PSTR +pub unsafe fn alljoyn_busattachment_getglobalguidstring(bus: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_busattachment_getglobalguidstring ( bus : alljoyn_busattachment ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_busattachment_getglobalguidstring ( bus : alljoyn_busattachment ) -> :: windows::core::PCSTR ); alljoyn_busattachment_getglobalguidstring(bus.into_param().abi()) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] @@ -1390,11 +1390,11 @@ pub unsafe fn alljoyn_busattachment_gettimestamp() -> u32 { } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_busattachment_getuniquename(bus: P0) -> ::windows::core::PSTR +pub unsafe fn alljoyn_busattachment_getuniquename(bus: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_busattachment_getuniquename ( bus : alljoyn_busattachment ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_busattachment_getuniquename ( bus : alljoyn_busattachment ) -> :: windows::core::PCSTR ); alljoyn_busattachment_getuniquename(bus.into_param().abi()) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] @@ -1958,11 +1958,11 @@ where } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_busobject_getpath(bus: P0) -> ::windows::core::PSTR +pub unsafe fn alljoyn_busobject_getpath(bus: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_busobject_getpath ( bus : alljoyn_busobject ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_busobject_getpath ( bus : alljoyn_busobject ) -> :: windows::core::PCSTR ); alljoyn_busobject_getpath(bus.into_param().abi()) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] @@ -2055,11 +2055,11 @@ where } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_credentials_getcertchain(cred: P0) -> ::windows::core::PSTR +pub unsafe fn alljoyn_credentials_getcertchain(cred: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_credentials_getcertchain ( cred : alljoyn_credentials ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_credentials_getcertchain ( cred : alljoyn_credentials ) -> :: windows::core::PCSTR ); alljoyn_credentials_getcertchain(cred.into_param().abi()) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] @@ -2073,38 +2073,38 @@ where } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_credentials_getlogonentry(cred: P0) -> ::windows::core::PSTR +pub unsafe fn alljoyn_credentials_getlogonentry(cred: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_credentials_getlogonentry ( cred : alljoyn_credentials ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_credentials_getlogonentry ( cred : alljoyn_credentials ) -> :: windows::core::PCSTR ); alljoyn_credentials_getlogonentry(cred.into_param().abi()) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_credentials_getpassword(cred: P0) -> ::windows::core::PSTR +pub unsafe fn alljoyn_credentials_getpassword(cred: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_credentials_getpassword ( cred : alljoyn_credentials ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_credentials_getpassword ( cred : alljoyn_credentials ) -> :: windows::core::PCSTR ); alljoyn_credentials_getpassword(cred.into_param().abi()) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_credentials_getprivateKey(cred: P0) -> ::windows::core::PSTR +pub unsafe fn alljoyn_credentials_getprivateKey(cred: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_credentials_getprivateKey ( cred : alljoyn_credentials ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_credentials_getprivateKey ( cred : alljoyn_credentials ) -> :: windows::core::PCSTR ); alljoyn_credentials_getprivateKey(cred.into_param().abi()) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_credentials_getusername(cred: P0) -> ::windows::core::PSTR +pub unsafe fn alljoyn_credentials_getusername(cred: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_credentials_getusername ( cred : alljoyn_credentials ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_credentials_getusername ( cred : alljoyn_credentials ) -> :: windows::core::PCSTR ); alljoyn_credentials_getusername(cred.into_param().abi()) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] @@ -2177,8 +2177,8 @@ where } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_getbuildinfo() -> ::windows::core::PSTR { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_getbuildinfo ( ) -> :: windows::core::PSTR ); +pub unsafe fn alljoyn_getbuildinfo() -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_getbuildinfo ( ) -> :: windows::core::PCSTR ); alljoyn_getbuildinfo() } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] @@ -2189,8 +2189,8 @@ pub unsafe fn alljoyn_getnumericversion() -> u32 { } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_getversion() -> ::windows::core::PSTR { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_getversion ( ) -> :: windows::core::PSTR ); +pub unsafe fn alljoyn_getversion() -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_getversion ( ) -> :: windows::core::PCSTR ); alljoyn_getversion() } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] @@ -2468,11 +2468,11 @@ where } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_interfacedescription_getname(iface: P0) -> ::windows::core::PSTR +pub unsafe fn alljoyn_interfacedescription_getname(iface: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_interfacedescription_getname ( iface : alljoyn_interfacedescription ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_interfacedescription_getname ( iface : alljoyn_interfacedescription ) -> :: windows::core::PCSTR ); alljoyn_interfacedescription_getname(iface.into_param().abi()) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] @@ -2904,11 +2904,11 @@ where } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_message_getauthmechanism(msg: P0) -> ::windows::core::PSTR +pub unsafe fn alljoyn_message_getauthmechanism(msg: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_message_getauthmechanism ( msg : alljoyn_message ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_message_getauthmechanism ( msg : alljoyn_message ) -> :: windows::core::PCSTR ); alljoyn_message_getauthmechanism(msg.into_param().abi()) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] @@ -2931,21 +2931,21 @@ where } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_message_getdestination(msg: P0) -> ::windows::core::PSTR +pub unsafe fn alljoyn_message_getdestination(msg: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_message_getdestination ( msg : alljoyn_message ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_message_getdestination ( msg : alljoyn_message ) -> :: windows::core::PCSTR ); alljoyn_message_getdestination(msg.into_param().abi()) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_message_geterrorname(msg: P0, errormessage: P1, errormessage_size: *mut usize) -> ::windows::core::PSTR +pub unsafe fn alljoyn_message_geterrorname(msg: P0, errormessage: P1, errormessage_size: *mut usize) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, P1: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_message_geterrorname ( msg : alljoyn_message , errormessage : :: windows::core::PCSTR , errormessage_size : *mut usize ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_message_geterrorname ( msg : alljoyn_message , errormessage : :: windows::core::PCSTR , errormessage_size : *mut usize ) -> :: windows::core::PCSTR ); alljoyn_message_geterrorname(msg.into_param().abi(), errormessage.into_param().abi(), errormessage_size) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] @@ -2959,38 +2959,38 @@ where } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_message_getinterface(msg: P0) -> ::windows::core::PSTR +pub unsafe fn alljoyn_message_getinterface(msg: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_message_getinterface ( msg : alljoyn_message ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_message_getinterface ( msg : alljoyn_message ) -> :: windows::core::PCSTR ); alljoyn_message_getinterface(msg.into_param().abi()) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_message_getmembername(msg: P0) -> ::windows::core::PSTR +pub unsafe fn alljoyn_message_getmembername(msg: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_message_getmembername ( msg : alljoyn_message ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_message_getmembername ( msg : alljoyn_message ) -> :: windows::core::PCSTR ); alljoyn_message_getmembername(msg.into_param().abi()) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_message_getobjectpath(msg: P0) -> ::windows::core::PSTR +pub unsafe fn alljoyn_message_getobjectpath(msg: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_message_getobjectpath ( msg : alljoyn_message ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_message_getobjectpath ( msg : alljoyn_message ) -> :: windows::core::PCSTR ); alljoyn_message_getobjectpath(msg.into_param().abi()) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_message_getreceiveendpointname(msg: P0) -> ::windows::core::PSTR +pub unsafe fn alljoyn_message_getreceiveendpointname(msg: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_message_getreceiveendpointname ( msg : alljoyn_message ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_message_getreceiveendpointname ( msg : alljoyn_message ) -> :: windows::core::PCSTR ); alljoyn_message_getreceiveendpointname(msg.into_param().abi()) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] @@ -3004,11 +3004,11 @@ where } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_message_getsender(msg: P0) -> ::windows::core::PSTR +pub unsafe fn alljoyn_message_getsender(msg: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_message_getsender ( msg : alljoyn_message ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_message_getsender ( msg : alljoyn_message ) -> :: windows::core::PCSTR ); alljoyn_message_getsender(msg.into_param().abi()) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] @@ -3022,11 +3022,11 @@ where } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_message_getsignature(msg: P0) -> ::windows::core::PSTR +pub unsafe fn alljoyn_message_getsignature(msg: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_message_getsignature ( msg : alljoyn_message ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_message_getsignature ( msg : alljoyn_message ) -> :: windows::core::PCSTR ); alljoyn_message_getsignature(msg.into_param().abi()) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] @@ -3275,11 +3275,11 @@ where } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_msgarg_get_array_elementsignature(arg: P0, index: usize) -> ::windows::core::PSTR +pub unsafe fn alljoyn_msgarg_get_array_elementsignature(arg: P0, index: usize) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_msgarg_get_array_elementsignature ( arg : alljoyn_msgarg , index : usize ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_msgarg_get_array_elementsignature ( arg : alljoyn_msgarg , index : usize ) -> :: windows::core::PCSTR ); alljoyn_msgarg_get_array_elementsignature(arg.into_param().abi(), index) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] @@ -4399,11 +4399,11 @@ where } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_proxybusobject_getpath(proxyobj: P0) -> ::windows::core::PSTR +pub unsafe fn alljoyn_proxybusobject_getpath(proxyobj: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_proxybusobject_getpath ( proxyobj : alljoyn_proxybusobject ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_proxybusobject_getpath ( proxyobj : alljoyn_proxybusobject ) -> :: windows::core::PCSTR ); alljoyn_proxybusobject_getpath(proxyobj.into_param().abi()) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] @@ -4431,11 +4431,11 @@ where } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_proxybusobject_getservicename(proxyobj: P0) -> ::windows::core::PSTR +pub unsafe fn alljoyn_proxybusobject_getservicename(proxyobj: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_proxybusobject_getservicename ( proxyobj : alljoyn_proxybusobject ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_proxybusobject_getservicename ( proxyobj : alljoyn_proxybusobject ) -> :: windows::core::PCSTR ); alljoyn_proxybusobject_getservicename(proxyobj.into_param().abi()) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] @@ -4449,11 +4449,11 @@ where } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] #[inline] -pub unsafe fn alljoyn_proxybusobject_getuniquename(proxyobj: P0) -> ::windows::core::PSTR +pub unsafe fn alljoyn_proxybusobject_getuniquename(proxyobj: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_proxybusobject_getuniquename ( proxyobj : alljoyn_proxybusobject ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "msajapi.dll""system" fn alljoyn_proxybusobject_getuniquename ( proxyobj : alljoyn_proxybusobject ) -> :: windows::core::PCSTR ); alljoyn_proxybusobject_getuniquename(proxyobj.into_param().abi()) } #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] @@ -7506,7 +7506,7 @@ pub type alljoyn_busobject_prop_get_ptr = ::core::option::Option QStatus>; #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] -pub type alljoyn_interfacedescription_translation_callback_ptr = ::core::option::Option ::windows::core::PSTR>; +pub type alljoyn_interfacedescription_translation_callback_ptr = ::core::option::Option ::windows::core::PCSTR>; #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] pub type alljoyn_keystorelistener_acquireexclusivelock_ptr = ::core::option::Option QStatus>; #[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs index 2c34a77e67..bf958a8305 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs @@ -3648,15 +3648,15 @@ where #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn SetupFreeSourceListA(list: &mut [*mut ::windows::core::PSTR]) -> super::super::Foundation::BOOL { - ::windows::imp::link ! ( "setupapi.dll""system" fn SetupFreeSourceListA ( list : *mut *mut :: windows::core::PSTR , count : u32 ) -> super::super::Foundation:: BOOL ); +pub unsafe fn SetupFreeSourceListA(list: &mut [*mut ::windows::core::PCSTR]) -> super::super::Foundation::BOOL { + ::windows::imp::link ! ( "setupapi.dll""system" fn SetupFreeSourceListA ( list : *mut *mut :: windows::core::PCSTR , count : u32 ) -> super::super::Foundation:: BOOL ); SetupFreeSourceListA(::core::mem::transmute(list.as_ptr()), list.len() as _) } #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn SetupFreeSourceListW(list: &mut [*mut ::windows::core::PWSTR]) -> super::super::Foundation::BOOL { - ::windows::imp::link ! ( "setupapi.dll""system" fn SetupFreeSourceListW ( list : *mut *mut :: windows::core::PWSTR , count : u32 ) -> super::super::Foundation:: BOOL ); +pub unsafe fn SetupFreeSourceListW(list: &mut [*mut ::windows::core::PCWSTR]) -> super::super::Foundation::BOOL { + ::windows::imp::link ! ( "setupapi.dll""system" fn SetupFreeSourceListW ( list : *mut *mut :: windows::core::PCWSTR , count : u32 ) -> super::super::Foundation:: BOOL ); SetupFreeSourceListW(::core::mem::transmute(list.as_ptr()), list.len() as _) } #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] @@ -4457,15 +4457,15 @@ where #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn SetupQuerySourceListA(flags: u32, list: *mut *mut ::windows::core::PSTR, count: *mut u32) -> super::super::Foundation::BOOL { - ::windows::imp::link ! ( "setupapi.dll""system" fn SetupQuerySourceListA ( flags : u32 , list : *mut *mut :: windows::core::PSTR , count : *mut u32 ) -> super::super::Foundation:: BOOL ); +pub unsafe fn SetupQuerySourceListA(flags: u32, list: *mut *mut ::windows::core::PCSTR, count: *mut u32) -> super::super::Foundation::BOOL { + ::windows::imp::link ! ( "setupapi.dll""system" fn SetupQuerySourceListA ( flags : u32 , list : *mut *mut :: windows::core::PCSTR , count : *mut u32 ) -> super::super::Foundation:: BOOL ); SetupQuerySourceListA(flags, list, count) } #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn SetupQuerySourceListW(flags: u32, list: *mut *mut ::windows::core::PWSTR, count: *mut u32) -> super::super::Foundation::BOOL { - ::windows::imp::link ! ( "setupapi.dll""system" fn SetupQuerySourceListW ( flags : u32 , list : *mut *mut :: windows::core::PWSTR , count : *mut u32 ) -> super::super::Foundation:: BOOL ); +pub unsafe fn SetupQuerySourceListW(flags: u32, list: *mut *mut ::windows::core::PCWSTR, count: *mut u32) -> super::super::Foundation::BOOL { + ::windows::imp::link ! ( "setupapi.dll""system" fn SetupQuerySourceListW ( flags : u32 , list : *mut *mut :: windows::core::PCWSTR , count : *mut u32 ) -> super::super::Foundation:: BOOL ); SetupQuerySourceListW(flags, list, count) } #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/impl.rs index 729592f91a..a9a6055e6a 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/impl.rs @@ -401,7 +401,7 @@ pub trait IWSDEndpointProxy_Impl: Sized { fn SendTwoWayRequestAsync(&self, pbody: *const ::core::ffi::c_void, poperation: *const WSD_OPERATION, pasyncstate: ::core::option::Option<&::windows::core::IUnknown>, pcallback: ::core::option::Option<&IWSDAsyncCallback>) -> ::windows::core::Result; fn AbortAsyncOperation(&self, pasyncresult: ::core::option::Option<&IWSDAsyncResult>) -> ::windows::core::Result<()>; fn ProcessFault(&self, pfault: *const WSD_SOAP_FAULT) -> ::windows::core::Result<()>; - fn GetErrorInfo(&self) -> ::windows::core::Result<::windows::core::PWSTR>; + fn GetErrorInfo(&self) -> ::windows::core::Result<::windows::core::PCWSTR>; fn GetFaultInfo(&self) -> ::windows::core::Result<*mut WSD_SOAP_FAULT>; } #[cfg(feature = "Win32_Foundation")] @@ -440,7 +440,7 @@ impl IWSDEndpointProxy_Vtbl { let this = (*this).get_impl(); this.ProcessFault(::core::mem::transmute_copy(&pfault)).into() } - unsafe extern "system" fn GetErrorInfo, Impl: IWSDEndpointProxy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppszerrorinfo: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetErrorInfo, Impl: IWSDEndpointProxy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppszerrorinfo: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetErrorInfo() { @@ -517,7 +517,7 @@ impl IWSDEventingStatus_Vtbl { pub trait IWSDHttpAddress_Impl: Sized + IWSDTransportAddress_Impl { fn GetSecure(&self) -> ::windows::core::Result<()>; fn SetSecure(&self, fsecure: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn GetPath(&self) -> ::windows::core::Result<::windows::core::PWSTR>; + fn GetPath(&self) -> ::windows::core::Result<::windows::core::PCWSTR>; fn SetPath(&self, pszpath: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] @@ -535,7 +535,7 @@ impl IWSDHttpAddress_Vtbl { let this = (*this).get_impl(); this.SetSecure(::core::mem::transmute_copy(&fsecure)).into() } - unsafe extern "system" fn GetPath, Impl: IWSDHttpAddress_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppszpath: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPath, Impl: IWSDHttpAddress_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppszpath: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPath() { @@ -609,11 +609,11 @@ impl IWSDHttpAuthParameters_Vtbl { #[doc = "*Required features: `\"Win32_Devices_WebServicesOnDevices\"`, `\"implement\"`*"] pub trait IWSDHttpMessageParameters_Impl: Sized + IWSDMessageParameters_Impl { fn SetInboundHttpHeaders(&self, pszheaders: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn GetInboundHttpHeaders(&self) -> ::windows::core::Result<::windows::core::PWSTR>; + fn GetInboundHttpHeaders(&self) -> ::windows::core::Result<::windows::core::PCWSTR>; fn SetOutboundHttpHeaders(&self, pszheaders: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn GetOutboundHttpHeaders(&self) -> ::windows::core::Result<::windows::core::PWSTR>; + fn GetOutboundHttpHeaders(&self) -> ::windows::core::Result<::windows::core::PCWSTR>; fn SetID(&self, pszid: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn GetID(&self) -> ::windows::core::Result<::windows::core::PWSTR>; + fn GetID(&self) -> ::windows::core::Result<::windows::core::PCWSTR>; fn SetContext(&self, pcontext: ::core::option::Option<&::windows::core::IUnknown>) -> ::windows::core::Result<()>; fn GetContext(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn Clear(&self) -> ::windows::core::Result<()>; @@ -626,7 +626,7 @@ impl IWSDHttpMessageParameters_Vtbl { let this = (*this).get_impl(); this.SetInboundHttpHeaders(::core::mem::transmute(&pszheaders)).into() } - unsafe extern "system" fn GetInboundHttpHeaders, Impl: IWSDHttpMessageParameters_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppszheaders: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetInboundHttpHeaders, Impl: IWSDHttpMessageParameters_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppszheaders: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetInboundHttpHeaders() { @@ -642,7 +642,7 @@ impl IWSDHttpMessageParameters_Vtbl { let this = (*this).get_impl(); this.SetOutboundHttpHeaders(::core::mem::transmute(&pszheaders)).into() } - unsafe extern "system" fn GetOutboundHttpHeaders, Impl: IWSDHttpMessageParameters_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppszheaders: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetOutboundHttpHeaders, Impl: IWSDHttpMessageParameters_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppszheaders: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetOutboundHttpHeaders() { @@ -658,7 +658,7 @@ impl IWSDHttpMessageParameters_Vtbl { let this = (*this).get_impl(); this.SetID(::core::mem::transmute(&pszid)).into() } - unsafe extern "system" fn GetID, Impl: IWSDHttpMessageParameters_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppszid: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetID, Impl: IWSDHttpMessageParameters_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppszid: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetID() { @@ -909,7 +909,7 @@ impl IWSDSSLClientCertificate_Vtbl { #[doc = "*Required features: `\"Win32_Devices_WebServicesOnDevices\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] #[cfg(feature = "Win32_Foundation")] pub trait IWSDScopeMatchingRule_Impl: Sized { - fn GetScopeRule(&self) -> ::windows::core::Result<::windows::core::PWSTR>; + fn GetScopeRule(&self) -> ::windows::core::Result<::windows::core::PCWSTR>; fn MatchScopes(&self, pszscope1: &::windows::core::PCWSTR, pszscope2: &::windows::core::PCWSTR) -> ::windows::core::Result; } #[cfg(feature = "Win32_Foundation")] @@ -917,7 +917,7 @@ impl ::windows::core::RuntimeName for IWSDScopeMatchingRule {} #[cfg(feature = "Win32_Foundation")] impl IWSDScopeMatchingRule_Vtbl { pub const fn new, Impl: IWSDScopeMatchingRule_Impl, const OFFSET: isize>() -> IWSDScopeMatchingRule_Vtbl { - unsafe extern "system" fn GetScopeRule, Impl: IWSDScopeMatchingRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppszscopematchingrule: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetScopeRule, Impl: IWSDScopeMatchingRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppszscopematchingrule: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetScopeRule() { @@ -1258,8 +1258,8 @@ impl IWSDSignatureProperty_Vtbl { pub trait IWSDTransportAddress_Impl: Sized + IWSDAddress_Impl { fn GetPort(&self) -> ::windows::core::Result; fn SetPort(&self, wport: u16) -> ::windows::core::Result<()>; - fn GetTransportAddress(&self) -> ::windows::core::Result<::windows::core::PWSTR>; - fn GetTransportAddressEx(&self, fsafe: super::super::Foundation::BOOL) -> ::windows::core::Result<::windows::core::PWSTR>; + fn GetTransportAddress(&self) -> ::windows::core::Result<::windows::core::PCWSTR>; + fn GetTransportAddressEx(&self, fsafe: super::super::Foundation::BOOL) -> ::windows::core::Result<::windows::core::PCWSTR>; fn SetTransportAddress(&self, pszaddress: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] @@ -1283,7 +1283,7 @@ impl IWSDTransportAddress_Vtbl { let this = (*this).get_impl(); this.SetPort(::core::mem::transmute_copy(&wport)).into() } - unsafe extern "system" fn GetTransportAddress, Impl: IWSDTransportAddress_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppszaddress: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTransportAddress, Impl: IWSDTransportAddress_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppszaddress: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetTransportAddress() { @@ -1294,7 +1294,7 @@ impl IWSDTransportAddress_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetTransportAddressEx, Impl: IWSDTransportAddress_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fsafe: super::super::Foundation::BOOL, ppszaddress: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTransportAddressEx, Impl: IWSDTransportAddress_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fsafe: super::super::Foundation::BOOL, ppszaddress: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetTransportAddressEx(::core::mem::transmute_copy(&fsafe)) { @@ -1506,9 +1506,9 @@ pub trait IWSDiscoveredService_Impl: Sized { fn GetXAddrs(&self) -> ::windows::core::Result<*mut WSD_URI_LIST>; fn GetMetadataVersion(&self) -> ::windows::core::Result; fn GetExtendedDiscoXML(&self, ppheaderany: *mut *mut WSDXML_ELEMENT, ppbodyany: *mut *mut WSDXML_ELEMENT) -> ::windows::core::Result<()>; - fn GetProbeResolveTag(&self) -> ::windows::core::Result<::windows::core::PWSTR>; - fn GetRemoteTransportAddress(&self) -> ::windows::core::Result<::windows::core::PWSTR>; - fn GetLocalTransportAddress(&self) -> ::windows::core::Result<::windows::core::PWSTR>; + fn GetProbeResolveTag(&self) -> ::windows::core::Result<::windows::core::PCWSTR>; + fn GetRemoteTransportAddress(&self) -> ::windows::core::Result<::windows::core::PCWSTR>; + fn GetLocalTransportAddress(&self) -> ::windows::core::Result<::windows::core::PCWSTR>; fn GetLocalInterfaceGUID(&self) -> ::windows::core::Result<::windows::core::GUID>; fn GetInstanceId(&self) -> ::windows::core::Result; } @@ -1575,7 +1575,7 @@ impl IWSDiscoveredService_Vtbl { let this = (*this).get_impl(); this.GetExtendedDiscoXML(::core::mem::transmute_copy(&ppheaderany), ::core::mem::transmute_copy(&ppbodyany)).into() } - unsafe extern "system" fn GetProbeResolveTag, Impl: IWSDiscoveredService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppsztag: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetProbeResolveTag, Impl: IWSDiscoveredService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppsztag: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetProbeResolveTag() { @@ -1586,7 +1586,7 @@ impl IWSDiscoveredService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetRemoteTransportAddress, Impl: IWSDiscoveredService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppszremotetransportaddress: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRemoteTransportAddress, Impl: IWSDiscoveredService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppszremotetransportaddress: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRemoteTransportAddress() { @@ -1597,7 +1597,7 @@ impl IWSDiscoveredService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetLocalTransportAddress, Impl: IWSDiscoveredService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppszlocaltransportaddress: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetLocalTransportAddress, Impl: IWSDiscoveredService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppszlocaltransportaddress: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetLocalTransportAddress() { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs index 8b5e9548cf..77a03850df 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs @@ -262,12 +262,12 @@ where } #[doc = "*Required features: `\"Win32_Devices_WebServicesOnDevices\"`*"] #[inline] -pub unsafe fn WSDXMLGetValueFromAny(psznamespace: P0, pszname: P1, pany: *mut WSDXML_ELEMENT, ppszvalue: *mut ::windows::core::PWSTR) -> ::windows::core::Result<()> +pub unsafe fn WSDXMLGetValueFromAny(psznamespace: P0, pszname: P1, pany: *mut WSDXML_ELEMENT, ppszvalue: *mut ::windows::core::PCWSTR) -> ::windows::core::Result<()> where P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, { - ::windows::imp::link ! ( "wsdapi.dll""system" fn WSDXMLGetValueFromAny ( psznamespace : :: windows::core::PCWSTR , pszname : :: windows::core::PCWSTR , pany : *mut WSDXML_ELEMENT , ppszvalue : *mut :: windows::core::PWSTR ) -> :: windows::core::HRESULT ); + ::windows::imp::link ! ( "wsdapi.dll""system" fn WSDXMLGetValueFromAny ( psznamespace : :: windows::core::PCWSTR , pszname : :: windows::core::PCWSTR , pany : *mut WSDXML_ELEMENT , ppszvalue : *mut :: windows::core::PCWSTR ) -> :: windows::core::HRESULT ); WSDXMLGetValueFromAny(psznamespace.into_param().abi(), pszname.into_param().abi(), pany, ppszvalue).ok() } #[doc = "*Required features: `\"Win32_Devices_WebServicesOnDevices\"`*"] @@ -749,8 +749,8 @@ impl IWSDEndpointProxy { pub unsafe fn ProcessFault(&self, pfault: *const WSD_SOAP_FAULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ProcessFault)(::windows::core::Interface::as_raw(self), pfault).ok() } - pub unsafe fn GetErrorInfo(&self) -> ::windows::core::Result<::windows::core::PWSTR> { - let mut result__ = ::windows::core::zeroed::<::windows::core::PWSTR>(); + pub unsafe fn GetErrorInfo(&self) -> ::windows::core::Result<::windows::core::PCWSTR> { + let mut result__ = ::windows::core::zeroed::<::windows::core::PCWSTR>(); (::windows::core::Interface::vtable(self).GetErrorInfo)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) } pub unsafe fn GetFaultInfo(&self) -> ::windows::core::Result<*mut WSD_SOAP_FAULT> { @@ -793,7 +793,7 @@ pub struct IWSDEndpointProxy_Vtbl { pub SendTwoWayRequestAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbody: *const ::core::ffi::c_void, poperation: *const WSD_OPERATION, pasyncstate: *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void, presult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub AbortAsyncOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pasyncresult: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub ProcessFault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfault: *const WSD_SOAP_FAULT) -> ::windows::core::HRESULT, - pub GetErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszerrorinfo: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, + pub GetErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszerrorinfo: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub GetFaultInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppfault: *mut *mut WSD_SOAP_FAULT) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_WebServicesOnDevices\"`*"] @@ -875,17 +875,17 @@ impl IWSDHttpAddress { pub unsafe fn SetPort(&self, wport: u16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetPort)(::windows::core::Interface::as_raw(self), wport).ok() } - pub unsafe fn GetTransportAddress(&self) -> ::windows::core::Result<::windows::core::PWSTR> { - let mut result__ = ::windows::core::zeroed::<::windows::core::PWSTR>(); + pub unsafe fn GetTransportAddress(&self) -> ::windows::core::Result<::windows::core::PCWSTR> { + let mut result__ = ::windows::core::zeroed::<::windows::core::PCWSTR>(); (::windows::core::Interface::vtable(self).base__.GetTransportAddress)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTransportAddressEx(&self, fsafe: P0) -> ::windows::core::Result<::windows::core::PWSTR> + pub unsafe fn GetTransportAddressEx(&self, fsafe: P0) -> ::windows::core::Result<::windows::core::PCWSTR> where P0: ::windows::core::IntoParam, { - let mut result__ = ::windows::core::zeroed::<::windows::core::PWSTR>(); + let mut result__ = ::windows::core::zeroed::<::windows::core::PCWSTR>(); (::windows::core::Interface::vtable(self).base__.GetTransportAddressEx)(::windows::core::Interface::as_raw(self), fsafe.into_param().abi(), &mut result__).from_abi(result__) } pub unsafe fn SetTransportAddress(&self, pszaddress: P0) -> ::windows::core::Result<()> @@ -905,8 +905,8 @@ impl IWSDHttpAddress { { (::windows::core::Interface::vtable(self).SetSecure)(::windows::core::Interface::as_raw(self), fsecure.into_param().abi()).ok() } - pub unsafe fn GetPath(&self) -> ::windows::core::Result<::windows::core::PWSTR> { - let mut result__ = ::windows::core::zeroed::<::windows::core::PWSTR>(); + pub unsafe fn GetPath(&self) -> ::windows::core::Result<::windows::core::PCWSTR> { + let mut result__ = ::windows::core::zeroed::<::windows::core::PCWSTR>(); (::windows::core::Interface::vtable(self).GetPath)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) } pub unsafe fn SetPath(&self, pszpath: P0) -> ::windows::core::Result<()> @@ -948,7 +948,7 @@ pub struct IWSDHttpAddress_Vtbl { pub SetSecure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fsecure: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] SetSecure: usize, - pub GetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszpath: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, + pub GetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszpath: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpath: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_WebServicesOnDevices\"`*"] @@ -1033,8 +1033,8 @@ impl IWSDHttpMessageParameters { { (::windows::core::Interface::vtable(self).SetInboundHttpHeaders)(::windows::core::Interface::as_raw(self), pszheaders.into_param().abi()).ok() } - pub unsafe fn GetInboundHttpHeaders(&self) -> ::windows::core::Result<::windows::core::PWSTR> { - let mut result__ = ::windows::core::zeroed::<::windows::core::PWSTR>(); + pub unsafe fn GetInboundHttpHeaders(&self) -> ::windows::core::Result<::windows::core::PCWSTR> { + let mut result__ = ::windows::core::zeroed::<::windows::core::PCWSTR>(); (::windows::core::Interface::vtable(self).GetInboundHttpHeaders)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) } pub unsafe fn SetOutboundHttpHeaders(&self, pszheaders: P0) -> ::windows::core::Result<()> @@ -1043,8 +1043,8 @@ impl IWSDHttpMessageParameters { { (::windows::core::Interface::vtable(self).SetOutboundHttpHeaders)(::windows::core::Interface::as_raw(self), pszheaders.into_param().abi()).ok() } - pub unsafe fn GetOutboundHttpHeaders(&self) -> ::windows::core::Result<::windows::core::PWSTR> { - let mut result__ = ::windows::core::zeroed::<::windows::core::PWSTR>(); + pub unsafe fn GetOutboundHttpHeaders(&self) -> ::windows::core::Result<::windows::core::PCWSTR> { + let mut result__ = ::windows::core::zeroed::<::windows::core::PCWSTR>(); (::windows::core::Interface::vtable(self).GetOutboundHttpHeaders)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) } pub unsafe fn SetID(&self, pszid: P0) -> ::windows::core::Result<()> @@ -1053,8 +1053,8 @@ impl IWSDHttpMessageParameters { { (::windows::core::Interface::vtable(self).SetID)(::windows::core::Interface::as_raw(self), pszid.into_param().abi()).ok() } - pub unsafe fn GetID(&self) -> ::windows::core::Result<::windows::core::PWSTR> { - let mut result__ = ::windows::core::zeroed::<::windows::core::PWSTR>(); + pub unsafe fn GetID(&self) -> ::windows::core::Result<::windows::core::PCWSTR> { + let mut result__ = ::windows::core::zeroed::<::windows::core::PCWSTR>(); (::windows::core::Interface::vtable(self).GetID)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) } pub unsafe fn SetContext(&self, pcontext: P0) -> ::windows::core::Result<()> @@ -1099,11 +1099,11 @@ unsafe impl ::windows::core::ComInterface for IWSDHttpMessageParameters { pub struct IWSDHttpMessageParameters_Vtbl { pub base__: IWSDMessageParameters_Vtbl, pub SetInboundHttpHeaders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszheaders: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, - pub GetInboundHttpHeaders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszheaders: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, + pub GetInboundHttpHeaders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszheaders: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub SetOutboundHttpHeaders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszheaders: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, - pub GetOutboundHttpHeaders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszheaders: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, + pub GetOutboundHttpHeaders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszheaders: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub SetID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszid: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, - pub GetID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszid: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, + pub GetID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszid: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub SetContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcontext: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -1352,8 +1352,8 @@ pub struct IWSDSSLClientCertificate_Vtbl { #[repr(transparent)] pub struct IWSDScopeMatchingRule(::windows::core::IUnknown); impl IWSDScopeMatchingRule { - pub unsafe fn GetScopeRule(&self) -> ::windows::core::Result<::windows::core::PWSTR> { - let mut result__ = ::windows::core::zeroed::<::windows::core::PWSTR>(); + pub unsafe fn GetScopeRule(&self) -> ::windows::core::Result<::windows::core::PCWSTR> { + let mut result__ = ::windows::core::zeroed::<::windows::core::PCWSTR>(); (::windows::core::Interface::vtable(self).GetScopeRule)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -1394,7 +1394,7 @@ unsafe impl ::windows::core::ComInterface for IWSDScopeMatchingRule { #[doc(hidden)] pub struct IWSDScopeMatchingRule_Vtbl { pub base__: ::windows::core::IUnknown_Vtbl, - pub GetScopeRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszscopematchingrule: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, + pub GetScopeRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszscopematchingrule: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub MatchScopes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszscope1: ::windows::core::PCWSTR, pszscope2: ::windows::core::PCWSTR, pfmatch: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -1810,17 +1810,17 @@ impl IWSDTransportAddress { pub unsafe fn SetPort(&self, wport: u16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetPort)(::windows::core::Interface::as_raw(self), wport).ok() } - pub unsafe fn GetTransportAddress(&self) -> ::windows::core::Result<::windows::core::PWSTR> { - let mut result__ = ::windows::core::zeroed::<::windows::core::PWSTR>(); + pub unsafe fn GetTransportAddress(&self) -> ::windows::core::Result<::windows::core::PCWSTR> { + let mut result__ = ::windows::core::zeroed::<::windows::core::PCWSTR>(); (::windows::core::Interface::vtable(self).GetTransportAddress)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTransportAddressEx(&self, fsafe: P0) -> ::windows::core::Result<::windows::core::PWSTR> + pub unsafe fn GetTransportAddressEx(&self, fsafe: P0) -> ::windows::core::Result<::windows::core::PCWSTR> where P0: ::windows::core::IntoParam, { - let mut result__ = ::windows::core::zeroed::<::windows::core::PWSTR>(); + let mut result__ = ::windows::core::zeroed::<::windows::core::PCWSTR>(); (::windows::core::Interface::vtable(self).GetTransportAddressEx)(::windows::core::Interface::as_raw(self), fsafe.into_param().abi(), &mut result__).from_abi(result__) } pub unsafe fn SetTransportAddress(&self, pszaddress: P0) -> ::windows::core::Result<()> @@ -1859,9 +1859,9 @@ pub struct IWSDTransportAddress_Vtbl { pub base__: IWSDAddress_Vtbl, pub GetPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwport: *mut u16) -> ::windows::core::HRESULT, pub SetPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wport: u16) -> ::windows::core::HRESULT, - pub GetTransportAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszaddress: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, + pub GetTransportAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszaddress: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub GetTransportAddressEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fsafe: super::super::Foundation::BOOL, ppszaddress: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, + pub GetTransportAddressEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fsafe: super::super::Foundation::BOOL, ppszaddress: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] GetTransportAddressEx: usize, pub SetTransportAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszaddress: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, @@ -1891,17 +1891,17 @@ impl IWSDUdpAddress { pub unsafe fn SetPort(&self, wport: u16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetPort)(::windows::core::Interface::as_raw(self), wport).ok() } - pub unsafe fn GetTransportAddress(&self) -> ::windows::core::Result<::windows::core::PWSTR> { - let mut result__ = ::windows::core::zeroed::<::windows::core::PWSTR>(); + pub unsafe fn GetTransportAddress(&self) -> ::windows::core::Result<::windows::core::PCWSTR> { + let mut result__ = ::windows::core::zeroed::<::windows::core::PCWSTR>(); (::windows::core::Interface::vtable(self).base__.GetTransportAddress)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTransportAddressEx(&self, fsafe: P0) -> ::windows::core::Result<::windows::core::PWSTR> + pub unsafe fn GetTransportAddressEx(&self, fsafe: P0) -> ::windows::core::Result<::windows::core::PCWSTR> where P0: ::windows::core::IntoParam, { - let mut result__ = ::windows::core::zeroed::<::windows::core::PWSTR>(); + let mut result__ = ::windows::core::zeroed::<::windows::core::PCWSTR>(); (::windows::core::Interface::vtable(self).base__.GetTransportAddressEx)(::windows::core::Interface::as_raw(self), fsafe.into_param().abi(), &mut result__).from_abi(result__) } pub unsafe fn SetTransportAddress(&self, pszaddress: P0) -> ::windows::core::Result<()> @@ -2149,16 +2149,16 @@ impl IWSDiscoveredService { pub unsafe fn GetExtendedDiscoXML(&self, ppheaderany: *mut *mut WSDXML_ELEMENT, ppbodyany: *mut *mut WSDXML_ELEMENT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetExtendedDiscoXML)(::windows::core::Interface::as_raw(self), ppheaderany, ppbodyany).ok() } - pub unsafe fn GetProbeResolveTag(&self) -> ::windows::core::Result<::windows::core::PWSTR> { - let mut result__ = ::windows::core::zeroed::<::windows::core::PWSTR>(); + pub unsafe fn GetProbeResolveTag(&self) -> ::windows::core::Result<::windows::core::PCWSTR> { + let mut result__ = ::windows::core::zeroed::<::windows::core::PCWSTR>(); (::windows::core::Interface::vtable(self).GetProbeResolveTag)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) } - pub unsafe fn GetRemoteTransportAddress(&self) -> ::windows::core::Result<::windows::core::PWSTR> { - let mut result__ = ::windows::core::zeroed::<::windows::core::PWSTR>(); + pub unsafe fn GetRemoteTransportAddress(&self) -> ::windows::core::Result<::windows::core::PCWSTR> { + let mut result__ = ::windows::core::zeroed::<::windows::core::PCWSTR>(); (::windows::core::Interface::vtable(self).GetRemoteTransportAddress)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) } - pub unsafe fn GetLocalTransportAddress(&self) -> ::windows::core::Result<::windows::core::PWSTR> { - let mut result__ = ::windows::core::zeroed::<::windows::core::PWSTR>(); + pub unsafe fn GetLocalTransportAddress(&self) -> ::windows::core::Result<::windows::core::PCWSTR> { + let mut result__ = ::windows::core::zeroed::<::windows::core::PCWSTR>(); (::windows::core::Interface::vtable(self).GetLocalTransportAddress)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) } pub unsafe fn GetLocalInterfaceGUID(&self) -> ::windows::core::Result<::windows::core::GUID> { @@ -2203,9 +2203,9 @@ pub struct IWSDiscoveredService_Vtbl { pub GetXAddrs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppxaddrslist: *mut *mut WSD_URI_LIST) -> ::windows::core::HRESULT, pub GetMetadataVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pullmetadataversion: *mut u64) -> ::windows::core::HRESULT, pub GetExtendedDiscoXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppheaderany: *mut *mut WSDXML_ELEMENT, ppbodyany: *mut *mut WSDXML_ELEMENT) -> ::windows::core::HRESULT, - pub GetProbeResolveTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsztag: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, - pub GetRemoteTransportAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszremotetransportaddress: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, - pub GetLocalTransportAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszlocaltransportaddress: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, + pub GetProbeResolveTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsztag: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT, + pub GetRemoteTransportAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszremotetransportaddress: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT, + pub GetLocalTransportAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszlocaltransportaddress: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub GetLocalInterfaceGUID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub GetInstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pullinstanceid: *mut u64) -> ::windows::core::HRESULT, } diff --git a/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs b/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs index 14766ad860..d4704944ca 100644 --- a/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs @@ -1714,8 +1714,8 @@ pub unsafe fn u_enumCharTypes(enumrange: *mut UCharEnumTypeRange, context: *cons } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn u_errorName(code: UErrorCode) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn u_errorName ( code : UErrorCode ) -> :: windows::core::PSTR ); +pub unsafe fn u_errorName(code: UErrorCode) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn u_errorName ( code : UErrorCode ) -> :: windows::core::PCSTR ); u_errorName(code) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -1819,8 +1819,8 @@ where } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn u_getPropertyName(property: UProperty, namechoice: UPropertyNameChoice) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn u_getPropertyName ( property : UProperty , namechoice : UPropertyNameChoice ) -> :: windows::core::PSTR ); +pub unsafe fn u_getPropertyName(property: UProperty, namechoice: UPropertyNameChoice) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn u_getPropertyName ( property : UProperty , namechoice : UPropertyNameChoice ) -> :: windows::core::PCSTR ); u_getPropertyName(property, namechoice) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -1834,8 +1834,8 @@ where } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn u_getPropertyValueName(property: UProperty, value: i32, namechoice: UPropertyNameChoice) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn u_getPropertyValueName ( property : UProperty , value : i32 , namechoice : UPropertyNameChoice ) -> :: windows::core::PSTR ); +pub unsafe fn u_getPropertyValueName(property: UProperty, value: i32, namechoice: UPropertyNameChoice) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn u_getPropertyValueName ( property : UProperty , value : i32 , namechoice : UPropertyNameChoice ) -> :: windows::core::PCSTR ); u_getPropertyValueName(property, value, namechoice) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -2833,8 +2833,8 @@ pub unsafe fn ubrk_following(bi: *mut UBreakIterator, offset: i32) -> i32 { } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ubrk_getAvailable(index: i32) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ubrk_getAvailable ( index : i32 ) -> :: windows::core::PSTR ); +pub unsafe fn ubrk_getAvailable(index: i32) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn ubrk_getAvailable ( index : i32 ) -> :: windows::core::PCSTR ); ubrk_getAvailable(index) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -2845,8 +2845,8 @@ pub unsafe fn ubrk_getBinaryRules(bi: *mut UBreakIterator, binaryrules: *mut u8, } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ubrk_getLocaleByType(bi: *const UBreakIterator, r#type: ULocDataLocaleType, status: *mut UErrorCode) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ubrk_getLocaleByType ( bi : *const UBreakIterator , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows::core::PSTR ); +pub unsafe fn ubrk_getLocaleByType(bi: *const UBreakIterator, r#type: ULocDataLocaleType, status: *mut UErrorCode) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn ubrk_getLocaleByType ( bi : *const UBreakIterator , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows::core::PCSTR ); ubrk_getLocaleByType(bi, r#type, status) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -2992,8 +2992,8 @@ pub unsafe fn ucal_getAttribute(cal: *const *const ::core::ffi::c_void, attr: UC } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ucal_getAvailable(localeindex: i32) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ucal_getAvailable ( localeindex : i32 ) -> :: windows::core::PSTR ); +pub unsafe fn ucal_getAvailable(localeindex: i32) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn ucal_getAvailable ( localeindex : i32 ) -> :: windows::core::PCSTR ); ucal_getAvailable(localeindex) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -3056,8 +3056,8 @@ pub unsafe fn ucal_getLimit(cal: *const *const ::core::ffi::c_void, field: UCale } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ucal_getLocaleByType(cal: *const *const ::core::ffi::c_void, r#type: ULocDataLocaleType, status: *mut UErrorCode) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ucal_getLocaleByType ( cal : *const *const ::core::ffi::c_void , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows::core::PSTR ); +pub unsafe fn ucal_getLocaleByType(cal: *const *const ::core::ffi::c_void, r#type: ULocDataLocaleType, status: *mut UErrorCode) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn ucal_getLocaleByType ( cal : *const *const ::core::ffi::c_void , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows::core::PCSTR ); ucal_getLocaleByType(cal, r#type, status) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -3074,8 +3074,8 @@ pub unsafe fn ucal_getNow() -> f64 { } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ucal_getTZDataVersion(status: *mut UErrorCode) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ucal_getTZDataVersion ( status : *mut UErrorCode ) -> :: windows::core::PSTR ); +pub unsafe fn ucal_getTZDataVersion(status: *mut UErrorCode) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn ucal_getTZDataVersion ( status : *mut UErrorCode ) -> :: windows::core::PCSTR ); ucal_getTZDataVersion(status) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -3110,8 +3110,8 @@ pub unsafe fn ucal_getTimeZoneTransitionDate(cal: *const *const ::core::ffi::c_v } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ucal_getType(cal: *const *const ::core::ffi::c_void, status: *mut UErrorCode) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ucal_getType ( cal : *const *const ::core::ffi::c_void , status : *mut UErrorCode ) -> :: windows::core::PSTR ); +pub unsafe fn ucal_getType(cal: *const *const ::core::ffi::c_void, status: *mut UErrorCode) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn ucal_getType ( cal : *const *const ::core::ffi::c_void , status : *mut UErrorCode ) -> :: windows::core::PCSTR ); ucal_getType(cal, status) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -3245,8 +3245,8 @@ pub unsafe fn ucasemap_getBreakIterator(csm: *const UCaseMap) -> *mut UBreakIter } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ucasemap_getLocale(csm: *const UCaseMap) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ucasemap_getLocale ( csm : *const UCaseMap ) -> :: windows::core::PSTR ); +pub unsafe fn ucasemap_getLocale(csm: *const UCaseMap) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn ucasemap_getLocale ( csm : *const UCaseMap ) -> :: windows::core::PCSTR ); ucasemap_getLocale(csm) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -3497,11 +3497,11 @@ pub unsafe fn ucnv_countStandards() -> u16 { } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ucnv_detectUnicodeSignature(source: P0, sourcelength: i32, signaturelength: *mut i32, perrorcode: *mut UErrorCode) -> ::windows::core::PSTR +pub unsafe fn ucnv_detectUnicodeSignature(source: P0, sourcelength: i32, signaturelength: *mut i32, perrorcode: *mut UErrorCode) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ucnv_detectUnicodeSignature ( source : :: windows::core::PCSTR , sourcelength : i32 , signaturelength : *mut i32 , perrorcode : *mut UErrorCode ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "icu.dll""cdecl" fn ucnv_detectUnicodeSignature ( source : :: windows::core::PCSTR , sourcelength : i32 , signaturelength : *mut i32 , perrorcode : *mut UErrorCode ) -> :: windows::core::PCSTR ); ucnv_detectUnicodeSignature(source.into_param().abi(), sourcelength, signaturelength, perrorcode) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -3552,11 +3552,11 @@ where } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ucnv_getAlias(alias: P0, n: u16, perrorcode: *mut UErrorCode) -> ::windows::core::PSTR +pub unsafe fn ucnv_getAlias(alias: P0, n: u16, perrorcode: *mut UErrorCode) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ucnv_getAlias ( alias : :: windows::core::PCSTR , n : u16 , perrorcode : *mut UErrorCode ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "icu.dll""cdecl" fn ucnv_getAlias ( alias : :: windows::core::PCSTR , n : u16 , perrorcode : *mut UErrorCode ) -> :: windows::core::PCSTR ); ucnv_getAlias(alias.into_param().abi(), n, perrorcode) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -3570,8 +3570,8 @@ where } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ucnv_getAvailableName(n: i32) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ucnv_getAvailableName ( n : i32 ) -> :: windows::core::PSTR ); +pub unsafe fn ucnv_getAvailableName(n: i32) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn ucnv_getAvailableName ( n : i32 ) -> :: windows::core::PCSTR ); ucnv_getAvailableName(n) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -3582,18 +3582,18 @@ pub unsafe fn ucnv_getCCSID(converter: *const UConverter, err: *mut UErrorCode) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ucnv_getCanonicalName(alias: P0, standard: P1, perrorcode: *mut UErrorCode) -> ::windows::core::PSTR +pub unsafe fn ucnv_getCanonicalName(alias: P0, standard: P1, perrorcode: *mut UErrorCode) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, P1: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ucnv_getCanonicalName ( alias : :: windows::core::PCSTR , standard : :: windows::core::PCSTR , perrorcode : *mut UErrorCode ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "icu.dll""cdecl" fn ucnv_getCanonicalName ( alias : :: windows::core::PCSTR , standard : :: windows::core::PCSTR , perrorcode : *mut UErrorCode ) -> :: windows::core::PCSTR ); ucnv_getCanonicalName(alias.into_param().abi(), standard.into_param().abi(), perrorcode) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ucnv_getDefaultName() -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ucnv_getDefaultName ( ) -> :: windows::core::PSTR ); +pub unsafe fn ucnv_getDefaultName() -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn ucnv_getDefaultName ( ) -> :: windows::core::PCSTR ); ucnv_getDefaultName() } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -3640,8 +3640,8 @@ pub unsafe fn ucnv_getMinCharSize(converter: *const UConverter) -> i8 { } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ucnv_getName(converter: *const UConverter, err: *mut UErrorCode) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ucnv_getName ( converter : *const UConverter , err : *mut UErrorCode ) -> :: windows::core::PSTR ); +pub unsafe fn ucnv_getName(converter: *const UConverter, err: *mut UErrorCode) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn ucnv_getName ( converter : *const UConverter , err : *mut UErrorCode ) -> :: windows::core::PCSTR ); ucnv_getName(converter, err) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -3661,18 +3661,18 @@ pub unsafe fn ucnv_getPlatform(converter: *const UConverter, err: *mut UErrorCod } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ucnv_getStandard(n: u16, perrorcode: *mut UErrorCode) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ucnv_getStandard ( n : u16 , perrorcode : *mut UErrorCode ) -> :: windows::core::PSTR ); +pub unsafe fn ucnv_getStandard(n: u16, perrorcode: *mut UErrorCode) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn ucnv_getStandard ( n : u16 , perrorcode : *mut UErrorCode ) -> :: windows::core::PCSTR ); ucnv_getStandard(n, perrorcode) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ucnv_getStandardName(name: P0, standard: P1, perrorcode: *mut UErrorCode) -> ::windows::core::PSTR +pub unsafe fn ucnv_getStandardName(name: P0, standard: P1, perrorcode: *mut UErrorCode) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, P1: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ucnv_getStandardName ( name : :: windows::core::PCSTR , standard : :: windows::core::PCSTR , perrorcode : *mut UErrorCode ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "icu.dll""cdecl" fn ucnv_getStandardName ( name : :: windows::core::PCSTR , standard : :: windows::core::PCSTR , perrorcode : *mut UErrorCode ) -> :: windows::core::PCSTR ); ucnv_getStandardName(name.into_param().abi(), standard.into_param().abi(), perrorcode) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -3950,8 +3950,8 @@ pub unsafe fn ucol_getAttribute(coll: *const UCollator, attr: UColAttribute, sta } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ucol_getAvailable(localeindex: i32) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ucol_getAvailable ( localeindex : i32 ) -> :: windows::core::PSTR ); +pub unsafe fn ucol_getAvailable(localeindex: i32) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn ucol_getAvailable ( localeindex : i32 ) -> :: windows::core::PCSTR ); ucol_getAvailable(localeindex) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -4020,8 +4020,8 @@ pub unsafe fn ucol_getKeywords(status: *mut UErrorCode) -> *mut UEnumeration { } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ucol_getLocaleByType(coll: *const UCollator, r#type: ULocDataLocaleType, status: *mut UErrorCode) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ucol_getLocaleByType ( coll : *const UCollator , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows::core::PSTR ); +pub unsafe fn ucol_getLocaleByType(coll: *const UCollator, r#type: ULocDataLocaleType, status: *mut UErrorCode) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn ucol_getLocaleByType ( coll : *const UCollator , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows::core::PCSTR ); ucol_getLocaleByType(coll, r#type, status) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -4369,14 +4369,14 @@ pub unsafe fn ucsdet_getConfidence(ucsm: *const UCharsetMatch, status: *mut UErr } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ucsdet_getLanguage(ucsm: *const UCharsetMatch, status: *mut UErrorCode) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ucsdet_getLanguage ( ucsm : *const UCharsetMatch , status : *mut UErrorCode ) -> :: windows::core::PSTR ); +pub unsafe fn ucsdet_getLanguage(ucsm: *const UCharsetMatch, status: *mut UErrorCode) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn ucsdet_getLanguage ( ucsm : *const UCharsetMatch , status : *mut UErrorCode ) -> :: windows::core::PCSTR ); ucsdet_getLanguage(ucsm, status) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ucsdet_getName(ucsm: *const UCharsetMatch, status: *mut UErrorCode) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ucsdet_getName ( ucsm : *const UCharsetMatch , status : *mut UErrorCode ) -> :: windows::core::PSTR ); +pub unsafe fn ucsdet_getName(ucsm: *const UCharsetMatch, status: *mut UErrorCode) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn ucsdet_getName ( ucsm : *const UCharsetMatch , status : *mut UErrorCode ) -> :: windows::core::PCSTR ); ucsdet_getName(ucsm, status) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -4602,8 +4602,8 @@ pub unsafe fn udat_get2DigitYearStart(fmt: *const *const ::core::ffi::c_void, st } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn udat_getAvailable(localeindex: i32) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn udat_getAvailable ( localeindex : i32 ) -> :: windows::core::PSTR ); +pub unsafe fn udat_getAvailable(localeindex: i32) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn udat_getAvailable ( localeindex : i32 ) -> :: windows::core::PCSTR ); udat_getAvailable(localeindex) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -4626,8 +4626,8 @@ pub unsafe fn udat_getContext(fmt: *const *const ::core::ffi::c_void, r#type: UD } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn udat_getLocaleByType(fmt: *const *const ::core::ffi::c_void, r#type: ULocDataLocaleType, status: *mut UErrorCode) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn udat_getLocaleByType ( fmt : *const *const ::core::ffi::c_void , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows::core::PSTR ); +pub unsafe fn udat_getLocaleByType(fmt: *const *const ::core::ffi::c_void, r#type: ULocDataLocaleType, status: *mut UErrorCode) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn udat_getLocaleByType ( fmt : *const *const ::core::ffi::c_void , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows::core::PCSTR ); udat_getLocaleByType(fmt, r#type, status) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -4923,8 +4923,8 @@ pub unsafe fn uenum_count(en: *mut UEnumeration, status: *mut UErrorCode) -> i32 } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn uenum_next(en: *mut UEnumeration, resultlength: *mut i32, status: *mut UErrorCode) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn uenum_next ( en : *mut UEnumeration , resultlength : *mut i32 , status : *mut UErrorCode ) -> :: windows::core::PSTR ); +pub unsafe fn uenum_next(en: *mut UEnumeration, resultlength: *mut i32, status: *mut UErrorCode) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn uenum_next ( en : *mut UEnumeration , resultlength : *mut i32 , status : *mut UErrorCode ) -> :: windows::core::PCSTR ); uenum_next(en, resultlength, status) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -4995,8 +4995,8 @@ pub unsafe fn ufmt_getDate(fmt: *const *const ::core::ffi::c_void, status: *mut } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ufmt_getDecNumChars(fmt: *mut *mut ::core::ffi::c_void, len: *mut i32, status: *mut UErrorCode) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ufmt_getDecNumChars ( fmt : *mut *mut ::core::ffi::c_void , len : *mut i32 , status : *mut UErrorCode ) -> :: windows::core::PSTR ); +pub unsafe fn ufmt_getDecNumChars(fmt: *mut *mut ::core::ffi::c_void, len: *mut i32, status: *mut UErrorCode) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn ufmt_getDecNumChars ( fmt : *mut *mut ::core::ffi::c_void , len : *mut i32 , status : *mut UErrorCode ) -> :: windows::core::PCSTR ); ufmt_getDecNumChars(fmt, len, status) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -5224,8 +5224,8 @@ pub unsafe fn uldn_getDialectHandling(ldn: *const ULocaleDisplayNames) -> UDiale } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn uldn_getLocale(ldn: *const ULocaleDisplayNames) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn uldn_getLocale ( ldn : *const ULocaleDisplayNames ) -> :: windows::core::PSTR ); +pub unsafe fn uldn_getLocale(ldn: *const ULocaleDisplayNames) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn uldn_getLocale ( ldn : *const ULocaleDisplayNames ) -> :: windows::core::PCSTR ); uldn_getLocale(ldn) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -5427,8 +5427,8 @@ where } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn uloc_getAvailable(n: i32) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn uloc_getAvailable ( n : i32 ) -> :: windows::core::PSTR ); +pub unsafe fn uloc_getAvailable(n: i32) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn uloc_getAvailable ( n : i32 ) -> :: windows::core::PCSTR ); uloc_getAvailable(n) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -5462,8 +5462,8 @@ where } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn uloc_getDefault() -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn uloc_getDefault ( ) -> :: windows::core::PSTR ); +pub unsafe fn uloc_getDefault() -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn uloc_getDefault ( ) -> :: windows::core::PCSTR ); uloc_getDefault() } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -5539,20 +5539,20 @@ where } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn uloc_getISO3Country(localeid: P0) -> ::windows::core::PSTR +pub unsafe fn uloc_getISO3Country(localeid: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "icu.dll""cdecl" fn uloc_getISO3Country ( localeid : :: windows::core::PCSTR ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "icu.dll""cdecl" fn uloc_getISO3Country ( localeid : :: windows::core::PCSTR ) -> :: windows::core::PCSTR ); uloc_getISO3Country(localeid.into_param().abi()) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn uloc_getISO3Language(localeid: P0) -> ::windows::core::PSTR +pub unsafe fn uloc_getISO3Language(localeid: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "icu.dll""cdecl" fn uloc_getISO3Language ( localeid : :: windows::core::PCSTR ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "icu.dll""cdecl" fn uloc_getISO3Language ( localeid : :: windows::core::PCSTR ) -> :: windows::core::PCSTR ); uloc_getISO3Language(localeid.into_param().abi()) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -5721,40 +5721,40 @@ where } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn uloc_toLegacyKey(keyword: P0) -> ::windows::core::PSTR +pub unsafe fn uloc_toLegacyKey(keyword: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "icu.dll""cdecl" fn uloc_toLegacyKey ( keyword : :: windows::core::PCSTR ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "icu.dll""cdecl" fn uloc_toLegacyKey ( keyword : :: windows::core::PCSTR ) -> :: windows::core::PCSTR ); uloc_toLegacyKey(keyword.into_param().abi()) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn uloc_toLegacyType(keyword: P0, value: P1) -> ::windows::core::PSTR +pub unsafe fn uloc_toLegacyType(keyword: P0, value: P1) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, P1: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "icu.dll""cdecl" fn uloc_toLegacyType ( keyword : :: windows::core::PCSTR , value : :: windows::core::PCSTR ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "icu.dll""cdecl" fn uloc_toLegacyType ( keyword : :: windows::core::PCSTR , value : :: windows::core::PCSTR ) -> :: windows::core::PCSTR ); uloc_toLegacyType(keyword.into_param().abi(), value.into_param().abi()) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn uloc_toUnicodeLocaleKey(keyword: P0) -> ::windows::core::PSTR +pub unsafe fn uloc_toUnicodeLocaleKey(keyword: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "icu.dll""cdecl" fn uloc_toUnicodeLocaleKey ( keyword : :: windows::core::PCSTR ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "icu.dll""cdecl" fn uloc_toUnicodeLocaleKey ( keyword : :: windows::core::PCSTR ) -> :: windows::core::PCSTR ); uloc_toUnicodeLocaleKey(keyword.into_param().abi()) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn uloc_toUnicodeLocaleType(keyword: P0, value: P1) -> ::windows::core::PSTR +pub unsafe fn uloc_toUnicodeLocaleType(keyword: P0, value: P1) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, P1: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "icu.dll""cdecl" fn uloc_toUnicodeLocaleType ( keyword : :: windows::core::PCSTR , value : :: windows::core::PCSTR ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "icu.dll""cdecl" fn uloc_toUnicodeLocaleType ( keyword : :: windows::core::PCSTR , value : :: windows::core::PCSTR ) -> :: windows::core::PCSTR ); uloc_toUnicodeLocaleType(keyword.into_param().abi(), value.into_param().abi()) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -5864,8 +5864,8 @@ pub unsafe fn umsg_format(fmt: *const *const ::core::ffi::c_void, result: *mut u } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn umsg_getLocale(fmt: *const *const ::core::ffi::c_void) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn umsg_getLocale ( fmt : *const *const ::core::ffi::c_void ) -> :: windows::core::PSTR ); +pub unsafe fn umsg_getLocale(fmt: *const *const ::core::ffi::c_void) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn umsg_getLocale ( fmt : *const *const ::core::ffi::c_void ) -> :: windows::core::PCSTR ); umsg_getLocale(fmt) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -6183,8 +6183,8 @@ pub unsafe fn unum_getAttribute(fmt: *const *const ::core::ffi::c_void, attr: UN } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn unum_getAvailable(localeindex: i32) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn unum_getAvailable ( localeindex : i32 ) -> :: windows::core::PSTR ); +pub unsafe fn unum_getAvailable(localeindex: i32) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn unum_getAvailable ( localeindex : i32 ) -> :: windows::core::PCSTR ); unum_getAvailable(localeindex) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -6201,8 +6201,8 @@ pub unsafe fn unum_getDoubleAttribute(fmt: *const *const ::core::ffi::c_void, at } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn unum_getLocaleByType(fmt: *const *const ::core::ffi::c_void, r#type: ULocDataLocaleType, status: *mut UErrorCode) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn unum_getLocaleByType ( fmt : *const *const ::core::ffi::c_void , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows::core::PSTR ); +pub unsafe fn unum_getLocaleByType(fmt: *const *const ::core::ffi::c_void, r#type: ULocDataLocaleType, status: *mut UErrorCode) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn unum_getLocaleByType ( fmt : *const *const ::core::ffi::c_void , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows::core::PCSTR ); unum_getLocaleByType(fmt, r#type, status) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -6396,8 +6396,8 @@ pub unsafe fn unumsys_getDescription(unumsys: *const UNumberingSystem, result: * } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn unumsys_getName(unumsys: *const UNumberingSystem) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn unumsys_getName ( unumsys : *const UNumberingSystem ) -> :: windows::core::PSTR ); +pub unsafe fn unumsys_getName(unumsys: *const UNumberingSystem) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn unumsys_getName ( unumsys : *const UNumberingSystem ) -> :: windows::core::PCSTR ); unumsys_getName(unumsys) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -6912,8 +6912,8 @@ pub unsafe fn uregion_getPreferredValues(uregion: *const URegion, status: *mut U } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn uregion_getRegionCode(uregion: *const URegion) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn uregion_getRegionCode ( uregion : *const URegion ) -> :: windows::core::PSTR ); +pub unsafe fn uregion_getRegionCode(uregion: *const URegion) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn uregion_getRegionCode ( uregion : *const URegion ) -> :: windows::core::PCSTR ); uregion_getRegionCode(uregion) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -7041,14 +7041,14 @@ pub unsafe fn ures_getIntVector(resourcebundle: *const UResourceBundle, len: *mu } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ures_getKey(resourcebundle: *const UResourceBundle) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ures_getKey ( resourcebundle : *const UResourceBundle ) -> :: windows::core::PSTR ); +pub unsafe fn ures_getKey(resourcebundle: *const UResourceBundle) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn ures_getKey ( resourcebundle : *const UResourceBundle ) -> :: windows::core::PCSTR ); ures_getKey(resourcebundle) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ures_getLocaleByType(resourcebundle: *const UResourceBundle, r#type: ULocDataLocaleType, status: *mut UErrorCode) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ures_getLocaleByType ( resourcebundle : *const UResourceBundle , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows::core::PSTR ); +pub unsafe fn ures_getLocaleByType(resourcebundle: *const UResourceBundle, r#type: ULocDataLocaleType, status: *mut UErrorCode) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn ures_getLocaleByType ( resourcebundle : *const UResourceBundle , r#type : ULocDataLocaleType , status : *mut UErrorCode ) -> :: windows::core::PCSTR ); ures_getLocaleByType(resourcebundle, r#type, status) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -7104,30 +7104,30 @@ pub unsafe fn ures_getUInt(resourcebundle: *const UResourceBundle, status: *mut } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ures_getUTF8String(resb: *const UResourceBundle, dest: P0, length: *mut i32, forcecopy: i8, status: *mut UErrorCode) -> ::windows::core::PSTR +pub unsafe fn ures_getUTF8String(resb: *const UResourceBundle, dest: P0, length: *mut i32, forcecopy: i8, status: *mut UErrorCode) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ures_getUTF8String ( resb : *const UResourceBundle , dest : :: windows::core::PCSTR , length : *mut i32 , forcecopy : i8 , status : *mut UErrorCode ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "icu.dll""cdecl" fn ures_getUTF8String ( resb : *const UResourceBundle , dest : :: windows::core::PCSTR , length : *mut i32 , forcecopy : i8 , status : *mut UErrorCode ) -> :: windows::core::PCSTR ); ures_getUTF8String(resb, dest.into_param().abi(), length, forcecopy, status) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ures_getUTF8StringByIndex(resb: *const UResourceBundle, stringindex: i32, dest: P0, plength: *mut i32, forcecopy: i8, status: *mut UErrorCode) -> ::windows::core::PSTR +pub unsafe fn ures_getUTF8StringByIndex(resb: *const UResourceBundle, stringindex: i32, dest: P0, plength: *mut i32, forcecopy: i8, status: *mut UErrorCode) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ures_getUTF8StringByIndex ( resb : *const UResourceBundle , stringindex : i32 , dest : :: windows::core::PCSTR , plength : *mut i32 , forcecopy : i8 , status : *mut UErrorCode ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "icu.dll""cdecl" fn ures_getUTF8StringByIndex ( resb : *const UResourceBundle , stringindex : i32 , dest : :: windows::core::PCSTR , plength : *mut i32 , forcecopy : i8 , status : *mut UErrorCode ) -> :: windows::core::PCSTR ); ures_getUTF8StringByIndex(resb, stringindex, dest.into_param().abi(), plength, forcecopy, status) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn ures_getUTF8StringByKey(resb: *const UResourceBundle, key: P0, dest: P1, plength: *mut i32, forcecopy: i8, status: *mut UErrorCode) -> ::windows::core::PSTR +pub unsafe fn ures_getUTF8StringByKey(resb: *const UResourceBundle, key: P0, dest: P1, plength: *mut i32, forcecopy: i8, status: *mut UErrorCode) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, P1: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "icu.dll""cdecl" fn ures_getUTF8StringByKey ( resb : *const UResourceBundle , key : :: windows::core::PCSTR , dest : :: windows::core::PCSTR , plength : *mut i32 , forcecopy : i8 , status : *mut UErrorCode ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "icu.dll""cdecl" fn ures_getUTF8StringByKey ( resb : *const UResourceBundle , key : :: windows::core::PCSTR , dest : :: windows::core::PCSTR , plength : *mut i32 , forcecopy : i8 , status : *mut UErrorCode ) -> :: windows::core::PCSTR ); ures_getUTF8StringByKey(resb, key.into_param().abi(), dest.into_param().abi(), plength, forcecopy, status) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -7203,8 +7203,8 @@ where } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn uscript_getName(scriptcode: UScriptCode) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn uscript_getName ( scriptcode : UScriptCode ) -> :: windows::core::PSTR ); +pub unsafe fn uscript_getName(scriptcode: UScriptCode) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn uscript_getName ( scriptcode : UScriptCode ) -> :: windows::core::PCSTR ); uscript_getName(scriptcode) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -7227,8 +7227,8 @@ pub unsafe fn uscript_getScriptExtensions(c: i32, scripts: *mut UScriptCode, cap } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn uscript_getShortName(scriptcode: UScriptCode) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn uscript_getShortName ( scriptcode : UScriptCode ) -> :: windows::core::PSTR ); +pub unsafe fn uscript_getShortName(scriptcode: UScriptCode) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn uscript_getShortName ( scriptcode : UScriptCode ) -> :: windows::core::PCSTR ); uscript_getShortName(scriptcode) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -7822,8 +7822,8 @@ pub unsafe fn uspoof_getAllowedChars(sc: *const USpoofChecker, status: *mut UErr } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn uspoof_getAllowedLocales(sc: *mut USpoofChecker, status: *mut UErrorCode) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn uspoof_getAllowedLocales ( sc : *mut USpoofChecker , status : *mut UErrorCode ) -> :: windows::core::PSTR ); +pub unsafe fn uspoof_getAllowedLocales(sc: *mut USpoofChecker, status: *mut UErrorCode) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn uspoof_getAllowedLocales ( sc : *mut USpoofChecker , status : *mut UErrorCode ) -> :: windows::core::PCSTR ); uspoof_getAllowedLocales(sc, status) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -8174,8 +8174,8 @@ where } #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[inline] -pub unsafe fn utrace_functionName(fnnumber: i32) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "icu.dll""cdecl" fn utrace_functionName ( fnnumber : i32 ) -> :: windows::core::PSTR ); +pub unsafe fn utrace_functionName(fnnumber: i32) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "icu.dll""cdecl" fn utrace_functionName ( fnnumber : i32 ) -> :: windows::core::PCSTR ); utrace_functionName(fnnumber) } #[doc = "*Required features: `\"Win32_Globalization\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/impl.rs index ab37dbe6c1..74f6a11d35 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/impl.rs @@ -74,7 +74,7 @@ impl IDxcBlobEncoding_Vtbl { #[doc = "*Required features: `\"Win32_Graphics_Direct3D_Dxc\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] #[cfg(feature = "Win32_Foundation")] pub trait IDxcBlobUtf16_Impl: Sized + IDxcBlobEncoding_Impl { - fn GetStringPointer(&self) -> ::windows::core::PWSTR; + fn GetStringPointer(&self) -> ::windows::core::PCWSTR; fn GetStringLength(&self) -> usize; } #[cfg(feature = "Win32_Foundation")] @@ -82,7 +82,7 @@ impl ::windows::core::RuntimeName for IDxcBlobUtf16 {} #[cfg(feature = "Win32_Foundation")] impl IDxcBlobUtf16_Vtbl { pub const fn new, Impl: IDxcBlobUtf16_Impl, const OFFSET: isize>() -> IDxcBlobUtf16_Vtbl { - unsafe extern "system" fn GetStringPointer, Impl: IDxcBlobUtf16_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR { + unsafe extern "system" fn GetStringPointer, Impl: IDxcBlobUtf16_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::PCWSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetStringPointer() @@ -105,7 +105,7 @@ impl IDxcBlobUtf16_Vtbl { #[doc = "*Required features: `\"Win32_Graphics_Direct3D_Dxc\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] #[cfg(feature = "Win32_Foundation")] pub trait IDxcBlobUtf8_Impl: Sized + IDxcBlobEncoding_Impl { - fn GetStringPointer(&self) -> ::windows::core::PSTR; + fn GetStringPointer(&self) -> ::windows::core::PCSTR; fn GetStringLength(&self) -> usize; } #[cfg(feature = "Win32_Foundation")] @@ -113,7 +113,7 @@ impl ::windows::core::RuntimeName for IDxcBlobUtf8 {} #[cfg(feature = "Win32_Foundation")] impl IDxcBlobUtf8_Vtbl { pub const fn new, Impl: IDxcBlobUtf8_Impl, const OFFSET: isize>() -> IDxcBlobUtf8_Vtbl { - unsafe extern "system" fn GetStringPointer, Impl: IDxcBlobUtf8_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::PSTR { + unsafe extern "system" fn GetStringPointer, Impl: IDxcBlobUtf8_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::PCSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetStringPointer() @@ -248,7 +248,7 @@ impl IDxcCompiler3_Vtbl { } #[doc = "*Required features: `\"Win32_Graphics_Direct3D_Dxc\"`, `\"implement\"`*"] pub trait IDxcCompilerArgs_Impl: Sized { - fn GetArguments(&self) -> *mut ::windows::core::PWSTR; + fn GetArguments(&self) -> *mut ::windows::core::PCWSTR; fn GetCount(&self) -> u32; fn AddArguments(&self, parguments: *const ::windows::core::PCWSTR, argcount: u32) -> ::windows::core::Result<()>; fn AddArgumentsUTF8(&self, parguments: *const ::windows::core::PCSTR, argcount: u32) -> ::windows::core::Result<()>; @@ -257,7 +257,7 @@ pub trait IDxcCompilerArgs_Impl: Sized { impl ::windows::core::RuntimeName for IDxcCompilerArgs {} impl IDxcCompilerArgs_Vtbl { pub const fn new, Impl: IDxcCompilerArgs_Impl, const OFFSET: isize>() -> IDxcCompilerArgs_Vtbl { - unsafe extern "system" fn GetArguments, Impl: IDxcCompilerArgs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> *mut ::windows::core::PWSTR { + unsafe extern "system" fn GetArguments, Impl: IDxcCompilerArgs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> *mut ::windows::core::PCWSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetArguments() diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/mod.rs index 9815b7109c..8b242f0505 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/mod.rs @@ -165,7 +165,7 @@ impl IDxcBlobUtf16 { pub unsafe fn GetEncoding(&self, pknown: *mut super::super::super::Foundation::BOOL, pcodepage: *mut DXC_CP) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetEncoding)(::windows::core::Interface::as_raw(self), pknown, pcodepage).ok() } - pub unsafe fn GetStringPointer(&self) -> ::windows::core::PWSTR { + pub unsafe fn GetStringPointer(&self) -> ::windows::core::PCWSTR { (::windows::core::Interface::vtable(self).GetStringPointer)(::windows::core::Interface::as_raw(self)) } pub unsafe fn GetStringLength(&self) -> usize { @@ -199,7 +199,7 @@ unsafe impl ::windows::core::ComInterface for IDxcBlobUtf16 { #[doc(hidden)] pub struct IDxcBlobUtf16_Vtbl { pub base__: IDxcBlobEncoding_Vtbl, - pub GetStringPointer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, + pub GetStringPointer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PCWSTR, pub GetStringLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> usize, } #[doc = "*Required features: `\"Win32_Graphics_Direct3D_Dxc\"`*"] @@ -217,7 +217,7 @@ impl IDxcBlobUtf8 { pub unsafe fn GetEncoding(&self, pknown: *mut super::super::super::Foundation::BOOL, pcodepage: *mut DXC_CP) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetEncoding)(::windows::core::Interface::as_raw(self), pknown, pcodepage).ok() } - pub unsafe fn GetStringPointer(&self) -> ::windows::core::PSTR { + pub unsafe fn GetStringPointer(&self) -> ::windows::core::PCSTR { (::windows::core::Interface::vtable(self).GetStringPointer)(::windows::core::Interface::as_raw(self)) } pub unsafe fn GetStringLength(&self) -> usize { @@ -251,7 +251,7 @@ unsafe impl ::windows::core::ComInterface for IDxcBlobUtf8 { #[doc(hidden)] pub struct IDxcBlobUtf8_Vtbl { pub base__: IDxcBlobEncoding_Vtbl, - pub GetStringPointer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PSTR, + pub GetStringPointer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PCSTR, pub GetStringLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> usize, } #[doc = "*Required features: `\"Win32_Graphics_Direct3D_Dxc\"`*"] @@ -457,7 +457,7 @@ pub struct IDxcCompiler3_Vtbl { #[repr(transparent)] pub struct IDxcCompilerArgs(::windows::core::IUnknown); impl IDxcCompilerArgs { - pub unsafe fn GetArguments(&self) -> *mut ::windows::core::PWSTR { + pub unsafe fn GetArguments(&self) -> *mut ::windows::core::PCWSTR { (::windows::core::Interface::vtable(self).GetArguments)(::windows::core::Interface::as_raw(self)) } pub unsafe fn GetCount(&self) -> u32 { @@ -500,7 +500,7 @@ unsafe impl ::windows::core::ComInterface for IDxcCompilerArgs { #[doc(hidden)] pub struct IDxcCompilerArgs_Vtbl { pub base__: ::windows::core::IUnknown_Vtbl, - pub GetArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut ::windows::core::PWSTR, + pub GetArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut ::windows::core::PCWSTR, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, pub AddArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parguments: *const ::windows::core::PCWSTR, argcount: u32) -> ::windows::core::HRESULT, pub AddArgumentsUTF8: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parguments: *const ::windows::core::PCSTR, argcount: u32) -> ::windows::core::HRESULT, diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/impl.rs index 09e512024f..fc56878d5f 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/impl.rs @@ -1986,13 +1986,13 @@ impl ID3D10EffectShaderVariable { #[doc = "*Required features: `\"Win32_Graphics_Direct3D10\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] #[cfg(feature = "Win32_Foundation")] pub trait ID3D10EffectStringVariable_Impl: Sized + ID3D10EffectVariable_Impl { - fn GetString(&self) -> ::windows::core::Result<::windows::core::PSTR>; - fn GetStringArray(&self, ppstrings: *mut ::windows::core::PSTR, offset: u32, count: u32) -> ::windows::core::Result<()>; + fn GetString(&self) -> ::windows::core::Result<::windows::core::PCSTR>; + fn GetStringArray(&self, ppstrings: *mut ::windows::core::PCSTR, offset: u32, count: u32) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] impl ID3D10EffectStringVariable_Vtbl { pub const fn new() -> ID3D10EffectStringVariable_Vtbl { - unsafe extern "system" fn GetString(this: *mut ::core::ffi::c_void, ppstring: *mut ::windows::core::PSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetString(this: *mut ::core::ffi::c_void, ppstring: *mut ::windows::core::PCSTR) -> ::windows::core::HRESULT { let this = (this as *mut *mut ::core::ffi::c_void) as *const ::windows::core::ScopedHeap; let this = &*((*this).this as *const Impl); match this.GetString() { @@ -2003,7 +2003,7 @@ impl ID3D10EffectStringVariable_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetStringArray(this: *mut ::core::ffi::c_void, ppstrings: *mut ::windows::core::PSTR, offset: u32, count: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetStringArray(this: *mut ::core::ffi::c_void, ppstrings: *mut ::windows::core::PCSTR, offset: u32, count: u32) -> ::windows::core::HRESULT { let this = (this as *mut *mut ::core::ffi::c_void) as *const ::windows::core::ScopedHeap; let this = &*((*this).this as *const Impl); this.GetStringArray(::core::mem::transmute_copy(&ppstrings), ::core::mem::transmute_copy(&offset), ::core::mem::transmute_copy(&count)).into() @@ -2109,8 +2109,8 @@ pub trait ID3D10EffectType_Impl: Sized { fn GetMemberTypeByIndex(&self, index: u32) -> ::core::option::Option; fn GetMemberTypeByName(&self, name: &::windows::core::PCSTR) -> ::core::option::Option; fn GetMemberTypeBySemantic(&self, semantic: &::windows::core::PCSTR) -> ::core::option::Option; - fn GetMemberName(&self, index: u32) -> ::windows::core::PSTR; - fn GetMemberSemantic(&self, index: u32) -> ::windows::core::PSTR; + fn GetMemberName(&self, index: u32) -> ::windows::core::PCSTR; + fn GetMemberSemantic(&self, index: u32) -> ::windows::core::PCSTR; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Direct3D"))] impl ID3D10EffectType_Vtbl { @@ -2140,12 +2140,12 @@ impl ID3D10EffectType_Vtbl { let this = &*((*this).this as *const Impl); this.GetMemberTypeBySemantic(::core::mem::transmute(&semantic)) } - unsafe extern "system" fn GetMemberName(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::PSTR { + unsafe extern "system" fn GetMemberName(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::PCSTR { let this = (this as *mut *mut ::core::ffi::c_void) as *const ::windows::core::ScopedHeap; let this = &*((*this).this as *const Impl); this.GetMemberName(::core::mem::transmute_copy(&index)) } - unsafe extern "system" fn GetMemberSemantic(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::PSTR { + unsafe extern "system" fn GetMemberSemantic(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::PCSTR { let this = (this as *mut *mut ::core::ffi::c_void) as *const ::windows::core::ScopedHeap; let this = &*((*this).this as *const Impl); this.GetMemberSemantic(::core::mem::transmute_copy(&index)) @@ -3224,7 +3224,7 @@ pub trait ID3D10ShaderReflectionType_Impl: Sized { fn GetDesc(&self, pdesc: *mut D3D10_SHADER_TYPE_DESC) -> ::windows::core::Result<()>; fn GetMemberTypeByIndex(&self, index: u32) -> ::core::option::Option; fn GetMemberTypeByName(&self, name: &::windows::core::PCSTR) -> ::core::option::Option; - fn GetMemberTypeName(&self, index: u32) -> ::windows::core::PSTR; + fn GetMemberTypeName(&self, index: u32) -> ::windows::core::PCSTR; } #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D10ShaderReflectionType_Vtbl { @@ -3244,7 +3244,7 @@ impl ID3D10ShaderReflectionType_Vtbl { let this = &*((*this).this as *const Impl); this.GetMemberTypeByName(::core::mem::transmute(&name)) } - unsafe extern "system" fn GetMemberTypeName(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::PSTR { + unsafe extern "system" fn GetMemberTypeName(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::PCSTR { let this = (this as *mut *mut ::core::ffi::c_void) as *const ::windows::core::ScopedHeap; let this = &*((*this).this as *const Impl); this.GetMemberTypeName(::core::mem::transmute_copy(&index)) diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/mod.rs index 171842d13d..d43b921c6f 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/mod.rs @@ -131,11 +131,11 @@ where } #[doc = "*Required features: `\"Win32_Graphics_Direct3D10\"`*"] #[inline] -pub unsafe fn D3D10GetGeometryShaderProfile(pdevice: P0) -> ::windows::core::PSTR +pub unsafe fn D3D10GetGeometryShaderProfile(pdevice: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "d3d10.dll""system" fn D3D10GetGeometryShaderProfile ( pdevice : * mut::core::ffi::c_void ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "d3d10.dll""system" fn D3D10GetGeometryShaderProfile ( pdevice : * mut::core::ffi::c_void ) -> :: windows::core::PCSTR ); D3D10GetGeometryShaderProfile(pdevice.into_param().abi()) } #[doc = "*Required features: `\"Win32_Graphics_Direct3D10\"`, `\"Win32_Graphics_Direct3D\"`*"] @@ -164,11 +164,11 @@ pub unsafe fn D3D10GetOutputSignatureBlob(pshaderbytecode: *const ::core::ffi::c } #[doc = "*Required features: `\"Win32_Graphics_Direct3D10\"`*"] #[inline] -pub unsafe fn D3D10GetPixelShaderProfile(pdevice: P0) -> ::windows::core::PSTR +pub unsafe fn D3D10GetPixelShaderProfile(pdevice: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "d3d10.dll""system" fn D3D10GetPixelShaderProfile ( pdevice : * mut::core::ffi::c_void ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "d3d10.dll""system" fn D3D10GetPixelShaderProfile ( pdevice : * mut::core::ffi::c_void ) -> :: windows::core::PCSTR ); D3D10GetPixelShaderProfile(pdevice.into_param().abi()) } #[doc = "*Required features: `\"Win32_Graphics_Direct3D10\"`, `\"Win32_Graphics_Direct3D\"`*"] @@ -181,11 +181,11 @@ pub unsafe fn D3D10GetShaderDebugInfo(pshaderbytecode: *const ::core::ffi::c_voi } #[doc = "*Required features: `\"Win32_Graphics_Direct3D10\"`*"] #[inline] -pub unsafe fn D3D10GetVertexShaderProfile(pdevice: P0) -> ::windows::core::PSTR +pub unsafe fn D3D10GetVertexShaderProfile(pdevice: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "d3d10.dll""system" fn D3D10GetVertexShaderProfile ( pdevice : * mut::core::ffi::c_void ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "d3d10.dll""system" fn D3D10GetVertexShaderProfile ( pdevice : * mut::core::ffi::c_void ) -> :: windows::core::PCSTR ); D3D10GetVertexShaderProfile(pdevice.into_param().abi()) } #[doc = "*Required features: `\"Win32_Graphics_Direct3D10\"`, `\"Win32_Graphics_Direct3D\"`*"] @@ -3851,11 +3851,11 @@ impl ID3D10EffectStringVariable { pub unsafe fn GetRawValue(&self, pdata: *mut ::core::ffi::c_void, offset: u32, bytecount: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetRawValue)(::windows::core::Interface::as_raw(self), pdata, offset, bytecount).ok() } - pub unsafe fn GetString(&self) -> ::windows::core::Result<::windows::core::PSTR> { - let mut result__ = ::windows::core::zeroed::<::windows::core::PSTR>(); + pub unsafe fn GetString(&self) -> ::windows::core::Result<::windows::core::PCSTR> { + let mut result__ = ::windows::core::zeroed::<::windows::core::PCSTR>(); (::windows::core::Interface::vtable(self).GetString)(::windows::core::Interface::as_raw(self), &mut result__).from_abi(result__) } - pub unsafe fn GetStringArray(&self, ppstrings: &mut [::windows::core::PSTR], offset: u32) -> ::windows::core::Result<()> { + pub unsafe fn GetStringArray(&self, ppstrings: &mut [::windows::core::PCSTR], offset: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetStringArray)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ppstrings.as_ptr()), offset, ppstrings.len() as _).ok() } } @@ -3885,8 +3885,8 @@ impl ::core::clone::Clone for ID3D10EffectStringVariable { #[doc(hidden)] pub struct ID3D10EffectStringVariable_Vtbl { pub base__: ID3D10EffectVariable_Vtbl, - pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstring: *mut ::windows::core::PSTR) -> ::windows::core::HRESULT, - pub GetStringArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstrings: *mut ::windows::core::PSTR, offset: u32, count: u32) -> ::windows::core::HRESULT, + pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstring: *mut ::windows::core::PCSTR) -> ::windows::core::HRESULT, + pub GetStringArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstrings: *mut ::windows::core::PCSTR, offset: u32, count: u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Graphics_Direct3D10\"`*"] #[repr(transparent)] @@ -3986,10 +3986,10 @@ impl ID3D10EffectType { { (::windows::core::Interface::vtable(self).GetMemberTypeBySemantic)(::windows::core::Interface::as_raw(self), semantic.into_param().abi()) } - pub unsafe fn GetMemberName(&self, index: u32) -> ::windows::core::PSTR { + pub unsafe fn GetMemberName(&self, index: u32) -> ::windows::core::PCSTR { (::windows::core::Interface::vtable(self).GetMemberName)(::windows::core::Interface::as_raw(self), index) } - pub unsafe fn GetMemberSemantic(&self, index: u32) -> ::windows::core::PSTR { + pub unsafe fn GetMemberSemantic(&self, index: u32) -> ::windows::core::PCSTR { (::windows::core::Interface::vtable(self).GetMemberSemantic)(::windows::core::Interface::as_raw(self), index) } } @@ -4028,8 +4028,8 @@ pub struct ID3D10EffectType_Vtbl { pub GetMemberTypeByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::core::option::Option, pub GetMemberTypeByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::windows::core::PCSTR) -> ::core::option::Option, pub GetMemberTypeBySemantic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, semantic: ::windows::core::PCSTR) -> ::core::option::Option, - pub GetMemberName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::PSTR, - pub GetMemberSemantic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::PSTR, + pub GetMemberName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::PCSTR, + pub GetMemberSemantic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::PCSTR, } #[doc = "*Required features: `\"Win32_Graphics_Direct3D10\"`*"] #[repr(transparent)] @@ -5503,7 +5503,7 @@ impl ID3D10ShaderReflectionType { { (::windows::core::Interface::vtable(self).GetMemberTypeByName)(::windows::core::Interface::as_raw(self), name.into_param().abi()) } - pub unsafe fn GetMemberTypeName(&self, index: u32) -> ::windows::core::PSTR { + pub unsafe fn GetMemberTypeName(&self, index: u32) -> ::windows::core::PCSTR { (::windows::core::Interface::vtable(self).GetMemberTypeName)(::windows::core::Interface::as_raw(self), index) } } @@ -5537,7 +5537,7 @@ pub struct ID3D10ShaderReflectionType_Vtbl { GetDesc: usize, pub GetMemberTypeByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::core::option::Option, pub GetMemberTypeByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::windows::core::PCSTR) -> ::core::option::Option, - pub GetMemberTypeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::PSTR, + pub GetMemberTypeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::PCSTR, } #[doc = "*Required features: `\"Win32_Graphics_Direct3D10\"`*"] #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/impl.rs index 69e3f33489..5675fb417f 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/impl.rs @@ -3411,7 +3411,7 @@ pub trait ID3D11ShaderReflectionType_Impl: Sized { fn GetDesc(&self, pdesc: *mut D3D11_SHADER_TYPE_DESC) -> ::windows::core::Result<()>; fn GetMemberTypeByIndex(&self, index: u32) -> ::core::option::Option; fn GetMemberTypeByName(&self, name: &::windows::core::PCSTR) -> ::core::option::Option; - fn GetMemberTypeName(&self, index: u32) -> ::windows::core::PSTR; + fn GetMemberTypeName(&self, index: u32) -> ::windows::core::PCSTR; fn IsEqual(&self, ptype: ::core::option::Option<&ID3D11ShaderReflectionType>) -> ::windows::core::Result<()>; fn GetSubType(&self) -> ::core::option::Option; fn GetBaseClass(&self) -> ::core::option::Option; @@ -3438,7 +3438,7 @@ impl ID3D11ShaderReflectionType_Vtbl { let this = &*((*this).this as *const Impl); this.GetMemberTypeByName(::core::mem::transmute(&name)) } - unsafe extern "system" fn GetMemberTypeName(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::PSTR { + unsafe extern "system" fn GetMemberTypeName(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::PCSTR { let this = (this as *mut *mut ::core::ffi::c_void) as *const ::windows::core::ScopedHeap; let this = &*((*this).this as *const Impl); this.GetMemberTypeName(::core::mem::transmute_copy(&index)) diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/mod.rs index 3f93fa3506..a5591c0d29 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/mod.rs @@ -8809,7 +8809,7 @@ impl ID3D11ShaderReflectionType { { (::windows::core::Interface::vtable(self).GetMemberTypeByName)(::windows::core::Interface::as_raw(self), name.into_param().abi()) } - pub unsafe fn GetMemberTypeName(&self, index: u32) -> ::windows::core::PSTR { + pub unsafe fn GetMemberTypeName(&self, index: u32) -> ::windows::core::PCSTR { (::windows::core::Interface::vtable(self).GetMemberTypeName)(::windows::core::Interface::as_raw(self), index) } pub unsafe fn IsEqual(&self, ptype: P0) -> ::windows::core::Result<()> @@ -8873,7 +8873,7 @@ pub struct ID3D11ShaderReflectionType_Vtbl { GetDesc: usize, pub GetMemberTypeByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::core::option::Option, pub GetMemberTypeByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::windows::core::PCSTR) -> ::core::option::Option, - pub GetMemberTypeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::PSTR, + pub GetMemberTypeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::PCSTR, pub IsEqual: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptype: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetSubType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::core::option::Option, pub GetBaseClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::core::option::Option, diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/impl.rs index b9c331845c..100976b8fb 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/impl.rs @@ -3659,7 +3659,7 @@ pub trait ID3D12ShaderReflectionType_Impl: Sized { fn GetDesc(&self, pdesc: *mut D3D12_SHADER_TYPE_DESC) -> ::windows::core::Result<()>; fn GetMemberTypeByIndex(&self, index: u32) -> ::core::option::Option; fn GetMemberTypeByName(&self, name: &::windows::core::PCSTR) -> ::core::option::Option; - fn GetMemberTypeName(&self, index: u32) -> ::windows::core::PSTR; + fn GetMemberTypeName(&self, index: u32) -> ::windows::core::PCSTR; fn IsEqual(&self, ptype: ::core::option::Option<&ID3D12ShaderReflectionType>) -> ::windows::core::Result<()>; fn GetSubType(&self) -> ::core::option::Option; fn GetBaseClass(&self) -> ::core::option::Option; @@ -3686,7 +3686,7 @@ impl ID3D12ShaderReflectionType_Vtbl { let this = &*((*this).this as *const Impl); this.GetMemberTypeByName(::core::mem::transmute(&name)) } - unsafe extern "system" fn GetMemberTypeName(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::PSTR { + unsafe extern "system" fn GetMemberTypeName(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::PCSTR { let this = (this as *mut *mut ::core::ffi::c_void) as *const ::windows::core::ScopedHeap; let this = &*((*this).this as *const Impl); this.GetMemberTypeName(::core::mem::transmute_copy(&index)) diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/mod.rs index 804c1b16df..122a9bd36b 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/mod.rs @@ -13289,7 +13289,7 @@ impl ID3D12ShaderReflectionType { { (::windows::core::Interface::vtable(self).GetMemberTypeByName)(::windows::core::Interface::as_raw(self), name.into_param().abi()) } - pub unsafe fn GetMemberTypeName(&self, index: u32) -> ::windows::core::PSTR { + pub unsafe fn GetMemberTypeName(&self, index: u32) -> ::windows::core::PCSTR { (::windows::core::Interface::vtable(self).GetMemberTypeName)(::windows::core::Interface::as_raw(self), index) } pub unsafe fn IsEqual(&self, ptype: P0) -> ::windows::core::Result<()> @@ -13353,7 +13353,7 @@ pub struct ID3D12ShaderReflectionType_Vtbl { GetDesc: usize, pub GetMemberTypeByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::core::option::Option, pub GetMemberTypeByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::windows::core::PCSTR) -> ::core::option::Option, - pub GetMemberTypeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::PSTR, + pub GetMemberTypeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::PCSTR, pub IsEqual: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptype: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetSubType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::core::option::Option, pub GetBaseClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::core::option::Option, diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Gdi/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Gdi/mod.rs index 161f1a981c..08b7382e36 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Gdi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Gdi/mod.rs @@ -787,7 +787,7 @@ pub unsafe fn DrawTextA(hdc: P0, lpchtext: &mut [u8], lprc: *mut super::supe where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "user32.dll""system" fn DrawTextA ( hdc : HDC , lpchtext : :: windows::core::PSTR , cchtext : i32 , lprc : *mut super::super::Foundation:: RECT , format : DRAW_TEXT_FORMAT ) -> i32 ); + ::windows::imp::link ! ( "user32.dll""system" fn DrawTextA ( hdc : HDC , lpchtext : :: windows::core::PCSTR , cchtext : i32 , lprc : *mut super::super::Foundation:: RECT , format : DRAW_TEXT_FORMAT ) -> i32 ); DrawTextA(hdc.into_param().abi(), ::core::mem::transmute(lpchtext.as_ptr()), lpchtext.len() as _, lprc, format) } #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Foundation\"`*"] @@ -817,7 +817,7 @@ pub unsafe fn DrawTextW(hdc: P0, lpchtext: &mut [u16], lprc: *mut super::sup where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "user32.dll""system" fn DrawTextW ( hdc : HDC , lpchtext : :: windows::core::PWSTR , cchtext : i32 , lprc : *mut super::super::Foundation:: RECT , format : DRAW_TEXT_FORMAT ) -> i32 ); + ::windows::imp::link ! ( "user32.dll""system" fn DrawTextW ( hdc : HDC , lpchtext : :: windows::core::PCWSTR , cchtext : i32 , lprc : *mut super::super::Foundation:: RECT , format : DRAW_TEXT_FORMAT ) -> i32 ); DrawTextW(hdc.into_param().abi(), ::core::mem::transmute(lpchtext.as_ptr()), lpchtext.len() as _, lprc, format) } #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Foundation\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/OpenGL/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/OpenGL/mod.rs index 2eee7701ef..5f67394909 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/OpenGL/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/OpenGL/mod.rs @@ -2172,8 +2172,8 @@ pub unsafe fn gluErrorString(errcode: u32) -> *mut u8 { } #[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"] #[inline] -pub unsafe fn gluErrorUnicodeStringEXT(errcode: u32) -> ::windows::core::PWSTR { - ::windows::imp::link ! ( "glu32.dll""system" fn gluErrorUnicodeStringEXT ( errcode : u32 ) -> :: windows::core::PWSTR ); +pub unsafe fn gluErrorUnicodeStringEXT(errcode: u32) -> ::windows::core::PCWSTR { + ::windows::imp::link ! ( "glu32.dll""system" fn gluErrorUnicodeStringEXT ( errcode : u32 ) -> :: windows::core::PCWSTR ); gluErrorUnicodeStringEXT(errcode) } #[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/impl.rs index 5b620c2dd9..6d8557a07b 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/impl.rs @@ -1164,12 +1164,12 @@ impl IPrintClassObjectFactory_Vtbl { #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"implement\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub trait IPrintCoreHelper_Impl: Sized { - fn GetOption(&self, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturerequested: &::windows::core::PCSTR) -> ::windows::core::Result<::windows::core::PSTR>; + fn GetOption(&self, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturerequested: &::windows::core::PCSTR) -> ::windows::core::Result<::windows::core::PCSTR>; fn SetOptions(&self, pdevmode: *mut super::Gdi::DEVMODEA, cbsize: u32, bresolveconflicts: super::super::Foundation::BOOL, pfopairs: *const PRINT_FEATURE_OPTION, cpairs: u32, pcpairswritten: *mut u32, pdwresult: *mut u32) -> ::windows::core::Result<()>; fn EnumConstrainedOptions(&self, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturekeyword: &::windows::core::PCSTR, pconstrainedoptionlist: *const *const *const ::windows::core::PCSTR, pdwnumoptions: *mut u32) -> ::windows::core::Result<()>; fn WhyConstrained(&self, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturekeyword: &::windows::core::PCSTR, pszoptionkeyword: &::windows::core::PCSTR, ppfoconstraints: *mut *mut PRINT_FEATURE_OPTION, pdwnumoptions: *mut u32) -> ::windows::core::Result<()>; - fn EnumFeatures(&self, pfeaturelist: *mut *mut *mut ::windows::core::PSTR, pdwnumfeatures: *mut u32) -> ::windows::core::Result<()>; - fn EnumOptions(&self, pszfeaturekeyword: &::windows::core::PCSTR, poptionlist: *mut *mut *mut ::windows::core::PSTR, pdwnumoptions: *mut u32) -> ::windows::core::Result<()>; + fn EnumFeatures(&self, pfeaturelist: *mut *mut *mut ::windows::core::PCSTR, pdwnumfeatures: *mut u32) -> ::windows::core::Result<()>; + fn EnumOptions(&self, pszfeaturekeyword: &::windows::core::PCSTR, poptionlist: *mut *mut *mut ::windows::core::PCSTR, pdwnumoptions: *mut u32) -> ::windows::core::Result<()>; fn GetFontSubstitution(&self, psztruetypefontname: &::windows::core::PCWSTR, ppszdevfontname: *const ::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn SetFontSubstitution(&self, psztruetypefontname: &::windows::core::PCWSTR, pszdevfontname: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn CreateInstanceOfMSXMLObject(&self, rclsid: *const ::windows::core::GUID, punkouter: ::core::option::Option<&::windows::core::IUnknown>, dwclscontext: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; @@ -1179,7 +1179,7 @@ impl ::windows::core::RuntimeName for IPrintCoreHelper {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl IPrintCoreHelper_Vtbl { pub const fn new, Impl: IPrintCoreHelper_Impl, const OFFSET: isize>() -> IPrintCoreHelper_Vtbl { - unsafe extern "system" fn GetOption, Impl: IPrintCoreHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturerequested: ::windows::core::PCSTR, ppszoption: *mut ::windows::core::PSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetOption, Impl: IPrintCoreHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturerequested: ::windows::core::PCSTR, ppszoption: *mut ::windows::core::PCSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetOption(::core::mem::transmute_copy(&pdevmode), ::core::mem::transmute_copy(&cbsize), ::core::mem::transmute(&pszfeaturerequested)) { @@ -1205,12 +1205,12 @@ impl IPrintCoreHelper_Vtbl { let this = (*this).get_impl(); this.WhyConstrained(::core::mem::transmute_copy(&pdevmode), ::core::mem::transmute_copy(&cbsize), ::core::mem::transmute(&pszfeaturekeyword), ::core::mem::transmute(&pszoptionkeyword), ::core::mem::transmute_copy(&ppfoconstraints), ::core::mem::transmute_copy(&pdwnumoptions)).into() } - unsafe extern "system" fn EnumFeatures, Impl: IPrintCoreHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfeaturelist: *mut *mut *mut ::windows::core::PSTR, pdwnumfeatures: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumFeatures, Impl: IPrintCoreHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfeaturelist: *mut *mut *mut ::windows::core::PCSTR, pdwnumfeatures: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.EnumFeatures(::core::mem::transmute_copy(&pfeaturelist), ::core::mem::transmute_copy(&pdwnumfeatures)).into() } - unsafe extern "system" fn EnumOptions, Impl: IPrintCoreHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszfeaturekeyword: ::windows::core::PCSTR, poptionlist: *mut *mut *mut ::windows::core::PSTR, pdwnumoptions: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumOptions, Impl: IPrintCoreHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszfeaturekeyword: ::windows::core::PCSTR, poptionlist: *mut *mut *mut ::windows::core::PCSTR, pdwnumoptions: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.EnumOptions(::core::mem::transmute(&pszfeaturekeyword), ::core::mem::transmute_copy(&poptionlist), ::core::mem::transmute_copy(&pdwnumoptions)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs index 9048a8a431..03b3a8b00c 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs @@ -4000,11 +4000,11 @@ pub struct IPrintCoreHelper(::windows::core::IUnknown); impl IPrintCoreHelper { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] - pub unsafe fn GetOption(&self, pdevmode: ::core::option::Option<*const super::Gdi::DEVMODEA>, cbsize: u32, pszfeaturerequested: P0) -> ::windows::core::Result<::windows::core::PSTR> + pub unsafe fn GetOption(&self, pdevmode: ::core::option::Option<*const super::Gdi::DEVMODEA>, cbsize: u32, pszfeaturerequested: P0) -> ::windows::core::Result<::windows::core::PCSTR> where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, { - let mut result__ = ::windows::core::zeroed::<::windows::core::PSTR>(); + let mut result__ = ::windows::core::zeroed::<::windows::core::PCSTR>(); (::windows::core::Interface::vtable(self).GetOption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdevmode.unwrap_or(::std::ptr::null())), cbsize, pszfeaturerequested.into_param().abi(), &mut result__).from_abi(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] @@ -4032,10 +4032,10 @@ impl IPrintCoreHelper { { (::windows::core::Interface::vtable(self).WhyConstrained)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdevmode.unwrap_or(::std::ptr::null())), cbsize, pszfeaturekeyword.into_param().abi(), pszoptionkeyword.into_param().abi(), ppfoconstraints, pdwnumoptions).ok() } - pub unsafe fn EnumFeatures(&self, pfeaturelist: *mut *mut *mut ::windows::core::PSTR, pdwnumfeatures: *mut u32) -> ::windows::core::Result<()> { + pub unsafe fn EnumFeatures(&self, pfeaturelist: *mut *mut *mut ::windows::core::PCSTR, pdwnumfeatures: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).EnumFeatures)(::windows::core::Interface::as_raw(self), pfeaturelist, pdwnumfeatures).ok() } - pub unsafe fn EnumOptions(&self, pszfeaturekeyword: P0, poptionlist: *mut *mut *mut ::windows::core::PSTR, pdwnumoptions: *mut u32) -> ::windows::core::Result<()> + pub unsafe fn EnumOptions(&self, pszfeaturekeyword: P0, poptionlist: *mut *mut *mut ::windows::core::PCSTR, pdwnumoptions: *mut u32) -> ::windows::core::Result<()> where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, { @@ -4089,7 +4089,7 @@ unsafe impl ::windows::core::ComInterface for IPrintCoreHelper { pub struct IPrintCoreHelper_Vtbl { pub base__: ::windows::core::IUnknown_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] - pub GetOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturerequested: ::windows::core::PCSTR, ppszoption: *mut ::windows::core::PSTR) -> ::windows::core::HRESULT, + pub GetOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturerequested: ::windows::core::PCSTR, ppszoption: *mut ::windows::core::PCSTR) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi")))] GetOption: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] @@ -4104,8 +4104,8 @@ pub struct IPrintCoreHelper_Vtbl { pub WhyConstrained: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturekeyword: ::windows::core::PCSTR, pszoptionkeyword: ::windows::core::PCSTR, ppfoconstraints: *mut *mut PRINT_FEATURE_OPTION, pdwnumoptions: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi")))] WhyConstrained: usize, - pub EnumFeatures: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfeaturelist: *mut *mut *mut ::windows::core::PSTR, pdwnumfeatures: *mut u32) -> ::windows::core::HRESULT, - pub EnumOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfeaturekeyword: ::windows::core::PCSTR, poptionlist: *mut *mut *mut ::windows::core::PSTR, pdwnumoptions: *mut u32) -> ::windows::core::HRESULT, + pub EnumFeatures: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfeaturelist: *mut *mut *mut ::windows::core::PCSTR, pdwnumfeatures: *mut u32) -> ::windows::core::HRESULT, + pub EnumOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfeaturekeyword: ::windows::core::PCSTR, poptionlist: *mut *mut *mut ::windows::core::PCSTR, pdwnumoptions: *mut u32) -> ::windows::core::HRESULT, pub GetFontSubstitution: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psztruetypefontname: ::windows::core::PCWSTR, ppszdevfontname: *const ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub SetFontSubstitution: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psztruetypefontname: ::windows::core::PCWSTR, pszdevfontname: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub CreateInstanceOfMSXMLObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows::core::GUID, punkouter: *mut ::core::ffi::c_void, dwclscontext: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -4116,11 +4116,11 @@ pub struct IPrintCoreHelperPS(::windows::core::IUnknown); impl IPrintCoreHelperPS { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] - pub unsafe fn GetOption(&self, pdevmode: ::core::option::Option<*const super::Gdi::DEVMODEA>, cbsize: u32, pszfeaturerequested: P0) -> ::windows::core::Result<::windows::core::PSTR> + pub unsafe fn GetOption(&self, pdevmode: ::core::option::Option<*const super::Gdi::DEVMODEA>, cbsize: u32, pszfeaturerequested: P0) -> ::windows::core::Result<::windows::core::PCSTR> where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, { - let mut result__ = ::windows::core::zeroed::<::windows::core::PSTR>(); + let mut result__ = ::windows::core::zeroed::<::windows::core::PCSTR>(); (::windows::core::Interface::vtable(self).base__.GetOption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdevmode.unwrap_or(::std::ptr::null())), cbsize, pszfeaturerequested.into_param().abi(), &mut result__).from_abi(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] @@ -4148,10 +4148,10 @@ impl IPrintCoreHelperPS { { (::windows::core::Interface::vtable(self).base__.WhyConstrained)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdevmode.unwrap_or(::std::ptr::null())), cbsize, pszfeaturekeyword.into_param().abi(), pszoptionkeyword.into_param().abi(), ppfoconstraints, pdwnumoptions).ok() } - pub unsafe fn EnumFeatures(&self, pfeaturelist: *mut *mut *mut ::windows::core::PSTR, pdwnumfeatures: *mut u32) -> ::windows::core::Result<()> { + pub unsafe fn EnumFeatures(&self, pfeaturelist: *mut *mut *mut ::windows::core::PCSTR, pdwnumfeatures: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.EnumFeatures)(::windows::core::Interface::as_raw(self), pfeaturelist, pdwnumfeatures).ok() } - pub unsafe fn EnumOptions(&self, pszfeaturekeyword: P0, poptionlist: *mut *mut *mut ::windows::core::PSTR, pdwnumoptions: *mut u32) -> ::windows::core::Result<()> + pub unsafe fn EnumOptions(&self, pszfeaturekeyword: P0, poptionlist: *mut *mut *mut ::windows::core::PCSTR, pdwnumoptions: *mut u32) -> ::windows::core::Result<()> where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, { @@ -4235,11 +4235,11 @@ pub struct IPrintCoreHelperUni(::windows::core::IUnknown); impl IPrintCoreHelperUni { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] - pub unsafe fn GetOption(&self, pdevmode: ::core::option::Option<*const super::Gdi::DEVMODEA>, cbsize: u32, pszfeaturerequested: P0) -> ::windows::core::Result<::windows::core::PSTR> + pub unsafe fn GetOption(&self, pdevmode: ::core::option::Option<*const super::Gdi::DEVMODEA>, cbsize: u32, pszfeaturerequested: P0) -> ::windows::core::Result<::windows::core::PCSTR> where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, { - let mut result__ = ::windows::core::zeroed::<::windows::core::PSTR>(); + let mut result__ = ::windows::core::zeroed::<::windows::core::PCSTR>(); (::windows::core::Interface::vtable(self).base__.GetOption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdevmode.unwrap_or(::std::ptr::null())), cbsize, pszfeaturerequested.into_param().abi(), &mut result__).from_abi(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] @@ -4267,10 +4267,10 @@ impl IPrintCoreHelperUni { { (::windows::core::Interface::vtable(self).base__.WhyConstrained)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdevmode.unwrap_or(::std::ptr::null())), cbsize, pszfeaturekeyword.into_param().abi(), pszoptionkeyword.into_param().abi(), ppfoconstraints, pdwnumoptions).ok() } - pub unsafe fn EnumFeatures(&self, pfeaturelist: *mut *mut *mut ::windows::core::PSTR, pdwnumfeatures: *mut u32) -> ::windows::core::Result<()> { + pub unsafe fn EnumFeatures(&self, pfeaturelist: *mut *mut *mut ::windows::core::PCSTR, pdwnumfeatures: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.EnumFeatures)(::windows::core::Interface::as_raw(self), pfeaturelist, pdwnumfeatures).ok() } - pub unsafe fn EnumOptions(&self, pszfeaturekeyword: P0, poptionlist: *mut *mut *mut ::windows::core::PSTR, pdwnumoptions: *mut u32) -> ::windows::core::Result<()> + pub unsafe fn EnumOptions(&self, pszfeaturekeyword: P0, poptionlist: *mut *mut *mut ::windows::core::PCSTR, pdwnumoptions: *mut u32) -> ::windows::core::Result<()> where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, { @@ -4349,11 +4349,11 @@ pub struct IPrintCoreHelperUni2(::windows::core::IUnknown); impl IPrintCoreHelperUni2 { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] - pub unsafe fn GetOption(&self, pdevmode: ::core::option::Option<*const super::Gdi::DEVMODEA>, cbsize: u32, pszfeaturerequested: P0) -> ::windows::core::Result<::windows::core::PSTR> + pub unsafe fn GetOption(&self, pdevmode: ::core::option::Option<*const super::Gdi::DEVMODEA>, cbsize: u32, pszfeaturerequested: P0) -> ::windows::core::Result<::windows::core::PCSTR> where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, { - let mut result__ = ::windows::core::zeroed::<::windows::core::PSTR>(); + let mut result__ = ::windows::core::zeroed::<::windows::core::PCSTR>(); (::windows::core::Interface::vtable(self).base__.base__.GetOption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdevmode.unwrap_or(::std::ptr::null())), cbsize, pszfeaturerequested.into_param().abi(), &mut result__).from_abi(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] @@ -4381,10 +4381,10 @@ impl IPrintCoreHelperUni2 { { (::windows::core::Interface::vtable(self).base__.base__.WhyConstrained)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdevmode.unwrap_or(::std::ptr::null())), cbsize, pszfeaturekeyword.into_param().abi(), pszoptionkeyword.into_param().abi(), ppfoconstraints, pdwnumoptions).ok() } - pub unsafe fn EnumFeatures(&self, pfeaturelist: *mut *mut *mut ::windows::core::PSTR, pdwnumfeatures: *mut u32) -> ::windows::core::Result<()> { + pub unsafe fn EnumFeatures(&self, pfeaturelist: *mut *mut *mut ::windows::core::PCSTR, pdwnumfeatures: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.EnumFeatures)(::windows::core::Interface::as_raw(self), pfeaturelist, pdwnumfeatures).ok() } - pub unsafe fn EnumOptions(&self, pszfeaturekeyword: P0, poptionlist: *mut *mut *mut ::windows::core::PSTR, pdwnumoptions: *mut u32) -> ::windows::core::Result<()> + pub unsafe fn EnumOptions(&self, pszfeaturekeyword: P0, poptionlist: *mut *mut *mut ::windows::core::PCSTR, pdwnumoptions: *mut u32) -> ::windows::core::Result<()> where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/mod.rs index c7cec18f14..d6db63e53f 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/mod.rs @@ -128,9 +128,9 @@ where } #[doc = "*Required features: `\"Win32_NetworkManagement_NetworkDiagnosticsFramework\"`*"] #[inline] -pub unsafe fn NdfGetTraceFile(handle: *const ::core::ffi::c_void) -> ::windows::core::Result<::windows::core::PWSTR> { - ::windows::imp::link ! ( "ndfapi.dll""system" fn NdfGetTraceFile ( handle : *const ::core::ffi::c_void , tracefilelocation : *mut :: windows::core::PWSTR ) -> :: windows::core::HRESULT ); - let mut result__ = ::windows::core::zeroed::<::windows::core::PWSTR>(); +pub unsafe fn NdfGetTraceFile(handle: *const ::core::ffi::c_void) -> ::windows::core::Result<::windows::core::PCWSTR> { + ::windows::imp::link ! ( "ndfapi.dll""system" fn NdfGetTraceFile ( handle : *const ::core::ffi::c_void , tracefilelocation : *mut :: windows::core::PCWSTR ) -> :: windows::core::HRESULT ); + let mut result__ = ::windows::core::zeroed::<::windows::core::PCWSTR>(); NdfGetTraceFile(handle, &mut result__).from_abi(result__) } #[doc = "*Required features: `\"Win32_NetworkManagement_NetworkDiagnosticsFramework\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs index 154bb1f38a..0130335f96 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs @@ -175,8 +175,8 @@ where } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] #[inline] -pub unsafe fn InetNtopW(family: i32, paddr: *const ::core::ffi::c_void, pstringbuf: &mut [u16]) -> ::windows::core::PWSTR { - ::windows::imp::link ! ( "ws2_32.dll""system" fn InetNtopW ( family : i32 , paddr : *const ::core::ffi::c_void , pstringbuf : :: windows::core::PWSTR , stringbufsize : usize ) -> :: windows::core::PWSTR ); +pub unsafe fn InetNtopW(family: i32, paddr: *const ::core::ffi::c_void, pstringbuf: &mut [u16]) -> ::windows::core::PCWSTR { + ::windows::imp::link ! ( "ws2_32.dll""system" fn InetNtopW ( family : i32 , paddr : *const ::core::ffi::c_void , pstringbuf : :: windows::core::PWSTR , stringbufsize : usize ) -> :: windows::core::PCWSTR ); InetNtopW(family, paddr, ::core::mem::transmute(pstringbuf.as_ptr()), pstringbuf.len() as _) } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] @@ -212,20 +212,20 @@ pub unsafe fn RtlEthernetAddressToStringW(addr: *const DL_EUI48, s: &mut [u16; 1 } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] #[inline] -pub unsafe fn RtlEthernetStringToAddressA(s: P0, terminator: *mut ::windows::core::PSTR, addr: *mut DL_EUI48) -> i32 +pub unsafe fn RtlEthernetStringToAddressA(s: P0, terminator: *mut ::windows::core::PCSTR, addr: *mut DL_EUI48) -> i32 where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "ntdll.dll""system" fn RtlEthernetStringToAddressA ( s : :: windows::core::PCSTR , terminator : *mut :: windows::core::PSTR , addr : *mut DL_EUI48 ) -> i32 ); + ::windows::imp::link ! ( "ntdll.dll""system" fn RtlEthernetStringToAddressA ( s : :: windows::core::PCSTR , terminator : *mut :: windows::core::PCSTR , addr : *mut DL_EUI48 ) -> i32 ); RtlEthernetStringToAddressA(s.into_param().abi(), terminator, addr) } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] #[inline] -pub unsafe fn RtlEthernetStringToAddressW(s: P0, terminator: *mut ::windows::core::PWSTR, addr: *mut DL_EUI48) -> i32 +pub unsafe fn RtlEthernetStringToAddressW(s: P0, terminator: *mut ::windows::core::PCWSTR, addr: *mut DL_EUI48) -> i32 where P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, { - ::windows::imp::link ! ( "ntdll.dll""system" fn RtlEthernetStringToAddressW ( s : :: windows::core::PCWSTR , terminator : *mut :: windows::core::PWSTR , addr : *mut DL_EUI48 ) -> i32 ); + ::windows::imp::link ! ( "ntdll.dll""system" fn RtlEthernetStringToAddressW ( s : :: windows::core::PCWSTR , terminator : *mut :: windows::core::PCWSTR , addr : *mut DL_EUI48 ) -> i32 ); RtlEthernetStringToAddressW(s.into_param().abi(), terminator, addr) } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] @@ -255,12 +255,12 @@ pub unsafe fn RtlIpv4AddressToStringW(addr: *const IN_ADDR, s: &mut [u16; 16]) - #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn RtlIpv4StringToAddressA(s: P0, strict: P1, terminator: *mut ::windows::core::PSTR, addr: *mut IN_ADDR) -> i32 +pub unsafe fn RtlIpv4StringToAddressA(s: P0, strict: P1, terminator: *mut ::windows::core::PCSTR, addr: *mut IN_ADDR) -> i32 where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, P1: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "ntdll.dll""system" fn RtlIpv4StringToAddressA ( s : :: windows::core::PCSTR , strict : super::super::Foundation:: BOOLEAN , terminator : *mut :: windows::core::PSTR , addr : *mut IN_ADDR ) -> i32 ); + ::windows::imp::link ! ( "ntdll.dll""system" fn RtlIpv4StringToAddressA ( s : :: windows::core::PCSTR , strict : super::super::Foundation:: BOOLEAN , terminator : *mut :: windows::core::PCSTR , addr : *mut IN_ADDR ) -> i32 ); RtlIpv4StringToAddressA(s.into_param().abi(), strict.into_param().abi(), terminator, addr) } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] @@ -288,12 +288,12 @@ where #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn RtlIpv4StringToAddressW(s: P0, strict: P1, terminator: *mut ::windows::core::PWSTR, addr: *mut IN_ADDR) -> i32 +pub unsafe fn RtlIpv4StringToAddressW(s: P0, strict: P1, terminator: *mut ::windows::core::PCWSTR, addr: *mut IN_ADDR) -> i32 where P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, P1: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "ntdll.dll""system" fn RtlIpv4StringToAddressW ( s : :: windows::core::PCWSTR , strict : super::super::Foundation:: BOOLEAN , terminator : *mut :: windows::core::PWSTR , addr : *mut IN_ADDR ) -> i32 ); + ::windows::imp::link ! ( "ntdll.dll""system" fn RtlIpv4StringToAddressW ( s : :: windows::core::PCWSTR , strict : super::super::Foundation:: BOOLEAN , terminator : *mut :: windows::core::PCWSTR , addr : *mut IN_ADDR ) -> i32 ); RtlIpv4StringToAddressW(s.into_param().abi(), strict.into_param().abi(), terminator, addr) } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] @@ -322,11 +322,11 @@ pub unsafe fn RtlIpv6AddressToStringW(addr: *const IN6_ADDR, s: &mut [u16; 46]) } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] #[inline] -pub unsafe fn RtlIpv6StringToAddressA(s: P0, terminator: *mut ::windows::core::PSTR, addr: *mut IN6_ADDR) -> i32 +pub unsafe fn RtlIpv6StringToAddressA(s: P0, terminator: *mut ::windows::core::PCSTR, addr: *mut IN6_ADDR) -> i32 where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "ntdll.dll""system" fn RtlIpv6StringToAddressA ( s : :: windows::core::PCSTR , terminator : *mut :: windows::core::PSTR , addr : *mut IN6_ADDR ) -> i32 ); + ::windows::imp::link ! ( "ntdll.dll""system" fn RtlIpv6StringToAddressA ( s : :: windows::core::PCSTR , terminator : *mut :: windows::core::PCSTR , addr : *mut IN6_ADDR ) -> i32 ); RtlIpv6StringToAddressA(s.into_param().abi(), terminator, addr) } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] @@ -349,11 +349,11 @@ where } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] #[inline] -pub unsafe fn RtlIpv6StringToAddressW(s: P0, terminator: *mut ::windows::core::PWSTR, addr: *mut IN6_ADDR) -> i32 +pub unsafe fn RtlIpv6StringToAddressW(s: P0, terminator: *mut ::windows::core::PCWSTR, addr: *mut IN6_ADDR) -> i32 where P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, { - ::windows::imp::link ! ( "ntdll.dll""system" fn RtlIpv6StringToAddressW ( s : :: windows::core::PCWSTR , terminator : *mut :: windows::core::PWSTR , addr : *mut IN6_ADDR ) -> i32 ); + ::windows::imp::link ! ( "ntdll.dll""system" fn RtlIpv6StringToAddressW ( s : :: windows::core::PCWSTR , terminator : *mut :: windows::core::PCWSTR , addr : *mut IN6_ADDR ) -> i32 ); RtlIpv6StringToAddressW(s.into_param().abi(), terminator, addr) } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_IO\"`*"] @@ -1606,8 +1606,8 @@ pub unsafe fn inet_ntoa(r#in: IN_ADDR) -> ::windows::core::PSTR { } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] #[inline] -pub unsafe fn inet_ntop(family: i32, paddr: *const ::core::ffi::c_void, pstringbuf: &mut [u8]) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "ws2_32.dll""system" fn inet_ntop ( family : i32 , paddr : *const ::core::ffi::c_void , pstringbuf : :: windows::core::PSTR , stringbufsize : usize ) -> :: windows::core::PSTR ); +pub unsafe fn inet_ntop(family: i32, paddr: *const ::core::ffi::c_void, pstringbuf: &mut [u8]) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "ws2_32.dll""system" fn inet_ntop ( family : i32 , paddr : *const ::core::ffi::c_void , pstringbuf : :: windows::core::PSTR , stringbufsize : usize ) -> :: windows::core::PCSTR ); inet_ntop(family, paddr, ::core::mem::transmute(pstringbuf.as_ptr()), pstringbuf.len() as _) } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/mod.rs index 160aa47105..f320bc594d 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/mod.rs @@ -55,8 +55,8 @@ pub unsafe fn WebAuthNGetCancellationId() -> ::windows::core::Result<::windows:: } #[doc = "*Required features: `\"Win32_Networking_WindowsWebServices\"`*"] #[inline] -pub unsafe fn WebAuthNGetErrorName(hr: ::windows::core::HRESULT) -> ::windows::core::PWSTR { - ::windows::imp::link ! ( "webauthn.dll""system" fn WebAuthNGetErrorName ( hr : :: windows::core::HRESULT ) -> :: windows::core::PWSTR ); +pub unsafe fn WebAuthNGetErrorName(hr: ::windows::core::HRESULT) -> ::windows::core::PCWSTR { + ::windows::imp::link ! ( "webauthn.dll""system" fn WebAuthNGetErrorName ( hr : :: windows::core::HRESULT ) -> :: windows::core::PCWSTR ); WebAuthNGetErrorName(hr) } #[doc = "*Required features: `\"Win32_Networking_WindowsWebServices\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/mod.rs index ebb6b4f84a..b25ee96e3b 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/mod.rs @@ -1548,8 +1548,8 @@ pub unsafe fn SspiDecryptAuthIdentityEx(options: u32, encryptedauthdata: *mut :: } #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] #[inline] -pub unsafe fn SspiEncodeAuthIdentityAsStrings(pauthidentity: *const ::core::ffi::c_void, ppszusername: *mut ::windows::core::PWSTR, ppszdomainname: *mut ::windows::core::PWSTR, ppszpackedcredentialsstring: ::core::option::Option<*mut ::windows::core::PWSTR>) -> ::windows::core::Result<()> { - ::windows::imp::link ! ( "secur32.dll""system" fn SspiEncodeAuthIdentityAsStrings ( pauthidentity : *const ::core::ffi::c_void , ppszusername : *mut :: windows::core::PWSTR , ppszdomainname : *mut :: windows::core::PWSTR , ppszpackedcredentialsstring : *mut :: windows::core::PWSTR ) -> :: windows::core::HRESULT ); +pub unsafe fn SspiEncodeAuthIdentityAsStrings(pauthidentity: *const ::core::ffi::c_void, ppszusername: *mut ::windows::core::PCWSTR, ppszdomainname: *mut ::windows::core::PCWSTR, ppszpackedcredentialsstring: ::core::option::Option<*mut ::windows::core::PCWSTR>) -> ::windows::core::Result<()> { + ::windows::imp::link ! ( "secur32.dll""system" fn SspiEncodeAuthIdentityAsStrings ( pauthidentity : *const ::core::ffi::c_void , ppszusername : *mut :: windows::core::PCWSTR , ppszdomainname : *mut :: windows::core::PCWSTR , ppszpackedcredentialsstring : *mut :: windows::core::PCWSTR ) -> :: windows::core::HRESULT ); SspiEncodeAuthIdentityAsStrings(pauthidentity, ppszusername, ppszdomainname, ::core::mem::transmute(ppszpackedcredentialsstring.unwrap_or(::std::ptr::null_mut()))).ok() } #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] @@ -1628,20 +1628,20 @@ pub unsafe fn SspiMarshalAuthIdentity(authidentity: *const ::core::ffi::c_void, } #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] #[inline] -pub unsafe fn SspiPrepareForCredRead(authidentity: *const ::core::ffi::c_void, psztargetname: P0, pcredmancredentialtype: *mut u32, ppszcredmantargetname: *mut ::windows::core::PWSTR) -> ::windows::core::Result<()> +pub unsafe fn SspiPrepareForCredRead(authidentity: *const ::core::ffi::c_void, psztargetname: P0, pcredmancredentialtype: *mut u32, ppszcredmantargetname: *mut ::windows::core::PCWSTR) -> ::windows::core::Result<()> where P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, { - ::windows::imp::link ! ( "secur32.dll""system" fn SspiPrepareForCredRead ( authidentity : *const ::core::ffi::c_void , psztargetname : :: windows::core::PCWSTR , pcredmancredentialtype : *mut u32 , ppszcredmantargetname : *mut :: windows::core::PWSTR ) -> :: windows::core::HRESULT ); + ::windows::imp::link ! ( "secur32.dll""system" fn SspiPrepareForCredRead ( authidentity : *const ::core::ffi::c_void , psztargetname : :: windows::core::PCWSTR , pcredmancredentialtype : *mut u32 , ppszcredmantargetname : *mut :: windows::core::PCWSTR ) -> :: windows::core::HRESULT ); SspiPrepareForCredRead(authidentity, psztargetname.into_param().abi(), pcredmancredentialtype, ppszcredmantargetname).ok() } #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] #[inline] -pub unsafe fn SspiPrepareForCredWrite(authidentity: *const ::core::ffi::c_void, psztargetname: P0, pcredmancredentialtype: *mut u32, ppszcredmantargetname: *mut ::windows::core::PWSTR, ppszcredmanusername: *mut ::windows::core::PWSTR, ppcredentialblob: *mut *mut u8, pcredentialblobsize: *mut u32) -> ::windows::core::Result<()> +pub unsafe fn SspiPrepareForCredWrite(authidentity: *const ::core::ffi::c_void, psztargetname: P0, pcredmancredentialtype: *mut u32, ppszcredmantargetname: *mut ::windows::core::PCWSTR, ppszcredmanusername: *mut ::windows::core::PCWSTR, ppcredentialblob: *mut *mut u8, pcredentialblobsize: *mut u32) -> ::windows::core::Result<()> where P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, { - ::windows::imp::link ! ( "secur32.dll""system" fn SspiPrepareForCredWrite ( authidentity : *const ::core::ffi::c_void , psztargetname : :: windows::core::PCWSTR , pcredmancredentialtype : *mut u32 , ppszcredmantargetname : *mut :: windows::core::PWSTR , ppszcredmanusername : *mut :: windows::core::PWSTR , ppcredentialblob : *mut *mut u8 , pcredentialblobsize : *mut u32 ) -> :: windows::core::HRESULT ); + ::windows::imp::link ! ( "secur32.dll""system" fn SspiPrepareForCredWrite ( authidentity : *const ::core::ffi::c_void , psztargetname : :: windows::core::PCWSTR , pcredmancredentialtype : *mut u32 , ppszcredmantargetname : *mut :: windows::core::PCWSTR , ppszcredmanusername : *mut :: windows::core::PCWSTR , ppcredentialblob : *mut *mut u8 , pcredentialblobsize : *mut u32 ) -> :: windows::core::HRESULT ); SspiPrepareForCredWrite(authidentity, psztargetname.into_param().abi(), pcredmancredentialtype, ppszcredmantargetname, ppszcredmanusername, ppcredentialblob, pcredentialblobsize).ok() } #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs index 4c5120a516..b1e0c7bdfc 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs @@ -719,8 +719,8 @@ where } #[doc = "*Required features: `\"Win32_Security_Cryptography\"`*"] #[inline] -pub unsafe fn CertAlgIdToOID(dwalgid: u32) -> ::windows::core::PSTR { - ::windows::imp::link ! ( "crypt32.dll""system" fn CertAlgIdToOID ( dwalgid : u32 ) -> :: windows::core::PSTR ); +pub unsafe fn CertAlgIdToOID(dwalgid: u32) -> ::windows::core::PCSTR { + ::windows::imp::link ! ( "crypt32.dll""system" fn CertAlgIdToOID ( dwalgid : u32 ) -> :: windows::core::PCSTR ); CertAlgIdToOID(dwalgid) } #[doc = "*Required features: `\"Win32_Security_Cryptography\"`*"] @@ -1478,21 +1478,21 @@ where #[doc = "*Required features: `\"Win32_Security_Cryptography\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn CertStrToNameA(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pszx500: P0, dwstrtype: CERT_STRING_TYPE, pvreserved: ::core::option::Option<*const ::core::ffi::c_void>, pbencoded: ::core::option::Option<*mut u8>, pcbencoded: *mut u32, ppszerror: ::core::option::Option<*mut ::windows::core::PSTR>) -> super::super::Foundation::BOOL +pub unsafe fn CertStrToNameA(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pszx500: P0, dwstrtype: CERT_STRING_TYPE, pvreserved: ::core::option::Option<*const ::core::ffi::c_void>, pbencoded: ::core::option::Option<*mut u8>, pcbencoded: *mut u32, ppszerror: ::core::option::Option<*mut ::windows::core::PCSTR>) -> super::super::Foundation::BOOL where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "crypt32.dll""system" fn CertStrToNameA ( dwcertencodingtype : CERT_QUERY_ENCODING_TYPE , pszx500 : :: windows::core::PCSTR , dwstrtype : CERT_STRING_TYPE , pvreserved : *const ::core::ffi::c_void , pbencoded : *mut u8 , pcbencoded : *mut u32 , ppszerror : *mut :: windows::core::PSTR ) -> super::super::Foundation:: BOOL ); + ::windows::imp::link ! ( "crypt32.dll""system" fn CertStrToNameA ( dwcertencodingtype : CERT_QUERY_ENCODING_TYPE , pszx500 : :: windows::core::PCSTR , dwstrtype : CERT_STRING_TYPE , pvreserved : *const ::core::ffi::c_void , pbencoded : *mut u8 , pcbencoded : *mut u32 , ppszerror : *mut :: windows::core::PCSTR ) -> super::super::Foundation:: BOOL ); CertStrToNameA(dwcertencodingtype, pszx500.into_param().abi(), dwstrtype, ::core::mem::transmute(pvreserved.unwrap_or(::std::ptr::null())), ::core::mem::transmute(pbencoded.unwrap_or(::std::ptr::null_mut())), pcbencoded, ::core::mem::transmute(ppszerror.unwrap_or(::std::ptr::null_mut()))) } #[doc = "*Required features: `\"Win32_Security_Cryptography\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn CertStrToNameW(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pszx500: P0, dwstrtype: CERT_STRING_TYPE, pvreserved: ::core::option::Option<*const ::core::ffi::c_void>, pbencoded: ::core::option::Option<*mut u8>, pcbencoded: *mut u32, ppszerror: ::core::option::Option<*mut ::windows::core::PWSTR>) -> super::super::Foundation::BOOL +pub unsafe fn CertStrToNameW(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pszx500: P0, dwstrtype: CERT_STRING_TYPE, pvreserved: ::core::option::Option<*const ::core::ffi::c_void>, pbencoded: ::core::option::Option<*mut u8>, pcbencoded: *mut u32, ppszerror: ::core::option::Option<*mut ::windows::core::PCWSTR>) -> super::super::Foundation::BOOL where P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, { - ::windows::imp::link ! ( "crypt32.dll""system" fn CertStrToNameW ( dwcertencodingtype : CERT_QUERY_ENCODING_TYPE , pszx500 : :: windows::core::PCWSTR , dwstrtype : CERT_STRING_TYPE , pvreserved : *const ::core::ffi::c_void , pbencoded : *mut u8 , pcbencoded : *mut u32 , ppszerror : *mut :: windows::core::PWSTR ) -> super::super::Foundation:: BOOL ); + ::windows::imp::link ! ( "crypt32.dll""system" fn CertStrToNameW ( dwcertencodingtype : CERT_QUERY_ENCODING_TYPE , pszx500 : :: windows::core::PCWSTR , dwstrtype : CERT_STRING_TYPE , pvreserved : *const ::core::ffi::c_void , pbencoded : *mut u8 , pcbencoded : *mut u32 , ppszerror : *mut :: windows::core::PCWSTR ) -> super::super::Foundation:: BOOL ); CertStrToNameW(dwcertencodingtype, pszx500.into_param().abi(), dwstrtype, ::core::mem::transmute(pvreserved.unwrap_or(::std::ptr::null())), ::core::mem::transmute(pbencoded.unwrap_or(::std::ptr::null_mut())), pcbencoded, ::core::mem::transmute(ppszerror.unwrap_or(::std::ptr::null_mut()))) } #[doc = "*Required features: `\"Win32_Security_Cryptography\"`, `\"Win32_Foundation\"`*"] @@ -1912,11 +1912,11 @@ pub unsafe fn CryptFindCertificateKeyProvInfo(pcert: *const CERT_CONTEXT, dwflag } #[doc = "*Required features: `\"Win32_Security_Cryptography\"`*"] #[inline] -pub unsafe fn CryptFindLocalizedName(pwszcryptname: P0) -> ::windows::core::PWSTR +pub unsafe fn CryptFindLocalizedName(pwszcryptname: P0) -> ::windows::core::PCWSTR where P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, { - ::windows::imp::link ! ( "crypt32.dll""system" fn CryptFindLocalizedName ( pwszcryptname : :: windows::core::PCWSTR ) -> :: windows::core::PWSTR ); + ::windows::imp::link ! ( "crypt32.dll""system" fn CryptFindLocalizedName ( pwszcryptname : :: windows::core::PCWSTR ) -> :: windows::core::PCWSTR ); CryptFindLocalizedName(pwszcryptname.into_param().abi()) } #[doc = "*Required features: `\"Win32_Security_Cryptography\"`*"] @@ -27658,7 +27658,7 @@ pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE_IDENTIFIER = ::core::option::Opt pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE_PASSWORD = ::core::option::Option ()>; #[doc = "*Required features: `\"Win32_Security_Cryptography\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_GET = ::core::option::Option super::super::Foundation::BOOL>; +pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_GET = ::core::option::Option super::super::Foundation::BOOL>; #[doc = "*Required features: `\"Win32_Security_Cryptography\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_INITIALIZE = ::core::option::Option super::super::Foundation::BOOL>; diff --git a/crates/libs/windows/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs index deb9ae498f..7bad03dfd2 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs @@ -179,12 +179,12 @@ where } #[doc = "*Required features: `\"Win32_Security_DiagnosticDataQuery\"`*"] #[inline] -pub unsafe fn DdqGetDiagnosticRecordPayload(hsession: P0, rowid: i64) -> ::windows::core::Result<::windows::core::PWSTR> +pub unsafe fn DdqGetDiagnosticRecordPayload(hsession: P0, rowid: i64) -> ::windows::core::Result<::windows::core::PCWSTR> where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "diagnosticdataquery.dll""system" fn DdqGetDiagnosticRecordPayload ( hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION , rowid : i64 , payload : *mut :: windows::core::PWSTR ) -> :: windows::core::HRESULT ); - let mut result__ = ::windows::core::zeroed::<::windows::core::PWSTR>(); + ::windows::imp::link ! ( "diagnosticdataquery.dll""system" fn DdqGetDiagnosticRecordPayload ( hsession : super:: HDIAGNOSTIC_DATA_QUERY_SESSION , rowid : i64 , payload : *mut :: windows::core::PCWSTR ) -> :: windows::core::HRESULT ); + let mut result__ = ::windows::core::zeroed::<::windows::core::PCWSTR>(); DdqGetDiagnosticRecordPayload(hsession.into_param().abi(), rowid, &mut result__).from_abi(result__) } #[doc = "*Required features: `\"Win32_Security_DiagnosticDataQuery\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/mod.rs index ec7a085fba..6ab5ae71bf 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/mod.rs @@ -52,11 +52,11 @@ where #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn SrpGetEnterpriseIds(tokenhandle: P0, numberofbytes: ::core::option::Option<*mut u32>, enterpriseids: ::core::option::Option<*mut ::windows::core::PWSTR>, enterpriseidcount: *mut u32) -> ::windows::core::Result<()> +pub unsafe fn SrpGetEnterpriseIds(tokenhandle: P0, numberofbytes: ::core::option::Option<*mut u32>, enterpriseids: ::core::option::Option<*mut ::windows::core::PCWSTR>, enterpriseidcount: *mut u32) -> ::windows::core::Result<()> where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "srpapi.dll""system" fn SrpGetEnterpriseIds ( tokenhandle : super::super::Foundation:: HANDLE , numberofbytes : *mut u32 , enterpriseids : *mut :: windows::core::PWSTR , enterpriseidcount : *mut u32 ) -> :: windows::core::HRESULT ); + ::windows::imp::link ! ( "srpapi.dll""system" fn SrpGetEnterpriseIds ( tokenhandle : super::super::Foundation:: HANDLE , numberofbytes : *mut u32 , enterpriseids : *mut :: windows::core::PCWSTR , enterpriseidcount : *mut u32 ) -> :: windows::core::HRESULT ); SrpGetEnterpriseIds(tokenhandle.into_param().abi(), ::core::mem::transmute(numberofbytes.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(enterpriseids.unwrap_or(::std::ptr::null_mut())), enterpriseidcount).ok() } #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`, `\"Win32_Foundation\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Vss/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/Vss/impl.rs index b2ed61d520..048dfe0580 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Vss/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Vss/impl.rs @@ -1687,9 +1687,9 @@ pub trait IVssWriterImpl_Impl: Sized { fn Subscribe(&self, dwsubscribetimeout: u32, dweventflags: u32) -> ::windows::core::Result<()>; fn Unsubscribe(&self) -> ::windows::core::Result<()>; fn Uninitialize(&self); - fn GetCurrentVolumeArray(&self) -> *mut ::windows::core::PWSTR; + fn GetCurrentVolumeArray(&self) -> *mut ::windows::core::PCWSTR; fn GetCurrentVolumeCount(&self) -> u32; - fn GetSnapshotDeviceName(&self, wszoriginalvolume: &::windows::core::PCWSTR) -> ::windows::core::Result<::windows::core::PWSTR>; + fn GetSnapshotDeviceName(&self, wszoriginalvolume: &::windows::core::PCWSTR) -> ::windows::core::Result<::windows::core::PCWSTR>; fn GetCurrentSnapshotSetId(&self) -> ::windows::core::GUID; fn GetContext(&self) -> i32; fn GetCurrentLevel(&self) -> VSS_APPLICATION_LEVEL; @@ -1729,7 +1729,7 @@ impl IVssWriterImpl_Vtbl { let this = (*this).get_impl(); this.Uninitialize() } - unsafe extern "system" fn GetCurrentVolumeArray, Impl: IVssWriterImpl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> *mut ::windows::core::PWSTR { + unsafe extern "system" fn GetCurrentVolumeArray, Impl: IVssWriterImpl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> *mut ::windows::core::PCWSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetCurrentVolumeArray() @@ -1739,7 +1739,7 @@ impl IVssWriterImpl_Vtbl { let this = (*this).get_impl(); this.GetCurrentVolumeCount() } - unsafe extern "system" fn GetSnapshotDeviceName, Impl: IVssWriterImpl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszoriginalvolume: ::windows::core::PCWSTR, ppwszsnapshotdevice: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSnapshotDeviceName, Impl: IVssWriterImpl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszoriginalvolume: ::windows::core::PCWSTR, ppwszsnapshotdevice: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSnapshotDeviceName(::core::mem::transmute(&wszoriginalvolume)) { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Vss/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Vss/mod.rs index 63ec70099b..801897c2e4 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Vss/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Vss/mod.rs @@ -2218,17 +2218,17 @@ impl IVssWriterImpl { pub unsafe fn Uninitialize(&self) { (::windows::core::Interface::vtable(self).Uninitialize)(::windows::core::Interface::as_raw(self)) } - pub unsafe fn GetCurrentVolumeArray(&self) -> *mut ::windows::core::PWSTR { + pub unsafe fn GetCurrentVolumeArray(&self) -> *mut ::windows::core::PCWSTR { (::windows::core::Interface::vtable(self).GetCurrentVolumeArray)(::windows::core::Interface::as_raw(self)) } pub unsafe fn GetCurrentVolumeCount(&self) -> u32 { (::windows::core::Interface::vtable(self).GetCurrentVolumeCount)(::windows::core::Interface::as_raw(self)) } - pub unsafe fn GetSnapshotDeviceName(&self, wszoriginalvolume: P0) -> ::windows::core::Result<::windows::core::PWSTR> + pub unsafe fn GetSnapshotDeviceName(&self, wszoriginalvolume: P0) -> ::windows::core::Result<::windows::core::PCWSTR> where P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, { - let mut result__ = ::windows::core::zeroed::<::windows::core::PWSTR>(); + let mut result__ = ::windows::core::zeroed::<::windows::core::PCWSTR>(); (::windows::core::Interface::vtable(self).GetSnapshotDeviceName)(::windows::core::Interface::as_raw(self), wszoriginalvolume.into_param().abi(), &mut result__).from_abi(result__) } pub unsafe fn GetCurrentSnapshotSetId(&self) -> ::windows::core::GUID { @@ -2317,9 +2317,9 @@ pub struct IVssWriterImpl_Vtbl { pub Subscribe: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsubscribetimeout: u32, dweventflags: u32) -> ::windows::core::HRESULT, pub Unsubscribe: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Uninitialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), - pub GetCurrentVolumeArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut ::windows::core::PWSTR, + pub GetCurrentVolumeArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut ::windows::core::PCWSTR, pub GetCurrentVolumeCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, - pub GetSnapshotDeviceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszoriginalvolume: ::windows::core::PCWSTR, ppwszsnapshotdevice: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, + pub GetSnapshotDeviceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszoriginalvolume: ::windows::core::PCWSTR, ppwszsnapshotdevice: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub GetCurrentSnapshotSetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows::core::GUID), pub GetContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> i32, pub GetCurrentLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> VSS_APPLICATION_LEVEL, diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Com/impl.rs index 92f491254b..268fa35cf1 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/impl.rs @@ -5299,14 +5299,14 @@ pub trait IUriBuilder_Impl: Sized { fn CreateUriWithFlags(&self, dwcreateflags: u32, dwuribuilderflags: u32, dwallowencodingpropertymask: u32, dwreserved: usize) -> ::windows::core::Result; fn GetIUri(&self) -> ::windows::core::Result; fn SetIUri(&self, piuri: ::core::option::Option<&IUri>) -> ::windows::core::Result<()>; - fn GetFragment(&self, pcchfragment: *mut u32, ppwzfragment: *mut ::windows::core::PWSTR) -> ::windows::core::Result<()>; - fn GetHost(&self, pcchhost: *mut u32, ppwzhost: *mut ::windows::core::PWSTR) -> ::windows::core::Result<()>; - fn GetPassword(&self, pcchpassword: *mut u32, ppwzpassword: *mut ::windows::core::PWSTR) -> ::windows::core::Result<()>; - fn GetPath(&self, pcchpath: *mut u32, ppwzpath: *mut ::windows::core::PWSTR) -> ::windows::core::Result<()>; + fn GetFragment(&self, pcchfragment: *mut u32, ppwzfragment: *mut ::windows::core::PCWSTR) -> ::windows::core::Result<()>; + fn GetHost(&self, pcchhost: *mut u32, ppwzhost: *mut ::windows::core::PCWSTR) -> ::windows::core::Result<()>; + fn GetPassword(&self, pcchpassword: *mut u32, ppwzpassword: *mut ::windows::core::PCWSTR) -> ::windows::core::Result<()>; + fn GetPath(&self, pcchpath: *mut u32, ppwzpath: *mut ::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn GetPort(&self, pfhasport: *mut super::super::Foundation::BOOL, pdwport: *mut u32) -> ::windows::core::Result<()>; - fn GetQuery(&self, pcchquery: *mut u32, ppwzquery: *mut ::windows::core::PWSTR) -> ::windows::core::Result<()>; - fn GetSchemeName(&self, pcchschemename: *mut u32, ppwzschemename: *mut ::windows::core::PWSTR) -> ::windows::core::Result<()>; - fn GetUserName(&self, pcchusername: *mut u32, ppwzusername: *mut ::windows::core::PWSTR) -> ::windows::core::Result<()>; + fn GetQuery(&self, pcchquery: *mut u32, ppwzquery: *mut ::windows::core::PCWSTR) -> ::windows::core::Result<()>; + fn GetSchemeName(&self, pcchschemename: *mut u32, ppwzschemename: *mut ::windows::core::PCWSTR) -> ::windows::core::Result<()>; + fn GetUserName(&self, pcchusername: *mut u32, ppwzusername: *mut ::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn SetFragment(&self, pwznewvalue: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn SetHost(&self, pwznewvalue: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn SetPassword(&self, pwznewvalue: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; @@ -5372,22 +5372,22 @@ impl IUriBuilder_Vtbl { let this = (*this).get_impl(); this.SetIUri(::windows::core::from_raw_borrowed(&piuri)).into() } - unsafe extern "system" fn GetFragment, Impl: IUriBuilder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcchfragment: *mut u32, ppwzfragment: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFragment, Impl: IUriBuilder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcchfragment: *mut u32, ppwzfragment: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetFragment(::core::mem::transmute_copy(&pcchfragment), ::core::mem::transmute_copy(&ppwzfragment)).into() } - unsafe extern "system" fn GetHost, Impl: IUriBuilder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcchhost: *mut u32, ppwzhost: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetHost, Impl: IUriBuilder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcchhost: *mut u32, ppwzhost: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetHost(::core::mem::transmute_copy(&pcchhost), ::core::mem::transmute_copy(&ppwzhost)).into() } - unsafe extern "system" fn GetPassword, Impl: IUriBuilder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcchpassword: *mut u32, ppwzpassword: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPassword, Impl: IUriBuilder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcchpassword: *mut u32, ppwzpassword: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPassword(::core::mem::transmute_copy(&pcchpassword), ::core::mem::transmute_copy(&ppwzpassword)).into() } - unsafe extern "system" fn GetPath, Impl: IUriBuilder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcchpath: *mut u32, ppwzpath: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPath, Impl: IUriBuilder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcchpath: *mut u32, ppwzpath: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPath(::core::mem::transmute_copy(&pcchpath), ::core::mem::transmute_copy(&ppwzpath)).into() @@ -5397,17 +5397,17 @@ impl IUriBuilder_Vtbl { let this = (*this).get_impl(); this.GetPort(::core::mem::transmute_copy(&pfhasport), ::core::mem::transmute_copy(&pdwport)).into() } - unsafe extern "system" fn GetQuery, Impl: IUriBuilder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcchquery: *mut u32, ppwzquery: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetQuery, Impl: IUriBuilder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcchquery: *mut u32, ppwzquery: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetQuery(::core::mem::transmute_copy(&pcchquery), ::core::mem::transmute_copy(&ppwzquery)).into() } - unsafe extern "system" fn GetSchemeName, Impl: IUriBuilder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcchschemename: *mut u32, ppwzschemename: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSchemeName, Impl: IUriBuilder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcchschemename: *mut u32, ppwzschemename: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetSchemeName(::core::mem::transmute_copy(&pcchschemename), ::core::mem::transmute_copy(&ppwzschemename)).into() } - unsafe extern "system" fn GetUserName, Impl: IUriBuilder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcchusername: *mut u32, ppwzusername: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetUserName, Impl: IUriBuilder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcchusername: *mut u32, ppwzusername: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetUserName(::core::mem::transmute_copy(&pcchusername), ::core::mem::transmute_copy(&ppwzusername)).into() diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs index 9012aec618..72a96a8a91 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs @@ -7335,16 +7335,16 @@ impl IUriBuilder { { (::windows::core::Interface::vtable(self).SetIUri)(::windows::core::Interface::as_raw(self), piuri.into_param().abi()).ok() } - pub unsafe fn GetFragment(&self, pcchfragment: *mut u32, ppwzfragment: *mut ::windows::core::PWSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetFragment(&self, pcchfragment: *mut u32, ppwzfragment: *mut ::windows::core::PCWSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetFragment)(::windows::core::Interface::as_raw(self), pcchfragment, ppwzfragment).ok() } - pub unsafe fn GetHost(&self, pcchhost: *mut u32, ppwzhost: *mut ::windows::core::PWSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetHost(&self, pcchhost: *mut u32, ppwzhost: *mut ::windows::core::PCWSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetHost)(::windows::core::Interface::as_raw(self), pcchhost, ppwzhost).ok() } - pub unsafe fn GetPassword(&self, pcchpassword: *mut u32, ppwzpassword: *mut ::windows::core::PWSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetPassword(&self, pcchpassword: *mut u32, ppwzpassword: *mut ::windows::core::PCWSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPassword)(::windows::core::Interface::as_raw(self), pcchpassword, ppwzpassword).ok() } - pub unsafe fn GetPath(&self, pcchpath: *mut u32, ppwzpath: *mut ::windows::core::PWSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetPath(&self, pcchpath: *mut u32, ppwzpath: *mut ::windows::core::PCWSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPath)(::windows::core::Interface::as_raw(self), pcchpath, ppwzpath).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -7352,13 +7352,13 @@ impl IUriBuilder { pub unsafe fn GetPort(&self, pfhasport: *mut super::super::Foundation::BOOL, pdwport: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPort)(::windows::core::Interface::as_raw(self), pfhasport, pdwport).ok() } - pub unsafe fn GetQuery(&self, pcchquery: *mut u32, ppwzquery: *mut ::windows::core::PWSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetQuery(&self, pcchquery: *mut u32, ppwzquery: *mut ::windows::core::PCWSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetQuery)(::windows::core::Interface::as_raw(self), pcchquery, ppwzquery).ok() } - pub unsafe fn GetSchemeName(&self, pcchschemename: *mut u32, ppwzschemename: *mut ::windows::core::PWSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetSchemeName(&self, pcchschemename: *mut u32, ppwzschemename: *mut ::windows::core::PCWSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetSchemeName)(::windows::core::Interface::as_raw(self), pcchschemename, ppwzschemename).ok() } - pub unsafe fn GetUserName(&self, pcchusername: *mut u32, ppwzusername: *mut ::windows::core::PWSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetUserName(&self, pcchusername: *mut u32, ppwzusername: *mut ::windows::core::PCWSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetUserName)(::windows::core::Interface::as_raw(self), pcchusername, ppwzusername).ok() } pub unsafe fn SetFragment(&self, pwznewvalue: P0) -> ::windows::core::Result<()> @@ -7453,17 +7453,17 @@ pub struct IUriBuilder_Vtbl { pub CreateUriWithFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcreateflags: u32, dwuribuilderflags: u32, dwallowencodingpropertymask: u32, dwreserved: usize, ppiuri: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetIUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppiuri: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SetIUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piuri: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetFragment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcchfragment: *mut u32, ppwzfragment: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, - pub GetHost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcchhost: *mut u32, ppwzhost: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, - pub GetPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcchpassword: *mut u32, ppwzpassword: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, - pub GetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcchpath: *mut u32, ppwzpath: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, + pub GetFragment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcchfragment: *mut u32, ppwzfragment: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT, + pub GetHost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcchhost: *mut u32, ppwzhost: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT, + pub GetPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcchpassword: *mut u32, ppwzpassword: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT, + pub GetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcchpath: *mut u32, ppwzpath: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub GetPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfhasport: *mut super::super::Foundation::BOOL, pdwport: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] GetPort: usize, - pub GetQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcchquery: *mut u32, ppwzquery: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, - pub GetSchemeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcchschemename: *mut u32, ppwzschemename: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, - pub GetUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcchusername: *mut u32, ppwzusername: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, + pub GetQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcchquery: *mut u32, ppwzquery: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT, + pub GetSchemeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcchschemename: *mut u32, ppwzschemename: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT, + pub GetUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcchusername: *mut u32, ppwzusername: *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub SetFragment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwznewvalue: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub SetHost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwznewvalue: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub SetPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwznewvalue: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/impl.rs index b4505273b1..be53caec7c 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/impl.rs @@ -1142,7 +1142,7 @@ pub trait IActiveScriptProfilerHeapEnum_Impl: Sized { fn Next(&self, celt: u32, heapobjects: *mut *mut PROFILER_HEAP_OBJECT, pceltfetched: *mut u32) -> ::windows::core::Result<()>; fn GetOptionalInfo(&self, heapobject: *const PROFILER_HEAP_OBJECT, celt: u32, optionalinfo: *mut PROFILER_HEAP_OBJECT_OPTIONAL_INFO) -> ::windows::core::Result<()>; fn FreeObjectAndOptionalInfo(&self, celt: u32, heapobjects: *const *const PROFILER_HEAP_OBJECT) -> ::windows::core::Result<()>; - fn GetNameIdMap(&self, pnamelist: *mut *mut *mut ::windows::core::PWSTR, pcelt: *mut u32) -> ::windows::core::Result<()>; + fn GetNameIdMap(&self, pnamelist: *mut *mut *mut ::windows::core::PCWSTR, pcelt: *mut u32) -> ::windows::core::Result<()>; } impl ::windows::core::RuntimeName for IActiveScriptProfilerHeapEnum {} impl IActiveScriptProfilerHeapEnum_Vtbl { @@ -1162,7 +1162,7 @@ impl IActiveScriptProfilerHeapEnum_Vtbl { let this = (*this).get_impl(); this.FreeObjectAndOptionalInfo(::core::mem::transmute_copy(&celt), ::core::mem::transmute_copy(&heapobjects)).into() } - unsafe extern "system" fn GetNameIdMap, Impl: IActiveScriptProfilerHeapEnum_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pnamelist: *mut *mut *mut ::windows::core::PWSTR, pcelt: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetNameIdMap, Impl: IActiveScriptProfilerHeapEnum_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pnamelist: *mut *mut *mut ::windows::core::PCWSTR, pcelt: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetNameIdMap(::core::mem::transmute_copy(&pnamelist), ::core::mem::transmute_copy(&pcelt)).into() diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/mod.rs index a295d4546a..fc7ff53b7a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/mod.rs @@ -2851,7 +2851,7 @@ where #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn SymSrvDeltaName(hprocess: P0, sympath: P1, r#type: P2, file1: P3, file2: P4) -> ::windows::core::PSTR +pub unsafe fn SymSrvDeltaName(hprocess: P0, sympath: P1, r#type: P2, file1: P3, file2: P4) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, P1: ::windows::core::IntoParam<::windows::core::PCSTR>, @@ -2859,13 +2859,13 @@ where P3: ::windows::core::IntoParam<::windows::core::PCSTR>, P4: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "dbghelp.dll""system" fn SymSrvDeltaName ( hprocess : super::super::super::Foundation:: HANDLE , sympath : :: windows::core::PCSTR , r#type : :: windows::core::PCSTR , file1 : :: windows::core::PCSTR , file2 : :: windows::core::PCSTR ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "dbghelp.dll""system" fn SymSrvDeltaName ( hprocess : super::super::super::Foundation:: HANDLE , sympath : :: windows::core::PCSTR , r#type : :: windows::core::PCSTR , file1 : :: windows::core::PCSTR , file2 : :: windows::core::PCSTR ) -> :: windows::core::PCSTR ); SymSrvDeltaName(hprocess.into_param().abi(), sympath.into_param().abi(), r#type.into_param().abi(), file1.into_param().abi(), file2.into_param().abi()) } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn SymSrvDeltaNameW(hprocess: P0, sympath: P1, r#type: P2, file1: P3, file2: P4) -> ::windows::core::PWSTR +pub unsafe fn SymSrvDeltaNameW(hprocess: P0, sympath: P1, r#type: P2, file1: P3, file2: P4) -> ::windows::core::PCWSTR where P0: ::windows::core::IntoParam, P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, @@ -2873,7 +2873,7 @@ where P3: ::windows::core::IntoParam<::windows::core::PCWSTR>, P4: ::windows::core::IntoParam<::windows::core::PCWSTR>, { - ::windows::imp::link ! ( "dbghelp.dll""system" fn SymSrvDeltaNameW ( hprocess : super::super::super::Foundation:: HANDLE , sympath : :: windows::core::PCWSTR , r#type : :: windows::core::PCWSTR , file1 : :: windows::core::PCWSTR , file2 : :: windows::core::PCWSTR ) -> :: windows::core::PWSTR ); + ::windows::imp::link ! ( "dbghelp.dll""system" fn SymSrvDeltaNameW ( hprocess : super::super::super::Foundation:: HANDLE , sympath : :: windows::core::PCWSTR , r#type : :: windows::core::PCWSTR , file1 : :: windows::core::PCWSTR , file2 : :: windows::core::PCWSTR ) -> :: windows::core::PCWSTR ); SymSrvDeltaNameW(hprocess.into_param().abi(), sympath.into_param().abi(), r#type.into_param().abi(), file1.into_param().abi(), file2.into_param().abi()) } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] @@ -2943,27 +2943,27 @@ where #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn SymSrvGetSupplement(hprocess: P0, sympath: P1, node: P2, file: P3) -> ::windows::core::PSTR +pub unsafe fn SymSrvGetSupplement(hprocess: P0, sympath: P1, node: P2, file: P3) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, P1: ::windows::core::IntoParam<::windows::core::PCSTR>, P2: ::windows::core::IntoParam<::windows::core::PCSTR>, P3: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "dbghelp.dll""system" fn SymSrvGetSupplement ( hprocess : super::super::super::Foundation:: HANDLE , sympath : :: windows::core::PCSTR , node : :: windows::core::PCSTR , file : :: windows::core::PCSTR ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "dbghelp.dll""system" fn SymSrvGetSupplement ( hprocess : super::super::super::Foundation:: HANDLE , sympath : :: windows::core::PCSTR , node : :: windows::core::PCSTR , file : :: windows::core::PCSTR ) -> :: windows::core::PCSTR ); SymSrvGetSupplement(hprocess.into_param().abi(), sympath.into_param().abi(), node.into_param().abi(), file.into_param().abi()) } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn SymSrvGetSupplementW(hprocess: P0, sympath: P1, node: P2, file: P3) -> ::windows::core::PWSTR +pub unsafe fn SymSrvGetSupplementW(hprocess: P0, sympath: P1, node: P2, file: P3) -> ::windows::core::PCWSTR where P0: ::windows::core::IntoParam, P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, P2: ::windows::core::IntoParam<::windows::core::PCWSTR>, P3: ::windows::core::IntoParam<::windows::core::PCWSTR>, { - ::windows::imp::link ! ( "dbghelp.dll""system" fn SymSrvGetSupplementW ( hprocess : super::super::super::Foundation:: HANDLE , sympath : :: windows::core::PCWSTR , node : :: windows::core::PCWSTR , file : :: windows::core::PCWSTR ) -> :: windows::core::PWSTR ); + ::windows::imp::link ! ( "dbghelp.dll""system" fn SymSrvGetSupplementW ( hprocess : super::super::super::Foundation:: HANDLE , sympath : :: windows::core::PCWSTR , node : :: windows::core::PCWSTR , file : :: windows::core::PCWSTR ) -> :: windows::core::PCWSTR ); SymSrvGetSupplementW(hprocess.into_param().abi(), sympath.into_param().abi(), node.into_param().abi(), file.into_param().abi()) } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] @@ -2991,51 +2991,51 @@ where #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn SymSrvStoreFile(hprocess: P0, srvpath: P1, file: P2, flags: SYM_SRV_STORE_FILE_FLAGS) -> ::windows::core::PSTR +pub unsafe fn SymSrvStoreFile(hprocess: P0, srvpath: P1, file: P2, flags: SYM_SRV_STORE_FILE_FLAGS) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, P1: ::windows::core::IntoParam<::windows::core::PCSTR>, P2: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "dbghelp.dll""system" fn SymSrvStoreFile ( hprocess : super::super::super::Foundation:: HANDLE , srvpath : :: windows::core::PCSTR , file : :: windows::core::PCSTR , flags : SYM_SRV_STORE_FILE_FLAGS ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "dbghelp.dll""system" fn SymSrvStoreFile ( hprocess : super::super::super::Foundation:: HANDLE , srvpath : :: windows::core::PCSTR , file : :: windows::core::PCSTR , flags : SYM_SRV_STORE_FILE_FLAGS ) -> :: windows::core::PCSTR ); SymSrvStoreFile(hprocess.into_param().abi(), srvpath.into_param().abi(), file.into_param().abi(), flags) } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn SymSrvStoreFileW(hprocess: P0, srvpath: P1, file: P2, flags: SYM_SRV_STORE_FILE_FLAGS) -> ::windows::core::PWSTR +pub unsafe fn SymSrvStoreFileW(hprocess: P0, srvpath: P1, file: P2, flags: SYM_SRV_STORE_FILE_FLAGS) -> ::windows::core::PCWSTR where P0: ::windows::core::IntoParam, P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, P2: ::windows::core::IntoParam<::windows::core::PCWSTR>, { - ::windows::imp::link ! ( "dbghelp.dll""system" fn SymSrvStoreFileW ( hprocess : super::super::super::Foundation:: HANDLE , srvpath : :: windows::core::PCWSTR , file : :: windows::core::PCWSTR , flags : SYM_SRV_STORE_FILE_FLAGS ) -> :: windows::core::PWSTR ); + ::windows::imp::link ! ( "dbghelp.dll""system" fn SymSrvStoreFileW ( hprocess : super::super::super::Foundation:: HANDLE , srvpath : :: windows::core::PCWSTR , file : :: windows::core::PCWSTR , flags : SYM_SRV_STORE_FILE_FLAGS ) -> :: windows::core::PCWSTR ); SymSrvStoreFileW(hprocess.into_param().abi(), srvpath.into_param().abi(), file.into_param().abi(), flags) } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn SymSrvStoreSupplement(hprocess: P0, srvpath: P1, node: P2, file: P3, flags: u32) -> ::windows::core::PSTR +pub unsafe fn SymSrvStoreSupplement(hprocess: P0, srvpath: P1, node: P2, file: P3, flags: u32) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, P1: ::windows::core::IntoParam<::windows::core::PCSTR>, P2: ::windows::core::IntoParam<::windows::core::PCSTR>, P3: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "dbghelp.dll""system" fn SymSrvStoreSupplement ( hprocess : super::super::super::Foundation:: HANDLE , srvpath : :: windows::core::PCSTR , node : :: windows::core::PCSTR , file : :: windows::core::PCSTR , flags : u32 ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "dbghelp.dll""system" fn SymSrvStoreSupplement ( hprocess : super::super::super::Foundation:: HANDLE , srvpath : :: windows::core::PCSTR , node : :: windows::core::PCSTR , file : :: windows::core::PCSTR , flags : u32 ) -> :: windows::core::PCSTR ); SymSrvStoreSupplement(hprocess.into_param().abi(), srvpath.into_param().abi(), node.into_param().abi(), file.into_param().abi(), flags) } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn SymSrvStoreSupplementW(hprocess: P0, sympath: P1, node: P2, file: P3, flags: u32) -> ::windows::core::PWSTR +pub unsafe fn SymSrvStoreSupplementW(hprocess: P0, sympath: P1, node: P2, file: P3, flags: u32) -> ::windows::core::PCWSTR where P0: ::windows::core::IntoParam, P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, P2: ::windows::core::IntoParam<::windows::core::PCWSTR>, P3: ::windows::core::IntoParam<::windows::core::PCWSTR>, { - ::windows::imp::link ! ( "dbghelp.dll""system" fn SymSrvStoreSupplementW ( hprocess : super::super::super::Foundation:: HANDLE , sympath : :: windows::core::PCWSTR , node : :: windows::core::PCWSTR , file : :: windows::core::PCWSTR , flags : u32 ) -> :: windows::core::PWSTR ); + ::windows::imp::link ! ( "dbghelp.dll""system" fn SymSrvStoreSupplementW ( hprocess : super::super::super::Foundation:: HANDLE , sympath : :: windows::core::PCWSTR , node : :: windows::core::PCWSTR , file : :: windows::core::PCWSTR , flags : u32 ) -> :: windows::core::PCWSTR ); SymSrvStoreSupplementW(hprocess.into_param().abi(), sympath.into_param().abi(), node.into_param().abi(), file.into_param().abi(), flags) } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] @@ -5120,7 +5120,7 @@ impl IActiveScriptProfilerHeapEnum { pub unsafe fn FreeObjectAndOptionalInfo(&self, heapobjects: &[*const PROFILER_HEAP_OBJECT]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).FreeObjectAndOptionalInfo)(::windows::core::Interface::as_raw(self), heapobjects.len() as _, ::core::mem::transmute(heapobjects.as_ptr())).ok() } - pub unsafe fn GetNameIdMap(&self, pnamelist: *mut *mut *mut ::windows::core::PWSTR, pcelt: *mut u32) -> ::windows::core::Result<()> { + pub unsafe fn GetNameIdMap(&self, pnamelist: *mut *mut *mut ::windows::core::PCWSTR, pcelt: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetNameIdMap)(::windows::core::Interface::as_raw(self), pnamelist, pcelt).ok() } } @@ -5154,7 +5154,7 @@ pub struct IActiveScriptProfilerHeapEnum_Vtbl { pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32, heapobjects: *mut *mut PROFILER_HEAP_OBJECT, pceltfetched: *mut u32) -> ::windows::core::HRESULT, pub GetOptionalInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, heapobject: *const PROFILER_HEAP_OBJECT, celt: u32, optionalinfo: *mut PROFILER_HEAP_OBJECT_OPTIONAL_INFO) -> ::windows::core::HRESULT, pub FreeObjectAndOptionalInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32, heapobjects: *const *const PROFILER_HEAP_OBJECT) -> ::windows::core::HRESULT, - pub GetNameIdMap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnamelist: *mut *mut *mut ::windows::core::PWSTR, pcelt: *mut u32) -> ::windows::core::HRESULT, + pub GetNameIdMap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnamelist: *mut *mut *mut ::windows::core::PCWSTR, pcelt: *mut u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs b/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs index e40f860e7a..6042abe16e 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs @@ -222,20 +222,20 @@ where } #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] #[inline] -pub unsafe fn WerStoreGetFirstReportKey(hreportstore: P0, ppszreportkey: ::core::option::Option<*mut ::windows::core::PWSTR>) -> ::windows::core::Result<()> +pub unsafe fn WerStoreGetFirstReportKey(hreportstore: P0, ppszreportkey: ::core::option::Option<*mut ::windows::core::PCWSTR>) -> ::windows::core::Result<()> where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "wer.dll""system" fn WerStoreGetFirstReportKey ( hreportstore : HREPORTSTORE , ppszreportkey : *mut :: windows::core::PWSTR ) -> :: windows::core::HRESULT ); + ::windows::imp::link ! ( "wer.dll""system" fn WerStoreGetFirstReportKey ( hreportstore : HREPORTSTORE , ppszreportkey : *mut :: windows::core::PCWSTR ) -> :: windows::core::HRESULT ); WerStoreGetFirstReportKey(hreportstore.into_param().abi(), ::core::mem::transmute(ppszreportkey.unwrap_or(::std::ptr::null_mut()))).ok() } #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] #[inline] -pub unsafe fn WerStoreGetNextReportKey(hreportstore: P0, ppszreportkey: ::core::option::Option<*mut ::windows::core::PWSTR>) -> ::windows::core::Result<()> +pub unsafe fn WerStoreGetNextReportKey(hreportstore: P0, ppszreportkey: ::core::option::Option<*mut ::windows::core::PCWSTR>) -> ::windows::core::Result<()> where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "wer.dll""system" fn WerStoreGetNextReportKey ( hreportstore : HREPORTSTORE , ppszreportkey : *mut :: windows::core::PWSTR ) -> :: windows::core::HRESULT ); + ::windows::imp::link ! ( "wer.dll""system" fn WerStoreGetNextReportKey ( hreportstore : HREPORTSTORE , ppszreportkey : *mut :: windows::core::PCWSTR ) -> :: windows::core::HRESULT ); WerStoreGetNextReportKey(hreportstore.into_param().abi(), ::core::mem::transmute(ppszreportkey.unwrap_or(::std::ptr::null_mut()))).ok() } #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/System/HostComputeSystem/mod.rs b/crates/libs/windows/src/Windows/Win32/System/HostComputeSystem/mod.rs index 841e622a4b..314f909c05 100644 --- a/crates/libs/windows/src/Windows/Win32/System/HostComputeSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/HostComputeSystem/mod.rs @@ -300,11 +300,11 @@ where } #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] #[inline] -pub unsafe fn HcsGetProcessorCompatibilityFromSavedState(runtimefilename: P0, processorfeaturesstring: ::core::option::Option<*mut ::windows::core::PWSTR>) -> ::windows::core::Result<()> +pub unsafe fn HcsGetProcessorCompatibilityFromSavedState(runtimefilename: P0, processorfeaturesstring: ::core::option::Option<*mut ::windows::core::PCWSTR>) -> ::windows::core::Result<()> where P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, { - ::windows::imp::link ! ( "computecore.dll""system" fn HcsGetProcessorCompatibilityFromSavedState ( runtimefilename : :: windows::core::PCWSTR , processorfeaturesstring : *mut :: windows::core::PWSTR ) -> :: windows::core::HRESULT ); + ::windows::imp::link ! ( "computecore.dll""system" fn HcsGetProcessorCompatibilityFromSavedState ( runtimefilename : :: windows::core::PCWSTR , processorfeaturesstring : *mut :: windows::core::PCWSTR ) -> :: windows::core::HRESULT ); HcsGetProcessorCompatibilityFromSavedState(runtimefilename.into_param().abi(), ::core::mem::transmute(processorfeaturesstring.unwrap_or(::std::ptr::null_mut()))).ok() } #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs index 65542af4dd..665d980f14 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs @@ -307,11 +307,11 @@ where } #[doc = "*Required features: `\"Win32_System_WinRT\"`*"] #[inline] -pub unsafe fn RoParameterizedTypeExtraGetTypeSignature(extra: P0) -> ::windows::core::PSTR +pub unsafe fn RoParameterizedTypeExtraGetTypeSignature(extra: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam, { - ::windows::imp::link ! ( "api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll""system" fn RoParameterizedTypeExtraGetTypeSignature ( extra : ROPARAMIIDHANDLE ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll""system" fn RoParameterizedTypeExtraGetTypeSignature ( extra : ROPARAMIIDHANDLE ) -> :: windows::core::PCSTR ); RoParameterizedTypeExtraGetTypeSignature(extra.into_param().abi()) } #[doc = "*Required features: `\"Win32_System_WinRT\"`*"] @@ -469,8 +469,8 @@ pub unsafe fn WindowsGetStringLen(string: &::windows::core::HSTRING) -> u32 { } #[doc = "*Required features: `\"Win32_System_WinRT\"`*"] #[inline] -pub unsafe fn WindowsGetStringRawBuffer(string: &::windows::core::HSTRING, length: ::core::option::Option<*mut u32>) -> ::windows::core::PWSTR { - ::windows::imp::link ! ( "api-ms-win-core-winrt-string-l1-1-0.dll""system" fn WindowsGetStringRawBuffer ( string : ::std::mem::MaybeUninit <::windows::core::HSTRING > , length : *mut u32 ) -> :: windows::core::PWSTR ); +pub unsafe fn WindowsGetStringRawBuffer(string: &::windows::core::HSTRING, length: ::core::option::Option<*mut u32>) -> ::windows::core::PCWSTR { + ::windows::imp::link ! ( "api-ms-win-core-winrt-string-l1-1-0.dll""system" fn WindowsGetStringRawBuffer ( string : ::std::mem::MaybeUninit <::windows::core::HSTRING > , length : *mut u32 ) -> :: windows::core::PCWSTR ); WindowsGetStringRawBuffer(::core::mem::transmute_copy(string), ::core::mem::transmute(length.unwrap_or(::std::ptr::null_mut()))) } #[doc = "*Required features: `\"Win32_System_WinRT\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Shell/PropertiesSystem/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Shell/PropertiesSystem/mod.rs index 17d6862192..7c9c6f5468 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/PropertiesSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/PropertiesSystem/mod.rs @@ -1327,11 +1327,11 @@ pub unsafe fn PropVariantToStringVectorAlloc(propvar: *const super::super::super #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] #[inline] -pub unsafe fn PropVariantToStringWithDefault(propvarin: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT, pszdefault: P0) -> ::windows::core::PWSTR +pub unsafe fn PropVariantToStringWithDefault(propvarin: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT, pszdefault: P0) -> ::windows::core::PCWSTR where P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, { - ::windows::imp::link ! ( "propsys.dll""system" fn PropVariantToStringWithDefault ( propvarin : *const super::super::super::System::Com::StructuredStorage:: PROPVARIANT , pszdefault : :: windows::core::PCWSTR ) -> :: windows::core::PWSTR ); + ::windows::imp::link ! ( "propsys.dll""system" fn PropVariantToStringWithDefault ( propvarin : *const super::super::super::System::Com::StructuredStorage:: PROPVARIANT , pszdefault : :: windows::core::PCWSTR ) -> :: windows::core::PCWSTR ); PropVariantToStringWithDefault(propvarin, pszdefault.into_param().abi()) } #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`*"] @@ -1821,11 +1821,11 @@ pub unsafe fn VariantToStringArrayAlloc(var: *const super::super::super::System: #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] -pub unsafe fn VariantToStringWithDefault(varin: *const super::super::super::System::Com::VARIANT, pszdefault: P0) -> ::windows::core::PWSTR +pub unsafe fn VariantToStringWithDefault(varin: *const super::super::super::System::Com::VARIANT, pszdefault: P0) -> ::windows::core::PCWSTR where P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, { - ::windows::imp::link ! ( "propsys.dll""system" fn VariantToStringWithDefault ( varin : *const super::super::super::System::Com:: VARIANT , pszdefault : :: windows::core::PCWSTR ) -> :: windows::core::PWSTR ); + ::windows::imp::link ! ( "propsys.dll""system" fn VariantToStringWithDefault ( varin : *const super::super::super::System::Com:: VARIANT , pszdefault : :: windows::core::PCWSTR ) -> :: windows::core::PCWSTR ); VariantToStringWithDefault(varin, pszdefault.into_param().abi()) } #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Shell/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Shell/impl.rs index ceafbc7669..9a8a310a93 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/impl.rs @@ -12057,7 +12057,7 @@ pub trait IPackageDebugSettings_Impl: Sized { fn Resume(&self, packagefullname: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn TerminateAllProcesses(&self, packagefullname: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn SetTargetSessionId(&self, sessionid: u32) -> ::windows::core::Result<()>; - fn EnumerateBackgroundTasks(&self, packagefullname: &::windows::core::PCWSTR, taskcount: *mut u32, taskids: *mut *mut ::windows::core::GUID, tasknames: *mut *mut ::windows::core::PWSTR) -> ::windows::core::Result<()>; + fn EnumerateBackgroundTasks(&self, packagefullname: &::windows::core::PCWSTR, taskcount: *mut u32, taskids: *mut *mut ::windows::core::GUID, tasknames: *mut *mut ::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn ActivateBackgroundTask(&self, taskid: *const ::windows::core::GUID) -> ::windows::core::Result<()>; fn StartServicing(&self, packagefullname: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn StopServicing(&self, packagefullname: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; @@ -12100,7 +12100,7 @@ impl IPackageDebugSettings_Vtbl { let this = (*this).get_impl(); this.SetTargetSessionId(::core::mem::transmute_copy(&sessionid)).into() } - unsafe extern "system" fn EnumerateBackgroundTasks, Impl: IPackageDebugSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, packagefullname: ::windows::core::PCWSTR, taskcount: *mut u32, taskids: *mut *mut ::windows::core::GUID, tasknames: *mut *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumerateBackgroundTasks, Impl: IPackageDebugSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, packagefullname: ::windows::core::PCWSTR, taskcount: *mut u32, taskids: *mut *mut ::windows::core::GUID, tasknames: *mut *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.EnumerateBackgroundTasks(::core::mem::transmute(&packagefullname), ::core::mem::transmute_copy(&taskcount), ::core::mem::transmute_copy(&taskids), ::core::mem::transmute_copy(&tasknames)).into() diff --git a/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs index 63850885d3..7f31f30d2d 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs @@ -1680,12 +1680,12 @@ where } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] -pub unsafe fn PathCchFindExtension(pszpath: P0, cchpath: usize) -> ::windows::core::Result<::windows::core::PWSTR> +pub unsafe fn PathCchFindExtension(pszpath: P0, cchpath: usize) -> ::windows::core::Result<::windows::core::PCWSTR> where P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, { - ::windows::imp::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" fn PathCchFindExtension ( pszpath : :: windows::core::PCWSTR , cchpath : usize , ppszext : *mut :: windows::core::PWSTR ) -> :: windows::core::HRESULT ); - let mut result__ = ::windows::core::zeroed::<::windows::core::PWSTR>(); + ::windows::imp::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" fn PathCchFindExtension ( pszpath : :: windows::core::PCWSTR , cchpath : usize , ppszext : *mut :: windows::core::PCWSTR ) -> :: windows::core::HRESULT ); + let mut result__ = ::windows::core::zeroed::<::windows::core::PCWSTR>(); PathCchFindExtension(pszpath.into_param().abi(), cchpath, &mut result__).from_abi(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] @@ -1733,12 +1733,12 @@ where } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] -pub unsafe fn PathCchSkipRoot(pszpath: P0) -> ::windows::core::Result<::windows::core::PWSTR> +pub unsafe fn PathCchSkipRoot(pszpath: P0) -> ::windows::core::Result<::windows::core::PCWSTR> where P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, { - ::windows::imp::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" fn PathCchSkipRoot ( pszpath : :: windows::core::PCWSTR , ppszrootend : *mut :: windows::core::PWSTR ) -> :: windows::core::HRESULT ); - let mut result__ = ::windows::core::zeroed::<::windows::core::PWSTR>(); + ::windows::imp::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" fn PathCchSkipRoot ( pszpath : :: windows::core::PCWSTR , ppszrootend : *mut :: windows::core::PCWSTR ) -> :: windows::core::HRESULT ); + let mut result__ = ::windows::core::zeroed::<::windows::core::PCWSTR>(); PathCchSkipRoot(pszpath.into_param().abi(), &mut result__).from_abi(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] @@ -1959,20 +1959,20 @@ pub unsafe fn PathFindOnPathW(pszpath: &mut [u16; 260], ppszotherdirs: ::core::o } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] -pub unsafe fn PathFindSuffixArrayA(pszpath: P0, apszsuffix: &[::windows::core::PCSTR]) -> ::windows::core::PSTR +pub unsafe fn PathFindSuffixArrayA(pszpath: P0, apszsuffix: &[::windows::core::PCSTR]) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "shlwapi.dll""system" fn PathFindSuffixArrayA ( pszpath : :: windows::core::PCSTR , apszsuffix : *const :: windows::core::PCSTR , iarraysize : i32 ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "shlwapi.dll""system" fn PathFindSuffixArrayA ( pszpath : :: windows::core::PCSTR , apszsuffix : *const :: windows::core::PCSTR , iarraysize : i32 ) -> :: windows::core::PCSTR ); PathFindSuffixArrayA(pszpath.into_param().abi(), ::core::mem::transmute(apszsuffix.as_ptr()), apszsuffix.len() as _) } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] -pub unsafe fn PathFindSuffixArrayW(pszpath: P0, apszsuffix: &[::windows::core::PCWSTR]) -> ::windows::core::PWSTR +pub unsafe fn PathFindSuffixArrayW(pszpath: P0, apszsuffix: &[::windows::core::PCWSTR]) -> ::windows::core::PCWSTR where P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, { - ::windows::imp::link ! ( "shlwapi.dll""system" fn PathFindSuffixArrayW ( pszpath : :: windows::core::PCWSTR , apszsuffix : *const :: windows::core::PCWSTR , iarraysize : i32 ) -> :: windows::core::PWSTR ); + ::windows::imp::link ! ( "shlwapi.dll""system" fn PathFindSuffixArrayW ( pszpath : :: windows::core::PCWSTR , apszsuffix : *const :: windows::core::PCWSTR , iarraysize : i32 ) -> :: windows::core::PCWSTR ); PathFindSuffixArrayW(pszpath.into_param().abi(), ::core::mem::transmute(apszsuffix.as_ptr()), apszsuffix.len() as _) } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] @@ -2298,11 +2298,11 @@ where #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn PathIsUNCEx(pszpath: P0, ppszserver: ::core::option::Option<*mut ::windows::core::PWSTR>) -> super::super::Foundation::BOOL +pub unsafe fn PathIsUNCEx(pszpath: P0, ppszserver: ::core::option::Option<*mut ::windows::core::PCWSTR>) -> super::super::Foundation::BOOL where P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, { - ::windows::imp::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" fn PathIsUNCEx ( pszpath : :: windows::core::PCWSTR , ppszserver : *mut :: windows::core::PWSTR ) -> super::super::Foundation:: BOOL ); + ::windows::imp::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" fn PathIsUNCEx ( pszpath : :: windows::core::PCWSTR , ppszserver : *mut :: windows::core::PCWSTR ) -> super::super::Foundation:: BOOL ); PathIsUNCEx(pszpath.into_param().abi(), ::core::mem::transmute(ppszserver.unwrap_or(::std::ptr::null_mut()))) } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] @@ -6316,20 +6316,20 @@ where } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] -pub unsafe fn UrlGetLocationA(pszurl: P0) -> ::windows::core::PSTR +pub unsafe fn UrlGetLocationA(pszurl: P0) -> ::windows::core::PCSTR where P0: ::windows::core::IntoParam<::windows::core::PCSTR>, { - ::windows::imp::link ! ( "shlwapi.dll""system" fn UrlGetLocationA ( pszurl : :: windows::core::PCSTR ) -> :: windows::core::PSTR ); + ::windows::imp::link ! ( "shlwapi.dll""system" fn UrlGetLocationA ( pszurl : :: windows::core::PCSTR ) -> :: windows::core::PCSTR ); UrlGetLocationA(pszurl.into_param().abi()) } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] -pub unsafe fn UrlGetLocationW(pszurl: P0) -> ::windows::core::PWSTR +pub unsafe fn UrlGetLocationW(pszurl: P0) -> ::windows::core::PCWSTR where P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, { - ::windows::imp::link ! ( "shlwapi.dll""system" fn UrlGetLocationW ( pszurl : :: windows::core::PCWSTR ) -> :: windows::core::PWSTR ); + ::windows::imp::link ! ( "shlwapi.dll""system" fn UrlGetLocationW ( pszurl : :: windows::core::PCWSTR ) -> :: windows::core::PCWSTR ); UrlGetLocationW(pszurl.into_param().abi()) } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] @@ -25011,7 +25011,7 @@ impl IPackageDebugSettings { pub unsafe fn SetTargetSessionId(&self, sessionid: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetTargetSessionId)(::windows::core::Interface::as_raw(self), sessionid).ok() } - pub unsafe fn EnumerateBackgroundTasks(&self, packagefullname: P0, taskcount: *mut u32, taskids: *mut *mut ::windows::core::GUID, tasknames: *mut *mut ::windows::core::PWSTR) -> ::windows::core::Result<()> + pub unsafe fn EnumerateBackgroundTasks(&self, packagefullname: P0, taskcount: *mut u32, taskids: *mut *mut ::windows::core::GUID, tasknames: *mut *mut ::windows::core::PCWSTR) -> ::windows::core::Result<()> where P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, { @@ -25096,7 +25096,7 @@ pub struct IPackageDebugSettings_Vtbl { pub Resume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefullname: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub TerminateAllProcesses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefullname: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub SetTargetSessionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sessionid: u32) -> ::windows::core::HRESULT, - pub EnumerateBackgroundTasks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefullname: ::windows::core::PCWSTR, taskcount: *mut u32, taskids: *mut *mut ::windows::core::GUID, tasknames: *mut *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, + pub EnumerateBackgroundTasks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefullname: ::windows::core::PCWSTR, taskcount: *mut u32, taskids: *mut *mut ::windows::core::GUID, tasknames: *mut *mut ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub ActivateBackgroundTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, pub StartServicing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefullname: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub StopServicing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefullname: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, @@ -25145,7 +25145,7 @@ impl IPackageDebugSettings2 { pub unsafe fn SetTargetSessionId(&self, sessionid: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetTargetSessionId)(::windows::core::Interface::as_raw(self), sessionid).ok() } - pub unsafe fn EnumerateBackgroundTasks(&self, packagefullname: P0, taskcount: *mut u32, taskids: *mut *mut ::windows::core::GUID, tasknames: *mut *mut ::windows::core::PWSTR) -> ::windows::core::Result<()> + pub unsafe fn EnumerateBackgroundTasks(&self, packagefullname: P0, taskcount: *mut u32, taskids: *mut *mut ::windows::core::GUID, tasknames: *mut *mut ::windows::core::PCWSTR) -> ::windows::core::Result<()> where P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, { diff --git a/crates/libs/windows/src/core/strings/pcstr.rs b/crates/libs/windows/src/core/strings/pcstr.rs index 9ed2258121..7f7018d275 100644 --- a/crates/libs/windows/src/core/strings/pcstr.rs +++ b/crates/libs/windows/src/core/strings/pcstr.rs @@ -59,14 +59,6 @@ impl TypeKind for PCSTR { type TypeKind = CopyType; } -// This just ensures that `None` can be used for optional PCSTR parameters, which can be quite common -// with some Windows APIs. -impl From> for PCSTR { - fn from(from: Option) -> Self { - from.unwrap_or_else(Self::null) - } -} - #[cfg(test)] mod tests { use super::*; diff --git a/crates/libs/windows/src/core/strings/pcwstr.rs b/crates/libs/windows/src/core/strings/pcwstr.rs index af9bcd3d5d..8112d83855 100644 --- a/crates/libs/windows/src/core/strings/pcwstr.rs +++ b/crates/libs/windows/src/core/strings/pcwstr.rs @@ -67,11 +67,3 @@ impl PCWSTR { impl TypeKind for PCWSTR { type TypeKind = CopyType; } - -// This just ensures that `None` can be used for optional PCWSTR parameters, which can be quite common -// with some Windows APIs. -impl From> for PCWSTR { - fn from(from: Option) -> Self { - from.unwrap_or_else(Self::null) - } -} diff --git a/crates/tests/const_params/Cargo.toml b/crates/tests/const_params/Cargo.toml new file mode 100644 index 0000000000..9cf37ff9af --- /dev/null +++ b/crates/tests/const_params/Cargo.toml @@ -0,0 +1,21 @@ +[package] +name = "test_const_params" +version = "0.0.0" +authors = ["Microsoft"] +edition = "2018" + +[dependencies.windows] +path = "../../libs/windows" +features = [ + "Win32_Foundation", + "Win32_UI_Shell", + "Win32_System_WinRT", + "Win32_System_Com", +] + +[dependencies.windows-sys] +path = "../../libs/sys" +features = [ + "Win32_Foundation", + "Win32_UI_Shell", +] diff --git a/crates/tests/const_params/src/lib.rs b/crates/tests/const_params/src/lib.rs new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ b/crates/tests/const_params/src/lib.rs @@ -0,0 +1 @@ + diff --git a/crates/tests/const_params/tests/sys.rs b/crates/tests/const_params/tests/sys.rs new file mode 100644 index 0000000000..56bf347d13 --- /dev/null +++ b/crates/tests/const_params/tests/sys.rs @@ -0,0 +1,18 @@ +use windows_sys::{core::*, Win32::Foundation::*, Win32::UI::Shell::*}; + +extern "C" { + fn wcslen(s: PCWSTR) -> usize; +} + +unsafe fn to_string(s: PCWSTR) -> String { + String::from_utf16_lossy(std::slice::from_raw_parts(s, wcslen(s))) +} + +#[test] +fn path() { + unsafe { + let mut extension: PCWSTR = std::ptr::null(); + assert_eq!(PathCchFindExtension(w!("A:\\file.txt"), 12, &mut extension), S_OK); + assert_eq!(to_string(extension), ".txt"); + } +} diff --git a/crates/tests/const_params/tests/win.rs b/crates/tests/const_params/tests/win.rs new file mode 100644 index 0000000000..25a97f75d7 --- /dev/null +++ b/crates/tests/const_params/tests/win.rs @@ -0,0 +1,35 @@ +use windows::{core::*, Win32::System::Com::*, Win32::System::WinRT::*, Win32::UI::Shell::*}; + +#[test] +fn path() -> Result<()> { + unsafe { + let extension: PCWSTR = PathCchFindExtension(w!("A:\\file.txt"), 12)?; + assert_eq!(extension.to_string()?, ".txt"); + Ok(()) + } +} + +#[test] +fn hstring() -> Result<()> { + unsafe { + let raw: PCWSTR = WindowsGetStringRawBuffer(h!("test"), None); + assert_eq!(raw.to_string()?, "test"); + Ok(()) + } +} + +#[test] +fn uri() -> Result<()> { + unsafe { + let uri = CreateUri(w!("http://kennykerr.ca"), URI_CREATE_FLAGS::default(), 0)?; + let builder = CreateIUriBuilder(&uri, 0, 0)?; + + let mut host_len = 0u32; + let mut host = PCWSTR::null(); + builder.GetHost(&mut host_len, &mut host)?; + assert_eq!(host_len, 12); + assert_eq!(host.to_string()?, "kennykerr.ca"); + + Ok(()) + } +} diff --git a/crates/tests/win32_arrays/tests/xmllite.rs b/crates/tests/win32_arrays/tests/xmllite.rs index fe87475ea3..da69c21ffa 100644 --- a/crates/tests/win32_arrays/tests/xmllite.rs +++ b/crates/tests/win32_arrays/tests/xmllite.rs @@ -32,7 +32,7 @@ fn test() -> Result<()> { reader.Read(Some(&mut node_type)).ok()?; assert_eq!(node_type, XmlNodeType_XmlDeclaration); - let mut name = PWSTR::null(); + let mut name = PCWSTR::null(); let mut name_len = 0; let mut node_type = XmlNodeType_None; @@ -109,7 +109,7 @@ fn lite() -> Result<()> { let reader = reader.unwrap(); reader.SetInput(&stream)?; - let mut name = PWSTR::null(); + let mut name = PCWSTR::null(); let mut name_len = 0; let mut node_type = XmlNodeType_None;