1 #![allow(unused_variables, non_upper_case_globals, non_snake_case, unused_unsafe, non_camel_case_types, dead_code, clippy::all)] 2 #[cfg(feature = "ApplicationModel_DataTransfer_DragDrop")] 3 pub mod DragDrop; 4 #[cfg(feature = "ApplicationModel_DataTransfer_ShareTarget")] 5 pub mod ShareTarget; 6 pub struct Clipboard {} 7 impl Clipboard { GetContent() -> ::windows::runtime::Result<DataPackageView>8 pub fn GetContent() -> ::windows::runtime::Result<DataPackageView> { 9 Self::IClipboardStatics(|this| unsafe { 10 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 11 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<DataPackageView>(result__) 12 }) 13 } SetContent<'a, Param0: ::windows::runtime::IntoParam<'a, DataPackage>>(content: Param0) -> ::windows::runtime::Result<()>14 pub fn SetContent<'a, Param0: ::windows::runtime::IntoParam<'a, DataPackage>>(content: Param0) -> ::windows::runtime::Result<()> { 15 Self::IClipboardStatics(|this| unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), content.into_param().abi()).ok() }) 16 } Flush() -> ::windows::runtime::Result<()>17 pub fn Flush() -> ::windows::runtime::Result<()> { 18 Self::IClipboardStatics(|this| unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this)).ok() }) 19 } Clear() -> ::windows::runtime::Result<()>20 pub fn Clear() -> ::windows::runtime::Result<()> { 21 Self::IClipboardStatics(|this| unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this)).ok() }) 22 } 23 #[cfg(feature = "Foundation")] ContentChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventHandler<::windows::runtime::IInspectable>>>(handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>24 pub fn ContentChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventHandler<::windows::runtime::IInspectable>>>(handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 25 Self::IClipboardStatics(|this| unsafe { 26 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 27 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 28 }) 29 } 30 #[cfg(feature = "Foundation")] RemoveContentChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(token: Param0) -> ::windows::runtime::Result<()>31 pub fn RemoveContentChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(token: Param0) -> ::windows::runtime::Result<()> { 32 Self::IClipboardStatics(|this| unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() }) 33 } 34 #[cfg(feature = "Foundation")] GetHistoryItemsAsync() -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<ClipboardHistoryItemsResult>>35 pub fn GetHistoryItemsAsync() -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<ClipboardHistoryItemsResult>> { 36 Self::IClipboardStatics2(|this| unsafe { 37 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 38 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<ClipboardHistoryItemsResult>>(result__) 39 }) 40 } ClearHistory() -> ::windows::runtime::Result<bool>41 pub fn ClearHistory() -> ::windows::runtime::Result<bool> { 42 Self::IClipboardStatics2(|this| unsafe { 43 let mut result__: bool = ::std::mem::zeroed(); 44 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 45 }) 46 } DeleteItemFromHistory<'a, Param0: ::windows::runtime::IntoParam<'a, ClipboardHistoryItem>>(item: Param0) -> ::windows::runtime::Result<bool>47 pub fn DeleteItemFromHistory<'a, Param0: ::windows::runtime::IntoParam<'a, ClipboardHistoryItem>>(item: Param0) -> ::windows::runtime::Result<bool> { 48 Self::IClipboardStatics2(|this| unsafe { 49 let mut result__: bool = ::std::mem::zeroed(); 50 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), item.into_param().abi(), &mut result__).from_abi::<bool>(result__) 51 }) 52 } SetHistoryItemAsContent<'a, Param0: ::windows::runtime::IntoParam<'a, ClipboardHistoryItem>>(item: Param0) -> ::windows::runtime::Result<SetHistoryItemAsContentStatus>53 pub fn SetHistoryItemAsContent<'a, Param0: ::windows::runtime::IntoParam<'a, ClipboardHistoryItem>>(item: Param0) -> ::windows::runtime::Result<SetHistoryItemAsContentStatus> { 54 Self::IClipboardStatics2(|this| unsafe { 55 let mut result__: SetHistoryItemAsContentStatus = ::std::mem::zeroed(); 56 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), item.into_param().abi(), &mut result__).from_abi::<SetHistoryItemAsContentStatus>(result__) 57 }) 58 } IsHistoryEnabled() -> ::windows::runtime::Result<bool>59 pub fn IsHistoryEnabled() -> ::windows::runtime::Result<bool> { 60 Self::IClipboardStatics2(|this| unsafe { 61 let mut result__: bool = ::std::mem::zeroed(); 62 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 63 }) 64 } IsRoamingEnabled() -> ::windows::runtime::Result<bool>65 pub fn IsRoamingEnabled() -> ::windows::runtime::Result<bool> { 66 Self::IClipboardStatics2(|this| unsafe { 67 let mut result__: bool = ::std::mem::zeroed(); 68 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 69 }) 70 } SetContentWithOptions<'a, Param0: ::windows::runtime::IntoParam<'a, DataPackage>, Param1: ::windows::runtime::IntoParam<'a, ClipboardContentOptions>>(content: Param0, options: Param1) -> ::windows::runtime::Result<bool>71 pub fn SetContentWithOptions<'a, Param0: ::windows::runtime::IntoParam<'a, DataPackage>, Param1: ::windows::runtime::IntoParam<'a, ClipboardContentOptions>>(content: Param0, options: Param1) -> ::windows::runtime::Result<bool> { 72 Self::IClipboardStatics2(|this| unsafe { 73 let mut result__: bool = ::std::mem::zeroed(); 74 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), content.into_param().abi(), options.into_param().abi(), &mut result__).from_abi::<bool>(result__) 75 }) 76 } 77 #[cfg(feature = "Foundation")] HistoryChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventHandler<ClipboardHistoryChangedEventArgs>>>(handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>78 pub fn HistoryChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventHandler<ClipboardHistoryChangedEventArgs>>>(handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 79 Self::IClipboardStatics2(|this| unsafe { 80 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 81 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 82 }) 83 } 84 #[cfg(feature = "Foundation")] RemoveHistoryChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(token: Param0) -> ::windows::runtime::Result<()>85 pub fn RemoveHistoryChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(token: Param0) -> ::windows::runtime::Result<()> { 86 Self::IClipboardStatics2(|this| unsafe { (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() }) 87 } 88 #[cfg(feature = "Foundation")] RoamingEnabledChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventHandler<::windows::runtime::IInspectable>>>(handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>89 pub fn RoamingEnabledChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventHandler<::windows::runtime::IInspectable>>>(handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 90 Self::IClipboardStatics2(|this| unsafe { 91 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 92 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 93 }) 94 } 95 #[cfg(feature = "Foundation")] RemoveRoamingEnabledChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(token: Param0) -> ::windows::runtime::Result<()>96 pub fn RemoveRoamingEnabledChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(token: Param0) -> ::windows::runtime::Result<()> { 97 Self::IClipboardStatics2(|this| unsafe { (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() }) 98 } 99 #[cfg(feature = "Foundation")] HistoryEnabledChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventHandler<::windows::runtime::IInspectable>>>(handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>100 pub fn HistoryEnabledChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventHandler<::windows::runtime::IInspectable>>>(handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 101 Self::IClipboardStatics2(|this| unsafe { 102 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 103 (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 104 }) 105 } 106 #[cfg(feature = "Foundation")] RemoveHistoryEnabledChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(token: Param0) -> ::windows::runtime::Result<()>107 pub fn RemoveHistoryEnabledChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(token: Param0) -> ::windows::runtime::Result<()> { 108 Self::IClipboardStatics2(|this| unsafe { (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() }) 109 } IClipboardStatics<R, F: FnOnce(&IClipboardStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>110 pub fn IClipboardStatics<R, F: FnOnce(&IClipboardStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 111 static mut SHARED: ::windows::runtime::FactoryCache<Clipboard, IClipboardStatics> = ::windows::runtime::FactoryCache::new(); 112 unsafe { SHARED.call(callback) } 113 } IClipboardStatics2<R, F: FnOnce(&IClipboardStatics2) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>114 pub fn IClipboardStatics2<R, F: FnOnce(&IClipboardStatics2) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 115 static mut SHARED: ::windows::runtime::FactoryCache<Clipboard, IClipboardStatics2> = ::windows::runtime::FactoryCache::new(); 116 unsafe { SHARED.call(callback) } 117 } 118 } 119 impl ::windows::runtime::RuntimeName for Clipboard { 120 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.Clipboard"; 121 } 122 #[repr(transparent)] 123 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 124 pub struct ClipboardContentOptions(::windows::runtime::IInspectable); 125 impl ClipboardContentOptions { new() -> ::windows::runtime::Result<Self>126 pub fn new() -> ::windows::runtime::Result<Self> { 127 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 128 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>129 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 130 static mut SHARED: ::windows::runtime::FactoryCache<ClipboardContentOptions, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 131 unsafe { SHARED.call(callback) } 132 } IsRoamable(&self) -> ::windows::runtime::Result<bool>133 pub fn IsRoamable(&self) -> ::windows::runtime::Result<bool> { 134 let this = self; 135 unsafe { 136 let mut result__: bool = ::std::mem::zeroed(); 137 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 138 } 139 } SetIsRoamable(&self, value: bool) -> ::windows::runtime::Result<()>140 pub fn SetIsRoamable(&self, value: bool) -> ::windows::runtime::Result<()> { 141 let this = self; 142 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 143 } IsAllowedInHistory(&self) -> ::windows::runtime::Result<bool>144 pub fn IsAllowedInHistory(&self) -> ::windows::runtime::Result<bool> { 145 let this = self; 146 unsafe { 147 let mut result__: bool = ::std::mem::zeroed(); 148 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 149 } 150 } SetIsAllowedInHistory(&self, value: bool) -> ::windows::runtime::Result<()>151 pub fn SetIsAllowedInHistory(&self, value: bool) -> ::windows::runtime::Result<()> { 152 let this = self; 153 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 154 } 155 #[cfg(feature = "Foundation_Collections")] RoamingFormats(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IVector<::windows::runtime::HSTRING>>156 pub fn RoamingFormats(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IVector<::windows::runtime::HSTRING>> { 157 let this = self; 158 unsafe { 159 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 160 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Collections::IVector<::windows::runtime::HSTRING>>(result__) 161 } 162 } 163 #[cfg(feature = "Foundation_Collections")] HistoryFormats(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IVector<::windows::runtime::HSTRING>>164 pub fn HistoryFormats(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IVector<::windows::runtime::HSTRING>> { 165 let this = self; 166 unsafe { 167 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 168 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Collections::IVector<::windows::runtime::HSTRING>>(result__) 169 } 170 } 171 } 172 unsafe impl ::windows::runtime::RuntimeType for ClipboardContentOptions { 173 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.DataTransfer.ClipboardContentOptions;{e888a98c-ad4b-5447-a056-ab3556276d2b})"); 174 } 175 unsafe impl ::windows::runtime::Interface for ClipboardContentOptions { 176 type Vtable = IClipboardContentOptions_abi; 177 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3901270412, 44363, 21575, [160, 86, 171, 53, 86, 39, 109, 43]); 178 } 179 impl ::windows::runtime::RuntimeName for ClipboardContentOptions { 180 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.ClipboardContentOptions"; 181 } 182 impl ::std::convert::From<ClipboardContentOptions> for ::windows::runtime::IUnknown { from(value: ClipboardContentOptions) -> Self183 fn from(value: ClipboardContentOptions) -> Self { 184 unsafe { ::std::mem::transmute(value) } 185 } 186 } 187 impl ::std::convert::From<&ClipboardContentOptions> for ::windows::runtime::IUnknown { from(value: &ClipboardContentOptions) -> Self188 fn from(value: &ClipboardContentOptions) -> Self { 189 ::std::convert::From::from(::std::clone::Clone::clone(value)) 190 } 191 } 192 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ClipboardContentOptions { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>193 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 194 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 195 } 196 } 197 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ClipboardContentOptions { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>198 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 199 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 200 } 201 } 202 impl ::std::convert::From<ClipboardContentOptions> for ::windows::runtime::IInspectable { from(value: ClipboardContentOptions) -> Self203 fn from(value: ClipboardContentOptions) -> Self { 204 value.0 205 } 206 } 207 impl ::std::convert::From<&ClipboardContentOptions> for ::windows::runtime::IInspectable { from(value: &ClipboardContentOptions) -> Self208 fn from(value: &ClipboardContentOptions) -> Self { 209 value.0.clone() 210 } 211 } 212 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ClipboardContentOptions { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>213 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 214 ::windows::runtime::Param::Owned(self.0) 215 } 216 } 217 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ClipboardContentOptions { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>218 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 219 ::windows::runtime::Param::Borrowed(&self.0) 220 } 221 } 222 unsafe impl ::std::marker::Send for ClipboardContentOptions {} 223 unsafe impl ::std::marker::Sync for ClipboardContentOptions {} 224 #[repr(transparent)] 225 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 226 pub struct ClipboardHistoryChangedEventArgs(::windows::runtime::IInspectable); 227 impl ClipboardHistoryChangedEventArgs {} 228 unsafe impl ::windows::runtime::RuntimeType for ClipboardHistoryChangedEventArgs { 229 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.DataTransfer.ClipboardHistoryChangedEventArgs;{c0be453f-8ea2-53ce-9aba-8d2212573452})"); 230 } 231 unsafe impl ::windows::runtime::Interface for ClipboardHistoryChangedEventArgs { 232 type Vtable = IClipboardHistoryChangedEventArgs_abi; 233 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3233695039, 36514, 21454, [154, 186, 141, 34, 18, 87, 52, 82]); 234 } 235 impl ::windows::runtime::RuntimeName for ClipboardHistoryChangedEventArgs { 236 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.ClipboardHistoryChangedEventArgs"; 237 } 238 impl ::std::convert::From<ClipboardHistoryChangedEventArgs> for ::windows::runtime::IUnknown { from(value: ClipboardHistoryChangedEventArgs) -> Self239 fn from(value: ClipboardHistoryChangedEventArgs) -> Self { 240 unsafe { ::std::mem::transmute(value) } 241 } 242 } 243 impl ::std::convert::From<&ClipboardHistoryChangedEventArgs> for ::windows::runtime::IUnknown { from(value: &ClipboardHistoryChangedEventArgs) -> Self244 fn from(value: &ClipboardHistoryChangedEventArgs) -> Self { 245 ::std::convert::From::from(::std::clone::Clone::clone(value)) 246 } 247 } 248 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ClipboardHistoryChangedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>249 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 250 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 251 } 252 } 253 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ClipboardHistoryChangedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>254 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 255 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 256 } 257 } 258 impl ::std::convert::From<ClipboardHistoryChangedEventArgs> for ::windows::runtime::IInspectable { from(value: ClipboardHistoryChangedEventArgs) -> Self259 fn from(value: ClipboardHistoryChangedEventArgs) -> Self { 260 value.0 261 } 262 } 263 impl ::std::convert::From<&ClipboardHistoryChangedEventArgs> for ::windows::runtime::IInspectable { from(value: &ClipboardHistoryChangedEventArgs) -> Self264 fn from(value: &ClipboardHistoryChangedEventArgs) -> Self { 265 value.0.clone() 266 } 267 } 268 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ClipboardHistoryChangedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>269 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 270 ::windows::runtime::Param::Owned(self.0) 271 } 272 } 273 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ClipboardHistoryChangedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>274 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 275 ::windows::runtime::Param::Borrowed(&self.0) 276 } 277 } 278 unsafe impl ::std::marker::Send for ClipboardHistoryChangedEventArgs {} 279 unsafe impl ::std::marker::Sync for ClipboardHistoryChangedEventArgs {} 280 #[repr(transparent)] 281 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 282 pub struct ClipboardHistoryItem(::windows::runtime::IInspectable); 283 impl ClipboardHistoryItem { Id(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>284 pub fn Id(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 285 let this = self; 286 unsafe { 287 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 288 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 289 } 290 } 291 #[cfg(feature = "Foundation")] Timestamp(&self) -> ::windows::runtime::Result<super::super::Foundation::DateTime>292 pub fn Timestamp(&self) -> ::windows::runtime::Result<super::super::Foundation::DateTime> { 293 let this = self; 294 unsafe { 295 let mut result__: super::super::Foundation::DateTime = ::std::mem::zeroed(); 296 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::DateTime>(result__) 297 } 298 } Content(&self) -> ::windows::runtime::Result<DataPackageView>299 pub fn Content(&self) -> ::windows::runtime::Result<DataPackageView> { 300 let this = self; 301 unsafe { 302 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 303 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<DataPackageView>(result__) 304 } 305 } 306 } 307 unsafe impl ::windows::runtime::RuntimeType for ClipboardHistoryItem { 308 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.DataTransfer.ClipboardHistoryItem;{0173bd8a-afff-5c50-ab92-3d19f481ec58})"); 309 } 310 unsafe impl ::windows::runtime::Interface for ClipboardHistoryItem { 311 type Vtable = IClipboardHistoryItem_abi; 312 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(24362378, 45055, 23632, [171, 146, 61, 25, 244, 129, 236, 88]); 313 } 314 impl ::windows::runtime::RuntimeName for ClipboardHistoryItem { 315 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.ClipboardHistoryItem"; 316 } 317 impl ::std::convert::From<ClipboardHistoryItem> for ::windows::runtime::IUnknown { from(value: ClipboardHistoryItem) -> Self318 fn from(value: ClipboardHistoryItem) -> Self { 319 unsafe { ::std::mem::transmute(value) } 320 } 321 } 322 impl ::std::convert::From<&ClipboardHistoryItem> for ::windows::runtime::IUnknown { from(value: &ClipboardHistoryItem) -> Self323 fn from(value: &ClipboardHistoryItem) -> Self { 324 ::std::convert::From::from(::std::clone::Clone::clone(value)) 325 } 326 } 327 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ClipboardHistoryItem { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>328 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 329 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 330 } 331 } 332 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ClipboardHistoryItem { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>333 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 334 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 335 } 336 } 337 impl ::std::convert::From<ClipboardHistoryItem> for ::windows::runtime::IInspectable { from(value: ClipboardHistoryItem) -> Self338 fn from(value: ClipboardHistoryItem) -> Self { 339 value.0 340 } 341 } 342 impl ::std::convert::From<&ClipboardHistoryItem> for ::windows::runtime::IInspectable { from(value: &ClipboardHistoryItem) -> Self343 fn from(value: &ClipboardHistoryItem) -> Self { 344 value.0.clone() 345 } 346 } 347 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ClipboardHistoryItem { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>348 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 349 ::windows::runtime::Param::Owned(self.0) 350 } 351 } 352 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ClipboardHistoryItem { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>353 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 354 ::windows::runtime::Param::Borrowed(&self.0) 355 } 356 } 357 unsafe impl ::std::marker::Send for ClipboardHistoryItem {} 358 unsafe impl ::std::marker::Sync for ClipboardHistoryItem {} 359 #[repr(transparent)] 360 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 361 pub struct ClipboardHistoryItemsResult(::windows::runtime::IInspectable); 362 impl ClipboardHistoryItemsResult { Status(&self) -> ::windows::runtime::Result<ClipboardHistoryItemsResultStatus>363 pub fn Status(&self) -> ::windows::runtime::Result<ClipboardHistoryItemsResultStatus> { 364 let this = self; 365 unsafe { 366 let mut result__: ClipboardHistoryItemsResultStatus = ::std::mem::zeroed(); 367 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ClipboardHistoryItemsResultStatus>(result__) 368 } 369 } 370 #[cfg(feature = "Foundation_Collections")] Items(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IVectorView<ClipboardHistoryItem>>371 pub fn Items(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IVectorView<ClipboardHistoryItem>> { 372 let this = self; 373 unsafe { 374 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 375 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Collections::IVectorView<ClipboardHistoryItem>>(result__) 376 } 377 } 378 } 379 unsafe impl ::windows::runtime::RuntimeType for ClipboardHistoryItemsResult { 380 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.DataTransfer.ClipboardHistoryItemsResult;{e6dfdee6-0ee2-52e3-852b-f295db65939a})"); 381 } 382 unsafe impl ::windows::runtime::Interface for ClipboardHistoryItemsResult { 383 type Vtable = IClipboardHistoryItemsResult_abi; 384 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3873431270, 3810, 21219, [133, 43, 242, 149, 219, 101, 147, 154]); 385 } 386 impl ::windows::runtime::RuntimeName for ClipboardHistoryItemsResult { 387 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.ClipboardHistoryItemsResult"; 388 } 389 impl ::std::convert::From<ClipboardHistoryItemsResult> for ::windows::runtime::IUnknown { from(value: ClipboardHistoryItemsResult) -> Self390 fn from(value: ClipboardHistoryItemsResult) -> Self { 391 unsafe { ::std::mem::transmute(value) } 392 } 393 } 394 impl ::std::convert::From<&ClipboardHistoryItemsResult> for ::windows::runtime::IUnknown { from(value: &ClipboardHistoryItemsResult) -> Self395 fn from(value: &ClipboardHistoryItemsResult) -> Self { 396 ::std::convert::From::from(::std::clone::Clone::clone(value)) 397 } 398 } 399 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ClipboardHistoryItemsResult { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>400 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 401 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 402 } 403 } 404 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ClipboardHistoryItemsResult { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>405 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 406 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 407 } 408 } 409 impl ::std::convert::From<ClipboardHistoryItemsResult> for ::windows::runtime::IInspectable { from(value: ClipboardHistoryItemsResult) -> Self410 fn from(value: ClipboardHistoryItemsResult) -> Self { 411 value.0 412 } 413 } 414 impl ::std::convert::From<&ClipboardHistoryItemsResult> for ::windows::runtime::IInspectable { from(value: &ClipboardHistoryItemsResult) -> Self415 fn from(value: &ClipboardHistoryItemsResult) -> Self { 416 value.0.clone() 417 } 418 } 419 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ClipboardHistoryItemsResult { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>420 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 421 ::windows::runtime::Param::Owned(self.0) 422 } 423 } 424 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ClipboardHistoryItemsResult { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>425 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 426 ::windows::runtime::Param::Borrowed(&self.0) 427 } 428 } 429 unsafe impl ::std::marker::Send for ClipboardHistoryItemsResult {} 430 unsafe impl ::std::marker::Sync for ClipboardHistoryItemsResult {} 431 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 432 #[repr(transparent)] 433 pub struct ClipboardHistoryItemsResultStatus(pub i32); 434 impl ClipboardHistoryItemsResultStatus { 435 pub const Success: ClipboardHistoryItemsResultStatus = ClipboardHistoryItemsResultStatus(0i32); 436 pub const AccessDenied: ClipboardHistoryItemsResultStatus = ClipboardHistoryItemsResultStatus(1i32); 437 pub const ClipboardHistoryDisabled: ClipboardHistoryItemsResultStatus = ClipboardHistoryItemsResultStatus(2i32); 438 } 439 impl ::std::convert::From<i32> for ClipboardHistoryItemsResultStatus { from(value: i32) -> Self440 fn from(value: i32) -> Self { 441 Self(value) 442 } 443 } 444 unsafe impl ::windows::runtime::Abi for ClipboardHistoryItemsResultStatus { 445 type Abi = Self; 446 type DefaultType = Self; 447 } 448 unsafe impl ::windows::runtime::RuntimeType for ClipboardHistoryItemsResultStatus { 449 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.DataTransfer.ClipboardHistoryItemsResultStatus;i4)"); 450 } 451 #[repr(transparent)] 452 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 453 pub struct DataPackage(::windows::runtime::IInspectable); 454 impl DataPackage { new() -> ::windows::runtime::Result<Self>455 pub fn new() -> ::windows::runtime::Result<Self> { 456 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 457 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>458 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 459 static mut SHARED: ::windows::runtime::FactoryCache<DataPackage, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 460 unsafe { SHARED.call(callback) } 461 } GetView(&self) -> ::windows::runtime::Result<DataPackageView>462 pub fn GetView(&self) -> ::windows::runtime::Result<DataPackageView> { 463 let this = self; 464 unsafe { 465 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 466 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<DataPackageView>(result__) 467 } 468 } Properties(&self) -> ::windows::runtime::Result<DataPackagePropertySet>469 pub fn Properties(&self) -> ::windows::runtime::Result<DataPackagePropertySet> { 470 let this = self; 471 unsafe { 472 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 473 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<DataPackagePropertySet>(result__) 474 } 475 } RequestedOperation(&self) -> ::windows::runtime::Result<DataPackageOperation>476 pub fn RequestedOperation(&self) -> ::windows::runtime::Result<DataPackageOperation> { 477 let this = self; 478 unsafe { 479 let mut result__: DataPackageOperation = ::std::mem::zeroed(); 480 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<DataPackageOperation>(result__) 481 } 482 } SetRequestedOperation(&self, value: DataPackageOperation) -> ::windows::runtime::Result<()>483 pub fn SetRequestedOperation(&self, value: DataPackageOperation) -> ::windows::runtime::Result<()> { 484 let this = self; 485 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 486 } 487 #[cfg(feature = "Foundation")] OperationCompleted<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<DataPackage, OperationCompletedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>488 pub fn OperationCompleted<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<DataPackage, OperationCompletedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 489 let this = self; 490 unsafe { 491 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 492 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 493 } 494 } 495 #[cfg(feature = "Foundation")] RemoveOperationCompleted<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>496 pub fn RemoveOperationCompleted<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 497 let this = self; 498 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 499 } 500 #[cfg(feature = "Foundation")] Destroyed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<DataPackage, ::windows::runtime::IInspectable>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>501 pub fn Destroyed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<DataPackage, ::windows::runtime::IInspectable>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 502 let this = self; 503 unsafe { 504 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 505 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 506 } 507 } 508 #[cfg(feature = "Foundation")] RemoveDestroyed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>509 pub fn RemoveDestroyed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 510 let this = self; 511 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 512 } SetData<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, formatid: Param0, value: Param1) -> ::windows::runtime::Result<()>513 pub fn SetData<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, formatid: Param0, value: Param1) -> ::windows::runtime::Result<()> { 514 let this = self; 515 unsafe { (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), formatid.into_param().abi(), value.into_param().abi()).ok() } 516 } SetDataProvider<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, DataProviderHandler>>(&self, formatid: Param0, delayrenderer: Param1) -> ::windows::runtime::Result<()>517 pub fn SetDataProvider<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, DataProviderHandler>>(&self, formatid: Param0, delayrenderer: Param1) -> ::windows::runtime::Result<()> { 518 let this = self; 519 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), formatid.into_param().abi(), delayrenderer.into_param().abi()).ok() } 520 } SetText<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>521 pub fn SetText<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 522 let this = self; 523 unsafe { (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 524 } 525 #[cfg(feature = "deprecated")] 526 #[cfg(feature = "Foundation")] SetUri<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::runtime::Result<()>527 pub fn SetUri<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 528 let this = self; 529 unsafe { (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 530 } SetHtmlFormat<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>531 pub fn SetHtmlFormat<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 532 let this = self; 533 unsafe { (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 534 } 535 #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] ResourceMap(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IMap<::windows::runtime::HSTRING, super::super::Storage::Streams::RandomAccessStreamReference>>536 pub fn ResourceMap(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IMap<::windows::runtime::HSTRING, super::super::Storage::Streams::RandomAccessStreamReference>> { 537 let this = self; 538 unsafe { 539 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 540 (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Collections::IMap<::windows::runtime::HSTRING, super::super::Storage::Streams::RandomAccessStreamReference>>(result__) 541 } 542 } SetRtf<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>543 pub fn SetRtf<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 544 let this = self; 545 unsafe { (::windows::runtime::Interface::vtable(this).20)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 546 } 547 #[cfg(feature = "Storage_Streams")] SetBitmap<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Storage::Streams::RandomAccessStreamReference>>(&self, value: Param0) -> ::windows::runtime::Result<()>548 pub fn SetBitmap<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Storage::Streams::RandomAccessStreamReference>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 549 let this = self; 550 unsafe { (::windows::runtime::Interface::vtable(this).21)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 551 } 552 #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] SetStorageItemsReadOnly<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<super::super::Storage::IStorageItem>>>(&self, value: Param0) -> ::windows::runtime::Result<()>553 pub fn SetStorageItemsReadOnly<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<super::super::Storage::IStorageItem>>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 554 let this = self; 555 unsafe { (::windows::runtime::Interface::vtable(this).22)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 556 } 557 #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] SetStorageItems<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<super::super::Storage::IStorageItem>>>(&self, value: Param0, readonly: bool) -> ::windows::runtime::Result<()>558 pub fn SetStorageItems<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<super::super::Storage::IStorageItem>>>(&self, value: Param0, readonly: bool) -> ::windows::runtime::Result<()> { 559 let this = self; 560 unsafe { (::windows::runtime::Interface::vtable(this).23)(::std::mem::transmute_copy(this), value.into_param().abi(), readonly).ok() } 561 } 562 #[cfg(feature = "Foundation")] SetApplicationLink<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::runtime::Result<()>563 pub fn SetApplicationLink<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 564 let this = &::windows::runtime::Interface::cast::<IDataPackage2>(self)?; 565 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 566 } 567 #[cfg(feature = "Foundation")] SetWebLink<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::runtime::Result<()>568 pub fn SetWebLink<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 569 let this = &::windows::runtime::Interface::cast::<IDataPackage2>(self)?; 570 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 571 } 572 #[cfg(feature = "Foundation")] ShareCompleted<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<DataPackage, ShareCompletedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>573 pub fn ShareCompleted<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<DataPackage, ShareCompletedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 574 let this = &::windows::runtime::Interface::cast::<IDataPackage3>(self)?; 575 unsafe { 576 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 577 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 578 } 579 } 580 #[cfg(feature = "Foundation")] RemoveShareCompleted<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>581 pub fn RemoveShareCompleted<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 582 let this = &::windows::runtime::Interface::cast::<IDataPackage3>(self)?; 583 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 584 } 585 #[cfg(feature = "Foundation")] ShareCanceled<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<DataPackage, ::windows::runtime::IInspectable>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>586 pub fn ShareCanceled<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<DataPackage, ::windows::runtime::IInspectable>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 587 let this = &::windows::runtime::Interface::cast::<IDataPackage4>(self)?; 588 unsafe { 589 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 590 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 591 } 592 } 593 #[cfg(feature = "Foundation")] RemoveShareCanceled<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>594 pub fn RemoveShareCanceled<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 595 let this = &::windows::runtime::Interface::cast::<IDataPackage4>(self)?; 596 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 597 } 598 } 599 unsafe impl ::windows::runtime::RuntimeType for DataPackage { 600 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.DataTransfer.DataPackage;{61ebf5c7-efea-4346-9554-981d7e198ffe})"); 601 } 602 unsafe impl ::windows::runtime::Interface for DataPackage { 603 type Vtable = IDataPackage_abi; 604 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1642853831, 61418, 17222, [149, 84, 152, 29, 126, 25, 143, 254]); 605 } 606 impl ::windows::runtime::RuntimeName for DataPackage { 607 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DataPackage"; 608 } 609 impl ::std::convert::From<DataPackage> for ::windows::runtime::IUnknown { from(value: DataPackage) -> Self610 fn from(value: DataPackage) -> Self { 611 unsafe { ::std::mem::transmute(value) } 612 } 613 } 614 impl ::std::convert::From<&DataPackage> for ::windows::runtime::IUnknown { from(value: &DataPackage) -> Self615 fn from(value: &DataPackage) -> Self { 616 ::std::convert::From::from(::std::clone::Clone::clone(value)) 617 } 618 } 619 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for DataPackage { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>620 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 621 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 622 } 623 } 624 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &DataPackage { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>625 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 626 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 627 } 628 } 629 impl ::std::convert::From<DataPackage> for ::windows::runtime::IInspectable { from(value: DataPackage) -> Self630 fn from(value: DataPackage) -> Self { 631 value.0 632 } 633 } 634 impl ::std::convert::From<&DataPackage> for ::windows::runtime::IInspectable { from(value: &DataPackage) -> Self635 fn from(value: &DataPackage) -> Self { 636 value.0.clone() 637 } 638 } 639 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for DataPackage { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>640 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 641 ::windows::runtime::Param::Owned(self.0) 642 } 643 } 644 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a DataPackage { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>645 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 646 ::windows::runtime::Param::Borrowed(&self.0) 647 } 648 } 649 unsafe impl ::std::marker::Send for DataPackage {} 650 unsafe impl ::std::marker::Sync for DataPackage {} 651 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 652 #[repr(transparent)] 653 pub struct DataPackageOperation(pub u32); 654 impl DataPackageOperation { 655 pub const None: DataPackageOperation = DataPackageOperation(0u32); 656 pub const Copy: DataPackageOperation = DataPackageOperation(1u32); 657 pub const Move: DataPackageOperation = DataPackageOperation(2u32); 658 pub const Link: DataPackageOperation = DataPackageOperation(4u32); 659 } 660 impl ::std::convert::From<u32> for DataPackageOperation { from(value: u32) -> Self661 fn from(value: u32) -> Self { 662 Self(value) 663 } 664 } 665 unsafe impl ::windows::runtime::Abi for DataPackageOperation { 666 type Abi = Self; 667 type DefaultType = Self; 668 } 669 unsafe impl ::windows::runtime::RuntimeType for DataPackageOperation { 670 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.DataTransfer.DataPackageOperation;u4)"); 671 } 672 impl ::std::ops::BitOr for DataPackageOperation { 673 type Output = Self; bitor(self, rhs: Self) -> Self674 fn bitor(self, rhs: Self) -> Self { 675 Self(self.0 | rhs.0) 676 } 677 } 678 impl ::std::ops::BitAnd for DataPackageOperation { 679 type Output = Self; bitand(self, rhs: Self) -> Self680 fn bitand(self, rhs: Self) -> Self { 681 Self(self.0 & rhs.0) 682 } 683 } 684 impl ::std::ops::BitOrAssign for DataPackageOperation { bitor_assign(&mut self, rhs: Self)685 fn bitor_assign(&mut self, rhs: Self) { 686 self.0.bitor_assign(rhs.0) 687 } 688 } 689 impl ::std::ops::BitAndAssign for DataPackageOperation { bitand_assign(&mut self, rhs: Self)690 fn bitand_assign(&mut self, rhs: Self) { 691 self.0.bitand_assign(rhs.0) 692 } 693 } 694 impl ::std::ops::Not for DataPackageOperation { 695 type Output = Self; not(self) -> Self696 fn not(self) -> Self { 697 Self(self.0.not()) 698 } 699 } 700 #[repr(transparent)] 701 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 702 pub struct DataPackagePropertySet(::windows::runtime::IInspectable); 703 impl DataPackagePropertySet { Title(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>704 pub fn Title(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 705 let this = self; 706 unsafe { 707 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 708 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 709 } 710 } SetTitle<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>711 pub fn SetTitle<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 712 let this = self; 713 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 714 } Description(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>715 pub fn Description(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 716 let this = self; 717 unsafe { 718 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 719 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 720 } 721 } SetDescription<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>722 pub fn SetDescription<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 723 let this = self; 724 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 725 } 726 #[cfg(feature = "Storage_Streams")] Thumbnail(&self) -> ::windows::runtime::Result<super::super::Storage::Streams::IRandomAccessStreamReference>727 pub fn Thumbnail(&self) -> ::windows::runtime::Result<super::super::Storage::Streams::IRandomAccessStreamReference> { 728 let this = self; 729 unsafe { 730 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 731 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Storage::Streams::IRandomAccessStreamReference>(result__) 732 } 733 } 734 #[cfg(feature = "Storage_Streams")] SetThumbnail<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Storage::Streams::IRandomAccessStreamReference>>(&self, value: Param0) -> ::windows::runtime::Result<()>735 pub fn SetThumbnail<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Storage::Streams::IRandomAccessStreamReference>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 736 let this = self; 737 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 738 } 739 #[cfg(feature = "Foundation_Collections")] FileTypes(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IVector<::windows::runtime::HSTRING>>740 pub fn FileTypes(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IVector<::windows::runtime::HSTRING>> { 741 let this = self; 742 unsafe { 743 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 744 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Collections::IVector<::windows::runtime::HSTRING>>(result__) 745 } 746 } ApplicationName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>747 pub fn ApplicationName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 748 let this = self; 749 unsafe { 750 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 751 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 752 } 753 } SetApplicationName<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>754 pub fn SetApplicationName<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 755 let this = self; 756 unsafe { (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 757 } 758 #[cfg(feature = "Foundation")] ApplicationListingUri(&self) -> ::windows::runtime::Result<super::super::Foundation::Uri>759 pub fn ApplicationListingUri(&self) -> ::windows::runtime::Result<super::super::Foundation::Uri> { 760 let this = self; 761 unsafe { 762 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 763 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Uri>(result__) 764 } 765 } 766 #[cfg(feature = "Foundation")] SetApplicationListingUri<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::runtime::Result<()>767 pub fn SetApplicationListingUri<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 768 let this = self; 769 unsafe { (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 770 } 771 #[cfg(feature = "Foundation")] ContentSourceWebLink(&self) -> ::windows::runtime::Result<super::super::Foundation::Uri>772 pub fn ContentSourceWebLink(&self) -> ::windows::runtime::Result<super::super::Foundation::Uri> { 773 let this = &::windows::runtime::Interface::cast::<IDataPackagePropertySet2>(self)?; 774 unsafe { 775 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 776 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Uri>(result__) 777 } 778 } 779 #[cfg(feature = "Foundation")] SetContentSourceWebLink<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::runtime::Result<()>780 pub fn SetContentSourceWebLink<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 781 let this = &::windows::runtime::Interface::cast::<IDataPackagePropertySet2>(self)?; 782 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 783 } 784 #[cfg(feature = "Foundation")] ContentSourceApplicationLink(&self) -> ::windows::runtime::Result<super::super::Foundation::Uri>785 pub fn ContentSourceApplicationLink(&self) -> ::windows::runtime::Result<super::super::Foundation::Uri> { 786 let this = &::windows::runtime::Interface::cast::<IDataPackagePropertySet2>(self)?; 787 unsafe { 788 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 789 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Uri>(result__) 790 } 791 } 792 #[cfg(feature = "Foundation")] SetContentSourceApplicationLink<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::runtime::Result<()>793 pub fn SetContentSourceApplicationLink<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 794 let this = &::windows::runtime::Interface::cast::<IDataPackagePropertySet2>(self)?; 795 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 796 } PackageFamilyName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>797 pub fn PackageFamilyName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 798 let this = &::windows::runtime::Interface::cast::<IDataPackagePropertySet2>(self)?; 799 unsafe { 800 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 801 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 802 } 803 } SetPackageFamilyName<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>804 pub fn SetPackageFamilyName<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 805 let this = &::windows::runtime::Interface::cast::<IDataPackagePropertySet2>(self)?; 806 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 807 } 808 #[cfg(feature = "Storage_Streams")] Square30x30Logo(&self) -> ::windows::runtime::Result<super::super::Storage::Streams::IRandomAccessStreamReference>809 pub fn Square30x30Logo(&self) -> ::windows::runtime::Result<super::super::Storage::Streams::IRandomAccessStreamReference> { 810 let this = &::windows::runtime::Interface::cast::<IDataPackagePropertySet2>(self)?; 811 unsafe { 812 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 813 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Storage::Streams::IRandomAccessStreamReference>(result__) 814 } 815 } 816 #[cfg(feature = "Storage_Streams")] SetSquare30x30Logo<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Storage::Streams::IRandomAccessStreamReference>>(&self, value: Param0) -> ::windows::runtime::Result<()>817 pub fn SetSquare30x30Logo<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Storage::Streams::IRandomAccessStreamReference>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 818 let this = &::windows::runtime::Interface::cast::<IDataPackagePropertySet2>(self)?; 819 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 820 } 821 #[cfg(feature = "UI")] LogoBackgroundColor(&self) -> ::windows::runtime::Result<super::super::UI::Color>822 pub fn LogoBackgroundColor(&self) -> ::windows::runtime::Result<super::super::UI::Color> { 823 let this = &::windows::runtime::Interface::cast::<IDataPackagePropertySet2>(self)?; 824 unsafe { 825 let mut result__: super::super::UI::Color = ::std::mem::zeroed(); 826 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::UI::Color>(result__) 827 } 828 } 829 #[cfg(feature = "UI")] SetLogoBackgroundColor<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::UI::Color>>(&self, value: Param0) -> ::windows::runtime::Result<()>830 pub fn SetLogoBackgroundColor<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::UI::Color>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 831 let this = &::windows::runtime::Interface::cast::<IDataPackagePropertySet2>(self)?; 832 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 833 } EnterpriseId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>834 pub fn EnterpriseId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 835 let this = &::windows::runtime::Interface::cast::<IDataPackagePropertySet3>(self)?; 836 unsafe { 837 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 838 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 839 } 840 } SetEnterpriseId<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>841 pub fn SetEnterpriseId<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 842 let this = &::windows::runtime::Interface::cast::<IDataPackagePropertySet3>(self)?; 843 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 844 } 845 #[cfg(feature = "Foundation_Collections")] First(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IIterator<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>>846 pub fn First(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IIterator<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>> { 847 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>>(self)?; 848 unsafe { 849 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 850 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Collections::IIterator<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>>(result__) 851 } 852 } 853 #[cfg(feature = "Foundation_Collections")] Lookup<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>854 pub fn Lookup<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 855 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::Collections::IMap<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>(self)?; 856 unsafe { 857 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 858 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), key.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 859 } 860 } 861 #[cfg(feature = "Foundation_Collections")] Size(&self) -> ::windows::runtime::Result<u32>862 pub fn Size(&self) -> ::windows::runtime::Result<u32> { 863 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::Collections::IMap<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>(self)?; 864 unsafe { 865 let mut result__: u32 = ::std::mem::zeroed(); 866 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 867 } 868 } 869 #[cfg(feature = "Foundation_Collections")] HasKey<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0) -> ::windows::runtime::Result<bool>870 pub fn HasKey<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0) -> ::windows::runtime::Result<bool> { 871 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::Collections::IMap<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>(self)?; 872 unsafe { 873 let mut result__: bool = ::std::mem::zeroed(); 874 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), key.into_param().abi(), &mut result__).from_abi::<bool>(result__) 875 } 876 } 877 #[cfg(feature = "Foundation_Collections")] GetView(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>878 pub fn GetView(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>> { 879 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::Collections::IMap<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>(self)?; 880 unsafe { 881 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 882 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>(result__) 883 } 884 } 885 #[cfg(feature = "Foundation_Collections")] Insert<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<bool>886 pub fn Insert<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, key: Param0, value: Param1) -> ::windows::runtime::Result<bool> { 887 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::Collections::IMap<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>(self)?; 888 unsafe { 889 let mut result__: bool = ::std::mem::zeroed(); 890 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), key.into_param().abi(), value.into_param().abi(), &mut result__).from_abi::<bool>(result__) 891 } 892 } 893 #[cfg(feature = "Foundation_Collections")] Remove<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0) -> ::windows::runtime::Result<()>894 pub fn Remove<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0) -> ::windows::runtime::Result<()> { 895 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::Collections::IMap<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>(self)?; 896 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), key.into_param().abi()).ok() } 897 } 898 #[cfg(feature = "Foundation_Collections")] Clear(&self) -> ::windows::runtime::Result<()>899 pub fn Clear(&self) -> ::windows::runtime::Result<()> { 900 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::Collections::IMap<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>(self)?; 901 unsafe { (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this)).ok() } 902 } ContentSourceUserActivityJson(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>903 pub fn ContentSourceUserActivityJson(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 904 let this = &::windows::runtime::Interface::cast::<IDataPackagePropertySet4>(self)?; 905 unsafe { 906 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 907 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 908 } 909 } SetContentSourceUserActivityJson<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>910 pub fn SetContentSourceUserActivityJson<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 911 let this = &::windows::runtime::Interface::cast::<IDataPackagePropertySet4>(self)?; 912 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 913 } 914 } 915 unsafe impl ::windows::runtime::RuntimeType for DataPackagePropertySet { 916 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.DataTransfer.DataPackagePropertySet;{cd1c93eb-4c4c-443a-a8d3-f5c241e91689})"); 917 } 918 unsafe impl ::windows::runtime::Interface for DataPackagePropertySet { 919 type Vtable = IDataPackagePropertySet_abi; 920 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3441202155, 19532, 17466, [168, 211, 245, 194, 65, 233, 22, 137]); 921 } 922 impl ::windows::runtime::RuntimeName for DataPackagePropertySet { 923 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DataPackagePropertySet"; 924 } 925 impl ::std::convert::From<DataPackagePropertySet> for ::windows::runtime::IUnknown { from(value: DataPackagePropertySet) -> Self926 fn from(value: DataPackagePropertySet) -> Self { 927 unsafe { ::std::mem::transmute(value) } 928 } 929 } 930 impl ::std::convert::From<&DataPackagePropertySet> for ::windows::runtime::IUnknown { from(value: &DataPackagePropertySet) -> Self931 fn from(value: &DataPackagePropertySet) -> Self { 932 ::std::convert::From::from(::std::clone::Clone::clone(value)) 933 } 934 } 935 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for DataPackagePropertySet { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>936 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 937 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 938 } 939 } 940 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &DataPackagePropertySet { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>941 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 942 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 943 } 944 } 945 impl ::std::convert::From<DataPackagePropertySet> for ::windows::runtime::IInspectable { from(value: DataPackagePropertySet) -> Self946 fn from(value: DataPackagePropertySet) -> Self { 947 value.0 948 } 949 } 950 impl ::std::convert::From<&DataPackagePropertySet> for ::windows::runtime::IInspectable { from(value: &DataPackagePropertySet) -> Self951 fn from(value: &DataPackagePropertySet) -> Self { 952 value.0.clone() 953 } 954 } 955 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for DataPackagePropertySet { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>956 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 957 ::windows::runtime::Param::Owned(self.0) 958 } 959 } 960 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a DataPackagePropertySet { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>961 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 962 ::windows::runtime::Param::Borrowed(&self.0) 963 } 964 } 965 #[cfg(feature = "Foundation_Collections")] 966 impl ::std::convert::TryFrom<DataPackagePropertySet> for super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>> { 967 type Error = ::windows::runtime::Error; try_from(value: DataPackagePropertySet) -> ::windows::runtime::Result<Self>968 fn try_from(value: DataPackagePropertySet) -> ::windows::runtime::Result<Self> { 969 ::std::convert::TryFrom::try_from(&value) 970 } 971 } 972 #[cfg(feature = "Foundation_Collections")] 973 impl ::std::convert::TryFrom<&DataPackagePropertySet> for super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>> { 974 type Error = ::windows::runtime::Error; try_from(value: &DataPackagePropertySet) -> ::windows::runtime::Result<Self>975 fn try_from(value: &DataPackagePropertySet) -> ::windows::runtime::Result<Self> { 976 ::windows::runtime::Interface::cast(value) 977 } 978 } 979 #[cfg(feature = "Foundation_Collections")] 980 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>> for DataPackagePropertySet { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>>981 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>> { 982 ::windows::runtime::IntoParam::into_param(&self) 983 } 984 } 985 #[cfg(feature = "Foundation_Collections")] 986 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>> for &DataPackagePropertySet { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>>987 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>> { 988 ::std::convert::TryInto::<super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 989 } 990 } 991 #[cfg(feature = "Foundation_Collections")] 992 impl ::std::convert::TryFrom<DataPackagePropertySet> for super::super::Foundation::Collections::IMap<::windows::runtime::HSTRING, ::windows::runtime::IInspectable> { 993 type Error = ::windows::runtime::Error; try_from(value: DataPackagePropertySet) -> ::windows::runtime::Result<Self>994 fn try_from(value: DataPackagePropertySet) -> ::windows::runtime::Result<Self> { 995 ::std::convert::TryFrom::try_from(&value) 996 } 997 } 998 #[cfg(feature = "Foundation_Collections")] 999 impl ::std::convert::TryFrom<&DataPackagePropertySet> for super::super::Foundation::Collections::IMap<::windows::runtime::HSTRING, ::windows::runtime::IInspectable> { 1000 type Error = ::windows::runtime::Error; try_from(value: &DataPackagePropertySet) -> ::windows::runtime::Result<Self>1001 fn try_from(value: &DataPackagePropertySet) -> ::windows::runtime::Result<Self> { 1002 ::windows::runtime::Interface::cast(value) 1003 } 1004 } 1005 #[cfg(feature = "Foundation_Collections")] 1006 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IMap<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>> for DataPackagePropertySet { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::Collections::IMap<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>1007 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::Collections::IMap<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>> { 1008 ::windows::runtime::IntoParam::into_param(&self) 1009 } 1010 } 1011 #[cfg(feature = "Foundation_Collections")] 1012 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IMap<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>> for &DataPackagePropertySet { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::Collections::IMap<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>1013 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::Collections::IMap<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>> { 1014 ::std::convert::TryInto::<super::super::Foundation::Collections::IMap<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 1015 } 1016 } 1017 unsafe impl ::std::marker::Send for DataPackagePropertySet {} 1018 unsafe impl ::std::marker::Sync for DataPackagePropertySet {} 1019 #[cfg(all(feature = "Foundation_Collections"))] 1020 impl ::std::iter::IntoIterator for DataPackagePropertySet { 1021 type Item = super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>; 1022 type IntoIter = super::super::Foundation::Collections::IIterator<Self::Item>; into_iter(self) -> Self::IntoIter1023 fn into_iter(self) -> Self::IntoIter { 1024 ::std::iter::IntoIterator::into_iter(&self) 1025 } 1026 } 1027 #[cfg(all(feature = "Foundation_Collections"))] 1028 impl ::std::iter::IntoIterator for &DataPackagePropertySet { 1029 type Item = super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>; 1030 type IntoIter = super::super::Foundation::Collections::IIterator<Self::Item>; into_iter(self) -> Self::IntoIter1031 fn into_iter(self) -> Self::IntoIter { 1032 self.First().unwrap() 1033 } 1034 } 1035 #[repr(transparent)] 1036 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1037 pub struct DataPackagePropertySetView(::windows::runtime::IInspectable); 1038 impl DataPackagePropertySetView { Title(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1039 pub fn Title(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1040 let this = self; 1041 unsafe { 1042 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1043 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1044 } 1045 } Description(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1046 pub fn Description(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1047 let this = self; 1048 unsafe { 1049 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1050 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1051 } 1052 } 1053 #[cfg(feature = "Storage_Streams")] Thumbnail(&self) -> ::windows::runtime::Result<super::super::Storage::Streams::RandomAccessStreamReference>1054 pub fn Thumbnail(&self) -> ::windows::runtime::Result<super::super::Storage::Streams::RandomAccessStreamReference> { 1055 let this = self; 1056 unsafe { 1057 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1058 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Storage::Streams::RandomAccessStreamReference>(result__) 1059 } 1060 } 1061 #[cfg(feature = "Foundation_Collections")] FileTypes(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IVectorView<::windows::runtime::HSTRING>>1062 pub fn FileTypes(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IVectorView<::windows::runtime::HSTRING>> { 1063 let this = self; 1064 unsafe { 1065 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1066 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Collections::IVectorView<::windows::runtime::HSTRING>>(result__) 1067 } 1068 } ApplicationName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1069 pub fn ApplicationName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1070 let this = self; 1071 unsafe { 1072 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1073 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1074 } 1075 } 1076 #[cfg(feature = "Foundation")] ApplicationListingUri(&self) -> ::windows::runtime::Result<super::super::Foundation::Uri>1077 pub fn ApplicationListingUri(&self) -> ::windows::runtime::Result<super::super::Foundation::Uri> { 1078 let this = self; 1079 unsafe { 1080 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1081 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Uri>(result__) 1082 } 1083 } PackageFamilyName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1084 pub fn PackageFamilyName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1085 let this = &::windows::runtime::Interface::cast::<IDataPackagePropertySetView2>(self)?; 1086 unsafe { 1087 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1088 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1089 } 1090 } 1091 #[cfg(feature = "Foundation")] ContentSourceWebLink(&self) -> ::windows::runtime::Result<super::super::Foundation::Uri>1092 pub fn ContentSourceWebLink(&self) -> ::windows::runtime::Result<super::super::Foundation::Uri> { 1093 let this = &::windows::runtime::Interface::cast::<IDataPackagePropertySetView2>(self)?; 1094 unsafe { 1095 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1096 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Uri>(result__) 1097 } 1098 } 1099 #[cfg(feature = "Foundation")] ContentSourceApplicationLink(&self) -> ::windows::runtime::Result<super::super::Foundation::Uri>1100 pub fn ContentSourceApplicationLink(&self) -> ::windows::runtime::Result<super::super::Foundation::Uri> { 1101 let this = &::windows::runtime::Interface::cast::<IDataPackagePropertySetView2>(self)?; 1102 unsafe { 1103 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1104 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Uri>(result__) 1105 } 1106 } 1107 #[cfg(feature = "Storage_Streams")] Square30x30Logo(&self) -> ::windows::runtime::Result<super::super::Storage::Streams::IRandomAccessStreamReference>1108 pub fn Square30x30Logo(&self) -> ::windows::runtime::Result<super::super::Storage::Streams::IRandomAccessStreamReference> { 1109 let this = &::windows::runtime::Interface::cast::<IDataPackagePropertySetView2>(self)?; 1110 unsafe { 1111 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1112 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Storage::Streams::IRandomAccessStreamReference>(result__) 1113 } 1114 } 1115 #[cfg(feature = "UI")] LogoBackgroundColor(&self) -> ::windows::runtime::Result<super::super::UI::Color>1116 pub fn LogoBackgroundColor(&self) -> ::windows::runtime::Result<super::super::UI::Color> { 1117 let this = &::windows::runtime::Interface::cast::<IDataPackagePropertySetView2>(self)?; 1118 unsafe { 1119 let mut result__: super::super::UI::Color = ::std::mem::zeroed(); 1120 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::UI::Color>(result__) 1121 } 1122 } EnterpriseId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1123 pub fn EnterpriseId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1124 let this = &::windows::runtime::Interface::cast::<IDataPackagePropertySetView3>(self)?; 1125 unsafe { 1126 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1127 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1128 } 1129 } 1130 #[cfg(feature = "Foundation_Collections")] First(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IIterator<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>>1131 pub fn First(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IIterator<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>> { 1132 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>>(self)?; 1133 unsafe { 1134 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1135 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Collections::IIterator<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>>(result__) 1136 } 1137 } 1138 #[cfg(feature = "Foundation_Collections")] Lookup<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>1139 pub fn Lookup<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 1140 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>(self)?; 1141 unsafe { 1142 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1143 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), key.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 1144 } 1145 } 1146 #[cfg(feature = "Foundation_Collections")] Size(&self) -> ::windows::runtime::Result<u32>1147 pub fn Size(&self) -> ::windows::runtime::Result<u32> { 1148 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>(self)?; 1149 unsafe { 1150 let mut result__: u32 = ::std::mem::zeroed(); 1151 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1152 } 1153 } 1154 #[cfg(feature = "Foundation_Collections")] HasKey<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0) -> ::windows::runtime::Result<bool>1155 pub fn HasKey<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0) -> ::windows::runtime::Result<bool> { 1156 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>(self)?; 1157 unsafe { 1158 let mut result__: bool = ::std::mem::zeroed(); 1159 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), key.into_param().abi(), &mut result__).from_abi::<bool>(result__) 1160 } 1161 } 1162 #[cfg(feature = "Foundation_Collections")] Split(&self, first: &mut ::std::option::Option<super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>, second: &mut ::std::option::Option<super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>) -> ::windows::runtime::Result<()>1163 pub fn Split(&self, first: &mut ::std::option::Option<super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>, second: &mut ::std::option::Option<super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>) -> ::windows::runtime::Result<()> { 1164 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>(self)?; 1165 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), first as *mut _ as _, second as *mut _ as _).ok() } 1166 } ContentSourceUserActivityJson(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1167 pub fn ContentSourceUserActivityJson(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1168 let this = &::windows::runtime::Interface::cast::<IDataPackagePropertySetView4>(self)?; 1169 unsafe { 1170 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1171 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1172 } 1173 } IsFromRoamingClipboard(&self) -> ::windows::runtime::Result<bool>1174 pub fn IsFromRoamingClipboard(&self) -> ::windows::runtime::Result<bool> { 1175 let this = &::windows::runtime::Interface::cast::<IDataPackagePropertySetView5>(self)?; 1176 unsafe { 1177 let mut result__: bool = ::std::mem::zeroed(); 1178 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1179 } 1180 } 1181 } 1182 unsafe impl ::windows::runtime::RuntimeType for DataPackagePropertySetView { 1183 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.DataTransfer.DataPackagePropertySetView;{b94cec01-0c1a-4c57-be55-75d01289735d})"); 1184 } 1185 unsafe impl ::windows::runtime::Interface for DataPackagePropertySetView { 1186 type Vtable = IDataPackagePropertySetView_abi; 1187 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3108826113, 3098, 19543, [190, 85, 117, 208, 18, 137, 115, 93]); 1188 } 1189 impl ::windows::runtime::RuntimeName for DataPackagePropertySetView { 1190 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DataPackagePropertySetView"; 1191 } 1192 impl ::std::convert::From<DataPackagePropertySetView> for ::windows::runtime::IUnknown { from(value: DataPackagePropertySetView) -> Self1193 fn from(value: DataPackagePropertySetView) -> Self { 1194 unsafe { ::std::mem::transmute(value) } 1195 } 1196 } 1197 impl ::std::convert::From<&DataPackagePropertySetView> for ::windows::runtime::IUnknown { from(value: &DataPackagePropertySetView) -> Self1198 fn from(value: &DataPackagePropertySetView) -> Self { 1199 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1200 } 1201 } 1202 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for DataPackagePropertySetView { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1203 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1204 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1205 } 1206 } 1207 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &DataPackagePropertySetView { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1208 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1209 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1210 } 1211 } 1212 impl ::std::convert::From<DataPackagePropertySetView> for ::windows::runtime::IInspectable { from(value: DataPackagePropertySetView) -> Self1213 fn from(value: DataPackagePropertySetView) -> Self { 1214 value.0 1215 } 1216 } 1217 impl ::std::convert::From<&DataPackagePropertySetView> for ::windows::runtime::IInspectable { from(value: &DataPackagePropertySetView) -> Self1218 fn from(value: &DataPackagePropertySetView) -> Self { 1219 value.0.clone() 1220 } 1221 } 1222 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for DataPackagePropertySetView { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1223 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1224 ::windows::runtime::Param::Owned(self.0) 1225 } 1226 } 1227 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a DataPackagePropertySetView { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1228 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1229 ::windows::runtime::Param::Borrowed(&self.0) 1230 } 1231 } 1232 #[cfg(feature = "Foundation_Collections")] 1233 impl ::std::convert::TryFrom<DataPackagePropertySetView> for super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>> { 1234 type Error = ::windows::runtime::Error; try_from(value: DataPackagePropertySetView) -> ::windows::runtime::Result<Self>1235 fn try_from(value: DataPackagePropertySetView) -> ::windows::runtime::Result<Self> { 1236 ::std::convert::TryFrom::try_from(&value) 1237 } 1238 } 1239 #[cfg(feature = "Foundation_Collections")] 1240 impl ::std::convert::TryFrom<&DataPackagePropertySetView> for super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>> { 1241 type Error = ::windows::runtime::Error; try_from(value: &DataPackagePropertySetView) -> ::windows::runtime::Result<Self>1242 fn try_from(value: &DataPackagePropertySetView) -> ::windows::runtime::Result<Self> { 1243 ::windows::runtime::Interface::cast(value) 1244 } 1245 } 1246 #[cfg(feature = "Foundation_Collections")] 1247 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>> for DataPackagePropertySetView { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>>1248 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>> { 1249 ::windows::runtime::IntoParam::into_param(&self) 1250 } 1251 } 1252 #[cfg(feature = "Foundation_Collections")] 1253 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>> for &DataPackagePropertySetView { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>>1254 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>> { 1255 ::std::convert::TryInto::<super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 1256 } 1257 } 1258 #[cfg(feature = "Foundation_Collections")] 1259 impl ::std::convert::TryFrom<DataPackagePropertySetView> for super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, ::windows::runtime::IInspectable> { 1260 type Error = ::windows::runtime::Error; try_from(value: DataPackagePropertySetView) -> ::windows::runtime::Result<Self>1261 fn try_from(value: DataPackagePropertySetView) -> ::windows::runtime::Result<Self> { 1262 ::std::convert::TryFrom::try_from(&value) 1263 } 1264 } 1265 #[cfg(feature = "Foundation_Collections")] 1266 impl ::std::convert::TryFrom<&DataPackagePropertySetView> for super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, ::windows::runtime::IInspectable> { 1267 type Error = ::windows::runtime::Error; try_from(value: &DataPackagePropertySetView) -> ::windows::runtime::Result<Self>1268 fn try_from(value: &DataPackagePropertySetView) -> ::windows::runtime::Result<Self> { 1269 ::windows::runtime::Interface::cast(value) 1270 } 1271 } 1272 #[cfg(feature = "Foundation_Collections")] 1273 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>> for DataPackagePropertySetView { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>1274 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>> { 1275 ::windows::runtime::IntoParam::into_param(&self) 1276 } 1277 } 1278 #[cfg(feature = "Foundation_Collections")] 1279 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>> for &DataPackagePropertySetView { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>1280 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>> { 1281 ::std::convert::TryInto::<super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 1282 } 1283 } 1284 unsafe impl ::std::marker::Send for DataPackagePropertySetView {} 1285 unsafe impl ::std::marker::Sync for DataPackagePropertySetView {} 1286 #[cfg(all(feature = "Foundation_Collections"))] 1287 impl ::std::iter::IntoIterator for DataPackagePropertySetView { 1288 type Item = super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>; 1289 type IntoIter = super::super::Foundation::Collections::IIterator<Self::Item>; into_iter(self) -> Self::IntoIter1290 fn into_iter(self) -> Self::IntoIter { 1291 ::std::iter::IntoIterator::into_iter(&self) 1292 } 1293 } 1294 #[cfg(all(feature = "Foundation_Collections"))] 1295 impl ::std::iter::IntoIterator for &DataPackagePropertySetView { 1296 type Item = super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::IInspectable>; 1297 type IntoIter = super::super::Foundation::Collections::IIterator<Self::Item>; into_iter(self) -> Self::IntoIter1298 fn into_iter(self) -> Self::IntoIter { 1299 self.First().unwrap() 1300 } 1301 } 1302 #[repr(transparent)] 1303 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1304 pub struct DataPackageView(::windows::runtime::IInspectable); 1305 impl DataPackageView { Properties(&self) -> ::windows::runtime::Result<DataPackagePropertySetView>1306 pub fn Properties(&self) -> ::windows::runtime::Result<DataPackagePropertySetView> { 1307 let this = self; 1308 unsafe { 1309 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1310 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<DataPackagePropertySetView>(result__) 1311 } 1312 } RequestedOperation(&self) -> ::windows::runtime::Result<DataPackageOperation>1313 pub fn RequestedOperation(&self) -> ::windows::runtime::Result<DataPackageOperation> { 1314 let this = self; 1315 unsafe { 1316 let mut result__: DataPackageOperation = ::std::mem::zeroed(); 1317 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<DataPackageOperation>(result__) 1318 } 1319 } ReportOperationCompleted(&self, value: DataPackageOperation) -> ::windows::runtime::Result<()>1320 pub fn ReportOperationCompleted(&self, value: DataPackageOperation) -> ::windows::runtime::Result<()> { 1321 let this = self; 1322 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value).ok() } 1323 } 1324 #[cfg(feature = "Foundation_Collections")] AvailableFormats(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IVectorView<::windows::runtime::HSTRING>>1325 pub fn AvailableFormats(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IVectorView<::windows::runtime::HSTRING>> { 1326 let this = self; 1327 unsafe { 1328 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1329 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Collections::IVectorView<::windows::runtime::HSTRING>>(result__) 1330 } 1331 } Contains<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, formatid: Param0) -> ::windows::runtime::Result<bool>1332 pub fn Contains<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, formatid: Param0) -> ::windows::runtime::Result<bool> { 1333 let this = self; 1334 unsafe { 1335 let mut result__: bool = ::std::mem::zeroed(); 1336 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), formatid.into_param().abi(), &mut result__).from_abi::<bool>(result__) 1337 } 1338 } 1339 #[cfg(feature = "Foundation")] GetDataAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, formatid: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<::windows::runtime::IInspectable>>1340 pub fn GetDataAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, formatid: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<::windows::runtime::IInspectable>> { 1341 let this = self; 1342 unsafe { 1343 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1344 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), formatid.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<::windows::runtime::IInspectable>>(result__) 1345 } 1346 } 1347 #[cfg(feature = "Foundation")] GetTextAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>>1348 pub fn GetTextAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>> { 1349 let this = self; 1350 unsafe { 1351 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1352 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>>(result__) 1353 } 1354 } 1355 #[cfg(feature = "Foundation")] GetCustomTextAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, formatid: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>>1356 pub fn GetCustomTextAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, formatid: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>> { 1357 let this = self; 1358 unsafe { 1359 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1360 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), formatid.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>>(result__) 1361 } 1362 } 1363 #[cfg(feature = "deprecated")] 1364 #[cfg(feature = "Foundation")] GetUriAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Uri>>1365 pub fn GetUriAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Uri>> { 1366 let this = self; 1367 unsafe { 1368 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1369 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<super::super::Foundation::Uri>>(result__) 1370 } 1371 } 1372 #[cfg(feature = "Foundation")] GetHtmlFormatAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>>1373 pub fn GetHtmlFormatAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>> { 1374 let this = self; 1375 unsafe { 1376 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1377 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>>(result__) 1378 } 1379 } 1380 #[cfg(all(feature = "Foundation", feature = "Foundation_Collections", feature = "Storage_Streams"))] GetResourceMapAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, super::super::Storage::Streams::RandomAccessStreamReference>>>1381 pub fn GetResourceMapAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, super::super::Storage::Streams::RandomAccessStreamReference>>> { 1382 let this = self; 1383 unsafe { 1384 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1385 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IMapView<::windows::runtime::HSTRING, super::super::Storage::Streams::RandomAccessStreamReference>>>(result__) 1386 } 1387 } 1388 #[cfg(feature = "Foundation")] GetRtfAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>>1389 pub fn GetRtfAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>> { 1390 let this = self; 1391 unsafe { 1392 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1393 (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>>(result__) 1394 } 1395 } 1396 #[cfg(all(feature = "Foundation", feature = "Storage_Streams"))] GetBitmapAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Storage::Streams::RandomAccessStreamReference>>1397 pub fn GetBitmapAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Storage::Streams::RandomAccessStreamReference>> { 1398 let this = self; 1399 unsafe { 1400 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1401 (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<super::super::Storage::Streams::RandomAccessStreamReference>>(result__) 1402 } 1403 } 1404 #[cfg(all(feature = "Foundation", feature = "Foundation_Collections", feature = "Storage"))] GetStorageItemsAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<super::super::Storage::IStorageItem>>>1405 pub fn GetStorageItemsAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<super::super::Storage::IStorageItem>>> { 1406 let this = self; 1407 unsafe { 1408 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1409 (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<super::super::Storage::IStorageItem>>>(result__) 1410 } 1411 } 1412 #[cfg(feature = "Foundation")] GetApplicationLinkAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Uri>>1413 pub fn GetApplicationLinkAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Uri>> { 1414 let this = &::windows::runtime::Interface::cast::<IDataPackageView2>(self)?; 1415 unsafe { 1416 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1417 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<super::super::Foundation::Uri>>(result__) 1418 } 1419 } 1420 #[cfg(feature = "Foundation")] GetWebLinkAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Uri>>1421 pub fn GetWebLinkAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Uri>> { 1422 let this = &::windows::runtime::Interface::cast::<IDataPackageView2>(self)?; 1423 unsafe { 1424 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1425 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<super::super::Foundation::Uri>>(result__) 1426 } 1427 } 1428 #[cfg(all(feature = "Foundation", feature = "Security_EnterpriseData"))] RequestAccessAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Security::EnterpriseData::ProtectionPolicyEvaluationResult>>1429 pub fn RequestAccessAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Security::EnterpriseData::ProtectionPolicyEvaluationResult>> { 1430 let this = &::windows::runtime::Interface::cast::<IDataPackageView3>(self)?; 1431 unsafe { 1432 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1433 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<super::super::Security::EnterpriseData::ProtectionPolicyEvaluationResult>>(result__) 1434 } 1435 } 1436 #[cfg(all(feature = "Foundation", feature = "Security_EnterpriseData"))] RequestAccessWithEnterpriseIdAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, enterpriseid: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Security::EnterpriseData::ProtectionPolicyEvaluationResult>>1437 pub fn RequestAccessWithEnterpriseIdAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, enterpriseid: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Security::EnterpriseData::ProtectionPolicyEvaluationResult>> { 1438 let this = &::windows::runtime::Interface::cast::<IDataPackageView3>(self)?; 1439 unsafe { 1440 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1441 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), enterpriseid.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<super::super::Security::EnterpriseData::ProtectionPolicyEvaluationResult>>(result__) 1442 } 1443 } 1444 #[cfg(feature = "Security_EnterpriseData")] UnlockAndAssumeEnterpriseIdentity(&self) -> ::windows::runtime::Result<super::super::Security::EnterpriseData::ProtectionPolicyEvaluationResult>1445 pub fn UnlockAndAssumeEnterpriseIdentity(&self) -> ::windows::runtime::Result<super::super::Security::EnterpriseData::ProtectionPolicyEvaluationResult> { 1446 let this = &::windows::runtime::Interface::cast::<IDataPackageView3>(self)?; 1447 unsafe { 1448 let mut result__: super::super::Security::EnterpriseData::ProtectionPolicyEvaluationResult = ::std::mem::zeroed(); 1449 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Security::EnterpriseData::ProtectionPolicyEvaluationResult>(result__) 1450 } 1451 } SetAcceptedFormatId<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, formatid: Param0) -> ::windows::runtime::Result<()>1452 pub fn SetAcceptedFormatId<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, formatid: Param0) -> ::windows::runtime::Result<()> { 1453 let this = &::windows::runtime::Interface::cast::<IDataPackageView4>(self)?; 1454 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), formatid.into_param().abi()).ok() } 1455 } 1456 } 1457 unsafe impl ::windows::runtime::RuntimeType for DataPackageView { 1458 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.DataTransfer.DataPackageView;{7b840471-5900-4d85-a90b-10cb85fe3552})"); 1459 } 1460 unsafe impl ::windows::runtime::Interface for DataPackageView { 1461 type Vtable = IDataPackageView_abi; 1462 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2072249457, 22784, 19845, [169, 11, 16, 203, 133, 254, 53, 82]); 1463 } 1464 impl ::windows::runtime::RuntimeName for DataPackageView { 1465 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DataPackageView"; 1466 } 1467 impl ::std::convert::From<DataPackageView> for ::windows::runtime::IUnknown { from(value: DataPackageView) -> Self1468 fn from(value: DataPackageView) -> Self { 1469 unsafe { ::std::mem::transmute(value) } 1470 } 1471 } 1472 impl ::std::convert::From<&DataPackageView> for ::windows::runtime::IUnknown { from(value: &DataPackageView) -> Self1473 fn from(value: &DataPackageView) -> Self { 1474 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1475 } 1476 } 1477 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for DataPackageView { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1478 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1479 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1480 } 1481 } 1482 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &DataPackageView { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1483 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1484 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1485 } 1486 } 1487 impl ::std::convert::From<DataPackageView> for ::windows::runtime::IInspectable { from(value: DataPackageView) -> Self1488 fn from(value: DataPackageView) -> Self { 1489 value.0 1490 } 1491 } 1492 impl ::std::convert::From<&DataPackageView> for ::windows::runtime::IInspectable { from(value: &DataPackageView) -> Self1493 fn from(value: &DataPackageView) -> Self { 1494 value.0.clone() 1495 } 1496 } 1497 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for DataPackageView { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1498 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1499 ::windows::runtime::Param::Owned(self.0) 1500 } 1501 } 1502 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a DataPackageView { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1503 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1504 ::windows::runtime::Param::Borrowed(&self.0) 1505 } 1506 } 1507 unsafe impl ::std::marker::Send for DataPackageView {} 1508 unsafe impl ::std::marker::Sync for DataPackageView {} 1509 #[repr(transparent)] 1510 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1511 pub struct DataProviderDeferral(::windows::runtime::IInspectable); 1512 impl DataProviderDeferral { Complete(&self) -> ::windows::runtime::Result<()>1513 pub fn Complete(&self) -> ::windows::runtime::Result<()> { 1514 let this = self; 1515 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 1516 } 1517 } 1518 unsafe impl ::windows::runtime::RuntimeType for DataProviderDeferral { 1519 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.DataTransfer.DataProviderDeferral;{c2cf2373-2d26-43d9-b69d-dcb86d03f6da})"); 1520 } 1521 unsafe impl ::windows::runtime::Interface for DataProviderDeferral { 1522 type Vtable = IDataProviderDeferral_abi; 1523 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3268354931, 11558, 17369, [182, 157, 220, 184, 109, 3, 246, 218]); 1524 } 1525 impl ::windows::runtime::RuntimeName for DataProviderDeferral { 1526 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DataProviderDeferral"; 1527 } 1528 impl ::std::convert::From<DataProviderDeferral> for ::windows::runtime::IUnknown { from(value: DataProviderDeferral) -> Self1529 fn from(value: DataProviderDeferral) -> Self { 1530 unsafe { ::std::mem::transmute(value) } 1531 } 1532 } 1533 impl ::std::convert::From<&DataProviderDeferral> for ::windows::runtime::IUnknown { from(value: &DataProviderDeferral) -> Self1534 fn from(value: &DataProviderDeferral) -> Self { 1535 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1536 } 1537 } 1538 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for DataProviderDeferral { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1539 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1540 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1541 } 1542 } 1543 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &DataProviderDeferral { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1544 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1545 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1546 } 1547 } 1548 impl ::std::convert::From<DataProviderDeferral> for ::windows::runtime::IInspectable { from(value: DataProviderDeferral) -> Self1549 fn from(value: DataProviderDeferral) -> Self { 1550 value.0 1551 } 1552 } 1553 impl ::std::convert::From<&DataProviderDeferral> for ::windows::runtime::IInspectable { from(value: &DataProviderDeferral) -> Self1554 fn from(value: &DataProviderDeferral) -> Self { 1555 value.0.clone() 1556 } 1557 } 1558 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for DataProviderDeferral { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1559 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1560 ::windows::runtime::Param::Owned(self.0) 1561 } 1562 } 1563 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a DataProviderDeferral { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1564 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1565 ::windows::runtime::Param::Borrowed(&self.0) 1566 } 1567 } 1568 unsafe impl ::std::marker::Send for DataProviderDeferral {} 1569 unsafe impl ::std::marker::Sync for DataProviderDeferral {} 1570 #[repr(transparent)] 1571 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1572 pub struct DataProviderHandler(::windows::runtime::IUnknown); 1573 impl DataProviderHandler { new<F: FnMut(&::std::option::Option<DataProviderRequest>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self1574 pub fn new<F: FnMut(&::std::option::Option<DataProviderRequest>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self { 1575 let com = DataProviderHandler_box::<F> { 1576 vtable: &DataProviderHandler_box::<F>::VTABLE, 1577 count: ::windows::runtime::RefCount::new(1), 1578 invoke, 1579 }; 1580 unsafe { std::mem::transmute(::std::boxed::Box::new(com)) } 1581 } Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, DataProviderRequest>>(&self, request: Param0) -> ::windows::runtime::Result<()>1582 pub fn Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, DataProviderRequest>>(&self, request: Param0) -> ::windows::runtime::Result<()> { 1583 let this = self; 1584 unsafe { (::windows::runtime::Interface::vtable(this).3)(::std::mem::transmute_copy(this), request.into_param().abi()).ok() } 1585 } 1586 } 1587 unsafe impl ::windows::runtime::RuntimeType for DataProviderHandler { 1588 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"delegate({e7ecd720-f2f4-4a2d-920e-170a2f482a27})"); 1589 } 1590 unsafe impl ::windows::runtime::Interface for DataProviderHandler { 1591 type Vtable = DataProviderHandler_abi; 1592 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3891058464, 62196, 18989, [146, 14, 23, 10, 47, 72, 42, 39]); 1593 } 1594 #[repr(C)] 1595 #[doc(hidden)] 1596 pub struct DataProviderHandler_abi( 1597 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1598 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1599 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1600 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, request: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1601 ); 1602 #[repr(C)] 1603 struct DataProviderHandler_box<F: FnMut(&::std::option::Option<DataProviderRequest>) -> ::windows::runtime::Result<()> + 'static> { 1604 vtable: *const DataProviderHandler_abi, 1605 invoke: F, 1606 count: ::windows::runtime::RefCount, 1607 } 1608 impl<F: FnMut(&::std::option::Option<DataProviderRequest>) -> ::windows::runtime::Result<()> + 'static> DataProviderHandler_box<F> { 1609 const VTABLE: DataProviderHandler_abi = DataProviderHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT1610 unsafe extern "system" fn QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 1611 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 1612 *interface = if iid == &<DataProviderHandler as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IUnknown as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IAgileObject as ::windows::runtime::Interface>::IID { 1613 &mut (*this).vtable as *mut _ as _ 1614 } else { 1615 ::std::ptr::null_mut() 1616 }; 1617 if (*interface).is_null() { 1618 ::windows::runtime::HRESULT(0x8000_4002) 1619 } else { 1620 (*this).count.add_ref(); 1621 ::windows::runtime::HRESULT(0) 1622 } 1623 } AddRef(this: ::windows::runtime::RawPtr) -> u321624 unsafe extern "system" fn AddRef(this: ::windows::runtime::RawPtr) -> u32 { 1625 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 1626 (*this).count.add_ref() 1627 } Release(this: ::windows::runtime::RawPtr) -> u321628 unsafe extern "system" fn Release(this: ::windows::runtime::RawPtr) -> u32 { 1629 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 1630 let remaining = (*this).count.release(); 1631 if remaining == 0 { 1632 Box::from_raw(this); 1633 } 1634 remaining 1635 } Invoke(this: ::windows::runtime::RawPtr, request: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT1636 unsafe extern "system" fn Invoke(this: ::windows::runtime::RawPtr, request: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 1637 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 1638 ((*this).invoke)(&*(&request as *const <DataProviderRequest as ::windows::runtime::Abi>::Abi as *const <DataProviderRequest as ::windows::runtime::Abi>::DefaultType)).into() 1639 } 1640 } 1641 #[repr(transparent)] 1642 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1643 pub struct DataProviderRequest(::windows::runtime::IInspectable); 1644 impl DataProviderRequest { FormatId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1645 pub fn FormatId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1646 let this = self; 1647 unsafe { 1648 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1649 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1650 } 1651 } 1652 #[cfg(feature = "Foundation")] Deadline(&self) -> ::windows::runtime::Result<super::super::Foundation::DateTime>1653 pub fn Deadline(&self) -> ::windows::runtime::Result<super::super::Foundation::DateTime> { 1654 let this = self; 1655 unsafe { 1656 let mut result__: super::super::Foundation::DateTime = ::std::mem::zeroed(); 1657 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::DateTime>(result__) 1658 } 1659 } GetDeferral(&self) -> ::windows::runtime::Result<DataProviderDeferral>1660 pub fn GetDeferral(&self) -> ::windows::runtime::Result<DataProviderDeferral> { 1661 let this = self; 1662 unsafe { 1663 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1664 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<DataProviderDeferral>(result__) 1665 } 1666 } SetData<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, value: Param0) -> ::windows::runtime::Result<()>1667 pub fn SetData<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1668 let this = self; 1669 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1670 } 1671 } 1672 unsafe impl ::windows::runtime::RuntimeType for DataProviderRequest { 1673 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.DataTransfer.DataProviderRequest;{ebbc7157-d3c8-47da-acde-f82388d5f716})"); 1674 } 1675 unsafe impl ::windows::runtime::Interface for DataProviderRequest { 1676 type Vtable = IDataProviderRequest_abi; 1677 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3954995543, 54216, 18394, [172, 222, 248, 35, 136, 213, 247, 22]); 1678 } 1679 impl ::windows::runtime::RuntimeName for DataProviderRequest { 1680 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DataProviderRequest"; 1681 } 1682 impl ::std::convert::From<DataProviderRequest> for ::windows::runtime::IUnknown { from(value: DataProviderRequest) -> Self1683 fn from(value: DataProviderRequest) -> Self { 1684 unsafe { ::std::mem::transmute(value) } 1685 } 1686 } 1687 impl ::std::convert::From<&DataProviderRequest> for ::windows::runtime::IUnknown { from(value: &DataProviderRequest) -> Self1688 fn from(value: &DataProviderRequest) -> Self { 1689 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1690 } 1691 } 1692 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for DataProviderRequest { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1693 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1694 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1695 } 1696 } 1697 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &DataProviderRequest { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1698 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1699 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1700 } 1701 } 1702 impl ::std::convert::From<DataProviderRequest> for ::windows::runtime::IInspectable { from(value: DataProviderRequest) -> Self1703 fn from(value: DataProviderRequest) -> Self { 1704 value.0 1705 } 1706 } 1707 impl ::std::convert::From<&DataProviderRequest> for ::windows::runtime::IInspectable { from(value: &DataProviderRequest) -> Self1708 fn from(value: &DataProviderRequest) -> Self { 1709 value.0.clone() 1710 } 1711 } 1712 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for DataProviderRequest { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1713 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1714 ::windows::runtime::Param::Owned(self.0) 1715 } 1716 } 1717 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a DataProviderRequest { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1718 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1719 ::windows::runtime::Param::Borrowed(&self.0) 1720 } 1721 } 1722 unsafe impl ::std::marker::Send for DataProviderRequest {} 1723 unsafe impl ::std::marker::Sync for DataProviderRequest {} 1724 #[repr(transparent)] 1725 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1726 pub struct DataRequest(::windows::runtime::IInspectable); 1727 impl DataRequest { Data(&self) -> ::windows::runtime::Result<DataPackage>1728 pub fn Data(&self) -> ::windows::runtime::Result<DataPackage> { 1729 let this = self; 1730 unsafe { 1731 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1732 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<DataPackage>(result__) 1733 } 1734 } SetData<'a, Param0: ::windows::runtime::IntoParam<'a, DataPackage>>(&self, value: Param0) -> ::windows::runtime::Result<()>1735 pub fn SetData<'a, Param0: ::windows::runtime::IntoParam<'a, DataPackage>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1736 let this = self; 1737 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1738 } 1739 #[cfg(feature = "Foundation")] Deadline(&self) -> ::windows::runtime::Result<super::super::Foundation::DateTime>1740 pub fn Deadline(&self) -> ::windows::runtime::Result<super::super::Foundation::DateTime> { 1741 let this = self; 1742 unsafe { 1743 let mut result__: super::super::Foundation::DateTime = ::std::mem::zeroed(); 1744 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::DateTime>(result__) 1745 } 1746 } FailWithDisplayText<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>1747 pub fn FailWithDisplayText<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1748 let this = self; 1749 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1750 } GetDeferral(&self) -> ::windows::runtime::Result<DataRequestDeferral>1751 pub fn GetDeferral(&self) -> ::windows::runtime::Result<DataRequestDeferral> { 1752 let this = self; 1753 unsafe { 1754 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1755 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<DataRequestDeferral>(result__) 1756 } 1757 } 1758 } 1759 unsafe impl ::windows::runtime::RuntimeType for DataRequest { 1760 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.DataTransfer.DataRequest;{4341ae3b-fc12-4e53-8c02-ac714c415a27})"); 1761 } 1762 unsafe impl ::windows::runtime::Interface for DataRequest { 1763 type Vtable = IDataRequest_abi; 1764 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1128377915, 64530, 20051, [140, 2, 172, 113, 76, 65, 90, 39]); 1765 } 1766 impl ::windows::runtime::RuntimeName for DataRequest { 1767 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DataRequest"; 1768 } 1769 impl ::std::convert::From<DataRequest> for ::windows::runtime::IUnknown { from(value: DataRequest) -> Self1770 fn from(value: DataRequest) -> Self { 1771 unsafe { ::std::mem::transmute(value) } 1772 } 1773 } 1774 impl ::std::convert::From<&DataRequest> for ::windows::runtime::IUnknown { from(value: &DataRequest) -> Self1775 fn from(value: &DataRequest) -> Self { 1776 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1777 } 1778 } 1779 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for DataRequest { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1780 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1781 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1782 } 1783 } 1784 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &DataRequest { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1785 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1786 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1787 } 1788 } 1789 impl ::std::convert::From<DataRequest> for ::windows::runtime::IInspectable { from(value: DataRequest) -> Self1790 fn from(value: DataRequest) -> Self { 1791 value.0 1792 } 1793 } 1794 impl ::std::convert::From<&DataRequest> for ::windows::runtime::IInspectable { from(value: &DataRequest) -> Self1795 fn from(value: &DataRequest) -> Self { 1796 value.0.clone() 1797 } 1798 } 1799 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for DataRequest { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1800 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1801 ::windows::runtime::Param::Owned(self.0) 1802 } 1803 } 1804 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a DataRequest { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1805 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1806 ::windows::runtime::Param::Borrowed(&self.0) 1807 } 1808 } 1809 unsafe impl ::std::marker::Send for DataRequest {} 1810 unsafe impl ::std::marker::Sync for DataRequest {} 1811 #[repr(transparent)] 1812 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1813 pub struct DataRequestDeferral(::windows::runtime::IInspectable); 1814 impl DataRequestDeferral { Complete(&self) -> ::windows::runtime::Result<()>1815 pub fn Complete(&self) -> ::windows::runtime::Result<()> { 1816 let this = self; 1817 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 1818 } 1819 } 1820 unsafe impl ::windows::runtime::RuntimeType for DataRequestDeferral { 1821 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.DataTransfer.DataRequestDeferral;{6dc4b89f-0386-4263-87c1-ed7dce30890e})"); 1822 } 1823 unsafe impl ::windows::runtime::Interface for DataRequestDeferral { 1824 type Vtable = IDataRequestDeferral_abi; 1825 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1841608863, 902, 16995, [135, 193, 237, 125, 206, 48, 137, 14]); 1826 } 1827 impl ::windows::runtime::RuntimeName for DataRequestDeferral { 1828 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DataRequestDeferral"; 1829 } 1830 impl ::std::convert::From<DataRequestDeferral> for ::windows::runtime::IUnknown { from(value: DataRequestDeferral) -> Self1831 fn from(value: DataRequestDeferral) -> Self { 1832 unsafe { ::std::mem::transmute(value) } 1833 } 1834 } 1835 impl ::std::convert::From<&DataRequestDeferral> for ::windows::runtime::IUnknown { from(value: &DataRequestDeferral) -> Self1836 fn from(value: &DataRequestDeferral) -> Self { 1837 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1838 } 1839 } 1840 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for DataRequestDeferral { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1841 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1842 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1843 } 1844 } 1845 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &DataRequestDeferral { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1846 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1847 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1848 } 1849 } 1850 impl ::std::convert::From<DataRequestDeferral> for ::windows::runtime::IInspectable { from(value: DataRequestDeferral) -> Self1851 fn from(value: DataRequestDeferral) -> Self { 1852 value.0 1853 } 1854 } 1855 impl ::std::convert::From<&DataRequestDeferral> for ::windows::runtime::IInspectable { from(value: &DataRequestDeferral) -> Self1856 fn from(value: &DataRequestDeferral) -> Self { 1857 value.0.clone() 1858 } 1859 } 1860 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for DataRequestDeferral { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1861 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1862 ::windows::runtime::Param::Owned(self.0) 1863 } 1864 } 1865 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a DataRequestDeferral { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1866 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1867 ::windows::runtime::Param::Borrowed(&self.0) 1868 } 1869 } 1870 unsafe impl ::std::marker::Send for DataRequestDeferral {} 1871 unsafe impl ::std::marker::Sync for DataRequestDeferral {} 1872 #[repr(transparent)] 1873 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1874 pub struct DataRequestedEventArgs(::windows::runtime::IInspectable); 1875 impl DataRequestedEventArgs { Request(&self) -> ::windows::runtime::Result<DataRequest>1876 pub fn Request(&self) -> ::windows::runtime::Result<DataRequest> { 1877 let this = self; 1878 unsafe { 1879 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1880 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<DataRequest>(result__) 1881 } 1882 } 1883 } 1884 unsafe impl ::windows::runtime::RuntimeType for DataRequestedEventArgs { 1885 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.DataTransfer.DataRequestedEventArgs;{cb8ba807-6ac5-43c9-8ac5-9ba232163182})"); 1886 } 1887 unsafe impl ::windows::runtime::Interface for DataRequestedEventArgs { 1888 type Vtable = IDataRequestedEventArgs_abi; 1889 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3414927367, 27333, 17353, [138, 197, 155, 162, 50, 22, 49, 130]); 1890 } 1891 impl ::windows::runtime::RuntimeName for DataRequestedEventArgs { 1892 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DataRequestedEventArgs"; 1893 } 1894 impl ::std::convert::From<DataRequestedEventArgs> for ::windows::runtime::IUnknown { from(value: DataRequestedEventArgs) -> Self1895 fn from(value: DataRequestedEventArgs) -> Self { 1896 unsafe { ::std::mem::transmute(value) } 1897 } 1898 } 1899 impl ::std::convert::From<&DataRequestedEventArgs> for ::windows::runtime::IUnknown { from(value: &DataRequestedEventArgs) -> Self1900 fn from(value: &DataRequestedEventArgs) -> Self { 1901 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1902 } 1903 } 1904 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for DataRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1905 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1906 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1907 } 1908 } 1909 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &DataRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1910 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1911 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1912 } 1913 } 1914 impl ::std::convert::From<DataRequestedEventArgs> for ::windows::runtime::IInspectable { from(value: DataRequestedEventArgs) -> Self1915 fn from(value: DataRequestedEventArgs) -> Self { 1916 value.0 1917 } 1918 } 1919 impl ::std::convert::From<&DataRequestedEventArgs> for ::windows::runtime::IInspectable { from(value: &DataRequestedEventArgs) -> Self1920 fn from(value: &DataRequestedEventArgs) -> Self { 1921 value.0.clone() 1922 } 1923 } 1924 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for DataRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1925 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1926 ::windows::runtime::Param::Owned(self.0) 1927 } 1928 } 1929 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a DataRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1930 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1931 ::windows::runtime::Param::Borrowed(&self.0) 1932 } 1933 } 1934 unsafe impl ::std::marker::Send for DataRequestedEventArgs {} 1935 unsafe impl ::std::marker::Sync for DataRequestedEventArgs {} 1936 #[repr(transparent)] 1937 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1938 pub struct DataTransferManager(::windows::runtime::IInspectable); 1939 impl DataTransferManager { 1940 #[cfg(feature = "Foundation")] DataRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<DataTransferManager, DataRequestedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>1941 pub fn DataRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<DataTransferManager, DataRequestedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 1942 let this = self; 1943 unsafe { 1944 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 1945 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 1946 } 1947 } 1948 #[cfg(feature = "Foundation")] RemoveDataRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>1949 pub fn RemoveDataRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 1950 let this = self; 1951 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 1952 } 1953 #[cfg(feature = "Foundation")] TargetApplicationChosen<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<DataTransferManager, TargetApplicationChosenEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>1954 pub fn TargetApplicationChosen<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<DataTransferManager, TargetApplicationChosenEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 1955 let this = self; 1956 unsafe { 1957 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 1958 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 1959 } 1960 } 1961 #[cfg(feature = "Foundation")] RemoveTargetApplicationChosen<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>1962 pub fn RemoveTargetApplicationChosen<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 1963 let this = self; 1964 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 1965 } ShowShareUI() -> ::windows::runtime::Result<()>1966 pub fn ShowShareUI() -> ::windows::runtime::Result<()> { 1967 Self::IDataTransferManagerStatics(|this| unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() }) 1968 } GetForCurrentView() -> ::windows::runtime::Result<DataTransferManager>1969 pub fn GetForCurrentView() -> ::windows::runtime::Result<DataTransferManager> { 1970 Self::IDataTransferManagerStatics(|this| unsafe { 1971 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1972 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<DataTransferManager>(result__) 1973 }) 1974 } IsSupported() -> ::windows::runtime::Result<bool>1975 pub fn IsSupported() -> ::windows::runtime::Result<bool> { 1976 Self::IDataTransferManagerStatics2(|this| unsafe { 1977 let mut result__: bool = ::std::mem::zeroed(); 1978 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1979 }) 1980 } 1981 #[cfg(feature = "Foundation")] ShareProvidersRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<DataTransferManager, ShareProvidersRequestedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>1982 pub fn ShareProvidersRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<DataTransferManager, ShareProvidersRequestedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 1983 let this = &::windows::runtime::Interface::cast::<IDataTransferManager2>(self)?; 1984 unsafe { 1985 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 1986 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 1987 } 1988 } 1989 #[cfg(feature = "Foundation")] RemoveShareProvidersRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>1990 pub fn RemoveShareProvidersRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 1991 let this = &::windows::runtime::Interface::cast::<IDataTransferManager2>(self)?; 1992 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 1993 } ShowShareUIWithOptions<'a, Param0: ::windows::runtime::IntoParam<'a, ShareUIOptions>>(options: Param0) -> ::windows::runtime::Result<()>1994 pub fn ShowShareUIWithOptions<'a, Param0: ::windows::runtime::IntoParam<'a, ShareUIOptions>>(options: Param0) -> ::windows::runtime::Result<()> { 1995 Self::IDataTransferManagerStatics3(|this| unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), options.into_param().abi()).ok() }) 1996 } IDataTransferManagerStatics<R, F: FnOnce(&IDataTransferManagerStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>1997 pub fn IDataTransferManagerStatics<R, F: FnOnce(&IDataTransferManagerStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 1998 static mut SHARED: ::windows::runtime::FactoryCache<DataTransferManager, IDataTransferManagerStatics> = ::windows::runtime::FactoryCache::new(); 1999 unsafe { SHARED.call(callback) } 2000 } IDataTransferManagerStatics2<R, F: FnOnce(&IDataTransferManagerStatics2) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>2001 pub fn IDataTransferManagerStatics2<R, F: FnOnce(&IDataTransferManagerStatics2) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 2002 static mut SHARED: ::windows::runtime::FactoryCache<DataTransferManager, IDataTransferManagerStatics2> = ::windows::runtime::FactoryCache::new(); 2003 unsafe { SHARED.call(callback) } 2004 } IDataTransferManagerStatics3<R, F: FnOnce(&IDataTransferManagerStatics3) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>2005 pub fn IDataTransferManagerStatics3<R, F: FnOnce(&IDataTransferManagerStatics3) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 2006 static mut SHARED: ::windows::runtime::FactoryCache<DataTransferManager, IDataTransferManagerStatics3> = ::windows::runtime::FactoryCache::new(); 2007 unsafe { SHARED.call(callback) } 2008 } 2009 } 2010 unsafe impl ::windows::runtime::RuntimeType for DataTransferManager { 2011 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.DataTransfer.DataTransferManager;{a5caee9b-8708-49d1-8d36-67d25a8da00c})"); 2012 } 2013 unsafe impl ::windows::runtime::Interface for DataTransferManager { 2014 type Vtable = IDataTransferManager_abi; 2015 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2781539995, 34568, 18897, [141, 54, 103, 210, 90, 141, 160, 12]); 2016 } 2017 impl ::windows::runtime::RuntimeName for DataTransferManager { 2018 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DataTransferManager"; 2019 } 2020 impl ::std::convert::From<DataTransferManager> for ::windows::runtime::IUnknown { from(value: DataTransferManager) -> Self2021 fn from(value: DataTransferManager) -> Self { 2022 unsafe { ::std::mem::transmute(value) } 2023 } 2024 } 2025 impl ::std::convert::From<&DataTransferManager> for ::windows::runtime::IUnknown { from(value: &DataTransferManager) -> Self2026 fn from(value: &DataTransferManager) -> Self { 2027 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2028 } 2029 } 2030 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for DataTransferManager { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2031 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2032 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2033 } 2034 } 2035 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &DataTransferManager { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2036 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2037 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2038 } 2039 } 2040 impl ::std::convert::From<DataTransferManager> for ::windows::runtime::IInspectable { from(value: DataTransferManager) -> Self2041 fn from(value: DataTransferManager) -> Self { 2042 value.0 2043 } 2044 } 2045 impl ::std::convert::From<&DataTransferManager> for ::windows::runtime::IInspectable { from(value: &DataTransferManager) -> Self2046 fn from(value: &DataTransferManager) -> Self { 2047 value.0.clone() 2048 } 2049 } 2050 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for DataTransferManager { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2051 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2052 ::windows::runtime::Param::Owned(self.0) 2053 } 2054 } 2055 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a DataTransferManager { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2056 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2057 ::windows::runtime::Param::Borrowed(&self.0) 2058 } 2059 } 2060 pub struct HtmlFormatHelper {} 2061 impl HtmlFormatHelper { GetStaticFragment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(htmlformat: Param0) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2062 pub fn GetStaticFragment<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(htmlformat: Param0) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2063 Self::IHtmlFormatHelperStatics(|this| unsafe { 2064 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2065 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), htmlformat.into_param().abi(), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2066 }) 2067 } CreateHtmlFormat<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(htmlfragment: Param0) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2068 pub fn CreateHtmlFormat<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(htmlfragment: Param0) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2069 Self::IHtmlFormatHelperStatics(|this| unsafe { 2070 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2071 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), htmlfragment.into_param().abi(), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2072 }) 2073 } IHtmlFormatHelperStatics<R, F: FnOnce(&IHtmlFormatHelperStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>2074 pub fn IHtmlFormatHelperStatics<R, F: FnOnce(&IHtmlFormatHelperStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 2075 static mut SHARED: ::windows::runtime::FactoryCache<HtmlFormatHelper, IHtmlFormatHelperStatics> = ::windows::runtime::FactoryCache::new(); 2076 unsafe { SHARED.call(callback) } 2077 } 2078 } 2079 impl ::windows::runtime::RuntimeName for HtmlFormatHelper { 2080 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.HtmlFormatHelper"; 2081 } 2082 #[repr(transparent)] 2083 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2084 #[doc(hidden)] 2085 pub struct IClipboardContentOptions(::windows::runtime::IInspectable); 2086 unsafe impl ::windows::runtime::Interface for IClipboardContentOptions { 2087 type Vtable = IClipboardContentOptions_abi; 2088 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3901270412, 44363, 21575, [160, 86, 171, 53, 86, 39, 109, 43]); 2089 } 2090 #[repr(C)] 2091 #[doc(hidden)] 2092 pub struct IClipboardContentOptions_abi( 2093 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2094 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2095 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2096 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2097 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2098 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2099 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2100 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 2101 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2102 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT, 2103 #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2104 #[cfg(not(feature = "Foundation_Collections"))] usize, 2105 #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2106 #[cfg(not(feature = "Foundation_Collections"))] usize, 2107 ); 2108 #[repr(transparent)] 2109 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2110 #[doc(hidden)] 2111 pub struct IClipboardHistoryChangedEventArgs(::windows::runtime::IInspectable); 2112 unsafe impl ::windows::runtime::Interface for IClipboardHistoryChangedEventArgs { 2113 type Vtable = IClipboardHistoryChangedEventArgs_abi; 2114 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3233695039, 36514, 21454, [154, 186, 141, 34, 18, 87, 52, 82]); 2115 } 2116 #[repr(C)] 2117 #[doc(hidden)] 2118 pub struct IClipboardHistoryChangedEventArgs_abi( 2119 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2120 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2121 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2122 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2123 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2124 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2125 ); 2126 #[repr(transparent)] 2127 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2128 #[doc(hidden)] 2129 pub struct IClipboardHistoryItem(::windows::runtime::IInspectable); 2130 unsafe impl ::windows::runtime::Interface for IClipboardHistoryItem { 2131 type Vtable = IClipboardHistoryItem_abi; 2132 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(24362378, 45055, 23632, [171, 146, 61, 25, 244, 129, 236, 88]); 2133 } 2134 #[repr(C)] 2135 #[doc(hidden)] 2136 pub struct IClipboardHistoryItem_abi( 2137 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2138 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2139 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2140 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2141 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2142 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2143 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2144 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::Foundation::DateTime) -> ::windows::runtime::HRESULT, 2145 #[cfg(not(feature = "Foundation"))] usize, 2146 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2147 ); 2148 #[repr(transparent)] 2149 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2150 #[doc(hidden)] 2151 pub struct IClipboardHistoryItemsResult(::windows::runtime::IInspectable); 2152 unsafe impl ::windows::runtime::Interface for IClipboardHistoryItemsResult { 2153 type Vtable = IClipboardHistoryItemsResult_abi; 2154 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3873431270, 3810, 21219, [133, 43, 242, 149, 219, 101, 147, 154]); 2155 } 2156 #[repr(C)] 2157 #[doc(hidden)] 2158 pub struct IClipboardHistoryItemsResult_abi( 2159 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2160 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2161 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2162 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2163 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2164 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2165 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ClipboardHistoryItemsResultStatus) -> ::windows::runtime::HRESULT, 2166 #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2167 #[cfg(not(feature = "Foundation_Collections"))] usize, 2168 ); 2169 #[repr(transparent)] 2170 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2171 #[doc(hidden)] 2172 pub struct IClipboardStatics(::windows::runtime::IInspectable); 2173 unsafe impl ::windows::runtime::Interface for IClipboardStatics { 2174 type Vtable = IClipboardStatics_abi; 2175 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3324502673, 13538, 18787, [142, 237, 147, 203, 176, 234, 61, 112]); 2176 } 2177 #[repr(C)] 2178 #[doc(hidden)] 2179 pub struct IClipboardStatics_abi( 2180 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2181 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2182 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2183 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2184 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2185 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2186 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2187 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, content: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2188 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2189 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2190 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2191 #[cfg(not(feature = "Foundation"))] usize, 2192 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2193 #[cfg(not(feature = "Foundation"))] usize, 2194 ); 2195 #[repr(transparent)] 2196 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2197 #[doc(hidden)] 2198 pub struct IClipboardStatics2(::windows::runtime::IInspectable); 2199 unsafe impl ::windows::runtime::Interface for IClipboardStatics2 { 2200 type Vtable = IClipboardStatics2_abi; 2201 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3534494570, 53919, 21835, [179, 3, 240, 69, 35, 69, 254, 2]); 2202 } 2203 #[repr(C)] 2204 #[doc(hidden)] 2205 pub struct IClipboardStatics2_abi( 2206 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2207 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2208 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2209 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2210 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2211 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2212 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2213 #[cfg(not(feature = "Foundation"))] usize, 2214 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2215 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, item: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2216 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, item: ::windows::runtime::RawPtr, result__: *mut SetHistoryItemAsContentStatus) -> ::windows::runtime::HRESULT, 2217 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2218 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2219 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, content: ::windows::runtime::RawPtr, options: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2220 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2221 #[cfg(not(feature = "Foundation"))] usize, 2222 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2223 #[cfg(not(feature = "Foundation"))] usize, 2224 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2225 #[cfg(not(feature = "Foundation"))] usize, 2226 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2227 #[cfg(not(feature = "Foundation"))] usize, 2228 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2229 #[cfg(not(feature = "Foundation"))] usize, 2230 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2231 #[cfg(not(feature = "Foundation"))] usize, 2232 ); 2233 #[repr(transparent)] 2234 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2235 #[doc(hidden)] 2236 pub struct IDataPackage(::windows::runtime::IInspectable); 2237 unsafe impl ::windows::runtime::Interface for IDataPackage { 2238 type Vtable = IDataPackage_abi; 2239 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1642853831, 61418, 17222, [149, 84, 152, 29, 126, 25, 143, 254]); 2240 } 2241 #[repr(C)] 2242 #[doc(hidden)] 2243 pub struct IDataPackage_abi( 2244 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2245 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2246 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2247 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2248 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2249 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2250 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2251 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2252 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut DataPackageOperation) -> ::windows::runtime::HRESULT, 2253 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: DataPackageOperation) -> ::windows::runtime::HRESULT, 2254 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2255 #[cfg(not(feature = "Foundation"))] usize, 2256 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2257 #[cfg(not(feature = "Foundation"))] usize, 2258 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2259 #[cfg(not(feature = "Foundation"))] usize, 2260 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2261 #[cfg(not(feature = "Foundation"))] usize, 2262 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, formatid: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2263 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, formatid: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, delayrenderer: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2264 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2265 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2266 #[cfg(not(feature = "Foundation"))] usize, 2267 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2268 #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2269 #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] usize, 2270 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2271 #[cfg(feature = "Storage_Streams")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2272 #[cfg(not(feature = "Storage_Streams"))] usize, 2273 #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2274 #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage")))] usize, 2275 #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr, readonly: bool) -> ::windows::runtime::HRESULT, 2276 #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage")))] usize, 2277 ); 2278 #[repr(transparent)] 2279 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2280 #[doc(hidden)] 2281 pub struct IDataPackage2(::windows::runtime::IInspectable); 2282 unsafe impl ::windows::runtime::Interface for IDataPackage2 { 2283 type Vtable = IDataPackage2_abi; 2284 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(68952041, 9225, 17889, [165, 56, 76, 83, 238, 238, 4, 167]); 2285 } 2286 #[repr(C)] 2287 #[doc(hidden)] 2288 pub struct IDataPackage2_abi( 2289 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2290 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2291 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2292 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2293 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2294 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2295 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2296 #[cfg(not(feature = "Foundation"))] usize, 2297 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2298 #[cfg(not(feature = "Foundation"))] usize, 2299 ); 2300 #[repr(transparent)] 2301 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2302 #[doc(hidden)] 2303 pub struct IDataPackage3(::windows::runtime::IInspectable); 2304 unsafe impl ::windows::runtime::Interface for IDataPackage3 { 2305 type Vtable = IDataPackage3_abi; 2306 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2297634653, 30843, 19762, [150, 90, 169, 131, 129, 5, 160, 86]); 2307 } 2308 #[repr(C)] 2309 #[doc(hidden)] 2310 pub struct IDataPackage3_abi( 2311 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2312 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2313 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2314 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2315 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2316 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2317 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2318 #[cfg(not(feature = "Foundation"))] usize, 2319 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2320 #[cfg(not(feature = "Foundation"))] usize, 2321 ); 2322 #[repr(transparent)] 2323 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2324 #[doc(hidden)] 2325 pub struct IDataPackage4(::windows::runtime::IInspectable); 2326 unsafe impl ::windows::runtime::Interface for IDataPackage4 { 2327 type Vtable = IDataPackage4_abi; 2328 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(329404104, 37762, 21359, [133, 42, 48, 69, 225, 178, 154, 59]); 2329 } 2330 #[repr(C)] 2331 #[doc(hidden)] 2332 pub struct IDataPackage4_abi( 2333 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2334 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2335 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2336 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2337 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2338 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2339 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2340 #[cfg(not(feature = "Foundation"))] usize, 2341 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2342 #[cfg(not(feature = "Foundation"))] usize, 2343 ); 2344 #[repr(transparent)] 2345 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2346 #[doc(hidden)] 2347 pub struct IDataPackagePropertySet(::windows::runtime::IInspectable); 2348 unsafe impl ::windows::runtime::Interface for IDataPackagePropertySet { 2349 type Vtable = IDataPackagePropertySet_abi; 2350 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3441202155, 19532, 17466, [168, 211, 245, 194, 65, 233, 22, 137]); 2351 } 2352 #[repr(C)] 2353 #[doc(hidden)] 2354 pub struct IDataPackagePropertySet_abi( 2355 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2356 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2357 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2358 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2359 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2360 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2361 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2362 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2363 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2364 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2365 #[cfg(feature = "Storage_Streams")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2366 #[cfg(not(feature = "Storage_Streams"))] usize, 2367 #[cfg(feature = "Storage_Streams")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2368 #[cfg(not(feature = "Storage_Streams"))] usize, 2369 #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2370 #[cfg(not(feature = "Foundation_Collections"))] usize, 2371 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2372 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2373 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2374 #[cfg(not(feature = "Foundation"))] usize, 2375 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2376 #[cfg(not(feature = "Foundation"))] usize, 2377 ); 2378 #[repr(transparent)] 2379 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2380 #[doc(hidden)] 2381 pub struct IDataPackagePropertySet2(::windows::runtime::IInspectable); 2382 unsafe impl ::windows::runtime::Interface for IDataPackagePropertySet2 { 2383 type Vtable = IDataPackagePropertySet2_abi; 2384 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3947912522, 38912, 18090, [177, 129, 123, 111, 15, 43, 145, 154]); 2385 } 2386 #[repr(C)] 2387 #[doc(hidden)] 2388 pub struct IDataPackagePropertySet2_abi( 2389 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2390 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2391 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2392 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2393 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2394 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2395 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2396 #[cfg(not(feature = "Foundation"))] usize, 2397 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2398 #[cfg(not(feature = "Foundation"))] usize, 2399 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2400 #[cfg(not(feature = "Foundation"))] usize, 2401 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2402 #[cfg(not(feature = "Foundation"))] usize, 2403 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2404 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2405 #[cfg(feature = "Storage_Streams")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2406 #[cfg(not(feature = "Storage_Streams"))] usize, 2407 #[cfg(feature = "Storage_Streams")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2408 #[cfg(not(feature = "Storage_Streams"))] usize, 2409 #[cfg(feature = "UI")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::UI::Color) -> ::windows::runtime::HRESULT, 2410 #[cfg(not(feature = "UI"))] usize, 2411 #[cfg(feature = "UI")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: super::super::UI::Color) -> ::windows::runtime::HRESULT, 2412 #[cfg(not(feature = "UI"))] usize, 2413 ); 2414 #[repr(transparent)] 2415 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2416 #[doc(hidden)] 2417 pub struct IDataPackagePropertySet3(::windows::runtime::IInspectable); 2418 unsafe impl ::windows::runtime::Interface for IDataPackagePropertySet3 { 2419 type Vtable = IDataPackagePropertySet3_abi; 2420 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2659712411, 20997, 16411, [135, 74, 69, 86, 83, 189, 57, 232]); 2421 } 2422 #[repr(C)] 2423 #[doc(hidden)] 2424 pub struct IDataPackagePropertySet3_abi( 2425 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2426 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2427 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2428 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2429 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2430 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2431 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2432 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2433 ); 2434 #[repr(transparent)] 2435 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2436 #[doc(hidden)] 2437 pub struct IDataPackagePropertySet4(::windows::runtime::IInspectable); 2438 unsafe impl ::windows::runtime::Interface for IDataPackagePropertySet4 { 2439 type Vtable = IDataPackagePropertySet4_abi; 2440 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1670441973, 5945, 19572, [178, 47, 134, 95, 171, 94, 133, 69]); 2441 } 2442 #[repr(C)] 2443 #[doc(hidden)] 2444 pub struct IDataPackagePropertySet4_abi( 2445 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2446 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2447 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2448 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2449 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2450 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2451 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2452 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2453 ); 2454 #[repr(transparent)] 2455 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2456 #[doc(hidden)] 2457 pub struct IDataPackagePropertySetView(::windows::runtime::IInspectable); 2458 unsafe impl ::windows::runtime::Interface for IDataPackagePropertySetView { 2459 type Vtable = IDataPackagePropertySetView_abi; 2460 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3108826113, 3098, 19543, [190, 85, 117, 208, 18, 137, 115, 93]); 2461 } 2462 #[repr(C)] 2463 #[doc(hidden)] 2464 pub struct IDataPackagePropertySetView_abi( 2465 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2466 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2467 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2468 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2469 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2470 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2471 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2472 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2473 #[cfg(feature = "Storage_Streams")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2474 #[cfg(not(feature = "Storage_Streams"))] usize, 2475 #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2476 #[cfg(not(feature = "Foundation_Collections"))] usize, 2477 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2478 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2479 #[cfg(not(feature = "Foundation"))] usize, 2480 ); 2481 #[repr(transparent)] 2482 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2483 #[doc(hidden)] 2484 pub struct IDataPackagePropertySetView2(::windows::runtime::IInspectable); 2485 unsafe impl ::windows::runtime::Interface for IDataPackagePropertySetView2 { 2486 type Vtable = IDataPackagePropertySetView2_abi; 2487 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1616138395, 36542, 20459, [156, 30, 117, 230, 157, 229, 75, 132]); 2488 } 2489 #[repr(C)] 2490 #[doc(hidden)] 2491 pub struct IDataPackagePropertySetView2_abi( 2492 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2493 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2494 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2495 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2496 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2497 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2498 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2499 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2500 #[cfg(not(feature = "Foundation"))] usize, 2501 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2502 #[cfg(not(feature = "Foundation"))] usize, 2503 #[cfg(feature = "Storage_Streams")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2504 #[cfg(not(feature = "Storage_Streams"))] usize, 2505 #[cfg(feature = "UI")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::UI::Color) -> ::windows::runtime::HRESULT, 2506 #[cfg(not(feature = "UI"))] usize, 2507 ); 2508 #[repr(transparent)] 2509 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2510 #[doc(hidden)] 2511 pub struct IDataPackagePropertySetView3(::windows::runtime::IInspectable); 2512 unsafe impl ::windows::runtime::Interface for IDataPackagePropertySetView3 { 2513 type Vtable = IDataPackagePropertySetView3_abi; 2514 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3681963237, 53620, 18780, [132, 252, 26, 81, 246, 171, 69, 215]); 2515 } 2516 #[repr(C)] 2517 #[doc(hidden)] 2518 pub struct IDataPackagePropertySetView3_abi( 2519 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2520 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2521 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2522 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2523 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2524 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2525 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2526 ); 2527 #[repr(transparent)] 2528 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2529 #[doc(hidden)] 2530 pub struct IDataPackagePropertySetView4(::windows::runtime::IInspectable); 2531 unsafe impl ::windows::runtime::Interface for IDataPackagePropertySetView4 { 2532 type Vtable = IDataPackagePropertySetView4_abi; 2533 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1148504077, 53615, 16558, [149, 128, 111, 133, 98, 185, 66, 53]); 2534 } 2535 #[repr(C)] 2536 #[doc(hidden)] 2537 pub struct IDataPackagePropertySetView4_abi( 2538 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2539 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2540 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2541 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2542 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2543 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2544 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2545 ); 2546 #[repr(transparent)] 2547 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2548 #[doc(hidden)] 2549 pub struct IDataPackagePropertySetView5(::windows::runtime::IInspectable); 2550 unsafe impl ::windows::runtime::Interface for IDataPackagePropertySetView5 { 2551 type Vtable = IDataPackagePropertySetView5_abi; 2552 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1862964293, 14176, 20667, [133, 35, 196, 32, 45, 237, 125, 120]); 2553 } 2554 #[repr(C)] 2555 #[doc(hidden)] 2556 pub struct IDataPackagePropertySetView5_abi( 2557 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2558 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2559 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2560 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2561 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2562 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2563 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2564 ); 2565 #[repr(transparent)] 2566 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2567 #[doc(hidden)] 2568 pub struct IDataPackageView(::windows::runtime::IInspectable); 2569 unsafe impl ::windows::runtime::Interface for IDataPackageView { 2570 type Vtable = IDataPackageView_abi; 2571 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2072249457, 22784, 19845, [169, 11, 16, 203, 133, 254, 53, 82]); 2572 } 2573 #[repr(C)] 2574 #[doc(hidden)] 2575 pub struct IDataPackageView_abi( 2576 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2577 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2578 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2579 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2580 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2581 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2582 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2583 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut DataPackageOperation) -> ::windows::runtime::HRESULT, 2584 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: DataPackageOperation) -> ::windows::runtime::HRESULT, 2585 #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2586 #[cfg(not(feature = "Foundation_Collections"))] usize, 2587 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, formatid: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, result__: *mut bool) -> ::windows::runtime::HRESULT, 2588 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, formatid: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2589 #[cfg(not(feature = "Foundation"))] usize, 2590 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2591 #[cfg(not(feature = "Foundation"))] usize, 2592 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, formatid: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2593 #[cfg(not(feature = "Foundation"))] usize, 2594 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2595 #[cfg(not(feature = "Foundation"))] usize, 2596 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2597 #[cfg(not(feature = "Foundation"))] usize, 2598 #[cfg(all(feature = "Foundation", feature = "Foundation_Collections", feature = "Storage_Streams"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2599 #[cfg(not(all(feature = "Foundation", feature = "Foundation_Collections", feature = "Storage_Streams")))] usize, 2600 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2601 #[cfg(not(feature = "Foundation"))] usize, 2602 #[cfg(all(feature = "Foundation", feature = "Storage_Streams"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2603 #[cfg(not(all(feature = "Foundation", feature = "Storage_Streams")))] usize, 2604 #[cfg(all(feature = "Foundation", feature = "Foundation_Collections", feature = "Storage"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2605 #[cfg(not(all(feature = "Foundation", feature = "Foundation_Collections", feature = "Storage")))] usize, 2606 ); 2607 #[repr(transparent)] 2608 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2609 #[doc(hidden)] 2610 pub struct IDataPackageView2(::windows::runtime::IInspectable); 2611 unsafe impl ::windows::runtime::Interface for IDataPackageView2 { 2612 type Vtable = IDataPackageView2_abi; 2613 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1089256085, 9296, 19485, [182, 180, 237, 69, 70, 61, 238, 156]); 2614 } 2615 #[repr(C)] 2616 #[doc(hidden)] 2617 pub struct IDataPackageView2_abi( 2618 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2619 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2620 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2621 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2622 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2623 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2624 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2625 #[cfg(not(feature = "Foundation"))] usize, 2626 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2627 #[cfg(not(feature = "Foundation"))] usize, 2628 ); 2629 #[repr(transparent)] 2630 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2631 #[doc(hidden)] 2632 pub struct IDataPackageView3(::windows::runtime::IInspectable); 2633 unsafe impl ::windows::runtime::Interface for IDataPackageView3 { 2634 type Vtable = IDataPackageView3_abi; 2635 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3547820456, 56749, 17032, [132, 40, 209, 202, 227, 148, 18, 139]); 2636 } 2637 #[repr(C)] 2638 #[doc(hidden)] 2639 pub struct IDataPackageView3_abi( 2640 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2641 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2642 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2643 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2644 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2645 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2646 #[cfg(all(feature = "Foundation", feature = "Security_EnterpriseData"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2647 #[cfg(not(all(feature = "Foundation", feature = "Security_EnterpriseData")))] usize, 2648 #[cfg(all(feature = "Foundation", feature = "Security_EnterpriseData"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, enterpriseid: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2649 #[cfg(not(all(feature = "Foundation", feature = "Security_EnterpriseData")))] usize, 2650 #[cfg(feature = "Security_EnterpriseData")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::Security::EnterpriseData::ProtectionPolicyEvaluationResult) -> ::windows::runtime::HRESULT, 2651 #[cfg(not(feature = "Security_EnterpriseData"))] usize, 2652 ); 2653 #[repr(transparent)] 2654 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2655 #[doc(hidden)] 2656 pub struct IDataPackageView4(::windows::runtime::IInspectable); 2657 unsafe impl ::windows::runtime::Interface for IDataPackageView4 { 2658 type Vtable = IDataPackageView4_abi; 2659 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3756617503, 57410, 17459, [160, 159, 38, 214, 255, 218, 139, 133]); 2660 } 2661 #[repr(C)] 2662 #[doc(hidden)] 2663 pub struct IDataPackageView4_abi( 2664 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2665 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2666 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2667 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2668 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2669 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2670 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, formatid: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2671 ); 2672 #[repr(transparent)] 2673 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2674 #[doc(hidden)] 2675 pub struct IDataProviderDeferral(::windows::runtime::IInspectable); 2676 unsafe impl ::windows::runtime::Interface for IDataProviderDeferral { 2677 type Vtable = IDataProviderDeferral_abi; 2678 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3268354931, 11558, 17369, [182, 157, 220, 184, 109, 3, 246, 218]); 2679 } 2680 #[repr(C)] 2681 #[doc(hidden)] 2682 pub struct IDataProviderDeferral_abi( 2683 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2684 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2685 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2686 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2687 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2688 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2689 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2690 ); 2691 #[repr(transparent)] 2692 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2693 #[doc(hidden)] 2694 pub struct IDataProviderRequest(::windows::runtime::IInspectable); 2695 unsafe impl ::windows::runtime::Interface for IDataProviderRequest { 2696 type Vtable = IDataProviderRequest_abi; 2697 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3954995543, 54216, 18394, [172, 222, 248, 35, 136, 213, 247, 22]); 2698 } 2699 #[repr(C)] 2700 #[doc(hidden)] 2701 pub struct IDataProviderRequest_abi( 2702 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2703 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2704 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2705 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2706 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2707 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2708 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2709 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::Foundation::DateTime) -> ::windows::runtime::HRESULT, 2710 #[cfg(not(feature = "Foundation"))] usize, 2711 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2712 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2713 ); 2714 #[repr(transparent)] 2715 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2716 #[doc(hidden)] 2717 pub struct IDataRequest(::windows::runtime::IInspectable); 2718 unsafe impl ::windows::runtime::Interface for IDataRequest { 2719 type Vtable = IDataRequest_abi; 2720 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1128377915, 64530, 20051, [140, 2, 172, 113, 76, 65, 90, 39]); 2721 } 2722 #[repr(C)] 2723 #[doc(hidden)] 2724 pub struct IDataRequest_abi( 2725 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2726 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2727 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2728 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2729 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2730 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2731 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2732 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2733 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::Foundation::DateTime) -> ::windows::runtime::HRESULT, 2734 #[cfg(not(feature = "Foundation"))] usize, 2735 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2736 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2737 ); 2738 #[repr(transparent)] 2739 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2740 #[doc(hidden)] 2741 pub struct IDataRequestDeferral(::windows::runtime::IInspectable); 2742 unsafe impl ::windows::runtime::Interface for IDataRequestDeferral { 2743 type Vtable = IDataRequestDeferral_abi; 2744 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1841608863, 902, 16995, [135, 193, 237, 125, 206, 48, 137, 14]); 2745 } 2746 #[repr(C)] 2747 #[doc(hidden)] 2748 pub struct IDataRequestDeferral_abi( 2749 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2750 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2751 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2752 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2753 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2754 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2755 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2756 ); 2757 #[repr(transparent)] 2758 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2759 #[doc(hidden)] 2760 pub struct IDataRequestedEventArgs(::windows::runtime::IInspectable); 2761 unsafe impl ::windows::runtime::Interface for IDataRequestedEventArgs { 2762 type Vtable = IDataRequestedEventArgs_abi; 2763 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3414927367, 27333, 17353, [138, 197, 155, 162, 50, 22, 49, 130]); 2764 } 2765 #[repr(C)] 2766 #[doc(hidden)] 2767 pub struct IDataRequestedEventArgs_abi( 2768 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2769 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2770 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2771 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2772 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2773 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2774 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2775 ); 2776 #[repr(transparent)] 2777 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2778 #[doc(hidden)] 2779 pub struct IDataTransferManager(::windows::runtime::IInspectable); 2780 unsafe impl ::windows::runtime::Interface for IDataTransferManager { 2781 type Vtable = IDataTransferManager_abi; 2782 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2781539995, 34568, 18897, [141, 54, 103, 210, 90, 141, 160, 12]); 2783 } 2784 #[repr(C)] 2785 #[doc(hidden)] 2786 pub struct IDataTransferManager_abi( 2787 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2788 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2789 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2790 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2791 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2792 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2793 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2794 #[cfg(not(feature = "Foundation"))] usize, 2795 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2796 #[cfg(not(feature = "Foundation"))] usize, 2797 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2798 #[cfg(not(feature = "Foundation"))] usize, 2799 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2800 #[cfg(not(feature = "Foundation"))] usize, 2801 ); 2802 #[repr(transparent)] 2803 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2804 #[doc(hidden)] 2805 pub struct IDataTransferManager2(::windows::runtime::IInspectable); 2806 unsafe impl ::windows::runtime::Interface for IDataTransferManager2 { 2807 type Vtable = IDataTransferManager2_abi; 2808 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(816741745, 35752, 19458, [142, 63, 221, 178, 59, 56, 135, 21]); 2809 } 2810 #[repr(C)] 2811 #[doc(hidden)] 2812 pub struct IDataTransferManager2_abi( 2813 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2814 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2815 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2816 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2817 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2818 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2819 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2820 #[cfg(not(feature = "Foundation"))] usize, 2821 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, 2822 #[cfg(not(feature = "Foundation"))] usize, 2823 ); 2824 #[repr(transparent)] 2825 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2826 #[doc(hidden)] 2827 pub struct IDataTransferManagerStatics(::windows::runtime::IInspectable); 2828 unsafe impl ::windows::runtime::Interface for IDataTransferManagerStatics { 2829 type Vtable = IDataTransferManagerStatics_abi; 2830 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2849636778, 57358, 19710, [170, 68, 45, 217, 50, 220, 163, 216]); 2831 } 2832 #[repr(C)] 2833 #[doc(hidden)] 2834 pub struct IDataTransferManagerStatics_abi( 2835 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2836 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2837 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2838 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2839 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2840 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2841 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2842 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2843 ); 2844 #[repr(transparent)] 2845 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2846 #[doc(hidden)] 2847 pub struct IDataTransferManagerStatics2(::windows::runtime::IInspectable); 2848 unsafe impl ::windows::runtime::Interface for IDataTransferManagerStatics2 { 2849 type Vtable = IDataTransferManagerStatics2_abi; 2850 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3310273260, 40855, 19811, [152, 104, 57, 94, 39, 26, 216, 245]); 2851 } 2852 #[repr(C)] 2853 #[doc(hidden)] 2854 pub struct IDataTransferManagerStatics2_abi( 2855 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2856 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2857 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2858 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2859 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2860 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2861 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, 2862 ); 2863 #[repr(transparent)] 2864 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2865 #[doc(hidden)] 2866 pub struct IDataTransferManagerStatics3(::windows::runtime::IInspectable); 2867 unsafe impl ::windows::runtime::Interface for IDataTransferManagerStatics3 { 2868 type Vtable = IDataTransferManagerStatics3_abi; 2869 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(92558451, 27778, 20316, [172, 35, 98, 228, 88, 54, 31, 172]); 2870 } 2871 #[repr(C)] 2872 #[doc(hidden)] 2873 pub struct IDataTransferManagerStatics3_abi( 2874 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2875 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2876 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2877 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2878 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2879 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2880 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, options: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2881 ); 2882 #[repr(transparent)] 2883 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2884 #[doc(hidden)] 2885 pub struct IHtmlFormatHelperStatics(::windows::runtime::IInspectable); 2886 unsafe impl ::windows::runtime::Interface for IHtmlFormatHelperStatics { 2887 type Vtable = IHtmlFormatHelperStatics_abi; 2888 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3794696009, 56688, 17519, [174, 252, 97, 206, 229, 159, 101, 94]); 2889 } 2890 #[repr(C)] 2891 #[doc(hidden)] 2892 pub struct IHtmlFormatHelperStatics_abi( 2893 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2894 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2895 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2896 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2897 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2898 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2899 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, htmlformat: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2900 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, htmlfragment: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2901 ); 2902 #[repr(transparent)] 2903 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2904 #[doc(hidden)] 2905 pub struct IOperationCompletedEventArgs(::windows::runtime::IInspectable); 2906 unsafe impl ::windows::runtime::Interface for IOperationCompletedEventArgs { 2907 type Vtable = IOperationCompletedEventArgs_abi; 2908 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3887018653, 1309, 20395, [177, 169, 71, 253, 119, 247, 10, 65]); 2909 } 2910 #[repr(C)] 2911 #[doc(hidden)] 2912 pub struct IOperationCompletedEventArgs_abi( 2913 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2914 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2915 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2916 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2917 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2918 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2919 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut DataPackageOperation) -> ::windows::runtime::HRESULT, 2920 ); 2921 #[repr(transparent)] 2922 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2923 #[doc(hidden)] 2924 pub struct IOperationCompletedEventArgs2(::windows::runtime::IInspectable); 2925 unsafe impl ::windows::runtime::Interface for IOperationCompletedEventArgs2 { 2926 type Vtable = IOperationCompletedEventArgs2_abi; 2927 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2240782451, 7705, 16645, [178, 247, 200, 71, 136, 8, 213, 98]); 2928 } 2929 #[repr(C)] 2930 #[doc(hidden)] 2931 pub struct IOperationCompletedEventArgs2_abi( 2932 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2933 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2934 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2935 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2936 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2937 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2938 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2939 ); 2940 #[repr(transparent)] 2941 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2942 #[doc(hidden)] 2943 pub struct IShareCompletedEventArgs(::windows::runtime::IInspectable); 2944 unsafe impl ::windows::runtime::Interface for IShareCompletedEventArgs { 2945 type Vtable = IShareCompletedEventArgs_abi; 2946 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1165280322, 63763, 20320, [157, 247, 204, 64, 96, 171, 25, 22]); 2947 } 2948 #[repr(C)] 2949 #[doc(hidden)] 2950 pub struct IShareCompletedEventArgs_abi( 2951 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2952 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2953 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2954 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2955 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2956 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2957 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2958 ); 2959 #[repr(transparent)] 2960 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2961 #[doc(hidden)] 2962 pub struct IShareProvider(::windows::runtime::IInspectable); 2963 unsafe impl ::windows::runtime::Interface for IShareProvider { 2964 type Vtable = IShareProvider_abi; 2965 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(799793190, 17470, 19674, [175, 37, 141, 129, 7, 14, 253, 128]); 2966 } 2967 #[repr(C)] 2968 #[doc(hidden)] 2969 pub struct IShareProvider_abi( 2970 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2971 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2972 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2973 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2974 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2975 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 2976 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 2977 #[cfg(feature = "Storage_Streams")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2978 #[cfg(not(feature = "Storage_Streams"))] usize, 2979 #[cfg(feature = "UI")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut super::super::UI::Color) -> ::windows::runtime::HRESULT, 2980 #[cfg(not(feature = "UI"))] usize, 2981 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2982 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2983 ); 2984 #[repr(transparent)] 2985 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2986 #[doc(hidden)] 2987 pub struct IShareProviderFactory(::windows::runtime::IInspectable); 2988 unsafe impl ::windows::runtime::Interface for IShareProviderFactory { 2989 type Vtable = IShareProviderFactory_abi; 2990 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(388634444, 59294, 20333, [176, 125, 18, 143, 70, 158, 2, 150]); 2991 } 2992 #[repr(C)] 2993 #[doc(hidden)] 2994 pub struct IShareProviderFactory_abi( 2995 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2996 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2997 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2998 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 2999 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3000 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3001 #[cfg(all(feature = "Storage_Streams", feature = "UI"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, title: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, displayicon: ::windows::runtime::RawPtr, backgroundcolor: super::super::UI::Color, handler: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3002 #[cfg(not(all(feature = "Storage_Streams", feature = "UI")))] usize, 3003 ); 3004 #[repr(transparent)] 3005 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3006 #[doc(hidden)] 3007 pub struct IShareProviderOperation(::windows::runtime::IInspectable); 3008 unsafe impl ::windows::runtime::Interface for IShareProviderOperation { 3009 type Vtable = IShareProviderOperation_abi; 3010 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(432994615, 54325, 16761, [182, 175, 20, 224, 73, 43, 105, 246]); 3011 } 3012 #[repr(C)] 3013 #[doc(hidden)] 3014 pub struct IShareProviderOperation_abi( 3015 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3016 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3017 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3018 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3019 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3020 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3021 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3022 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3023 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3024 ); 3025 #[repr(transparent)] 3026 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3027 #[doc(hidden)] 3028 pub struct IShareProvidersRequestedEventArgs(::windows::runtime::IInspectable); 3029 unsafe impl ::windows::runtime::Interface for IShareProvidersRequestedEventArgs { 3030 type Vtable = IShareProvidersRequestedEventArgs_abi; 3031 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4169724758, 41976, 20430, [133, 228, 136, 38, 230, 59, 231, 153]); 3032 } 3033 #[repr(C)] 3034 #[doc(hidden)] 3035 pub struct IShareProvidersRequestedEventArgs_abi( 3036 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3037 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3038 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3039 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3040 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3041 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3042 #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3043 #[cfg(not(feature = "Foundation_Collections"))] usize, 3044 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3045 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3046 #[cfg(not(feature = "Foundation"))] usize, 3047 ); 3048 #[repr(transparent)] 3049 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3050 #[doc(hidden)] 3051 pub struct IShareTargetInfo(::windows::runtime::IInspectable); 3052 unsafe impl ::windows::runtime::Interface for IShareTargetInfo { 3053 type Vtable = IShareTargetInfo_abi; 3054 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(945546759, 50920, 16660, [178, 148, 40, 243, 187, 111, 153, 4]); 3055 } 3056 #[repr(C)] 3057 #[doc(hidden)] 3058 pub struct IShareTargetInfo_abi( 3059 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3060 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3061 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3062 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3063 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3064 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3065 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 3066 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3067 ); 3068 #[repr(transparent)] 3069 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3070 #[doc(hidden)] 3071 pub struct IShareUIOptions(::windows::runtime::IInspectable); 3072 unsafe impl ::windows::runtime::Interface for IShareUIOptions { 3073 type Vtable = IShareUIOptions_abi; 3074 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1929022080, 13359, 19856, [149, 81, 42, 224, 78, 55, 104, 12]); 3075 } 3076 #[repr(C)] 3077 #[doc(hidden)] 3078 pub struct IShareUIOptions_abi( 3079 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3080 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3081 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3082 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3083 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3084 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3085 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ShareUITheme) -> ::windows::runtime::HRESULT, 3086 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ShareUITheme) -> ::windows::runtime::HRESULT, 3087 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3088 #[cfg(not(feature = "Foundation"))] usize, 3089 #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3090 #[cfg(not(feature = "Foundation"))] usize, 3091 ); 3092 #[repr(transparent)] 3093 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3094 #[doc(hidden)] 3095 pub struct ISharedStorageAccessManagerStatics(::windows::runtime::IInspectable); 3096 unsafe impl ::windows::runtime::Interface for ISharedStorageAccessManagerStatics { 3097 type Vtable = ISharedStorageAccessManagerStatics_abi; 3098 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3323144922, 13489, 18505, [189, 95, 208, 159, 238, 49, 88, 197]); 3099 } 3100 #[repr(C)] 3101 #[doc(hidden)] 3102 pub struct ISharedStorageAccessManagerStatics_abi( 3103 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3104 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3105 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3106 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3107 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3108 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3109 #[cfg(feature = "Storage")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, file: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 3110 #[cfg(not(feature = "Storage"))] usize, 3111 #[cfg(all(feature = "Foundation", feature = "Storage"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3112 #[cfg(not(all(feature = "Foundation", feature = "Storage")))] usize, 3113 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 3114 ); 3115 #[repr(transparent)] 3116 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3117 #[doc(hidden)] 3118 pub struct IStandardDataFormatsStatics(::windows::runtime::IInspectable); 3119 unsafe impl ::windows::runtime::Interface for IStandardDataFormatsStatics { 3120 type Vtable = IStandardDataFormatsStatics_abi; 3121 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2127987105, 43136, 16585, [180, 237, 11, 238, 30, 21, 245, 73]); 3122 } 3123 #[repr(C)] 3124 #[doc(hidden)] 3125 pub struct IStandardDataFormatsStatics_abi( 3126 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3127 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3128 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3129 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3130 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3131 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3132 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 3133 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 3134 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 3135 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 3136 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 3137 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 3138 ); 3139 #[repr(transparent)] 3140 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3141 #[doc(hidden)] 3142 pub struct IStandardDataFormatsStatics2(::windows::runtime::IInspectable); 3143 unsafe impl ::windows::runtime::Interface for IStandardDataFormatsStatics2 { 3144 type Vtable = IStandardDataFormatsStatics2_abi; 3145 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1117934836, 40310, 17128, [134, 27, 71, 194, 93, 208, 207, 113]); 3146 } 3147 #[repr(C)] 3148 #[doc(hidden)] 3149 pub struct IStandardDataFormatsStatics2_abi( 3150 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3151 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3152 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3153 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3154 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3155 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3156 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 3157 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 3158 ); 3159 #[repr(transparent)] 3160 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3161 #[doc(hidden)] 3162 pub struct IStandardDataFormatsStatics3(::windows::runtime::IInspectable); 3163 unsafe impl ::windows::runtime::Interface for IStandardDataFormatsStatics3 { 3164 type Vtable = IStandardDataFormatsStatics3_abi; 3165 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(995602537, 468, 18252, [139, 95, 188, 142, 39, 243, 139, 33]); 3166 } 3167 #[repr(C)] 3168 #[doc(hidden)] 3169 pub struct IStandardDataFormatsStatics3_abi( 3170 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3171 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3172 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3173 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3174 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3175 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3176 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 3177 ); 3178 #[repr(transparent)] 3179 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3180 #[doc(hidden)] 3181 pub struct ITargetApplicationChosenEventArgs(::windows::runtime::IInspectable); 3182 unsafe impl ::windows::runtime::Interface for ITargetApplicationChosenEventArgs { 3183 type Vtable = ITargetApplicationChosenEventArgs_abi; 3184 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3396319404, 10631, 20195, [156, 84, 216, 175, 188, 184, 108, 29]); 3185 } 3186 #[repr(C)] 3187 #[doc(hidden)] 3188 pub struct ITargetApplicationChosenEventArgs_abi( 3189 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3190 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3191 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3192 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 3193 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3194 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, 3195 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, 3196 ); 3197 #[repr(transparent)] 3198 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3199 pub struct OperationCompletedEventArgs(::windows::runtime::IInspectable); 3200 impl OperationCompletedEventArgs { Operation(&self) -> ::windows::runtime::Result<DataPackageOperation>3201 pub fn Operation(&self) -> ::windows::runtime::Result<DataPackageOperation> { 3202 let this = self; 3203 unsafe { 3204 let mut result__: DataPackageOperation = ::std::mem::zeroed(); 3205 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<DataPackageOperation>(result__) 3206 } 3207 } AcceptedFormatId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3208 pub fn AcceptedFormatId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3209 let this = &::windows::runtime::Interface::cast::<IOperationCompletedEventArgs2>(self)?; 3210 unsafe { 3211 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3212 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3213 } 3214 } 3215 } 3216 unsafe impl ::windows::runtime::RuntimeType for OperationCompletedEventArgs { 3217 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.DataTransfer.OperationCompletedEventArgs;{e7af329d-051d-4fab-b1a9-47fd77f70a41})"); 3218 } 3219 unsafe impl ::windows::runtime::Interface for OperationCompletedEventArgs { 3220 type Vtable = IOperationCompletedEventArgs_abi; 3221 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3887018653, 1309, 20395, [177, 169, 71, 253, 119, 247, 10, 65]); 3222 } 3223 impl ::windows::runtime::RuntimeName for OperationCompletedEventArgs { 3224 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.OperationCompletedEventArgs"; 3225 } 3226 impl ::std::convert::From<OperationCompletedEventArgs> for ::windows::runtime::IUnknown { from(value: OperationCompletedEventArgs) -> Self3227 fn from(value: OperationCompletedEventArgs) -> Self { 3228 unsafe { ::std::mem::transmute(value) } 3229 } 3230 } 3231 impl ::std::convert::From<&OperationCompletedEventArgs> for ::windows::runtime::IUnknown { from(value: &OperationCompletedEventArgs) -> Self3232 fn from(value: &OperationCompletedEventArgs) -> Self { 3233 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3234 } 3235 } 3236 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for OperationCompletedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3237 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3238 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3239 } 3240 } 3241 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &OperationCompletedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3242 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3243 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3244 } 3245 } 3246 impl ::std::convert::From<OperationCompletedEventArgs> for ::windows::runtime::IInspectable { from(value: OperationCompletedEventArgs) -> Self3247 fn from(value: OperationCompletedEventArgs) -> Self { 3248 value.0 3249 } 3250 } 3251 impl ::std::convert::From<&OperationCompletedEventArgs> for ::windows::runtime::IInspectable { from(value: &OperationCompletedEventArgs) -> Self3252 fn from(value: &OperationCompletedEventArgs) -> Self { 3253 value.0.clone() 3254 } 3255 } 3256 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for OperationCompletedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3257 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3258 ::windows::runtime::Param::Owned(self.0) 3259 } 3260 } 3261 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a OperationCompletedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3262 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3263 ::windows::runtime::Param::Borrowed(&self.0) 3264 } 3265 } 3266 unsafe impl ::std::marker::Send for OperationCompletedEventArgs {} 3267 unsafe impl ::std::marker::Sync for OperationCompletedEventArgs {} 3268 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 3269 #[repr(transparent)] 3270 pub struct SetHistoryItemAsContentStatus(pub i32); 3271 impl SetHistoryItemAsContentStatus { 3272 pub const Success: SetHistoryItemAsContentStatus = SetHistoryItemAsContentStatus(0i32); 3273 pub const AccessDenied: SetHistoryItemAsContentStatus = SetHistoryItemAsContentStatus(1i32); 3274 pub const ItemDeleted: SetHistoryItemAsContentStatus = SetHistoryItemAsContentStatus(2i32); 3275 } 3276 impl ::std::convert::From<i32> for SetHistoryItemAsContentStatus { from(value: i32) -> Self3277 fn from(value: i32) -> Self { 3278 Self(value) 3279 } 3280 } 3281 unsafe impl ::windows::runtime::Abi for SetHistoryItemAsContentStatus { 3282 type Abi = Self; 3283 type DefaultType = Self; 3284 } 3285 unsafe impl ::windows::runtime::RuntimeType for SetHistoryItemAsContentStatus { 3286 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.DataTransfer.SetHistoryItemAsContentStatus;i4)"); 3287 } 3288 #[repr(transparent)] 3289 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3290 pub struct ShareCompletedEventArgs(::windows::runtime::IInspectable); 3291 impl ShareCompletedEventArgs { ShareTarget(&self) -> ::windows::runtime::Result<ShareTargetInfo>3292 pub fn ShareTarget(&self) -> ::windows::runtime::Result<ShareTargetInfo> { 3293 let this = self; 3294 unsafe { 3295 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3296 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ShareTargetInfo>(result__) 3297 } 3298 } 3299 } 3300 unsafe impl ::windows::runtime::RuntimeType for ShareCompletedEventArgs { 3301 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.DataTransfer.ShareCompletedEventArgs;{4574c442-f913-4f60-9df7-cc4060ab1916})"); 3302 } 3303 unsafe impl ::windows::runtime::Interface for ShareCompletedEventArgs { 3304 type Vtable = IShareCompletedEventArgs_abi; 3305 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1165280322, 63763, 20320, [157, 247, 204, 64, 96, 171, 25, 22]); 3306 } 3307 impl ::windows::runtime::RuntimeName for ShareCompletedEventArgs { 3308 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.ShareCompletedEventArgs"; 3309 } 3310 impl ::std::convert::From<ShareCompletedEventArgs> for ::windows::runtime::IUnknown { from(value: ShareCompletedEventArgs) -> Self3311 fn from(value: ShareCompletedEventArgs) -> Self { 3312 unsafe { ::std::mem::transmute(value) } 3313 } 3314 } 3315 impl ::std::convert::From<&ShareCompletedEventArgs> for ::windows::runtime::IUnknown { from(value: &ShareCompletedEventArgs) -> Self3316 fn from(value: &ShareCompletedEventArgs) -> Self { 3317 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3318 } 3319 } 3320 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ShareCompletedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3321 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3322 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3323 } 3324 } 3325 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ShareCompletedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3326 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3327 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3328 } 3329 } 3330 impl ::std::convert::From<ShareCompletedEventArgs> for ::windows::runtime::IInspectable { from(value: ShareCompletedEventArgs) -> Self3331 fn from(value: ShareCompletedEventArgs) -> Self { 3332 value.0 3333 } 3334 } 3335 impl ::std::convert::From<&ShareCompletedEventArgs> for ::windows::runtime::IInspectable { from(value: &ShareCompletedEventArgs) -> Self3336 fn from(value: &ShareCompletedEventArgs) -> Self { 3337 value.0.clone() 3338 } 3339 } 3340 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ShareCompletedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3341 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3342 ::windows::runtime::Param::Owned(self.0) 3343 } 3344 } 3345 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ShareCompletedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3346 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3347 ::windows::runtime::Param::Borrowed(&self.0) 3348 } 3349 } 3350 unsafe impl ::std::marker::Send for ShareCompletedEventArgs {} 3351 unsafe impl ::std::marker::Sync for ShareCompletedEventArgs {} 3352 #[repr(transparent)] 3353 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3354 pub struct ShareProvider(::windows::runtime::IInspectable); 3355 impl ShareProvider { Title(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3356 pub fn Title(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3357 let this = self; 3358 unsafe { 3359 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3360 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3361 } 3362 } 3363 #[cfg(feature = "Storage_Streams")] DisplayIcon(&self) -> ::windows::runtime::Result<super::super::Storage::Streams::RandomAccessStreamReference>3364 pub fn DisplayIcon(&self) -> ::windows::runtime::Result<super::super::Storage::Streams::RandomAccessStreamReference> { 3365 let this = self; 3366 unsafe { 3367 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3368 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Storage::Streams::RandomAccessStreamReference>(result__) 3369 } 3370 } 3371 #[cfg(feature = "UI")] BackgroundColor(&self) -> ::windows::runtime::Result<super::super::UI::Color>3372 pub fn BackgroundColor(&self) -> ::windows::runtime::Result<super::super::UI::Color> { 3373 let this = self; 3374 unsafe { 3375 let mut result__: super::super::UI::Color = ::std::mem::zeroed(); 3376 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::UI::Color>(result__) 3377 } 3378 } Tag(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable>3379 pub fn Tag(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 3380 let this = self; 3381 unsafe { 3382 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3383 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 3384 } 3385 } SetTag<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, value: Param0) -> ::windows::runtime::Result<()>3386 pub fn SetTag<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 3387 let this = self; 3388 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 3389 } 3390 #[cfg(all(feature = "Storage_Streams", feature = "UI"))] Create<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Storage::Streams::RandomAccessStreamReference>, Param2: ::windows::runtime::IntoParam<'a, super::super::UI::Color>, Param3: ::windows::runtime::IntoParam<'a, ShareProviderHandler>>(title: Param0, displayicon: Param1, backgroundcolor: Param2, handler: Param3) -> ::windows::runtime::Result<ShareProvider>3391 pub fn Create<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, super::super::Storage::Streams::RandomAccessStreamReference>, Param2: ::windows::runtime::IntoParam<'a, super::super::UI::Color>, Param3: ::windows::runtime::IntoParam<'a, ShareProviderHandler>>(title: Param0, displayicon: Param1, backgroundcolor: Param2, handler: Param3) -> ::windows::runtime::Result<ShareProvider> { 3392 Self::IShareProviderFactory(|this| unsafe { 3393 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3394 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), title.into_param().abi(), displayicon.into_param().abi(), backgroundcolor.into_param().abi(), handler.into_param().abi(), &mut result__).from_abi::<ShareProvider>(result__) 3395 }) 3396 } IShareProviderFactory<R, F: FnOnce(&IShareProviderFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>3397 pub fn IShareProviderFactory<R, F: FnOnce(&IShareProviderFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 3398 static mut SHARED: ::windows::runtime::FactoryCache<ShareProvider, IShareProviderFactory> = ::windows::runtime::FactoryCache::new(); 3399 unsafe { SHARED.call(callback) } 3400 } 3401 } 3402 unsafe impl ::windows::runtime::RuntimeType for ShareProvider { 3403 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.DataTransfer.ShareProvider;{2fabe026-443e-4cda-af25-8d81070efd80})"); 3404 } 3405 unsafe impl ::windows::runtime::Interface for ShareProvider { 3406 type Vtable = IShareProvider_abi; 3407 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(799793190, 17470, 19674, [175, 37, 141, 129, 7, 14, 253, 128]); 3408 } 3409 impl ::windows::runtime::RuntimeName for ShareProvider { 3410 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.ShareProvider"; 3411 } 3412 impl ::std::convert::From<ShareProvider> for ::windows::runtime::IUnknown { from(value: ShareProvider) -> Self3413 fn from(value: ShareProvider) -> Self { 3414 unsafe { ::std::mem::transmute(value) } 3415 } 3416 } 3417 impl ::std::convert::From<&ShareProvider> for ::windows::runtime::IUnknown { from(value: &ShareProvider) -> Self3418 fn from(value: &ShareProvider) -> Self { 3419 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3420 } 3421 } 3422 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ShareProvider { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3423 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3424 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3425 } 3426 } 3427 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ShareProvider { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3428 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3429 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3430 } 3431 } 3432 impl ::std::convert::From<ShareProvider> for ::windows::runtime::IInspectable { from(value: ShareProvider) -> Self3433 fn from(value: ShareProvider) -> Self { 3434 value.0 3435 } 3436 } 3437 impl ::std::convert::From<&ShareProvider> for ::windows::runtime::IInspectable { from(value: &ShareProvider) -> Self3438 fn from(value: &ShareProvider) -> Self { 3439 value.0.clone() 3440 } 3441 } 3442 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ShareProvider { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3443 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3444 ::windows::runtime::Param::Owned(self.0) 3445 } 3446 } 3447 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ShareProvider { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3448 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3449 ::windows::runtime::Param::Borrowed(&self.0) 3450 } 3451 } 3452 unsafe impl ::std::marker::Send for ShareProvider {} 3453 unsafe impl ::std::marker::Sync for ShareProvider {} 3454 #[repr(transparent)] 3455 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3456 pub struct ShareProviderHandler(::windows::runtime::IUnknown); 3457 impl ShareProviderHandler { new<F: FnMut(&::std::option::Option<ShareProviderOperation>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self3458 pub fn new<F: FnMut(&::std::option::Option<ShareProviderOperation>) -> ::windows::runtime::Result<()> + 'static>(invoke: F) -> Self { 3459 let com = ShareProviderHandler_box::<F> { 3460 vtable: &ShareProviderHandler_box::<F>::VTABLE, 3461 count: ::windows::runtime::RefCount::new(1), 3462 invoke, 3463 }; 3464 unsafe { std::mem::transmute(::std::boxed::Box::new(com)) } 3465 } Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, ShareProviderOperation>>(&self, operation: Param0) -> ::windows::runtime::Result<()>3466 pub fn Invoke<'a, Param0: ::windows::runtime::IntoParam<'a, ShareProviderOperation>>(&self, operation: Param0) -> ::windows::runtime::Result<()> { 3467 let this = self; 3468 unsafe { (::windows::runtime::Interface::vtable(this).3)(::std::mem::transmute_copy(this), operation.into_param().abi()).ok() } 3469 } 3470 } 3471 unsafe impl ::windows::runtime::RuntimeType for ShareProviderHandler { 3472 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"delegate({e7f9d9ba-e1ba-4e4d-bd65-d43845d3212f})"); 3473 } 3474 unsafe impl ::windows::runtime::Interface for ShareProviderHandler { 3475 type Vtable = ShareProviderHandler_abi; 3476 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3891911098, 57786, 20045, [189, 101, 212, 56, 69, 211, 33, 47]); 3477 } 3478 #[repr(C)] 3479 #[doc(hidden)] 3480 pub struct ShareProviderHandler_abi( 3481 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3482 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3483 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3484 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, operation: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3485 ); 3486 #[repr(C)] 3487 struct ShareProviderHandler_box<F: FnMut(&::std::option::Option<ShareProviderOperation>) -> ::windows::runtime::Result<()> + 'static> { 3488 vtable: *const ShareProviderHandler_abi, 3489 invoke: F, 3490 count: ::windows::runtime::RefCount, 3491 } 3492 impl<F: FnMut(&::std::option::Option<ShareProviderOperation>) -> ::windows::runtime::Result<()> + 'static> ShareProviderHandler_box<F> { 3493 const VTABLE: ShareProviderHandler_abi = ShareProviderHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT3494 unsafe extern "system" fn QueryInterface(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 3495 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 3496 *interface = if iid == &<ShareProviderHandler as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IUnknown as ::windows::runtime::Interface>::IID || iid == &<::windows::runtime::IAgileObject as ::windows::runtime::Interface>::IID { 3497 &mut (*this).vtable as *mut _ as _ 3498 } else { 3499 ::std::ptr::null_mut() 3500 }; 3501 if (*interface).is_null() { 3502 ::windows::runtime::HRESULT(0x8000_4002) 3503 } else { 3504 (*this).count.add_ref(); 3505 ::windows::runtime::HRESULT(0) 3506 } 3507 } AddRef(this: ::windows::runtime::RawPtr) -> u323508 unsafe extern "system" fn AddRef(this: ::windows::runtime::RawPtr) -> u32 { 3509 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 3510 (*this).count.add_ref() 3511 } Release(this: ::windows::runtime::RawPtr) -> u323512 unsafe extern "system" fn Release(this: ::windows::runtime::RawPtr) -> u32 { 3513 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 3514 let remaining = (*this).count.release(); 3515 if remaining == 0 { 3516 Box::from_raw(this); 3517 } 3518 remaining 3519 } Invoke(this: ::windows::runtime::RawPtr, operation: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT3520 unsafe extern "system" fn Invoke(this: ::windows::runtime::RawPtr, operation: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT { 3521 let this = this as *mut ::windows::runtime::RawPtr as *mut Self; 3522 ((*this).invoke)(&*(&operation as *const <ShareProviderOperation as ::windows::runtime::Abi>::Abi as *const <ShareProviderOperation as ::windows::runtime::Abi>::DefaultType)).into() 3523 } 3524 } 3525 #[repr(transparent)] 3526 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3527 pub struct ShareProviderOperation(::windows::runtime::IInspectable); 3528 impl ShareProviderOperation { Data(&self) -> ::windows::runtime::Result<DataPackageView>3529 pub fn Data(&self) -> ::windows::runtime::Result<DataPackageView> { 3530 let this = self; 3531 unsafe { 3532 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3533 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<DataPackageView>(result__) 3534 } 3535 } Provider(&self) -> ::windows::runtime::Result<ShareProvider>3536 pub fn Provider(&self) -> ::windows::runtime::Result<ShareProvider> { 3537 let this = self; 3538 unsafe { 3539 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3540 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ShareProvider>(result__) 3541 } 3542 } ReportCompleted(&self) -> ::windows::runtime::Result<()>3543 pub fn ReportCompleted(&self) -> ::windows::runtime::Result<()> { 3544 let this = self; 3545 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this)).ok() } 3546 } 3547 } 3548 unsafe impl ::windows::runtime::RuntimeType for ShareProviderOperation { 3549 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.DataTransfer.ShareProviderOperation;{19cef937-d435-4179-b6af-14e0492b69f6})"); 3550 } 3551 unsafe impl ::windows::runtime::Interface for ShareProviderOperation { 3552 type Vtable = IShareProviderOperation_abi; 3553 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(432994615, 54325, 16761, [182, 175, 20, 224, 73, 43, 105, 246]); 3554 } 3555 impl ::windows::runtime::RuntimeName for ShareProviderOperation { 3556 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.ShareProviderOperation"; 3557 } 3558 impl ::std::convert::From<ShareProviderOperation> for ::windows::runtime::IUnknown { from(value: ShareProviderOperation) -> Self3559 fn from(value: ShareProviderOperation) -> Self { 3560 unsafe { ::std::mem::transmute(value) } 3561 } 3562 } 3563 impl ::std::convert::From<&ShareProviderOperation> for ::windows::runtime::IUnknown { from(value: &ShareProviderOperation) -> Self3564 fn from(value: &ShareProviderOperation) -> Self { 3565 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3566 } 3567 } 3568 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ShareProviderOperation { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3569 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3570 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3571 } 3572 } 3573 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ShareProviderOperation { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3574 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3575 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3576 } 3577 } 3578 impl ::std::convert::From<ShareProviderOperation> for ::windows::runtime::IInspectable { from(value: ShareProviderOperation) -> Self3579 fn from(value: ShareProviderOperation) -> Self { 3580 value.0 3581 } 3582 } 3583 impl ::std::convert::From<&ShareProviderOperation> for ::windows::runtime::IInspectable { from(value: &ShareProviderOperation) -> Self3584 fn from(value: &ShareProviderOperation) -> Self { 3585 value.0.clone() 3586 } 3587 } 3588 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ShareProviderOperation { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3589 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3590 ::windows::runtime::Param::Owned(self.0) 3591 } 3592 } 3593 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ShareProviderOperation { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3594 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3595 ::windows::runtime::Param::Borrowed(&self.0) 3596 } 3597 } 3598 unsafe impl ::std::marker::Send for ShareProviderOperation {} 3599 unsafe impl ::std::marker::Sync for ShareProviderOperation {} 3600 #[repr(transparent)] 3601 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3602 pub struct ShareProvidersRequestedEventArgs(::windows::runtime::IInspectable); 3603 impl ShareProvidersRequestedEventArgs { 3604 #[cfg(feature = "Foundation_Collections")] Providers(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IVector<ShareProvider>>3605 pub fn Providers(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IVector<ShareProvider>> { 3606 let this = self; 3607 unsafe { 3608 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3609 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Collections::IVector<ShareProvider>>(result__) 3610 } 3611 } Data(&self) -> ::windows::runtime::Result<DataPackageView>3612 pub fn Data(&self) -> ::windows::runtime::Result<DataPackageView> { 3613 let this = self; 3614 unsafe { 3615 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3616 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<DataPackageView>(result__) 3617 } 3618 } 3619 #[cfg(feature = "Foundation")] GetDeferral(&self) -> ::windows::runtime::Result<super::super::Foundation::Deferral>3620 pub fn GetDeferral(&self) -> ::windows::runtime::Result<super::super::Foundation::Deferral> { 3621 let this = self; 3622 unsafe { 3623 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3624 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Deferral>(result__) 3625 } 3626 } 3627 } 3628 unsafe impl ::windows::runtime::RuntimeType for ShareProvidersRequestedEventArgs { 3629 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.DataTransfer.ShareProvidersRequestedEventArgs;{f888f356-a3f8-4fce-85e4-8826e63be799})"); 3630 } 3631 unsafe impl ::windows::runtime::Interface for ShareProvidersRequestedEventArgs { 3632 type Vtable = IShareProvidersRequestedEventArgs_abi; 3633 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4169724758, 41976, 20430, [133, 228, 136, 38, 230, 59, 231, 153]); 3634 } 3635 impl ::windows::runtime::RuntimeName for ShareProvidersRequestedEventArgs { 3636 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.ShareProvidersRequestedEventArgs"; 3637 } 3638 impl ::std::convert::From<ShareProvidersRequestedEventArgs> for ::windows::runtime::IUnknown { from(value: ShareProvidersRequestedEventArgs) -> Self3639 fn from(value: ShareProvidersRequestedEventArgs) -> Self { 3640 unsafe { ::std::mem::transmute(value) } 3641 } 3642 } 3643 impl ::std::convert::From<&ShareProvidersRequestedEventArgs> for ::windows::runtime::IUnknown { from(value: &ShareProvidersRequestedEventArgs) -> Self3644 fn from(value: &ShareProvidersRequestedEventArgs) -> Self { 3645 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3646 } 3647 } 3648 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ShareProvidersRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3649 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3650 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3651 } 3652 } 3653 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ShareProvidersRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3654 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3655 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3656 } 3657 } 3658 impl ::std::convert::From<ShareProvidersRequestedEventArgs> for ::windows::runtime::IInspectable { from(value: ShareProvidersRequestedEventArgs) -> Self3659 fn from(value: ShareProvidersRequestedEventArgs) -> Self { 3660 value.0 3661 } 3662 } 3663 impl ::std::convert::From<&ShareProvidersRequestedEventArgs> for ::windows::runtime::IInspectable { from(value: &ShareProvidersRequestedEventArgs) -> Self3664 fn from(value: &ShareProvidersRequestedEventArgs) -> Self { 3665 value.0.clone() 3666 } 3667 } 3668 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ShareProvidersRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3669 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3670 ::windows::runtime::Param::Owned(self.0) 3671 } 3672 } 3673 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ShareProvidersRequestedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3674 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3675 ::windows::runtime::Param::Borrowed(&self.0) 3676 } 3677 } 3678 unsafe impl ::std::marker::Send for ShareProvidersRequestedEventArgs {} 3679 unsafe impl ::std::marker::Sync for ShareProvidersRequestedEventArgs {} 3680 #[repr(transparent)] 3681 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3682 pub struct ShareTargetInfo(::windows::runtime::IInspectable); 3683 impl ShareTargetInfo { AppUserModelId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3684 pub fn AppUserModelId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3685 let this = self; 3686 unsafe { 3687 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3688 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3689 } 3690 } ShareProvider(&self) -> ::windows::runtime::Result<ShareProvider>3691 pub fn ShareProvider(&self) -> ::windows::runtime::Result<ShareProvider> { 3692 let this = self; 3693 unsafe { 3694 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3695 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ShareProvider>(result__) 3696 } 3697 } 3698 } 3699 unsafe impl ::windows::runtime::RuntimeType for ShareTargetInfo { 3700 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.DataTransfer.ShareTargetInfo;{385be607-c6e8-4114-b294-28f3bb6f9904})"); 3701 } 3702 unsafe impl ::windows::runtime::Interface for ShareTargetInfo { 3703 type Vtable = IShareTargetInfo_abi; 3704 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(945546759, 50920, 16660, [178, 148, 40, 243, 187, 111, 153, 4]); 3705 } 3706 impl ::windows::runtime::RuntimeName for ShareTargetInfo { 3707 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.ShareTargetInfo"; 3708 } 3709 impl ::std::convert::From<ShareTargetInfo> for ::windows::runtime::IUnknown { from(value: ShareTargetInfo) -> Self3710 fn from(value: ShareTargetInfo) -> Self { 3711 unsafe { ::std::mem::transmute(value) } 3712 } 3713 } 3714 impl ::std::convert::From<&ShareTargetInfo> for ::windows::runtime::IUnknown { from(value: &ShareTargetInfo) -> Self3715 fn from(value: &ShareTargetInfo) -> Self { 3716 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3717 } 3718 } 3719 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ShareTargetInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3720 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3721 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3722 } 3723 } 3724 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ShareTargetInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3725 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3726 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3727 } 3728 } 3729 impl ::std::convert::From<ShareTargetInfo> for ::windows::runtime::IInspectable { from(value: ShareTargetInfo) -> Self3730 fn from(value: ShareTargetInfo) -> Self { 3731 value.0 3732 } 3733 } 3734 impl ::std::convert::From<&ShareTargetInfo> for ::windows::runtime::IInspectable { from(value: &ShareTargetInfo) -> Self3735 fn from(value: &ShareTargetInfo) -> Self { 3736 value.0.clone() 3737 } 3738 } 3739 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ShareTargetInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3740 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3741 ::windows::runtime::Param::Owned(self.0) 3742 } 3743 } 3744 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ShareTargetInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3745 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3746 ::windows::runtime::Param::Borrowed(&self.0) 3747 } 3748 } 3749 unsafe impl ::std::marker::Send for ShareTargetInfo {} 3750 unsafe impl ::std::marker::Sync for ShareTargetInfo {} 3751 #[repr(transparent)] 3752 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3753 pub struct ShareUIOptions(::windows::runtime::IInspectable); 3754 impl ShareUIOptions { new() -> ::windows::runtime::Result<Self>3755 pub fn new() -> ::windows::runtime::Result<Self> { 3756 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 3757 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>3758 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 3759 static mut SHARED: ::windows::runtime::FactoryCache<ShareUIOptions, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 3760 unsafe { SHARED.call(callback) } 3761 } Theme(&self) -> ::windows::runtime::Result<ShareUITheme>3762 pub fn Theme(&self) -> ::windows::runtime::Result<ShareUITheme> { 3763 let this = self; 3764 unsafe { 3765 let mut result__: ShareUITheme = ::std::mem::zeroed(); 3766 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ShareUITheme>(result__) 3767 } 3768 } SetTheme(&self, value: ShareUITheme) -> ::windows::runtime::Result<()>3769 pub fn SetTheme(&self, value: ShareUITheme) -> ::windows::runtime::Result<()> { 3770 let this = self; 3771 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 3772 } 3773 #[cfg(feature = "Foundation")] SelectionRect(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<super::super::Foundation::Rect>>3774 pub fn SelectionRect(&self) -> ::windows::runtime::Result<super::super::Foundation::IReference<super::super::Foundation::Rect>> { 3775 let this = self; 3776 unsafe { 3777 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3778 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IReference<super::super::Foundation::Rect>>(result__) 3779 } 3780 } 3781 #[cfg(feature = "Foundation")] SetSelectionRect<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<super::super::Foundation::Rect>>>(&self, value: Param0) -> ::windows::runtime::Result<()>3782 pub fn SetSelectionRect<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::IReference<super::super::Foundation::Rect>>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 3783 let this = self; 3784 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 3785 } 3786 } 3787 unsafe impl ::windows::runtime::RuntimeType for ShareUIOptions { 3788 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.DataTransfer.ShareUIOptions;{72fa8a80-342f-4d90-9551-2ae04e37680c})"); 3789 } 3790 unsafe impl ::windows::runtime::Interface for ShareUIOptions { 3791 type Vtable = IShareUIOptions_abi; 3792 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1929022080, 13359, 19856, [149, 81, 42, 224, 78, 55, 104, 12]); 3793 } 3794 impl ::windows::runtime::RuntimeName for ShareUIOptions { 3795 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.ShareUIOptions"; 3796 } 3797 impl ::std::convert::From<ShareUIOptions> for ::windows::runtime::IUnknown { from(value: ShareUIOptions) -> Self3798 fn from(value: ShareUIOptions) -> Self { 3799 unsafe { ::std::mem::transmute(value) } 3800 } 3801 } 3802 impl ::std::convert::From<&ShareUIOptions> for ::windows::runtime::IUnknown { from(value: &ShareUIOptions) -> Self3803 fn from(value: &ShareUIOptions) -> Self { 3804 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3805 } 3806 } 3807 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ShareUIOptions { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3808 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3809 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3810 } 3811 } 3812 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ShareUIOptions { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3813 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3814 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3815 } 3816 } 3817 impl ::std::convert::From<ShareUIOptions> for ::windows::runtime::IInspectable { from(value: ShareUIOptions) -> Self3818 fn from(value: ShareUIOptions) -> Self { 3819 value.0 3820 } 3821 } 3822 impl ::std::convert::From<&ShareUIOptions> for ::windows::runtime::IInspectable { from(value: &ShareUIOptions) -> Self3823 fn from(value: &ShareUIOptions) -> Self { 3824 value.0.clone() 3825 } 3826 } 3827 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ShareUIOptions { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3828 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3829 ::windows::runtime::Param::Owned(self.0) 3830 } 3831 } 3832 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ShareUIOptions { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3833 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3834 ::windows::runtime::Param::Borrowed(&self.0) 3835 } 3836 } 3837 unsafe impl ::std::marker::Send for ShareUIOptions {} 3838 unsafe impl ::std::marker::Sync for ShareUIOptions {} 3839 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 3840 #[repr(transparent)] 3841 pub struct ShareUITheme(pub i32); 3842 impl ShareUITheme { 3843 pub const Default: ShareUITheme = ShareUITheme(0i32); 3844 pub const Light: ShareUITheme = ShareUITheme(1i32); 3845 pub const Dark: ShareUITheme = ShareUITheme(2i32); 3846 } 3847 impl ::std::convert::From<i32> for ShareUITheme { from(value: i32) -> Self3848 fn from(value: i32) -> Self { 3849 Self(value) 3850 } 3851 } 3852 unsafe impl ::windows::runtime::Abi for ShareUITheme { 3853 type Abi = Self; 3854 type DefaultType = Self; 3855 } 3856 unsafe impl ::windows::runtime::RuntimeType for ShareUITheme { 3857 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.DataTransfer.ShareUITheme;i4)"); 3858 } 3859 pub struct SharedStorageAccessManager {} 3860 impl SharedStorageAccessManager { 3861 #[cfg(feature = "Storage")] AddFile<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Storage::IStorageFile>>(file: Param0) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3862 pub fn AddFile<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Storage::IStorageFile>>(file: Param0) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3863 Self::ISharedStorageAccessManagerStatics(|this| unsafe { 3864 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3865 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), file.into_param().abi(), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3866 }) 3867 } 3868 #[cfg(all(feature = "Foundation", feature = "Storage"))] RedeemTokenForFileAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(token: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Storage::StorageFile>>3869 pub fn RedeemTokenForFileAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(token: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Storage::StorageFile>> { 3870 Self::ISharedStorageAccessManagerStatics(|this| unsafe { 3871 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3872 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), token.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<super::super::Storage::StorageFile>>(result__) 3873 }) 3874 } RemoveFile<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(token: Param0) -> ::windows::runtime::Result<()>3875 pub fn RemoveFile<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(token: Param0) -> ::windows::runtime::Result<()> { 3876 Self::ISharedStorageAccessManagerStatics(|this| unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() }) 3877 } ISharedStorageAccessManagerStatics<R, F: FnOnce(&ISharedStorageAccessManagerStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>3878 pub fn ISharedStorageAccessManagerStatics<R, F: FnOnce(&ISharedStorageAccessManagerStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 3879 static mut SHARED: ::windows::runtime::FactoryCache<SharedStorageAccessManager, ISharedStorageAccessManagerStatics> = ::windows::runtime::FactoryCache::new(); 3880 unsafe { SHARED.call(callback) } 3881 } 3882 } 3883 impl ::windows::runtime::RuntimeName for SharedStorageAccessManager { 3884 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.SharedStorageAccessManager"; 3885 } 3886 pub struct StandardDataFormats {} 3887 impl StandardDataFormats { Text() -> ::windows::runtime::Result<::windows::runtime::HSTRING>3888 pub fn Text() -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3889 Self::IStandardDataFormatsStatics(|this| unsafe { 3890 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3891 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3892 }) 3893 } 3894 #[cfg(feature = "deprecated")] Uri() -> ::windows::runtime::Result<::windows::runtime::HSTRING>3895 pub fn Uri() -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3896 Self::IStandardDataFormatsStatics(|this| unsafe { 3897 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3898 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3899 }) 3900 } Html() -> ::windows::runtime::Result<::windows::runtime::HSTRING>3901 pub fn Html() -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3902 Self::IStandardDataFormatsStatics(|this| unsafe { 3903 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3904 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3905 }) 3906 } Rtf() -> ::windows::runtime::Result<::windows::runtime::HSTRING>3907 pub fn Rtf() -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3908 Self::IStandardDataFormatsStatics(|this| unsafe { 3909 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3910 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3911 }) 3912 } Bitmap() -> ::windows::runtime::Result<::windows::runtime::HSTRING>3913 pub fn Bitmap() -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3914 Self::IStandardDataFormatsStatics(|this| unsafe { 3915 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3916 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3917 }) 3918 } StorageItems() -> ::windows::runtime::Result<::windows::runtime::HSTRING>3919 pub fn StorageItems() -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3920 Self::IStandardDataFormatsStatics(|this| unsafe { 3921 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3922 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3923 }) 3924 } WebLink() -> ::windows::runtime::Result<::windows::runtime::HSTRING>3925 pub fn WebLink() -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3926 Self::IStandardDataFormatsStatics2(|this| unsafe { 3927 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3928 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3929 }) 3930 } ApplicationLink() -> ::windows::runtime::Result<::windows::runtime::HSTRING>3931 pub fn ApplicationLink() -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3932 Self::IStandardDataFormatsStatics2(|this| unsafe { 3933 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3934 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3935 }) 3936 } UserActivityJsonArray() -> ::windows::runtime::Result<::windows::runtime::HSTRING>3937 pub fn UserActivityJsonArray() -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3938 Self::IStandardDataFormatsStatics3(|this| unsafe { 3939 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3940 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3941 }) 3942 } IStandardDataFormatsStatics<R, F: FnOnce(&IStandardDataFormatsStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>3943 pub fn IStandardDataFormatsStatics<R, F: FnOnce(&IStandardDataFormatsStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 3944 static mut SHARED: ::windows::runtime::FactoryCache<StandardDataFormats, IStandardDataFormatsStatics> = ::windows::runtime::FactoryCache::new(); 3945 unsafe { SHARED.call(callback) } 3946 } IStandardDataFormatsStatics2<R, F: FnOnce(&IStandardDataFormatsStatics2) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>3947 pub fn IStandardDataFormatsStatics2<R, F: FnOnce(&IStandardDataFormatsStatics2) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 3948 static mut SHARED: ::windows::runtime::FactoryCache<StandardDataFormats, IStandardDataFormatsStatics2> = ::windows::runtime::FactoryCache::new(); 3949 unsafe { SHARED.call(callback) } 3950 } IStandardDataFormatsStatics3<R, F: FnOnce(&IStandardDataFormatsStatics3) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>3951 pub fn IStandardDataFormatsStatics3<R, F: FnOnce(&IStandardDataFormatsStatics3) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 3952 static mut SHARED: ::windows::runtime::FactoryCache<StandardDataFormats, IStandardDataFormatsStatics3> = ::windows::runtime::FactoryCache::new(); 3953 unsafe { SHARED.call(callback) } 3954 } 3955 } 3956 impl ::windows::runtime::RuntimeName for StandardDataFormats { 3957 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.StandardDataFormats"; 3958 } 3959 #[repr(transparent)] 3960 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3961 pub struct TargetApplicationChosenEventArgs(::windows::runtime::IInspectable); 3962 impl TargetApplicationChosenEventArgs { ApplicationName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3963 pub fn ApplicationName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3964 let this = self; 3965 unsafe { 3966 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3967 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3968 } 3969 } 3970 } 3971 unsafe impl ::windows::runtime::RuntimeType for TargetApplicationChosenEventArgs { 3972 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.DataTransfer.TargetApplicationChosenEventArgs;{ca6fb8ac-2987-4ee3-9c54-d8afbcb86c1d})"); 3973 } 3974 unsafe impl ::windows::runtime::Interface for TargetApplicationChosenEventArgs { 3975 type Vtable = ITargetApplicationChosenEventArgs_abi; 3976 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3396319404, 10631, 20195, [156, 84, 216, 175, 188, 184, 108, 29]); 3977 } 3978 impl ::windows::runtime::RuntimeName for TargetApplicationChosenEventArgs { 3979 const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.TargetApplicationChosenEventArgs"; 3980 } 3981 impl ::std::convert::From<TargetApplicationChosenEventArgs> for ::windows::runtime::IUnknown { from(value: TargetApplicationChosenEventArgs) -> Self3982 fn from(value: TargetApplicationChosenEventArgs) -> Self { 3983 unsafe { ::std::mem::transmute(value) } 3984 } 3985 } 3986 impl ::std::convert::From<&TargetApplicationChosenEventArgs> for ::windows::runtime::IUnknown { from(value: &TargetApplicationChosenEventArgs) -> Self3987 fn from(value: &TargetApplicationChosenEventArgs) -> Self { 3988 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3989 } 3990 } 3991 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for TargetApplicationChosenEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3992 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3993 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3994 } 3995 } 3996 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &TargetApplicationChosenEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3997 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3998 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3999 } 4000 } 4001 impl ::std::convert::From<TargetApplicationChosenEventArgs> for ::windows::runtime::IInspectable { from(value: TargetApplicationChosenEventArgs) -> Self4002 fn from(value: TargetApplicationChosenEventArgs) -> Self { 4003 value.0 4004 } 4005 } 4006 impl ::std::convert::From<&TargetApplicationChosenEventArgs> for ::windows::runtime::IInspectable { from(value: &TargetApplicationChosenEventArgs) -> Self4007 fn from(value: &TargetApplicationChosenEventArgs) -> Self { 4008 value.0.clone() 4009 } 4010 } 4011 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for TargetApplicationChosenEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>4012 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 4013 ::windows::runtime::Param::Owned(self.0) 4014 } 4015 } 4016 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a TargetApplicationChosenEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>4017 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 4018 ::windows::runtime::Param::Borrowed(&self.0) 4019 } 4020 } 4021 unsafe impl ::std::marker::Send for TargetApplicationChosenEventArgs {} 4022 unsafe impl ::std::marker::Sync for TargetApplicationChosenEventArgs {} 4023