From 59246f996d1d32f70230c57fe962207843ef53ad Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Tue, 26 Mar 2024 21:02:00 +0100 Subject: [PATCH] Bump `windows-core` to `0.55` Note that `windows 0.55` was not released, and any implementation in the wild depending on `windows` will get `windows-core 0.54` in their dependency tree for obvious compatibility reasons, and would get a duplicate if `iana-time-zone` decides to switch to o`windows-core 0.55` prematurely. This PR depends on #131 and can be updated and merged whenever there is a compelling reason to bump further. This requires a strange change to remove a "comment" from `bindings.txt`: Running `api_gen/target/debug/api_gen` Error: Error { message: "unused filters\n Dependencies\n above\n the\n of\n #", path: "", span: None } --- Cargo.toml | 2 +- api_gen/Cargo.toml | 2 +- bindings.txt | 1 - src/Windows.rs | 1946 +++++++++++++++++++++----------------------- 4 files changed, 921 insertions(+), 1030 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 53edfb7..c04f3cd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ android_system_properties = "0.1.5" core-foundation-sys = "0.8.3" [target.'cfg(target_os = "windows")'.dependencies] -windows-core = { version = ">=0.53, <=0.54" } +windows-core = { version = "0.55" } [target.'cfg(target_arch = "wasm32")'.dependencies] js-sys = "0.3.50" diff --git a/api_gen/Cargo.toml b/api_gen/Cargo.toml index ac92d2a..403ac1b 100644 --- a/api_gen/Cargo.toml +++ b/api_gen/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" publish = false [dependencies] -windows-bindgen = "0.54" +windows-bindgen = "0.55" # Dissociate this crate from the root workspace to allow older Rust to build the main crate within # the workspace, without observing `edition = "2021"` inside `windows-bindgen`. diff --git a/bindings.txt b/bindings.txt index fad7e48..3bf370e 100644 --- a/bindings.txt +++ b/bindings.txt @@ -3,7 +3,6 @@ --filter Windows.Globalization.Calendar - # Dependencies of the above Windows.Foundation.Collections.IIterable Windows.Foundation.Collections.IIterator Windows.Foundation.Collections.IVectorView diff --git a/src/Windows.rs b/src/Windows.rs index 2195d8c..f66bf0c 100644 --- a/src/Windows.rs +++ b/src/Windows.rs @@ -1,4 +1,4 @@ -// Bindings generated by `windows-bindgen` 0.54.0 +// Bindings generated by `windows-bindgen` 0.55.0 #![allow( non_snake_case, @@ -10,36 +10,34 @@ pub mod Foundation { pub mod Collections { #[repr(transparent)] - #[derive( - ::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone, - )] - pub struct IIterable(::windows_core::IUnknown, ::core::marker::PhantomData) + #[derive(PartialEq, Eq, core::fmt::Debug, Clone)] + pub struct IIterable(windows_core::IUnknown, core::marker::PhantomData) where - T: ::windows_core::RuntimeType + 'static; - impl - ::windows_core::CanInto<::windows_core::IUnknown> for IIterable + T: windows_core::RuntimeType + 'static; + impl windows_core::CanInto + for IIterable { } - impl - ::windows_core::CanInto<::windows_core::IInspectable> for IIterable + impl + windows_core::CanInto for IIterable { } - impl IIterable { - pub fn First(&self) -> ::windows_core::Result> { + impl IIterable { + pub fn First(&self) -> windows_core::Result> { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).First)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).First)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } } - impl ::windows_core::RuntimeType for IIterable { - const SIGNATURE: ::windows_core::imp::ConstBuffer = { - ::windows_core::imp::ConstBuffer::new() + impl windows_core::RuntimeType for IIterable { + const SIGNATURE: windows_core::imp::ConstBuffer = { + windows_core::imp::ConstBuffer::new() .push_slice(b"pinterface(") .push_slice(b"{faa585ea-6214-4217-afda-7f46de5869b3}") .push_slice(b";") @@ -47,82 +45,79 @@ pub mod Foundation { .push_slice(b")") }; } - impl ::core::iter::IntoIterator for IIterable { + impl IntoIterator for IIterable { type Item = T; type IntoIter = IIterator; fn into_iter(self) -> Self::IntoIter { - ::core::iter::IntoIterator::into_iter(&self) + IntoIterator::into_iter(&self) } } - impl ::core::iter::IntoIterator for &IIterable { + impl IntoIterator for &IIterable { type Item = T; type IntoIter = IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } } - unsafe impl ::windows_core::Interface for IIterable { + unsafe impl windows_core::Interface for IIterable { type Vtable = IIterable_Vtbl; - const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature( - ::SIGNATURE, - ); + const IID: windows_core::GUID = + windows_core::GUID::from_signature(::SIGNATURE); } #[repr(C)] pub struct IIterable_Vtbl where - T: ::windows_core::RuntimeType + 'static, + T: windows_core::RuntimeType + 'static, { - pub base__: ::windows_core::IInspectable_Vtbl, + pub base__: windows_core::IInspectable_Vtbl, pub First: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut *mut ::core::ffi::c_void, - ) -> ::windows_core::HRESULT, - pub T: ::core::marker::PhantomData, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + pub T: core::marker::PhantomData, } #[repr(transparent)] - #[derive( - ::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone, - )] - pub struct IIterator(::windows_core::IUnknown, ::core::marker::PhantomData) + #[derive(PartialEq, Eq, core::fmt::Debug, Clone)] + pub struct IIterator(windows_core::IUnknown, core::marker::PhantomData) where - T: ::windows_core::RuntimeType + 'static; - impl - ::windows_core::CanInto<::windows_core::IUnknown> for IIterator + T: windows_core::RuntimeType + 'static; + impl windows_core::CanInto + for IIterator { } - impl - ::windows_core::CanInto<::windows_core::IInspectable> for IIterator + impl + windows_core::CanInto for IIterator { } - impl IIterator { - pub fn Current(&self) -> ::windows_core::Result { + impl IIterator { + pub fn Current(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Current)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).Current)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn HasCurrent(&self) -> ::windows_core::Result { + pub fn HasCurrent(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).HasCurrent)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).HasCurrent)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn MoveNext(&self) -> ::windows_core::Result { + pub fn MoveNext(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).MoveNext)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).MoveNext)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) @@ -130,24 +125,24 @@ pub mod Foundation { } pub fn GetMany( &self, - items: &mut [>::Default], - ) -> ::windows_core::Result { + items: &mut [>::Default], + ) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetMany)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).GetMany)( + windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), - ::core::mem::transmute_copy(&items), + core::mem::transmute_copy(&items), &mut result__, ) .map(|| result__) } } } - impl ::windows_core::RuntimeType for IIterator { - const SIGNATURE: ::windows_core::imp::ConstBuffer = { - ::windows_core::imp::ConstBuffer::new() + impl windows_core::RuntimeType for IIterator { + const SIGNATURE: windows_core::imp::ConstBuffer = { + windows_core::imp::ConstBuffer::new() .push_slice(b"pinterface(") .push_slice(b"{6a79e863-4300-459a-9966-cbb660963ee1}") .push_slice(b";") @@ -155,9 +150,9 @@ pub mod Foundation { .push_slice(b")") }; } - impl ::core::iter::Iterator for IIterator { + impl Iterator for IIterator { type Item = T; - fn next(&mut self) -> ::core::option::Option { + fn next(&mut self) -> Option { let result = self.Current().ok(); if result.is_some() { self.MoveNext().ok()?; @@ -165,91 +160,88 @@ pub mod Foundation { result } } - unsafe impl ::windows_core::Interface for IIterator { + unsafe impl windows_core::Interface for IIterator { type Vtable = IIterator_Vtbl; - const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature( - ::SIGNATURE, - ); + const IID: windows_core::GUID = + windows_core::GUID::from_signature(::SIGNATURE); } #[repr(C)] pub struct IIterator_Vtbl where - T: ::windows_core::RuntimeType + 'static, + T: windows_core::RuntimeType + 'static, { - pub base__: ::windows_core::IInspectable_Vtbl, + pub base__: windows_core::IInspectable_Vtbl, pub Current: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::windows_core::AbiType, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut windows_core::AbiType, + ) -> windows_core::HRESULT, pub HasCurrent: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, *mut bool, - ) -> ::windows_core::HRESULT, + ) -> windows_core::HRESULT, pub MoveNext: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, *mut bool, - ) -> ::windows_core::HRESULT, + ) -> windows_core::HRESULT, pub GetMany: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, u32, - *mut ::windows_core::AbiType, + *mut windows_core::AbiType, *mut u32, - ) -> ::windows_core::HRESULT, - pub T: ::core::marker::PhantomData, + ) -> windows_core::HRESULT, + pub T: core::marker::PhantomData, } #[repr(transparent)] - #[derive( - ::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone, - )] - pub struct IVectorView(::windows_core::IUnknown, ::core::marker::PhantomData) + #[derive(PartialEq, Eq, core::fmt::Debug, Clone)] + pub struct IVectorView(windows_core::IUnknown, core::marker::PhantomData) where - T: ::windows_core::RuntimeType + 'static; - impl - ::windows_core::CanInto<::windows_core::IUnknown> for IVectorView + T: windows_core::RuntimeType + 'static; + impl windows_core::CanInto + for IVectorView { } - impl - ::windows_core::CanInto<::windows_core::IInspectable> for IVectorView + impl + windows_core::CanInto for IVectorView { } - impl ::windows_core::CanInto> + impl windows_core::CanInto> for IVectorView { const QUERY: bool = true; } - impl IVectorView { - pub fn GetAt(&self, index: u32) -> ::windows_core::Result { + impl IVectorView { + pub fn GetAt(&self, index: u32) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetAt)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).GetAt)( + windows_core::Interface::as_raw(this), index, &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn Size(&self) -> ::windows_core::Result { + pub fn Size(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Size)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).Size)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn IndexOf(&self, value: P0, index: &mut u32) -> ::windows_core::Result + pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result where - P0: ::windows_core::IntoParam, + P0: windows_core::IntoParam, { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).IndexOf)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).IndexOf)( + windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__, @@ -260,36 +252,36 @@ pub mod Foundation { pub fn GetMany( &self, startindex: u32, - items: &mut [>::Default], - ) -> ::windows_core::Result { + items: &mut [>::Default], + ) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetMany)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).GetMany)( + windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), - ::core::mem::transmute_copy(&items), + core::mem::transmute_copy(&items), &mut result__, ) .map(|| result__) } } - pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).First)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).First)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } } - impl ::windows_core::RuntimeType for IVectorView { - const SIGNATURE: ::windows_core::imp::ConstBuffer = { - ::windows_core::imp::ConstBuffer::new() + impl windows_core::RuntimeType for IVectorView { + const SIGNATURE: windows_core::imp::ConstBuffer = { + windows_core::imp::ConstBuffer::new() .push_slice(b"pinterface(") .push_slice(b"{bbe1fa4c-b0e3-4583-baef-1f1b2e483e56}") .push_slice(b";") @@ -297,18 +289,18 @@ pub mod Foundation { .push_slice(b")") }; } - pub struct VectorViewIterator { - vector: ::core::option::Option>, + pub struct VectorViewIterator { + vector: Option>, current: u32, } - impl VectorViewIterator { - pub fn new(vector: ::core::option::Option>) -> Self { + impl VectorViewIterator { + pub fn new(vector: Option>) -> Self { Self { vector, current: 0 } } } - impl ::core::iter::Iterator for VectorViewIterator { + impl Iterator for VectorViewIterator { type Item = T; - fn next(&mut self) -> ::core::option::Option { + fn next(&mut self) -> Option { self.vector .as_ref() .and_then(|vector| vector.GetAt(self.current).ok()) @@ -318,1617 +310,1525 @@ pub mod Foundation { }) } } - impl ::core::iter::IntoIterator for IVectorView { + impl IntoIterator for IVectorView { type Item = T; type IntoIter = VectorViewIterator; fn into_iter(self) -> Self::IntoIter { - ::core::iter::IntoIterator::into_iter(&self) + IntoIterator::into_iter(&self) } } - impl ::core::iter::IntoIterator for &IVectorView { + impl IntoIterator for &IVectorView { type Item = T; type IntoIter = VectorViewIterator; fn into_iter(self) -> Self::IntoIter { - VectorViewIterator::new(::core::option::Option::Some(::core::clone::Clone::clone( - self, - ))) + VectorViewIterator::new(Some(Clone::clone(self))) } } - unsafe impl ::windows_core::Interface for IVectorView { + unsafe impl windows_core::Interface for IVectorView { type Vtable = IVectorView_Vtbl; - const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature( - ::SIGNATURE, - ); + const IID: windows_core::GUID = + windows_core::GUID::from_signature(::SIGNATURE); } #[repr(C)] pub struct IVectorView_Vtbl where - T: ::windows_core::RuntimeType + 'static, + T: windows_core::RuntimeType + 'static, { - pub base__: ::windows_core::IInspectable_Vtbl, + pub base__: windows_core::IInspectable_Vtbl, pub GetAt: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, u32, - *mut ::windows_core::AbiType, - ) -> ::windows_core::HRESULT, + *mut windows_core::AbiType, + ) -> windows_core::HRESULT, pub Size: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, *mut u32, - ) -> ::windows_core::HRESULT, + ) -> windows_core::HRESULT, pub IndexOf: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - ::windows_core::AbiType, + *mut core::ffi::c_void, + windows_core::AbiType, *mut u32, *mut bool, - ) -> ::windows_core::HRESULT, + ) -> windows_core::HRESULT, pub GetMany: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, u32, u32, - *mut ::windows_core::AbiType, + *mut windows_core::AbiType, *mut u32, - ) -> ::windows_core::HRESULT, - pub T: ::core::marker::PhantomData, + ) -> windows_core::HRESULT, + pub T: core::marker::PhantomData, } } #[repr(C)] pub struct DateTime { pub UniversalTime: i64, } - impl ::core::marker::Copy for DateTime {} - impl ::core::clone::Clone for DateTime { + impl Copy for DateTime {} + impl Clone for DateTime { fn clone(&self) -> Self { *self } } - impl ::core::fmt::Debug for DateTime { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + impl core::fmt::Debug for DateTime { + fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { f.debug_struct("DateTime") .field("UniversalTime", &self.UniversalTime) .finish() } } - impl ::windows_core::TypeKind for DateTime { - type TypeKind = ::windows_core::CopyType; + impl windows_core::TypeKind for DateTime { + type TypeKind = windows_core::CopyType; } - impl ::windows_core::RuntimeType for DateTime { - const SIGNATURE: ::windows_core::imp::ConstBuffer = - ::windows_core::imp::ConstBuffer::from_slice(b"struct(Windows.Foundation.DateTime;i8)"); + impl windows_core::RuntimeType for DateTime { + const SIGNATURE: windows_core::imp::ConstBuffer = + windows_core::imp::ConstBuffer::from_slice(b"struct(Windows.Foundation.DateTime;i8)"); } - impl ::core::cmp::PartialEq for DateTime { + impl PartialEq for DateTime { fn eq(&self, other: &Self) -> bool { self.UniversalTime == other.UniversalTime } } - impl ::core::cmp::Eq for DateTime {} - impl ::core::default::Default for DateTime { + impl Eq for DateTime {} + impl Default for DateTime { fn default() -> Self { - unsafe { ::core::mem::zeroed() } + unsafe { core::mem::zeroed() } } } #[repr(C)] pub struct TimeSpan { pub Duration: i64, } - impl ::core::marker::Copy for TimeSpan {} - impl ::core::clone::Clone for TimeSpan { + impl Copy for TimeSpan {} + impl Clone for TimeSpan { fn clone(&self) -> Self { *self } } - impl ::core::fmt::Debug for TimeSpan { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + impl core::fmt::Debug for TimeSpan { + fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { f.debug_struct("TimeSpan") .field("Duration", &self.Duration) .finish() } } - impl ::windows_core::TypeKind for TimeSpan { - type TypeKind = ::windows_core::CopyType; + impl windows_core::TypeKind for TimeSpan { + type TypeKind = windows_core::CopyType; } - impl ::windows_core::RuntimeType for TimeSpan { - const SIGNATURE: ::windows_core::imp::ConstBuffer = - ::windows_core::imp::ConstBuffer::from_slice(b"struct(Windows.Foundation.TimeSpan;i8)"); + impl windows_core::RuntimeType for TimeSpan { + const SIGNATURE: windows_core::imp::ConstBuffer = + windows_core::imp::ConstBuffer::from_slice(b"struct(Windows.Foundation.TimeSpan;i8)"); } - impl ::core::cmp::PartialEq for TimeSpan { + impl PartialEq for TimeSpan { fn eq(&self, other: &Self) -> bool { self.Duration == other.Duration } } - impl ::core::cmp::Eq for TimeSpan {} - impl ::core::default::Default for TimeSpan { + impl Eq for TimeSpan {} + impl Default for TimeSpan { fn default() -> Self { - unsafe { ::core::mem::zeroed() } + unsafe { core::mem::zeroed() } } } - impl ::core::convert::From<::core::time::Duration> for TimeSpan { - fn from(value: ::core::time::Duration) -> Self { + impl From for TimeSpan { + fn from(value: core::time::Duration) -> Self { Self { Duration: (value.as_nanos() / 100) as i64, } } } - impl ::core::convert::From for ::core::time::Duration { + impl From for core::time::Duration { fn from(value: TimeSpan) -> Self { - ::core::time::Duration::from_nanos((value.Duration * 100) as u64) + core::time::Duration::from_nanos((value.Duration * 100) as u64) } } } pub mod Globalization { - ::windows_core::imp::com_interface!( + windows_core::imp::define_interface!( ICalendar, ICalendar_Vtbl, 0xca30221d_86d9_40fb_a26b_d44eb7cf08ea ); #[repr(C)] pub struct ICalendar_Vtbl { - pub base__: ::windows_core::IInspectable_Vtbl, + pub base__: windows_core::IInspectable_Vtbl, pub Clone: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut *mut ::core::ffi::c_void, - ) -> ::windows_core::HRESULT, - pub SetToMin: - unsafe extern "system" fn(*mut ::core::ffi::c_void) -> ::windows_core::HRESULT, - pub SetToMax: - unsafe extern "system" fn(*mut ::core::ffi::c_void) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + pub SetToMin: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, + pub SetToMax: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Languages: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut *mut ::core::ffi::c_void, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, pub NumeralSystem: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub SetNumeralSystem: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub GetCalendarSystem: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub ChangeCalendarSystem: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub GetClock: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub ChangeClock: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub GetDateTime: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, *mut super::Foundation::DateTime, - ) -> ::windows_core::HRESULT, + ) -> windows_core::HRESULT, pub SetDateTime: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, super::Foundation::DateTime, - ) -> ::windows_core::HRESULT, - pub SetToNow: - unsafe extern "system" fn(*mut ::core::ffi::c_void) -> ::windows_core::HRESULT, - pub FirstEra: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub LastEra: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub NumberOfEras: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub Era: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub SetEra: - unsafe extern "system" fn(*mut ::core::ffi::c_void, i32) -> ::windows_core::HRESULT, + ) -> windows_core::HRESULT, + pub SetToNow: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, + pub FirstEra: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub LastEra: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub NumberOfEras: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub Era: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub SetEra: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub AddEras: - unsafe extern "system" fn(*mut ::core::ffi::c_void, i32) -> ::windows_core::HRESULT, + unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub EraAsFullString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub EraAsString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, i32, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, - pub FirstYearInThisEra: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub LastYearInThisEra: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub NumberOfYearsInThisEra: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub Year: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, + pub FirstYearInThisEra: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub LastYearInThisEra: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub NumberOfYearsInThisEra: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub Year: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetYear: - unsafe extern "system" fn(*mut ::core::ffi::c_void, i32) -> ::windows_core::HRESULT, + unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub AddYears: - unsafe extern "system" fn(*mut ::core::ffi::c_void, i32) -> ::windows_core::HRESULT, + unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub YearAsString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub YearAsTruncatedString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, i32, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub YearAsPaddedString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, i32, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, - pub FirstMonthInThisYear: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub LastMonthInThisYear: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub NumberOfMonthsInThisYear: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub Month: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, + pub FirstMonthInThisYear: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub LastMonthInThisYear: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub NumberOfMonthsInThisYear: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub Month: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetMonth: - unsafe extern "system" fn(*mut ::core::ffi::c_void, i32) -> ::windows_core::HRESULT, + unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub AddMonths: - unsafe extern "system" fn(*mut ::core::ffi::c_void, i32) -> ::windows_core::HRESULT, + unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub MonthAsFullString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub MonthAsString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, i32, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub MonthAsFullSoloString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub MonthAsSoloString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, i32, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub MonthAsNumericString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub MonthAsPaddedNumericString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, i32, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) - -> ::windows_core::HRESULT, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub AddWeeks: - unsafe extern "system" fn(*mut ::core::ffi::c_void, i32) -> ::windows_core::HRESULT, - pub FirstDayInThisMonth: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub LastDayInThisMonth: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub NumberOfDaysInThisMonth: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub Day: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub SetDay: - unsafe extern "system" fn(*mut ::core::ffi::c_void, i32) -> ::windows_core::HRESULT, + unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, + pub FirstDayInThisMonth: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub LastDayInThisMonth: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub NumberOfDaysInThisMonth: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub Day: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub SetDay: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub AddDays: - unsafe extern "system" fn(*mut ::core::ffi::c_void, i32) -> ::windows_core::HRESULT, + unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub DayAsString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub DayAsPaddedString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, i32, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub DayOfWeek: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, *mut DayOfWeek, - ) -> ::windows_core::HRESULT, + ) -> windows_core::HRESULT, pub DayOfWeekAsFullString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub DayOfWeekAsString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, i32, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub DayOfWeekAsFullSoloString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) - -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub DayOfWeekAsSoloString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, i32, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, - pub FirstPeriodInThisDay: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub LastPeriodInThisDay: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub NumberOfPeriodsInThisDay: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub Period: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, + pub FirstPeriodInThisDay: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub LastPeriodInThisDay: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub NumberOfPeriodsInThisDay: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub Period: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetPeriod: - unsafe extern "system" fn(*mut ::core::ffi::c_void, i32) -> ::windows_core::HRESULT, + unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub AddPeriods: - unsafe extern "system" fn(*mut ::core::ffi::c_void, i32) -> ::windows_core::HRESULT, + unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub PeriodAsFullString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub PeriodAsString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, i32, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, - pub FirstHourInThisPeriod: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub LastHourInThisPeriod: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub NumberOfHoursInThisPeriod: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) - -> ::windows_core::HRESULT, - pub Hour: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, + pub FirstHourInThisPeriod: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub LastHourInThisPeriod: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub NumberOfHoursInThisPeriod: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub Hour: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetHour: - unsafe extern "system" fn(*mut ::core::ffi::c_void, i32) -> ::windows_core::HRESULT, + unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub AddHours: - unsafe extern "system" fn(*mut ::core::ffi::c_void, i32) -> ::windows_core::HRESULT, + unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub HourAsString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub HourAsPaddedString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, i32, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, - pub Minute: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, + pub Minute: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetMinute: - unsafe extern "system" fn(*mut ::core::ffi::c_void, i32) -> ::windows_core::HRESULT, + unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub AddMinutes: - unsafe extern "system" fn(*mut ::core::ffi::c_void, i32) -> ::windows_core::HRESULT, + unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub MinuteAsString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub MinuteAsPaddedString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, i32, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, - pub Second: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, + pub Second: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetSecond: - unsafe extern "system" fn(*mut ::core::ffi::c_void, i32) -> ::windows_core::HRESULT, + unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub AddSeconds: - unsafe extern "system" fn(*mut ::core::ffi::c_void, i32) -> ::windows_core::HRESULT, + unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub SecondAsString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub SecondAsPaddedString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, i32, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, - pub Nanosecond: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, + pub Nanosecond: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetNanosecond: - unsafe extern "system" fn(*mut ::core::ffi::c_void, i32) -> ::windows_core::HRESULT, + unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub AddNanoseconds: - unsafe extern "system" fn(*mut ::core::ffi::c_void, i32) -> ::windows_core::HRESULT, + unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub NanosecondAsString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub NanosecondAsPaddedString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, i32, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub Compare: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, + *mut core::ffi::c_void, *mut i32, - ) -> ::windows_core::HRESULT, + ) -> windows_core::HRESULT, pub CompareDateTime: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, super::Foundation::DateTime, *mut i32, - ) -> ::windows_core::HRESULT, + ) -> windows_core::HRESULT, pub CopyTo: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::core::ffi::c_void, - ) -> ::windows_core::HRESULT, - pub FirstMinuteInThisHour: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub LastMinuteInThisHour: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub NumberOfMinutesInThisHour: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) - -> ::windows_core::HRESULT, - pub FirstSecondInThisMinute: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub LastSecondInThisMinute: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) -> ::windows_core::HRESULT, - pub NumberOfSecondsInThisMinute: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut i32, - ) - -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + pub FirstMinuteInThisHour: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub LastMinuteInThisHour: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub NumberOfMinutesInThisHour: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub FirstSecondInThisMinute: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub LastSecondInThisMinute: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub NumberOfSecondsInThisMinute: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub ResolvedLanguage: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, - pub IsDaylightSavingTime: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut bool, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, + pub IsDaylightSavingTime: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, } - ::windows_core::imp::com_interface!( + windows_core::imp::define_interface!( ICalendarFactory, ICalendarFactory_Vtbl, 0x83f58412_e56b_4c75_a66e_0f63d57758a6 ); #[repr(C)] pub struct ICalendarFactory_Vtbl { - pub base__: ::windows_core::IInspectable_Vtbl, + pub base__: windows_core::IInspectable_Vtbl, pub CreateCalendarDefaultCalendarAndClock: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::core::ffi::c_void, - *mut *mut ::core::ffi::c_void, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, pub CreateCalendar: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::core::ffi::c_void, - ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ::std::mem::MaybeUninit<::windows_core::HSTRING>, - *mut *mut ::core::ffi::c_void, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut core::ffi::c_void, + std::mem::MaybeUninit, + std::mem::MaybeUninit, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, } - ::windows_core::imp::com_interface!( + windows_core::imp::define_interface!( ICalendarFactory2, ICalendarFactory2_Vtbl, 0xb44b378c_ca7e_4590_9e72_ea2bec1a5115 ); #[repr(C)] pub struct ICalendarFactory2_Vtbl { - pub base__: ::windows_core::IInspectable_Vtbl, + pub base__: windows_core::IInspectable_Vtbl, pub CreateCalendarWithTimeZone: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::core::ffi::c_void, - ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ::std::mem::MaybeUninit<::windows_core::HSTRING>, - *mut *mut ::core::ffi::c_void, - ) - -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut core::ffi::c_void, + std::mem::MaybeUninit, + std::mem::MaybeUninit, + std::mem::MaybeUninit, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, } - ::windows_core::imp::com_interface!( + windows_core::imp::define_interface!( ITimeZoneOnCalendar, ITimeZoneOnCalendar_Vtbl, 0xbb3c25e5_46cf_4317_a3f5_02621ad54478 ); #[repr(C)] pub struct ITimeZoneOnCalendar_Vtbl { - pub base__: ::windows_core::IInspectable_Vtbl, + pub base__: windows_core::IInspectable_Vtbl, pub GetTimeZone: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub ChangeTimeZone: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub TimeZoneAsFullString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut core::ffi::c_void, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, pub TimeZoneAsString: unsafe extern "system" fn( - *mut ::core::ffi::c_void, + *mut core::ffi::c_void, i32, - *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, - ) -> ::windows_core::HRESULT, + *mut std::mem::MaybeUninit, + ) -> windows_core::HRESULT, } #[repr(transparent)] - #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] - pub struct Calendar(::windows_core::IUnknown); - ::windows_core::imp::interface_hierarchy!( + #[derive(PartialEq, Eq, core::fmt::Debug, Clone)] + pub struct Calendar(windows_core::IUnknown); + windows_core::imp::interface_hierarchy!( Calendar, - ::windows_core::IUnknown, - ::windows_core::IInspectable + windows_core::IUnknown, + windows_core::IInspectable ); impl Calendar { - pub fn new() -> ::windows_core::Result { + pub fn new() -> windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) } fn IActivationFactory< R, - F: FnOnce(&::windows_core::imp::IGenericFactory) -> ::windows_core::Result, + F: FnOnce(&windows_core::imp::IGenericFactory) -> windows_core::Result, >( callback: F, - ) -> ::windows_core::Result { - static SHARED: ::windows_core::imp::FactoryCache< + ) -> windows_core::Result { + static SHARED: windows_core::imp::FactoryCache< Calendar, - ::windows_core::imp::IGenericFactory, - > = ::windows_core::imp::FactoryCache::new(); + windows_core::imp::IGenericFactory, + > = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - pub fn Clone(&self) -> ::windows_core::Result { + pub fn Clone(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Clone)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).Clone)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn SetToMin(&self) -> ::windows_core::Result<()> { + pub fn SetToMin(&self) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).SetToMin)( - ::windows_core::Interface::as_raw(this), - ) + (windows_core::Interface::vtable(this).SetToMin)(windows_core::Interface::as_raw( + this, + )) .ok() } } - pub fn SetToMax(&self) -> ::windows_core::Result<()> { + pub fn SetToMax(&self) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).SetToMax)( - ::windows_core::Interface::as_raw(this), - ) + (windows_core::Interface::vtable(this).SetToMax)(windows_core::Interface::as_raw( + this, + )) .ok() } } pub fn Languages( &self, - ) -> ::windows_core::Result< - super::Foundation::Collections::IVectorView<::windows_core::HSTRING>, - > { + ) -> windows_core::Result> + { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Languages)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).Languages)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn NumeralSystem(&self) -> ::windows_core::Result<::windows_core::HSTRING> { + pub fn NumeralSystem(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).NumeralSystem)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).NumeralSystem)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn SetNumeralSystem( - &self, - value: &::windows_core::HSTRING, - ) -> ::windows_core::Result<()> { + pub fn SetNumeralSystem(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).SetNumeralSystem)( - ::windows_core::Interface::as_raw(this), - ::core::mem::transmute_copy(value), + (windows_core::Interface::vtable(this).SetNumeralSystem)( + windows_core::Interface::as_raw(this), + core::mem::transmute_copy(value), ) .ok() } } - pub fn GetCalendarSystem(&self) -> ::windows_core::Result<::windows_core::HSTRING> { + pub fn GetCalendarSystem(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetCalendarSystem)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).GetCalendarSystem)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ChangeCalendarSystem( &self, - value: &::windows_core::HSTRING, - ) -> ::windows_core::Result<()> { + value: &windows_core::HSTRING, + ) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).ChangeCalendarSystem)( - ::windows_core::Interface::as_raw(this), - ::core::mem::transmute_copy(value), + (windows_core::Interface::vtable(this).ChangeCalendarSystem)( + windows_core::Interface::as_raw(this), + core::mem::transmute_copy(value), ) .ok() } } - pub fn GetClock(&self) -> ::windows_core::Result<::windows_core::HSTRING> { + pub fn GetClock(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetClock)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).GetClock)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn ChangeClock(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { + pub fn ChangeClock(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).ChangeClock)( - ::windows_core::Interface::as_raw(this), - ::core::mem::transmute_copy(value), + (windows_core::Interface::vtable(this).ChangeClock)( + windows_core::Interface::as_raw(this), + core::mem::transmute_copy(value), ) .ok() } } - pub fn GetDateTime(&self) -> ::windows_core::Result { + pub fn GetDateTime(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetDateTime)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).GetDateTime)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn SetDateTime( - &self, - value: super::Foundation::DateTime, - ) -> ::windows_core::Result<()> { + pub fn SetDateTime(&self, value: super::Foundation::DateTime) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).SetDateTime)( - ::windows_core::Interface::as_raw(this), + (windows_core::Interface::vtable(this).SetDateTime)( + windows_core::Interface::as_raw(this), value, ) .ok() } } - pub fn SetToNow(&self) -> ::windows_core::Result<()> { + pub fn SetToNow(&self) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).SetToNow)( - ::windows_core::Interface::as_raw(this), - ) + (windows_core::Interface::vtable(this).SetToNow)(windows_core::Interface::as_raw( + this, + )) .ok() } } - pub fn FirstEra(&self) -> ::windows_core::Result { + pub fn FirstEra(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).FirstEra)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).FirstEra)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn LastEra(&self) -> ::windows_core::Result { + pub fn LastEra(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LastEra)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).LastEra)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn NumberOfEras(&self) -> ::windows_core::Result { + pub fn NumberOfEras(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).NumberOfEras)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).NumberOfEras)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn Era(&self) -> ::windows_core::Result { + pub fn Era(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Era)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).Era)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn SetEra(&self, value: i32) -> ::windows_core::Result<()> { + pub fn SetEra(&self, value: i32) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).SetEra)( - ::windows_core::Interface::as_raw(this), + (windows_core::Interface::vtable(this).SetEra)( + windows_core::Interface::as_raw(this), value, ) .ok() } } - pub fn AddEras(&self, eras: i32) -> ::windows_core::Result<()> { + pub fn AddEras(&self, eras: i32) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).AddEras)( - ::windows_core::Interface::as_raw(this), + (windows_core::Interface::vtable(this).AddEras)( + windows_core::Interface::as_raw(this), eras, ) .ok() } } - pub fn EraAsFullString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { + pub fn EraAsFullString(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).EraAsFullString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).EraAsFullString)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn EraAsString( - &self, - ideallength: i32, - ) -> ::windows_core::Result<::windows_core::HSTRING> { + pub fn EraAsString(&self, ideallength: i32) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).EraAsString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).EraAsString)( + windows_core::Interface::as_raw(this), ideallength, &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn FirstYearInThisEra(&self) -> ::windows_core::Result { + pub fn FirstYearInThisEra(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).FirstYearInThisEra)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).FirstYearInThisEra)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn LastYearInThisEra(&self) -> ::windows_core::Result { + pub fn LastYearInThisEra(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LastYearInThisEra)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).LastYearInThisEra)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn NumberOfYearsInThisEra(&self) -> ::windows_core::Result { + pub fn NumberOfYearsInThisEra(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).NumberOfYearsInThisEra)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).NumberOfYearsInThisEra)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn Year(&self) -> ::windows_core::Result { + pub fn Year(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Year)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).Year)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn SetYear(&self, value: i32) -> ::windows_core::Result<()> { + pub fn SetYear(&self, value: i32) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).SetYear)( - ::windows_core::Interface::as_raw(this), + (windows_core::Interface::vtable(this).SetYear)( + windows_core::Interface::as_raw(this), value, ) .ok() } } - pub fn AddYears(&self, years: i32) -> ::windows_core::Result<()> { + pub fn AddYears(&self, years: i32) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).AddYears)( - ::windows_core::Interface::as_raw(this), + (windows_core::Interface::vtable(this).AddYears)( + windows_core::Interface::as_raw(this), years, ) .ok() } } - pub fn YearAsString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { + pub fn YearAsString(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).YearAsString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).YearAsString)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } pub fn YearAsTruncatedString( &self, remainingdigits: i32, - ) -> ::windows_core::Result<::windows_core::HSTRING> { + ) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).YearAsTruncatedString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).YearAsTruncatedString)( + windows_core::Interface::as_raw(this), remainingdigits, &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } pub fn YearAsPaddedString( &self, mindigits: i32, - ) -> ::windows_core::Result<::windows_core::HSTRING> { + ) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).YearAsPaddedString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).YearAsPaddedString)( + windows_core::Interface::as_raw(this), mindigits, &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn FirstMonthInThisYear(&self) -> ::windows_core::Result { + pub fn FirstMonthInThisYear(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).FirstMonthInThisYear)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).FirstMonthInThisYear)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn LastMonthInThisYear(&self) -> ::windows_core::Result { + pub fn LastMonthInThisYear(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LastMonthInThisYear)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).LastMonthInThisYear)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn NumberOfMonthsInThisYear(&self) -> ::windows_core::Result { + pub fn NumberOfMonthsInThisYear(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).NumberOfMonthsInThisYear)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).NumberOfMonthsInThisYear)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn Month(&self) -> ::windows_core::Result { + pub fn Month(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Month)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).Month)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn SetMonth(&self, value: i32) -> ::windows_core::Result<()> { + pub fn SetMonth(&self, value: i32) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).SetMonth)( - ::windows_core::Interface::as_raw(this), + (windows_core::Interface::vtable(this).SetMonth)( + windows_core::Interface::as_raw(this), value, ) .ok() } } - pub fn AddMonths(&self, months: i32) -> ::windows_core::Result<()> { + pub fn AddMonths(&self, months: i32) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).AddMonths)( - ::windows_core::Interface::as_raw(this), + (windows_core::Interface::vtable(this).AddMonths)( + windows_core::Interface::as_raw(this), months, ) .ok() } } - pub fn MonthAsFullString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { + pub fn MonthAsFullString(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).MonthAsFullString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).MonthAsFullString)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MonthAsString( &self, ideallength: i32, - ) -> ::windows_core::Result<::windows_core::HSTRING> { + ) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).MonthAsString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).MonthAsString)( + windows_core::Interface::as_raw(this), ideallength, &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn MonthAsFullSoloString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { + pub fn MonthAsFullSoloString(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).MonthAsFullSoloString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).MonthAsFullSoloString)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MonthAsSoloString( &self, ideallength: i32, - ) -> ::windows_core::Result<::windows_core::HSTRING> { + ) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).MonthAsSoloString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).MonthAsSoloString)( + windows_core::Interface::as_raw(this), ideallength, &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn MonthAsNumericString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { + pub fn MonthAsNumericString(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).MonthAsNumericString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).MonthAsNumericString)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MonthAsPaddedNumericString( &self, mindigits: i32, - ) -> ::windows_core::Result<::windows_core::HSTRING> { + ) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).MonthAsPaddedNumericString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).MonthAsPaddedNumericString)( + windows_core::Interface::as_raw(this), mindigits, &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn AddWeeks(&self, weeks: i32) -> ::windows_core::Result<()> { + pub fn AddWeeks(&self, weeks: i32) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).AddWeeks)( - ::windows_core::Interface::as_raw(this), + (windows_core::Interface::vtable(this).AddWeeks)( + windows_core::Interface::as_raw(this), weeks, ) .ok() } } - pub fn FirstDayInThisMonth(&self) -> ::windows_core::Result { + pub fn FirstDayInThisMonth(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).FirstDayInThisMonth)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).FirstDayInThisMonth)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn LastDayInThisMonth(&self) -> ::windows_core::Result { + pub fn LastDayInThisMonth(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LastDayInThisMonth)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).LastDayInThisMonth)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn NumberOfDaysInThisMonth(&self) -> ::windows_core::Result { + pub fn NumberOfDaysInThisMonth(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).NumberOfDaysInThisMonth)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).NumberOfDaysInThisMonth)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn Day(&self) -> ::windows_core::Result { + pub fn Day(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Day)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).Day)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn SetDay(&self, value: i32) -> ::windows_core::Result<()> { + pub fn SetDay(&self, value: i32) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).SetDay)( - ::windows_core::Interface::as_raw(this), + (windows_core::Interface::vtable(this).SetDay)( + windows_core::Interface::as_raw(this), value, ) .ok() } } - pub fn AddDays(&self, days: i32) -> ::windows_core::Result<()> { + pub fn AddDays(&self, days: i32) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).AddDays)( - ::windows_core::Interface::as_raw(this), + (windows_core::Interface::vtable(this).AddDays)( + windows_core::Interface::as_raw(this), days, ) .ok() } } - pub fn DayAsString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { + pub fn DayAsString(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).DayAsString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).DayAsString)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DayAsPaddedString( &self, mindigits: i32, - ) -> ::windows_core::Result<::windows_core::HSTRING> { + ) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).DayAsPaddedString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).DayAsPaddedString)( + windows_core::Interface::as_raw(this), mindigits, &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn DayOfWeek(&self) -> ::windows_core::Result { + pub fn DayOfWeek(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).DayOfWeek)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).DayOfWeek)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn DayOfWeekAsFullString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { + pub fn DayOfWeekAsFullString(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).DayOfWeekAsFullString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).DayOfWeekAsFullString)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DayOfWeekAsString( &self, ideallength: i32, - ) -> ::windows_core::Result<::windows_core::HSTRING> { + ) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).DayOfWeekAsString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).DayOfWeekAsString)( + windows_core::Interface::as_raw(this), ideallength, &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn DayOfWeekAsFullSoloString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { + pub fn DayOfWeekAsFullSoloString(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).DayOfWeekAsFullSoloString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).DayOfWeekAsFullSoloString)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } pub fn DayOfWeekAsSoloString( &self, ideallength: i32, - ) -> ::windows_core::Result<::windows_core::HSTRING> { + ) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).DayOfWeekAsSoloString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).DayOfWeekAsSoloString)( + windows_core::Interface::as_raw(this), ideallength, &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn FirstPeriodInThisDay(&self) -> ::windows_core::Result { + pub fn FirstPeriodInThisDay(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).FirstPeriodInThisDay)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).FirstPeriodInThisDay)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn LastPeriodInThisDay(&self) -> ::windows_core::Result { + pub fn LastPeriodInThisDay(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LastPeriodInThisDay)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).LastPeriodInThisDay)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn NumberOfPeriodsInThisDay(&self) -> ::windows_core::Result { + pub fn NumberOfPeriodsInThisDay(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).NumberOfPeriodsInThisDay)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).NumberOfPeriodsInThisDay)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn Period(&self) -> ::windows_core::Result { + pub fn Period(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Period)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).Period)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn SetPeriod(&self, value: i32) -> ::windows_core::Result<()> { + pub fn SetPeriod(&self, value: i32) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).SetPeriod)( - ::windows_core::Interface::as_raw(this), + (windows_core::Interface::vtable(this).SetPeriod)( + windows_core::Interface::as_raw(this), value, ) .ok() } } - pub fn AddPeriods(&self, periods: i32) -> ::windows_core::Result<()> { + pub fn AddPeriods(&self, periods: i32) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).AddPeriods)( - ::windows_core::Interface::as_raw(this), + (windows_core::Interface::vtable(this).AddPeriods)( + windows_core::Interface::as_raw(this), periods, ) .ok() } } - pub fn PeriodAsFullString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { + pub fn PeriodAsFullString(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).PeriodAsFullString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).PeriodAsFullString)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } pub fn PeriodAsString( &self, ideallength: i32, - ) -> ::windows_core::Result<::windows_core::HSTRING> { + ) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).PeriodAsString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).PeriodAsString)( + windows_core::Interface::as_raw(this), ideallength, &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn FirstHourInThisPeriod(&self) -> ::windows_core::Result { + pub fn FirstHourInThisPeriod(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).FirstHourInThisPeriod)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).FirstHourInThisPeriod)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn LastHourInThisPeriod(&self) -> ::windows_core::Result { + pub fn LastHourInThisPeriod(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LastHourInThisPeriod)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).LastHourInThisPeriod)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn NumberOfHoursInThisPeriod(&self) -> ::windows_core::Result { + pub fn NumberOfHoursInThisPeriod(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).NumberOfHoursInThisPeriod)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).NumberOfHoursInThisPeriod)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn Hour(&self) -> ::windows_core::Result { + pub fn Hour(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Hour)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).Hour)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn SetHour(&self, value: i32) -> ::windows_core::Result<()> { + pub fn SetHour(&self, value: i32) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).SetHour)( - ::windows_core::Interface::as_raw(this), + (windows_core::Interface::vtable(this).SetHour)( + windows_core::Interface::as_raw(this), value, ) .ok() } } - pub fn AddHours(&self, hours: i32) -> ::windows_core::Result<()> { + pub fn AddHours(&self, hours: i32) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).AddHours)( - ::windows_core::Interface::as_raw(this), + (windows_core::Interface::vtable(this).AddHours)( + windows_core::Interface::as_raw(this), hours, ) .ok() } } - pub fn HourAsString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { + pub fn HourAsString(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).HourAsString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).HourAsString)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } pub fn HourAsPaddedString( &self, mindigits: i32, - ) -> ::windows_core::Result<::windows_core::HSTRING> { + ) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).HourAsPaddedString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).HourAsPaddedString)( + windows_core::Interface::as_raw(this), mindigits, &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn Minute(&self) -> ::windows_core::Result { + pub fn Minute(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Minute)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).Minute)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn SetMinute(&self, value: i32) -> ::windows_core::Result<()> { + pub fn SetMinute(&self, value: i32) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).SetMinute)( - ::windows_core::Interface::as_raw(this), + (windows_core::Interface::vtable(this).SetMinute)( + windows_core::Interface::as_raw(this), value, ) .ok() } } - pub fn AddMinutes(&self, minutes: i32) -> ::windows_core::Result<()> { + pub fn AddMinutes(&self, minutes: i32) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).AddMinutes)( - ::windows_core::Interface::as_raw(this), + (windows_core::Interface::vtable(this).AddMinutes)( + windows_core::Interface::as_raw(this), minutes, ) .ok() } } - pub fn MinuteAsString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { + pub fn MinuteAsString(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).MinuteAsString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).MinuteAsString)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } pub fn MinuteAsPaddedString( &self, mindigits: i32, - ) -> ::windows_core::Result<::windows_core::HSTRING> { + ) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).MinuteAsPaddedString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).MinuteAsPaddedString)( + windows_core::Interface::as_raw(this), mindigits, &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn Second(&self) -> ::windows_core::Result { + pub fn Second(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Second)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).Second)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn SetSecond(&self, value: i32) -> ::windows_core::Result<()> { + pub fn SetSecond(&self, value: i32) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).SetSecond)( - ::windows_core::Interface::as_raw(this), + (windows_core::Interface::vtable(this).SetSecond)( + windows_core::Interface::as_raw(this), value, ) .ok() } } - pub fn AddSeconds(&self, seconds: i32) -> ::windows_core::Result<()> { + pub fn AddSeconds(&self, seconds: i32) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).AddSeconds)( - ::windows_core::Interface::as_raw(this), + (windows_core::Interface::vtable(this).AddSeconds)( + windows_core::Interface::as_raw(this), seconds, ) .ok() } } - pub fn SecondAsString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { + pub fn SecondAsString(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SecondAsString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).SecondAsString)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } pub fn SecondAsPaddedString( &self, mindigits: i32, - ) -> ::windows_core::Result<::windows_core::HSTRING> { + ) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SecondAsPaddedString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).SecondAsPaddedString)( + windows_core::Interface::as_raw(this), mindigits, &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn Nanosecond(&self) -> ::windows_core::Result { + pub fn Nanosecond(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Nanosecond)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).Nanosecond)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn SetNanosecond(&self, value: i32) -> ::windows_core::Result<()> { + pub fn SetNanosecond(&self, value: i32) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).SetNanosecond)( - ::windows_core::Interface::as_raw(this), + (windows_core::Interface::vtable(this).SetNanosecond)( + windows_core::Interface::as_raw(this), value, ) .ok() } } - pub fn AddNanoseconds(&self, nanoseconds: i32) -> ::windows_core::Result<()> { + pub fn AddNanoseconds(&self, nanoseconds: i32) -> windows_core::Result<()> { let this = self; unsafe { - (::windows_core::Interface::vtable(this).AddNanoseconds)( - ::windows_core::Interface::as_raw(this), + (windows_core::Interface::vtable(this).AddNanoseconds)( + windows_core::Interface::as_raw(this), nanoseconds, ) .ok() } } - pub fn NanosecondAsString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { + pub fn NanosecondAsString(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).NanosecondAsString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).NanosecondAsString)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } pub fn NanosecondAsPaddedString( &self, mindigits: i32, - ) -> ::windows_core::Result<::windows_core::HSTRING> { + ) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).NanosecondAsPaddedString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).NanosecondAsPaddedString)( + windows_core::Interface::as_raw(this), mindigits, &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn Compare(&self, other: P0) -> ::windows_core::Result + pub fn Compare(&self, other: P0) -> windows_core::Result where - P0: ::windows_core::IntoParam, + P0: windows_core::IntoParam, { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Compare)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).Compare)( + windows_core::Interface::as_raw(this), other.into_param().abi(), &mut result__, ) @@ -1938,114 +1838,114 @@ pub mod Globalization { pub fn CompareDateTime( &self, other: super::Foundation::DateTime, - ) -> ::windows_core::Result { + ) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CompareDateTime)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).CompareDateTime)( + windows_core::Interface::as_raw(this), other, &mut result__, ) .map(|| result__) } } - pub fn CopyTo(&self, other: P0) -> ::windows_core::Result<()> + pub fn CopyTo(&self, other: P0) -> windows_core::Result<()> where - P0: ::windows_core::IntoParam, + P0: windows_core::IntoParam, { let this = self; unsafe { - (::windows_core::Interface::vtable(this).CopyTo)( - ::windows_core::Interface::as_raw(this), + (windows_core::Interface::vtable(this).CopyTo)( + windows_core::Interface::as_raw(this), other.into_param().abi(), ) .ok() } } - pub fn FirstMinuteInThisHour(&self) -> ::windows_core::Result { + pub fn FirstMinuteInThisHour(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).FirstMinuteInThisHour)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).FirstMinuteInThisHour)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn LastMinuteInThisHour(&self) -> ::windows_core::Result { + pub fn LastMinuteInThisHour(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LastMinuteInThisHour)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).LastMinuteInThisHour)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn NumberOfMinutesInThisHour(&self) -> ::windows_core::Result { + pub fn NumberOfMinutesInThisHour(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).NumberOfMinutesInThisHour)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).NumberOfMinutesInThisHour)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn FirstSecondInThisMinute(&self) -> ::windows_core::Result { + pub fn FirstSecondInThisMinute(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).FirstSecondInThisMinute)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).FirstSecondInThisMinute)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn LastSecondInThisMinute(&self) -> ::windows_core::Result { + pub fn LastSecondInThisMinute(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LastSecondInThisMinute)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).LastSecondInThisMinute)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn NumberOfSecondsInThisMinute(&self) -> ::windows_core::Result { + pub fn NumberOfSecondsInThisMinute(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).NumberOfSecondsInThisMinute)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).NumberOfSecondsInThisMinute)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) } } - pub fn ResolvedLanguage(&self) -> ::windows_core::Result<::windows_core::HSTRING> { + pub fn ResolvedLanguage(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ResolvedLanguage)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).ResolvedLanguage)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn IsDaylightSavingTime(&self) -> ::windows_core::Result { + pub fn IsDaylightSavingTime(&self) -> windows_core::Result { let this = self; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).IsDaylightSavingTime)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).IsDaylightSavingTime)( + windows_core::Interface::as_raw(this), &mut result__, ) .map(|| result__) @@ -2053,156 +1953,150 @@ pub mod Globalization { } pub fn CreateCalendarDefaultCalendarAndClock( languages: P0, - ) -> ::windows_core::Result + ) -> windows_core::Result where - P0: ::windows_core::IntoParam< - super::Foundation::Collections::IIterable<::windows_core::HSTRING>, + P0: windows_core::IntoParam< + super::Foundation::Collections::IIterable, >, { Self::ICalendarFactory(|this| unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateCalendarDefaultCalendarAndClock)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).CreateCalendarDefaultCalendarAndClock)( + windows_core::Interface::as_raw(this), languages.into_param().abi(), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateCalendar( languages: P0, - calendar: &::windows_core::HSTRING, - clock: &::windows_core::HSTRING, - ) -> ::windows_core::Result + calendar: &windows_core::HSTRING, + clock: &windows_core::HSTRING, + ) -> windows_core::Result where - P0: ::windows_core::IntoParam< - super::Foundation::Collections::IIterable<::windows_core::HSTRING>, + P0: windows_core::IntoParam< + super::Foundation::Collections::IIterable, >, { Self::ICalendarFactory(|this| unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateCalendar)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).CreateCalendar)( + windows_core::Interface::as_raw(this), languages.into_param().abi(), - ::core::mem::transmute_copy(calendar), - ::core::mem::transmute_copy(clock), + core::mem::transmute_copy(calendar), + core::mem::transmute_copy(clock), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) }) } pub fn CreateCalendarWithTimeZone( languages: P0, - calendar: &::windows_core::HSTRING, - clock: &::windows_core::HSTRING, - timezoneid: &::windows_core::HSTRING, - ) -> ::windows_core::Result + calendar: &windows_core::HSTRING, + clock: &windows_core::HSTRING, + timezoneid: &windows_core::HSTRING, + ) -> windows_core::Result where - P0: ::windows_core::IntoParam< - super::Foundation::Collections::IIterable<::windows_core::HSTRING>, + P0: windows_core::IntoParam< + super::Foundation::Collections::IIterable, >, { Self::ICalendarFactory2(|this| unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateCalendarWithTimeZone)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).CreateCalendarWithTimeZone)( + windows_core::Interface::as_raw(this), languages.into_param().abi(), - ::core::mem::transmute_copy(calendar), - ::core::mem::transmute_copy(clock), - ::core::mem::transmute_copy(timezoneid), + core::mem::transmute_copy(calendar), + core::mem::transmute_copy(clock), + core::mem::transmute_copy(timezoneid), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) }) } - pub fn GetTimeZone(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::Interface::cast::(self)?; + pub fn GetTimeZone(&self) -> windows_core::Result { + let this = &windows_core::Interface::cast::(self)?; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetTimeZone)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).GetTimeZone)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } pub fn ChangeTimeZone( &self, - timezoneid: &::windows_core::HSTRING, - ) -> ::windows_core::Result<()> { - let this = &::windows_core::Interface::cast::(self)?; + timezoneid: &windows_core::HSTRING, + ) -> windows_core::Result<()> { + let this = &windows_core::Interface::cast::(self)?; unsafe { - (::windows_core::Interface::vtable(this).ChangeTimeZone)( - ::windows_core::Interface::as_raw(this), - ::core::mem::transmute_copy(timezoneid), + (windows_core::Interface::vtable(this).ChangeTimeZone)( + windows_core::Interface::as_raw(this), + core::mem::transmute_copy(timezoneid), ) .ok() } } - pub fn TimeZoneAsFullString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::Interface::cast::(self)?; + pub fn TimeZoneAsFullString(&self) -> windows_core::Result { + let this = &windows_core::Interface::cast::(self)?; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).TimeZoneAsFullString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).TimeZoneAsFullString)( + windows_core::Interface::as_raw(this), &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } pub fn TimeZoneAsString( &self, ideallength: i32, - ) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::Interface::cast::(self)?; + ) -> windows_core::Result { + let this = &windows_core::Interface::cast::(self)?; unsafe { - let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).TimeZoneAsString)( - ::windows_core::Interface::as_raw(this), + let mut result__ = std::mem::zeroed(); + (windows_core::Interface::vtable(this).TimeZoneAsString)( + windows_core::Interface::as_raw(this), ideallength, &mut result__, ) - .and_then(|| ::windows_core::Type::from_abi(result__)) + .and_then(|| windows_core::Type::from_abi(result__)) } } #[doc(hidden)] - pub fn ICalendarFactory ::windows_core::Result>( + pub fn ICalendarFactory windows_core::Result>( callback: F, - ) -> ::windows_core::Result { - static SHARED: ::windows_core::imp::FactoryCache = - ::windows_core::imp::FactoryCache::new(); + ) -> windows_core::Result { + static SHARED: windows_core::imp::FactoryCache = + windows_core::imp::FactoryCache::new(); SHARED.call(callback) } #[doc(hidden)] - pub fn ICalendarFactory2 ::windows_core::Result>( + pub fn ICalendarFactory2 windows_core::Result>( callback: F, - ) -> ::windows_core::Result { - static SHARED: ::windows_core::imp::FactoryCache = - ::windows_core::imp::FactoryCache::new(); + ) -> windows_core::Result { + static SHARED: windows_core::imp::FactoryCache = + windows_core::imp::FactoryCache::new(); SHARED.call(callback) } } - impl ::windows_core::RuntimeType for Calendar { - const SIGNATURE: ::windows_core::imp::ConstBuffer = - ::windows_core::imp::ConstBuffer::for_class::(); + impl windows_core::RuntimeType for Calendar { + const SIGNATURE: windows_core::imp::ConstBuffer = + windows_core::imp::ConstBuffer::for_class::(); } - unsafe impl ::windows_core::Interface for Calendar { + unsafe impl windows_core::Interface for Calendar { type Vtable = ICalendar_Vtbl; - const IID: ::windows_core::GUID = ::IID; + const IID: windows_core::GUID = ::IID; } - impl ::windows_core::RuntimeName for Calendar { + impl windows_core::RuntimeName for Calendar { const NAME: &'static str = "Windows.Globalization.Calendar"; } - unsafe impl ::core::marker::Send for Calendar {} - unsafe impl ::core::marker::Sync for Calendar {} + unsafe impl Send for Calendar {} + unsafe impl Sync for Calendar {} #[repr(transparent)] - #[derive( - ::core::cmp::PartialEq, - ::core::cmp::Eq, - ::core::marker::Copy, - ::core::clone::Clone, - ::core::default::Default, - )] + #[derive(PartialEq, Eq, Copy, Clone, Default)] pub struct DayOfWeek(pub i32); impl DayOfWeek { pub const Sunday: Self = Self(0i32); @@ -2213,18 +2107,16 @@ pub mod Globalization { pub const Friday: Self = Self(5i32); pub const Saturday: Self = Self(6i32); } - impl ::windows_core::TypeKind for DayOfWeek { - type TypeKind = ::windows_core::CopyType; + impl windows_core::TypeKind for DayOfWeek { + type TypeKind = windows_core::CopyType; } - impl ::core::fmt::Debug for DayOfWeek { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + impl core::fmt::Debug for DayOfWeek { + fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { f.debug_tuple("DayOfWeek").field(&self.0).finish() } } - impl ::windows_core::RuntimeType for DayOfWeek { - const SIGNATURE: ::windows_core::imp::ConstBuffer = - ::windows_core::imp::ConstBuffer::from_slice( - b"enum(Windows.Globalization.DayOfWeek;i4)", - ); + impl windows_core::RuntimeType for DayOfWeek { + const SIGNATURE: windows_core::imp::ConstBuffer = + windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.Globalization.DayOfWeek;i4)"); } }