1 #![allow(unused_variables, non_upper_case_globals, non_snake_case, unused_unsafe, non_camel_case_types, dead_code, clippy::all)] 2 #[cfg(feature = "Devices_PointOfService_Provider")] 3 pub mod Provider; 4 #[repr(transparent)] 5 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 6 pub struct BarcodeScanner(::windows::runtime::IInspectable); 7 impl BarcodeScanner { DeviceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>8 pub fn DeviceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 9 let this = self; 10 unsafe { 11 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 12 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 13 } 14 } Capabilities(&self) -> ::windows::runtime::Result<BarcodeScannerCapabilities>15 pub fn Capabilities(&self) -> ::windows::runtime::Result<BarcodeScannerCapabilities> { 16 let this = self; 17 unsafe { 18 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 19 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<BarcodeScannerCapabilities>(result__) 20 } 21 } 22 #[cfg(feature = "Foundation")] ClaimScannerAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<ClaimedBarcodeScanner>>23 pub fn ClaimScannerAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<ClaimedBarcodeScanner>> { 24 let this = self; 25 unsafe { 26 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 27 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<ClaimedBarcodeScanner>>(result__) 28 } 29 } 30 #[cfg(feature = "Foundation")] CheckHealthAsync(&self, level: UnifiedPosHealthCheckLevel) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>>31 pub fn CheckHealthAsync(&self, level: UnifiedPosHealthCheckLevel) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>> { 32 let this = self; 33 unsafe { 34 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 35 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), level, &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>>(result__) 36 } 37 } 38 #[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))] GetSupportedSymbologiesAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<u32>>>39 pub fn GetSupportedSymbologiesAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<u32>>> { 40 let this = self; 41 unsafe { 42 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 43 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<u32>>>(result__) 44 } 45 } 46 #[cfg(feature = "Foundation")] IsSymbologySupportedAsync(&self, barcodesymbology: u32) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>47 pub fn IsSymbologySupportedAsync(&self, barcodesymbology: u32) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 48 let this = self; 49 unsafe { 50 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 51 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), barcodesymbology, &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 52 } 53 } 54 #[cfg(all(feature = "Foundation", feature = "Foundation_Collections", feature = "Storage_Streams"))] RetrieveStatisticsAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<::windows::runtime::HSTRING>>>(&self, statisticscategories: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Storage::Streams::IBuffer>>55 pub fn RetrieveStatisticsAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<::windows::runtime::HSTRING>>>(&self, statisticscategories: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Storage::Streams::IBuffer>> { 56 let this = self; 57 unsafe { 58 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 59 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), statisticscategories.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<super::super::Storage::Streams::IBuffer>>(result__) 60 } 61 } 62 #[cfg(feature = "Foundation_Collections")] GetSupportedProfiles(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IVectorView<::windows::runtime::HSTRING>>63 pub fn GetSupportedProfiles(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IVectorView<::windows::runtime::HSTRING>> { 64 let this = self; 65 unsafe { 66 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 67 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Collections::IVectorView<::windows::runtime::HSTRING>>(result__) 68 } 69 } IsProfileSupported<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, profile: Param0) -> ::windows::runtime::Result<bool>70 pub fn IsProfileSupported<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, profile: Param0) -> ::windows::runtime::Result<bool> { 71 let this = self; 72 unsafe { 73 let mut result__: bool = ::std::mem::zeroed(); 74 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), profile.into_param().abi(), &mut result__).from_abi::<bool>(result__) 75 } 76 } 77 #[cfg(feature = "Foundation")] StatusUpdated<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<BarcodeScanner, BarcodeScannerStatusUpdatedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>78 pub fn StatusUpdated<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<BarcodeScanner, BarcodeScannerStatusUpdatedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 79 let this = self; 80 unsafe { 81 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 82 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 83 } 84 } 85 #[cfg(feature = "Foundation")] RemoveStatusUpdated<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>86 pub fn RemoveStatusUpdated<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 87 let this = self; 88 unsafe { (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 89 } 90 #[cfg(feature = "Foundation")] Close(&self) -> ::windows::runtime::Result<()>91 pub fn Close(&self) -> ::windows::runtime::Result<()> { 92 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::IClosable>(self)?; 93 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 94 } 95 #[cfg(feature = "Foundation")] GetDefaultAsync() -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<BarcodeScanner>>96 pub fn GetDefaultAsync() -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<BarcodeScanner>> { 97 Self::IBarcodeScannerStatics(|this| unsafe { 98 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 99 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<BarcodeScanner>>(result__) 100 }) 101 } 102 #[cfg(feature = "Foundation")] FromIdAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(deviceid: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<BarcodeScanner>>103 pub fn FromIdAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(deviceid: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<BarcodeScanner>> { 104 Self::IBarcodeScannerStatics(|this| unsafe { 105 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 106 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), deviceid.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<BarcodeScanner>>(result__) 107 }) 108 } GetDeviceSelector() -> ::windows::runtime::Result<::windows::runtime::HSTRING>109 pub fn GetDeviceSelector() -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 110 Self::IBarcodeScannerStatics(|this| unsafe { 111 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 112 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 113 }) 114 } VideoDeviceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>115 pub fn VideoDeviceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 116 let this = &::windows::runtime::Interface::cast::<IBarcodeScanner2>(self)?; 117 unsafe { 118 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 119 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 120 } 121 } GetDeviceSelectorWithConnectionTypes(connectiontypes: PosConnectionTypes) -> ::windows::runtime::Result<::windows::runtime::HSTRING>122 pub fn GetDeviceSelectorWithConnectionTypes(connectiontypes: PosConnectionTypes) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 123 Self::IBarcodeScannerStatics2(|this| unsafe { 124 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 125 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), connectiontypes, &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 126 }) 127 } IBarcodeScannerStatics<R, F: FnOnce(&IBarcodeScannerStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>128 pub fn IBarcodeScannerStatics<R, F: FnOnce(&IBarcodeScannerStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 129 static mut SHARED: ::windows::runtime::FactoryCache<BarcodeScanner, IBarcodeScannerStatics> = ::windows::runtime::FactoryCache::new(); 130 unsafe { SHARED.call(callback) } 131 } IBarcodeScannerStatics2<R, F: FnOnce(&IBarcodeScannerStatics2) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>132 pub fn IBarcodeScannerStatics2<R, F: FnOnce(&IBarcodeScannerStatics2) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 133 static mut SHARED: ::windows::runtime::FactoryCache<BarcodeScanner, IBarcodeScannerStatics2> = ::windows::runtime::FactoryCache::new(); 134 unsafe { SHARED.call(callback) } 135 } 136 } 137 unsafe impl ::windows::runtime::RuntimeType for BarcodeScanner { 138 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.BarcodeScanner;{bea33e06-b264-4f03-a9c1-45b20f01134f})"); 139 } 140 unsafe impl ::windows::runtime::Interface for BarcodeScanner { 141 type Vtable = IBarcodeScanner_abi; 142 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3198369286, 45668, 20227, [169, 193, 69, 178, 15, 1, 19, 79]); 143 } 144 impl ::windows::runtime::RuntimeName for BarcodeScanner { 145 const NAME: &'static str = "Windows.Devices.PointOfService.BarcodeScanner"; 146 } 147 impl ::std::convert::From<BarcodeScanner> for ::windows::runtime::IUnknown { from(value: BarcodeScanner) -> Self148 fn from(value: BarcodeScanner) -> Self { 149 unsafe { ::std::mem::transmute(value) } 150 } 151 } 152 impl ::std::convert::From<&BarcodeScanner> for ::windows::runtime::IUnknown { from(value: &BarcodeScanner) -> Self153 fn from(value: &BarcodeScanner) -> Self { 154 ::std::convert::From::from(::std::clone::Clone::clone(value)) 155 } 156 } 157 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for BarcodeScanner { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>158 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 159 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 160 } 161 } 162 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &BarcodeScanner { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>163 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 164 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 165 } 166 } 167 impl ::std::convert::From<BarcodeScanner> for ::windows::runtime::IInspectable { from(value: BarcodeScanner) -> Self168 fn from(value: BarcodeScanner) -> Self { 169 value.0 170 } 171 } 172 impl ::std::convert::From<&BarcodeScanner> for ::windows::runtime::IInspectable { from(value: &BarcodeScanner) -> Self173 fn from(value: &BarcodeScanner) -> Self { 174 value.0.clone() 175 } 176 } 177 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for BarcodeScanner { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>178 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 179 ::windows::runtime::Param::Owned(self.0) 180 } 181 } 182 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a BarcodeScanner { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>183 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 184 ::windows::runtime::Param::Borrowed(&self.0) 185 } 186 } 187 #[cfg(feature = "Foundation")] 188 impl ::std::convert::TryFrom<BarcodeScanner> for super::super::Foundation::IClosable { 189 type Error = ::windows::runtime::Error; try_from(value: BarcodeScanner) -> ::windows::runtime::Result<Self>190 fn try_from(value: BarcodeScanner) -> ::windows::runtime::Result<Self> { 191 ::std::convert::TryFrom::try_from(&value) 192 } 193 } 194 #[cfg(feature = "Foundation")] 195 impl ::std::convert::TryFrom<&BarcodeScanner> for super::super::Foundation::IClosable { 196 type Error = ::windows::runtime::Error; try_from(value: &BarcodeScanner) -> ::windows::runtime::Result<Self>197 fn try_from(value: &BarcodeScanner) -> ::windows::runtime::Result<Self> { 198 ::windows::runtime::Interface::cast(value) 199 } 200 } 201 #[cfg(feature = "Foundation")] 202 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for BarcodeScanner { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>203 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 204 ::windows::runtime::IntoParam::into_param(&self) 205 } 206 } 207 #[cfg(feature = "Foundation")] 208 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for &BarcodeScanner { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>209 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 210 ::std::convert::TryInto::<super::super::Foundation::IClosable>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 211 } 212 } 213 unsafe impl ::std::marker::Send for BarcodeScanner {} 214 unsafe impl ::std::marker::Sync for BarcodeScanner {} 215 #[repr(transparent)] 216 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 217 pub struct BarcodeScannerCapabilities(::windows::runtime::IInspectable); 218 impl BarcodeScannerCapabilities { PowerReportingType(&self) -> ::windows::runtime::Result<UnifiedPosPowerReportingType>219 pub fn PowerReportingType(&self) -> ::windows::runtime::Result<UnifiedPosPowerReportingType> { 220 let this = self; 221 unsafe { 222 let mut result__: UnifiedPosPowerReportingType = ::std::mem::zeroed(); 223 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<UnifiedPosPowerReportingType>(result__) 224 } 225 } IsStatisticsReportingSupported(&self) -> ::windows::runtime::Result<bool>226 pub fn IsStatisticsReportingSupported(&self) -> ::windows::runtime::Result<bool> { 227 let this = self; 228 unsafe { 229 let mut result__: bool = ::std::mem::zeroed(); 230 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 231 } 232 } IsStatisticsUpdatingSupported(&self) -> ::windows::runtime::Result<bool>233 pub fn IsStatisticsUpdatingSupported(&self) -> ::windows::runtime::Result<bool> { 234 let this = self; 235 unsafe { 236 let mut result__: bool = ::std::mem::zeroed(); 237 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 238 } 239 } IsImagePreviewSupported(&self) -> ::windows::runtime::Result<bool>240 pub fn IsImagePreviewSupported(&self) -> ::windows::runtime::Result<bool> { 241 let this = self; 242 unsafe { 243 let mut result__: bool = ::std::mem::zeroed(); 244 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 245 } 246 } IsSoftwareTriggerSupported(&self) -> ::windows::runtime::Result<bool>247 pub fn IsSoftwareTriggerSupported(&self) -> ::windows::runtime::Result<bool> { 248 let this = &::windows::runtime::Interface::cast::<IBarcodeScannerCapabilities1>(self)?; 249 unsafe { 250 let mut result__: bool = ::std::mem::zeroed(); 251 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 252 } 253 } IsVideoPreviewSupported(&self) -> ::windows::runtime::Result<bool>254 pub fn IsVideoPreviewSupported(&self) -> ::windows::runtime::Result<bool> { 255 let this = &::windows::runtime::Interface::cast::<IBarcodeScannerCapabilities2>(self)?; 256 unsafe { 257 let mut result__: bool = ::std::mem::zeroed(); 258 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 259 } 260 } 261 } 262 unsafe impl ::windows::runtime::RuntimeType for BarcodeScannerCapabilities { 263 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.BarcodeScannerCapabilities;{c60691e4-f2c8-4420-a307-b12ef6622857})"); 264 } 265 unsafe impl ::windows::runtime::Interface for BarcodeScannerCapabilities { 266 type Vtable = IBarcodeScannerCapabilities_abi; 267 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3322319332, 62152, 17440, [163, 7, 177, 46, 246, 98, 40, 87]); 268 } 269 impl ::windows::runtime::RuntimeName for BarcodeScannerCapabilities { 270 const NAME: &'static str = "Windows.Devices.PointOfService.BarcodeScannerCapabilities"; 271 } 272 impl ::std::convert::From<BarcodeScannerCapabilities> for ::windows::runtime::IUnknown { from(value: BarcodeScannerCapabilities) -> Self273 fn from(value: BarcodeScannerCapabilities) -> Self { 274 unsafe { ::std::mem::transmute(value) } 275 } 276 } 277 impl ::std::convert::From<&BarcodeScannerCapabilities> for ::windows::runtime::IUnknown { from(value: &BarcodeScannerCapabilities) -> Self278 fn from(value: &BarcodeScannerCapabilities) -> Self { 279 ::std::convert::From::from(::std::clone::Clone::clone(value)) 280 } 281 } 282 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for BarcodeScannerCapabilities { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>283 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 284 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 285 } 286 } 287 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &BarcodeScannerCapabilities { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>288 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 289 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 290 } 291 } 292 impl ::std::convert::From<BarcodeScannerCapabilities> for ::windows::runtime::IInspectable { from(value: BarcodeScannerCapabilities) -> Self293 fn from(value: BarcodeScannerCapabilities) -> Self { 294 value.0 295 } 296 } 297 impl ::std::convert::From<&BarcodeScannerCapabilities> for ::windows::runtime::IInspectable { from(value: &BarcodeScannerCapabilities) -> Self298 fn from(value: &BarcodeScannerCapabilities) -> Self { 299 value.0.clone() 300 } 301 } 302 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for BarcodeScannerCapabilities { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>303 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 304 ::windows::runtime::Param::Owned(self.0) 305 } 306 } 307 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a BarcodeScannerCapabilities { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>308 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 309 ::windows::runtime::Param::Borrowed(&self.0) 310 } 311 } 312 unsafe impl ::std::marker::Send for BarcodeScannerCapabilities {} 313 unsafe impl ::std::marker::Sync for BarcodeScannerCapabilities {} 314 #[repr(transparent)] 315 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 316 pub struct BarcodeScannerDataReceivedEventArgs(::windows::runtime::IInspectable); 317 impl BarcodeScannerDataReceivedEventArgs { Report(&self) -> ::windows::runtime::Result<BarcodeScannerReport>318 pub fn Report(&self) -> ::windows::runtime::Result<BarcodeScannerReport> { 319 let this = self; 320 unsafe { 321 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 322 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<BarcodeScannerReport>(result__) 323 } 324 } 325 } 326 unsafe impl ::windows::runtime::RuntimeType for BarcodeScannerDataReceivedEventArgs { 327 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.BarcodeScannerDataReceivedEventArgs;{4234a7e2-ed97-467d-ad2b-01e44313a929})"); 328 } 329 unsafe impl ::windows::runtime::Interface for BarcodeScannerDataReceivedEventArgs { 330 type Vtable = IBarcodeScannerDataReceivedEventArgs_abi; 331 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1110747106, 60823, 18045, [173, 43, 1, 228, 67, 19, 169, 41]); 332 } 333 impl ::windows::runtime::RuntimeName for BarcodeScannerDataReceivedEventArgs { 334 const NAME: &'static str = "Windows.Devices.PointOfService.BarcodeScannerDataReceivedEventArgs"; 335 } 336 impl ::std::convert::From<BarcodeScannerDataReceivedEventArgs> for ::windows::runtime::IUnknown { from(value: BarcodeScannerDataReceivedEventArgs) -> Self337 fn from(value: BarcodeScannerDataReceivedEventArgs) -> Self { 338 unsafe { ::std::mem::transmute(value) } 339 } 340 } 341 impl ::std::convert::From<&BarcodeScannerDataReceivedEventArgs> for ::windows::runtime::IUnknown { from(value: &BarcodeScannerDataReceivedEventArgs) -> Self342 fn from(value: &BarcodeScannerDataReceivedEventArgs) -> Self { 343 ::std::convert::From::from(::std::clone::Clone::clone(value)) 344 } 345 } 346 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for BarcodeScannerDataReceivedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>347 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 348 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 349 } 350 } 351 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &BarcodeScannerDataReceivedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>352 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 353 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 354 } 355 } 356 impl ::std::convert::From<BarcodeScannerDataReceivedEventArgs> for ::windows::runtime::IInspectable { from(value: BarcodeScannerDataReceivedEventArgs) -> Self357 fn from(value: BarcodeScannerDataReceivedEventArgs) -> Self { 358 value.0 359 } 360 } 361 impl ::std::convert::From<&BarcodeScannerDataReceivedEventArgs> for ::windows::runtime::IInspectable { from(value: &BarcodeScannerDataReceivedEventArgs) -> Self362 fn from(value: &BarcodeScannerDataReceivedEventArgs) -> Self { 363 value.0.clone() 364 } 365 } 366 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for BarcodeScannerDataReceivedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>367 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 368 ::windows::runtime::Param::Owned(self.0) 369 } 370 } 371 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a BarcodeScannerDataReceivedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>372 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 373 ::windows::runtime::Param::Borrowed(&self.0) 374 } 375 } 376 unsafe impl ::std::marker::Send for BarcodeScannerDataReceivedEventArgs {} 377 unsafe impl ::std::marker::Sync for BarcodeScannerDataReceivedEventArgs {} 378 #[repr(transparent)] 379 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 380 pub struct BarcodeScannerErrorOccurredEventArgs(::windows::runtime::IInspectable); 381 impl BarcodeScannerErrorOccurredEventArgs { PartialInputData(&self) -> ::windows::runtime::Result<BarcodeScannerReport>382 pub fn PartialInputData(&self) -> ::windows::runtime::Result<BarcodeScannerReport> { 383 let this = self; 384 unsafe { 385 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 386 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<BarcodeScannerReport>(result__) 387 } 388 } IsRetriable(&self) -> ::windows::runtime::Result<bool>389 pub fn IsRetriable(&self) -> ::windows::runtime::Result<bool> { 390 let this = self; 391 unsafe { 392 let mut result__: bool = ::std::mem::zeroed(); 393 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 394 } 395 } ErrorData(&self) -> ::windows::runtime::Result<UnifiedPosErrorData>396 pub fn ErrorData(&self) -> ::windows::runtime::Result<UnifiedPosErrorData> { 397 let this = self; 398 unsafe { 399 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 400 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<UnifiedPosErrorData>(result__) 401 } 402 } 403 } 404 unsafe impl ::windows::runtime::RuntimeType for BarcodeScannerErrorOccurredEventArgs { 405 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.BarcodeScannerErrorOccurredEventArgs;{2cd2602f-cf3a-4002-a75a-c5ec468f0a20})"); 406 } 407 unsafe impl ::windows::runtime::Interface for BarcodeScannerErrorOccurredEventArgs { 408 type Vtable = IBarcodeScannerErrorOccurredEventArgs_abi; 409 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(751984687, 53050, 16386, [167, 90, 197, 236, 70, 143, 10, 32]); 410 } 411 impl ::windows::runtime::RuntimeName for BarcodeScannerErrorOccurredEventArgs { 412 const NAME: &'static str = "Windows.Devices.PointOfService.BarcodeScannerErrorOccurredEventArgs"; 413 } 414 impl ::std::convert::From<BarcodeScannerErrorOccurredEventArgs> for ::windows::runtime::IUnknown { from(value: BarcodeScannerErrorOccurredEventArgs) -> Self415 fn from(value: BarcodeScannerErrorOccurredEventArgs) -> Self { 416 unsafe { ::std::mem::transmute(value) } 417 } 418 } 419 impl ::std::convert::From<&BarcodeScannerErrorOccurredEventArgs> for ::windows::runtime::IUnknown { from(value: &BarcodeScannerErrorOccurredEventArgs) -> Self420 fn from(value: &BarcodeScannerErrorOccurredEventArgs) -> Self { 421 ::std::convert::From::from(::std::clone::Clone::clone(value)) 422 } 423 } 424 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for BarcodeScannerErrorOccurredEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>425 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 426 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 427 } 428 } 429 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &BarcodeScannerErrorOccurredEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>430 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 431 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 432 } 433 } 434 impl ::std::convert::From<BarcodeScannerErrorOccurredEventArgs> for ::windows::runtime::IInspectable { from(value: BarcodeScannerErrorOccurredEventArgs) -> Self435 fn from(value: BarcodeScannerErrorOccurredEventArgs) -> Self { 436 value.0 437 } 438 } 439 impl ::std::convert::From<&BarcodeScannerErrorOccurredEventArgs> for ::windows::runtime::IInspectable { from(value: &BarcodeScannerErrorOccurredEventArgs) -> Self440 fn from(value: &BarcodeScannerErrorOccurredEventArgs) -> Self { 441 value.0.clone() 442 } 443 } 444 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for BarcodeScannerErrorOccurredEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>445 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 446 ::windows::runtime::Param::Owned(self.0) 447 } 448 } 449 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a BarcodeScannerErrorOccurredEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>450 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 451 ::windows::runtime::Param::Borrowed(&self.0) 452 } 453 } 454 unsafe impl ::std::marker::Send for BarcodeScannerErrorOccurredEventArgs {} 455 unsafe impl ::std::marker::Sync for BarcodeScannerErrorOccurredEventArgs {} 456 #[repr(transparent)] 457 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 458 pub struct BarcodeScannerImagePreviewReceivedEventArgs(::windows::runtime::IInspectable); 459 impl BarcodeScannerImagePreviewReceivedEventArgs { 460 #[cfg(feature = "Storage_Streams")] Preview(&self) -> ::windows::runtime::Result<super::super::Storage::Streams::IRandomAccessStreamWithContentType>461 pub fn Preview(&self) -> ::windows::runtime::Result<super::super::Storage::Streams::IRandomAccessStreamWithContentType> { 462 let this = self; 463 unsafe { 464 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 465 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Storage::Streams::IRandomAccessStreamWithContentType>(result__) 466 } 467 } 468 } 469 unsafe impl ::windows::runtime::RuntimeType for BarcodeScannerImagePreviewReceivedEventArgs { 470 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.BarcodeScannerImagePreviewReceivedEventArgs;{f3b7de85-6e8b-434e-9f58-06ef26bc4baf})"); 471 } 472 unsafe impl ::windows::runtime::Interface for BarcodeScannerImagePreviewReceivedEventArgs { 473 type Vtable = IBarcodeScannerImagePreviewReceivedEventArgs_abi; 474 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4088913541, 28299, 17230, [159, 88, 6, 239, 38, 188, 75, 175]); 475 } 476 impl ::windows::runtime::RuntimeName for BarcodeScannerImagePreviewReceivedEventArgs { 477 const NAME: &'static str = "Windows.Devices.PointOfService.BarcodeScannerImagePreviewReceivedEventArgs"; 478 } 479 impl ::std::convert::From<BarcodeScannerImagePreviewReceivedEventArgs> for ::windows::runtime::IUnknown { from(value: BarcodeScannerImagePreviewReceivedEventArgs) -> Self480 fn from(value: BarcodeScannerImagePreviewReceivedEventArgs) -> Self { 481 unsafe { ::std::mem::transmute(value) } 482 } 483 } 484 impl ::std::convert::From<&BarcodeScannerImagePreviewReceivedEventArgs> for ::windows::runtime::IUnknown { from(value: &BarcodeScannerImagePreviewReceivedEventArgs) -> Self485 fn from(value: &BarcodeScannerImagePreviewReceivedEventArgs) -> Self { 486 ::std::convert::From::from(::std::clone::Clone::clone(value)) 487 } 488 } 489 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for BarcodeScannerImagePreviewReceivedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>490 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 491 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 492 } 493 } 494 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &BarcodeScannerImagePreviewReceivedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>495 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 496 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 497 } 498 } 499 impl ::std::convert::From<BarcodeScannerImagePreviewReceivedEventArgs> for ::windows::runtime::IInspectable { from(value: BarcodeScannerImagePreviewReceivedEventArgs) -> Self500 fn from(value: BarcodeScannerImagePreviewReceivedEventArgs) -> Self { 501 value.0 502 } 503 } 504 impl ::std::convert::From<&BarcodeScannerImagePreviewReceivedEventArgs> for ::windows::runtime::IInspectable { from(value: &BarcodeScannerImagePreviewReceivedEventArgs) -> Self505 fn from(value: &BarcodeScannerImagePreviewReceivedEventArgs) -> Self { 506 value.0.clone() 507 } 508 } 509 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for BarcodeScannerImagePreviewReceivedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>510 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 511 ::windows::runtime::Param::Owned(self.0) 512 } 513 } 514 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a BarcodeScannerImagePreviewReceivedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>515 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 516 ::windows::runtime::Param::Borrowed(&self.0) 517 } 518 } 519 unsafe impl ::std::marker::Send for BarcodeScannerImagePreviewReceivedEventArgs {} 520 unsafe impl ::std::marker::Sync for BarcodeScannerImagePreviewReceivedEventArgs {} 521 #[repr(transparent)] 522 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 523 pub struct BarcodeScannerReport(::windows::runtime::IInspectable); 524 impl BarcodeScannerReport { ScanDataType(&self) -> ::windows::runtime::Result<u32>525 pub fn ScanDataType(&self) -> ::windows::runtime::Result<u32> { 526 let this = self; 527 unsafe { 528 let mut result__: u32 = ::std::mem::zeroed(); 529 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 530 } 531 } 532 #[cfg(feature = "Storage_Streams")] ScanData(&self) -> ::windows::runtime::Result<super::super::Storage::Streams::IBuffer>533 pub fn ScanData(&self) -> ::windows::runtime::Result<super::super::Storage::Streams::IBuffer> { 534 let this = self; 535 unsafe { 536 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 537 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Storage::Streams::IBuffer>(result__) 538 } 539 } 540 #[cfg(feature = "Storage_Streams")] ScanDataLabel(&self) -> ::windows::runtime::Result<super::super::Storage::Streams::IBuffer>541 pub fn ScanDataLabel(&self) -> ::windows::runtime::Result<super::super::Storage::Streams::IBuffer> { 542 let this = self; 543 unsafe { 544 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 545 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Storage::Streams::IBuffer>(result__) 546 } 547 } 548 #[cfg(feature = "Storage_Streams")] CreateInstance<'a, Param1: ::windows::runtime::IntoParam<'a, super::super::Storage::Streams::IBuffer>, Param2: ::windows::runtime::IntoParam<'a, super::super::Storage::Streams::IBuffer>>(scandatatype: u32, scandata: Param1, scandatalabel: Param2) -> ::windows::runtime::Result<BarcodeScannerReport>549 pub fn CreateInstance<'a, Param1: ::windows::runtime::IntoParam<'a, super::super::Storage::Streams::IBuffer>, Param2: ::windows::runtime::IntoParam<'a, super::super::Storage::Streams::IBuffer>>(scandatatype: u32, scandata: Param1, scandatalabel: Param2) -> ::windows::runtime::Result<BarcodeScannerReport> { 550 Self::IBarcodeScannerReportFactory(|this| unsafe { 551 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 552 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), scandatatype, scandata.into_param().abi(), scandatalabel.into_param().abi(), &mut result__).from_abi::<BarcodeScannerReport>(result__) 553 }) 554 } IBarcodeScannerReportFactory<R, F: FnOnce(&IBarcodeScannerReportFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>555 pub fn IBarcodeScannerReportFactory<R, F: FnOnce(&IBarcodeScannerReportFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 556 static mut SHARED: ::windows::runtime::FactoryCache<BarcodeScannerReport, IBarcodeScannerReportFactory> = ::windows::runtime::FactoryCache::new(); 557 unsafe { SHARED.call(callback) } 558 } 559 } 560 unsafe impl ::windows::runtime::RuntimeType for BarcodeScannerReport { 561 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.BarcodeScannerReport;{5ce4d8b0-a489-4b96-86c4-f0bf8a37753d})"); 562 } 563 unsafe impl ::windows::runtime::Interface for BarcodeScannerReport { 564 type Vtable = IBarcodeScannerReport_abi; 565 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1558501552, 42121, 19350, [134, 196, 240, 191, 138, 55, 117, 61]); 566 } 567 impl ::windows::runtime::RuntimeName for BarcodeScannerReport { 568 const NAME: &'static str = "Windows.Devices.PointOfService.BarcodeScannerReport"; 569 } 570 impl ::std::convert::From<BarcodeScannerReport> for ::windows::runtime::IUnknown { from(value: BarcodeScannerReport) -> Self571 fn from(value: BarcodeScannerReport) -> Self { 572 unsafe { ::std::mem::transmute(value) } 573 } 574 } 575 impl ::std::convert::From<&BarcodeScannerReport> for ::windows::runtime::IUnknown { from(value: &BarcodeScannerReport) -> Self576 fn from(value: &BarcodeScannerReport) -> Self { 577 ::std::convert::From::from(::std::clone::Clone::clone(value)) 578 } 579 } 580 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for BarcodeScannerReport { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>581 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 582 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 583 } 584 } 585 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &BarcodeScannerReport { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>586 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 587 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 588 } 589 } 590 impl ::std::convert::From<BarcodeScannerReport> for ::windows::runtime::IInspectable { from(value: BarcodeScannerReport) -> Self591 fn from(value: BarcodeScannerReport) -> Self { 592 value.0 593 } 594 } 595 impl ::std::convert::From<&BarcodeScannerReport> for ::windows::runtime::IInspectable { from(value: &BarcodeScannerReport) -> Self596 fn from(value: &BarcodeScannerReport) -> Self { 597 value.0.clone() 598 } 599 } 600 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for BarcodeScannerReport { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>601 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 602 ::windows::runtime::Param::Owned(self.0) 603 } 604 } 605 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a BarcodeScannerReport { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>606 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 607 ::windows::runtime::Param::Borrowed(&self.0) 608 } 609 } 610 unsafe impl ::std::marker::Send for BarcodeScannerReport {} 611 unsafe impl ::std::marker::Sync for BarcodeScannerReport {} 612 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 613 #[repr(transparent)] 614 pub struct BarcodeScannerStatus(pub i32); 615 impl BarcodeScannerStatus { 616 pub const Online: BarcodeScannerStatus = BarcodeScannerStatus(0i32); 617 pub const Off: BarcodeScannerStatus = BarcodeScannerStatus(1i32); 618 pub const Offline: BarcodeScannerStatus = BarcodeScannerStatus(2i32); 619 pub const OffOrOffline: BarcodeScannerStatus = BarcodeScannerStatus(3i32); 620 pub const Extended: BarcodeScannerStatus = BarcodeScannerStatus(4i32); 621 } 622 impl ::std::convert::From<i32> for BarcodeScannerStatus { from(value: i32) -> Self623 fn from(value: i32) -> Self { 624 Self(value) 625 } 626 } 627 unsafe impl ::windows::runtime::Abi for BarcodeScannerStatus { 628 type Abi = Self; 629 type DefaultType = Self; 630 } 631 unsafe impl ::windows::runtime::RuntimeType for BarcodeScannerStatus { 632 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Devices.PointOfService.BarcodeScannerStatus;i4)"); 633 } 634 #[repr(transparent)] 635 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 636 pub struct BarcodeScannerStatusUpdatedEventArgs(::windows::runtime::IInspectable); 637 impl BarcodeScannerStatusUpdatedEventArgs { Status(&self) -> ::windows::runtime::Result<BarcodeScannerStatus>638 pub fn Status(&self) -> ::windows::runtime::Result<BarcodeScannerStatus> { 639 let this = self; 640 unsafe { 641 let mut result__: BarcodeScannerStatus = ::std::mem::zeroed(); 642 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<BarcodeScannerStatus>(result__) 643 } 644 } ExtendedStatus(&self) -> ::windows::runtime::Result<u32>645 pub fn ExtendedStatus(&self) -> ::windows::runtime::Result<u32> { 646 let this = self; 647 unsafe { 648 let mut result__: u32 = ::std::mem::zeroed(); 649 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 650 } 651 } 652 } 653 unsafe impl ::windows::runtime::RuntimeType for BarcodeScannerStatusUpdatedEventArgs { 654 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.BarcodeScannerStatusUpdatedEventArgs;{355d8586-9c43-462b-a91a-816dc97f452c})"); 655 } 656 unsafe impl ::windows::runtime::Interface for BarcodeScannerStatusUpdatedEventArgs { 657 type Vtable = IBarcodeScannerStatusUpdatedEventArgs_abi; 658 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(895321478, 40003, 17963, [169, 26, 129, 109, 201, 127, 69, 44]); 659 } 660 impl ::windows::runtime::RuntimeName for BarcodeScannerStatusUpdatedEventArgs { 661 const NAME: &'static str = "Windows.Devices.PointOfService.BarcodeScannerStatusUpdatedEventArgs"; 662 } 663 impl ::std::convert::From<BarcodeScannerStatusUpdatedEventArgs> for ::windows::runtime::IUnknown { from(value: BarcodeScannerStatusUpdatedEventArgs) -> Self664 fn from(value: BarcodeScannerStatusUpdatedEventArgs) -> Self { 665 unsafe { ::std::mem::transmute(value) } 666 } 667 } 668 impl ::std::convert::From<&BarcodeScannerStatusUpdatedEventArgs> for ::windows::runtime::IUnknown { from(value: &BarcodeScannerStatusUpdatedEventArgs) -> Self669 fn from(value: &BarcodeScannerStatusUpdatedEventArgs) -> Self { 670 ::std::convert::From::from(::std::clone::Clone::clone(value)) 671 } 672 } 673 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for BarcodeScannerStatusUpdatedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>674 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 675 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 676 } 677 } 678 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &BarcodeScannerStatusUpdatedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>679 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 680 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 681 } 682 } 683 impl ::std::convert::From<BarcodeScannerStatusUpdatedEventArgs> for ::windows::runtime::IInspectable { from(value: BarcodeScannerStatusUpdatedEventArgs) -> Self684 fn from(value: BarcodeScannerStatusUpdatedEventArgs) -> Self { 685 value.0 686 } 687 } 688 impl ::std::convert::From<&BarcodeScannerStatusUpdatedEventArgs> for ::windows::runtime::IInspectable { from(value: &BarcodeScannerStatusUpdatedEventArgs) -> Self689 fn from(value: &BarcodeScannerStatusUpdatedEventArgs) -> Self { 690 value.0.clone() 691 } 692 } 693 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for BarcodeScannerStatusUpdatedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>694 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 695 ::windows::runtime::Param::Owned(self.0) 696 } 697 } 698 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a BarcodeScannerStatusUpdatedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>699 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 700 ::windows::runtime::Param::Borrowed(&self.0) 701 } 702 } 703 unsafe impl ::std::marker::Send for BarcodeScannerStatusUpdatedEventArgs {} 704 unsafe impl ::std::marker::Sync for BarcodeScannerStatusUpdatedEventArgs {} 705 pub struct BarcodeSymbologies {} 706 impl BarcodeSymbologies { Unknown() -> ::windows::runtime::Result<u32>707 pub fn Unknown() -> ::windows::runtime::Result<u32> { 708 Self::IBarcodeSymbologiesStatics(|this| unsafe { 709 let mut result__: u32 = ::std::mem::zeroed(); 710 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 711 }) 712 } Ean8() -> ::windows::runtime::Result<u32>713 pub fn Ean8() -> ::windows::runtime::Result<u32> { 714 Self::IBarcodeSymbologiesStatics(|this| unsafe { 715 let mut result__: u32 = ::std::mem::zeroed(); 716 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 717 }) 718 } Ean8Add2() -> ::windows::runtime::Result<u32>719 pub fn Ean8Add2() -> ::windows::runtime::Result<u32> { 720 Self::IBarcodeSymbologiesStatics(|this| unsafe { 721 let mut result__: u32 = ::std::mem::zeroed(); 722 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 723 }) 724 } Ean8Add5() -> ::windows::runtime::Result<u32>725 pub fn Ean8Add5() -> ::windows::runtime::Result<u32> { 726 Self::IBarcodeSymbologiesStatics(|this| unsafe { 727 let mut result__: u32 = ::std::mem::zeroed(); 728 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 729 }) 730 } Eanv() -> ::windows::runtime::Result<u32>731 pub fn Eanv() -> ::windows::runtime::Result<u32> { 732 Self::IBarcodeSymbologiesStatics(|this| unsafe { 733 let mut result__: u32 = ::std::mem::zeroed(); 734 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 735 }) 736 } EanvAdd2() -> ::windows::runtime::Result<u32>737 pub fn EanvAdd2() -> ::windows::runtime::Result<u32> { 738 Self::IBarcodeSymbologiesStatics(|this| unsafe { 739 let mut result__: u32 = ::std::mem::zeroed(); 740 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 741 }) 742 } EanvAdd5() -> ::windows::runtime::Result<u32>743 pub fn EanvAdd5() -> ::windows::runtime::Result<u32> { 744 Self::IBarcodeSymbologiesStatics(|this| unsafe { 745 let mut result__: u32 = ::std::mem::zeroed(); 746 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 747 }) 748 } Ean13() -> ::windows::runtime::Result<u32>749 pub fn Ean13() -> ::windows::runtime::Result<u32> { 750 Self::IBarcodeSymbologiesStatics(|this| unsafe { 751 let mut result__: u32 = ::std::mem::zeroed(); 752 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 753 }) 754 } Ean13Add2() -> ::windows::runtime::Result<u32>755 pub fn Ean13Add2() -> ::windows::runtime::Result<u32> { 756 Self::IBarcodeSymbologiesStatics(|this| unsafe { 757 let mut result__: u32 = ::std::mem::zeroed(); 758 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 759 }) 760 } Ean13Add5() -> ::windows::runtime::Result<u32>761 pub fn Ean13Add5() -> ::windows::runtime::Result<u32> { 762 Self::IBarcodeSymbologiesStatics(|this| unsafe { 763 let mut result__: u32 = ::std::mem::zeroed(); 764 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 765 }) 766 } Isbn() -> ::windows::runtime::Result<u32>767 pub fn Isbn() -> ::windows::runtime::Result<u32> { 768 Self::IBarcodeSymbologiesStatics(|this| unsafe { 769 let mut result__: u32 = ::std::mem::zeroed(); 770 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 771 }) 772 } IsbnAdd5() -> ::windows::runtime::Result<u32>773 pub fn IsbnAdd5() -> ::windows::runtime::Result<u32> { 774 Self::IBarcodeSymbologiesStatics(|this| unsafe { 775 let mut result__: u32 = ::std::mem::zeroed(); 776 (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 777 }) 778 } Ismn() -> ::windows::runtime::Result<u32>779 pub fn Ismn() -> ::windows::runtime::Result<u32> { 780 Self::IBarcodeSymbologiesStatics(|this| unsafe { 781 let mut result__: u32 = ::std::mem::zeroed(); 782 (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 783 }) 784 } IsmnAdd2() -> ::windows::runtime::Result<u32>785 pub fn IsmnAdd2() -> ::windows::runtime::Result<u32> { 786 Self::IBarcodeSymbologiesStatics(|this| unsafe { 787 let mut result__: u32 = ::std::mem::zeroed(); 788 (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 789 }) 790 } IsmnAdd5() -> ::windows::runtime::Result<u32>791 pub fn IsmnAdd5() -> ::windows::runtime::Result<u32> { 792 Self::IBarcodeSymbologiesStatics(|this| unsafe { 793 let mut result__: u32 = ::std::mem::zeroed(); 794 (::windows::runtime::Interface::vtable(this).20)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 795 }) 796 } Issn() -> ::windows::runtime::Result<u32>797 pub fn Issn() -> ::windows::runtime::Result<u32> { 798 Self::IBarcodeSymbologiesStatics(|this| unsafe { 799 let mut result__: u32 = ::std::mem::zeroed(); 800 (::windows::runtime::Interface::vtable(this).21)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 801 }) 802 } IssnAdd2() -> ::windows::runtime::Result<u32>803 pub fn IssnAdd2() -> ::windows::runtime::Result<u32> { 804 Self::IBarcodeSymbologiesStatics(|this| unsafe { 805 let mut result__: u32 = ::std::mem::zeroed(); 806 (::windows::runtime::Interface::vtable(this).22)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 807 }) 808 } IssnAdd5() -> ::windows::runtime::Result<u32>809 pub fn IssnAdd5() -> ::windows::runtime::Result<u32> { 810 Self::IBarcodeSymbologiesStatics(|this| unsafe { 811 let mut result__: u32 = ::std::mem::zeroed(); 812 (::windows::runtime::Interface::vtable(this).23)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 813 }) 814 } Ean99() -> ::windows::runtime::Result<u32>815 pub fn Ean99() -> ::windows::runtime::Result<u32> { 816 Self::IBarcodeSymbologiesStatics(|this| unsafe { 817 let mut result__: u32 = ::std::mem::zeroed(); 818 (::windows::runtime::Interface::vtable(this).24)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 819 }) 820 } Ean99Add2() -> ::windows::runtime::Result<u32>821 pub fn Ean99Add2() -> ::windows::runtime::Result<u32> { 822 Self::IBarcodeSymbologiesStatics(|this| unsafe { 823 let mut result__: u32 = ::std::mem::zeroed(); 824 (::windows::runtime::Interface::vtable(this).25)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 825 }) 826 } Ean99Add5() -> ::windows::runtime::Result<u32>827 pub fn Ean99Add5() -> ::windows::runtime::Result<u32> { 828 Self::IBarcodeSymbologiesStatics(|this| unsafe { 829 let mut result__: u32 = ::std::mem::zeroed(); 830 (::windows::runtime::Interface::vtable(this).26)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 831 }) 832 } Upca() -> ::windows::runtime::Result<u32>833 pub fn Upca() -> ::windows::runtime::Result<u32> { 834 Self::IBarcodeSymbologiesStatics(|this| unsafe { 835 let mut result__: u32 = ::std::mem::zeroed(); 836 (::windows::runtime::Interface::vtable(this).27)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 837 }) 838 } UpcaAdd2() -> ::windows::runtime::Result<u32>839 pub fn UpcaAdd2() -> ::windows::runtime::Result<u32> { 840 Self::IBarcodeSymbologiesStatics(|this| unsafe { 841 let mut result__: u32 = ::std::mem::zeroed(); 842 (::windows::runtime::Interface::vtable(this).28)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 843 }) 844 } UpcaAdd5() -> ::windows::runtime::Result<u32>845 pub fn UpcaAdd5() -> ::windows::runtime::Result<u32> { 846 Self::IBarcodeSymbologiesStatics(|this| unsafe { 847 let mut result__: u32 = ::std::mem::zeroed(); 848 (::windows::runtime::Interface::vtable(this).29)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 849 }) 850 } Upce() -> ::windows::runtime::Result<u32>851 pub fn Upce() -> ::windows::runtime::Result<u32> { 852 Self::IBarcodeSymbologiesStatics(|this| unsafe { 853 let mut result__: u32 = ::std::mem::zeroed(); 854 (::windows::runtime::Interface::vtable(this).30)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 855 }) 856 } UpceAdd2() -> ::windows::runtime::Result<u32>857 pub fn UpceAdd2() -> ::windows::runtime::Result<u32> { 858 Self::IBarcodeSymbologiesStatics(|this| unsafe { 859 let mut result__: u32 = ::std::mem::zeroed(); 860 (::windows::runtime::Interface::vtable(this).31)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 861 }) 862 } UpceAdd5() -> ::windows::runtime::Result<u32>863 pub fn UpceAdd5() -> ::windows::runtime::Result<u32> { 864 Self::IBarcodeSymbologiesStatics(|this| unsafe { 865 let mut result__: u32 = ::std::mem::zeroed(); 866 (::windows::runtime::Interface::vtable(this).32)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 867 }) 868 } UpcCoupon() -> ::windows::runtime::Result<u32>869 pub fn UpcCoupon() -> ::windows::runtime::Result<u32> { 870 Self::IBarcodeSymbologiesStatics(|this| unsafe { 871 let mut result__: u32 = ::std::mem::zeroed(); 872 (::windows::runtime::Interface::vtable(this).33)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 873 }) 874 } TfStd() -> ::windows::runtime::Result<u32>875 pub fn TfStd() -> ::windows::runtime::Result<u32> { 876 Self::IBarcodeSymbologiesStatics(|this| unsafe { 877 let mut result__: u32 = ::std::mem::zeroed(); 878 (::windows::runtime::Interface::vtable(this).34)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 879 }) 880 } TfDis() -> ::windows::runtime::Result<u32>881 pub fn TfDis() -> ::windows::runtime::Result<u32> { 882 Self::IBarcodeSymbologiesStatics(|this| unsafe { 883 let mut result__: u32 = ::std::mem::zeroed(); 884 (::windows::runtime::Interface::vtable(this).35)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 885 }) 886 } TfInt() -> ::windows::runtime::Result<u32>887 pub fn TfInt() -> ::windows::runtime::Result<u32> { 888 Self::IBarcodeSymbologiesStatics(|this| unsafe { 889 let mut result__: u32 = ::std::mem::zeroed(); 890 (::windows::runtime::Interface::vtable(this).36)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 891 }) 892 } TfInd() -> ::windows::runtime::Result<u32>893 pub fn TfInd() -> ::windows::runtime::Result<u32> { 894 Self::IBarcodeSymbologiesStatics(|this| unsafe { 895 let mut result__: u32 = ::std::mem::zeroed(); 896 (::windows::runtime::Interface::vtable(this).37)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 897 }) 898 } TfMat() -> ::windows::runtime::Result<u32>899 pub fn TfMat() -> ::windows::runtime::Result<u32> { 900 Self::IBarcodeSymbologiesStatics(|this| unsafe { 901 let mut result__: u32 = ::std::mem::zeroed(); 902 (::windows::runtime::Interface::vtable(this).38)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 903 }) 904 } TfIata() -> ::windows::runtime::Result<u32>905 pub fn TfIata() -> ::windows::runtime::Result<u32> { 906 Self::IBarcodeSymbologiesStatics(|this| unsafe { 907 let mut result__: u32 = ::std::mem::zeroed(); 908 (::windows::runtime::Interface::vtable(this).39)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 909 }) 910 } Gs1DatabarType1() -> ::windows::runtime::Result<u32>911 pub fn Gs1DatabarType1() -> ::windows::runtime::Result<u32> { 912 Self::IBarcodeSymbologiesStatics(|this| unsafe { 913 let mut result__: u32 = ::std::mem::zeroed(); 914 (::windows::runtime::Interface::vtable(this).40)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 915 }) 916 } Gs1DatabarType2() -> ::windows::runtime::Result<u32>917 pub fn Gs1DatabarType2() -> ::windows::runtime::Result<u32> { 918 Self::IBarcodeSymbologiesStatics(|this| unsafe { 919 let mut result__: u32 = ::std::mem::zeroed(); 920 (::windows::runtime::Interface::vtable(this).41)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 921 }) 922 } Gs1DatabarType3() -> ::windows::runtime::Result<u32>923 pub fn Gs1DatabarType3() -> ::windows::runtime::Result<u32> { 924 Self::IBarcodeSymbologiesStatics(|this| unsafe { 925 let mut result__: u32 = ::std::mem::zeroed(); 926 (::windows::runtime::Interface::vtable(this).42)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 927 }) 928 } Code39() -> ::windows::runtime::Result<u32>929 pub fn Code39() -> ::windows::runtime::Result<u32> { 930 Self::IBarcodeSymbologiesStatics(|this| unsafe { 931 let mut result__: u32 = ::std::mem::zeroed(); 932 (::windows::runtime::Interface::vtable(this).43)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 933 }) 934 } Code39Ex() -> ::windows::runtime::Result<u32>935 pub fn Code39Ex() -> ::windows::runtime::Result<u32> { 936 Self::IBarcodeSymbologiesStatics(|this| unsafe { 937 let mut result__: u32 = ::std::mem::zeroed(); 938 (::windows::runtime::Interface::vtable(this).44)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 939 }) 940 } Trioptic39() -> ::windows::runtime::Result<u32>941 pub fn Trioptic39() -> ::windows::runtime::Result<u32> { 942 Self::IBarcodeSymbologiesStatics(|this| unsafe { 943 let mut result__: u32 = ::std::mem::zeroed(); 944 (::windows::runtime::Interface::vtable(this).45)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 945 }) 946 } Code32() -> ::windows::runtime::Result<u32>947 pub fn Code32() -> ::windows::runtime::Result<u32> { 948 Self::IBarcodeSymbologiesStatics(|this| unsafe { 949 let mut result__: u32 = ::std::mem::zeroed(); 950 (::windows::runtime::Interface::vtable(this).46)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 951 }) 952 } Pzn() -> ::windows::runtime::Result<u32>953 pub fn Pzn() -> ::windows::runtime::Result<u32> { 954 Self::IBarcodeSymbologiesStatics(|this| unsafe { 955 let mut result__: u32 = ::std::mem::zeroed(); 956 (::windows::runtime::Interface::vtable(this).47)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 957 }) 958 } Code93() -> ::windows::runtime::Result<u32>959 pub fn Code93() -> ::windows::runtime::Result<u32> { 960 Self::IBarcodeSymbologiesStatics(|this| unsafe { 961 let mut result__: u32 = ::std::mem::zeroed(); 962 (::windows::runtime::Interface::vtable(this).48)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 963 }) 964 } Code93Ex() -> ::windows::runtime::Result<u32>965 pub fn Code93Ex() -> ::windows::runtime::Result<u32> { 966 Self::IBarcodeSymbologiesStatics(|this| unsafe { 967 let mut result__: u32 = ::std::mem::zeroed(); 968 (::windows::runtime::Interface::vtable(this).49)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 969 }) 970 } Code128() -> ::windows::runtime::Result<u32>971 pub fn Code128() -> ::windows::runtime::Result<u32> { 972 Self::IBarcodeSymbologiesStatics(|this| unsafe { 973 let mut result__: u32 = ::std::mem::zeroed(); 974 (::windows::runtime::Interface::vtable(this).50)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 975 }) 976 } Gs1128() -> ::windows::runtime::Result<u32>977 pub fn Gs1128() -> ::windows::runtime::Result<u32> { 978 Self::IBarcodeSymbologiesStatics(|this| unsafe { 979 let mut result__: u32 = ::std::mem::zeroed(); 980 (::windows::runtime::Interface::vtable(this).51)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 981 }) 982 } Gs1128Coupon() -> ::windows::runtime::Result<u32>983 pub fn Gs1128Coupon() -> ::windows::runtime::Result<u32> { 984 Self::IBarcodeSymbologiesStatics(|this| unsafe { 985 let mut result__: u32 = ::std::mem::zeroed(); 986 (::windows::runtime::Interface::vtable(this).52)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 987 }) 988 } UccEan128() -> ::windows::runtime::Result<u32>989 pub fn UccEan128() -> ::windows::runtime::Result<u32> { 990 Self::IBarcodeSymbologiesStatics(|this| unsafe { 991 let mut result__: u32 = ::std::mem::zeroed(); 992 (::windows::runtime::Interface::vtable(this).53)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 993 }) 994 } Sisac() -> ::windows::runtime::Result<u32>995 pub fn Sisac() -> ::windows::runtime::Result<u32> { 996 Self::IBarcodeSymbologiesStatics(|this| unsafe { 997 let mut result__: u32 = ::std::mem::zeroed(); 998 (::windows::runtime::Interface::vtable(this).54)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 999 }) 1000 } Isbt() -> ::windows::runtime::Result<u32>1001 pub fn Isbt() -> ::windows::runtime::Result<u32> { 1002 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1003 let mut result__: u32 = ::std::mem::zeroed(); 1004 (::windows::runtime::Interface::vtable(this).55)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1005 }) 1006 } Codabar() -> ::windows::runtime::Result<u32>1007 pub fn Codabar() -> ::windows::runtime::Result<u32> { 1008 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1009 let mut result__: u32 = ::std::mem::zeroed(); 1010 (::windows::runtime::Interface::vtable(this).56)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1011 }) 1012 } Code11() -> ::windows::runtime::Result<u32>1013 pub fn Code11() -> ::windows::runtime::Result<u32> { 1014 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1015 let mut result__: u32 = ::std::mem::zeroed(); 1016 (::windows::runtime::Interface::vtable(this).57)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1017 }) 1018 } Msi() -> ::windows::runtime::Result<u32>1019 pub fn Msi() -> ::windows::runtime::Result<u32> { 1020 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1021 let mut result__: u32 = ::std::mem::zeroed(); 1022 (::windows::runtime::Interface::vtable(this).58)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1023 }) 1024 } Plessey() -> ::windows::runtime::Result<u32>1025 pub fn Plessey() -> ::windows::runtime::Result<u32> { 1026 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1027 let mut result__: u32 = ::std::mem::zeroed(); 1028 (::windows::runtime::Interface::vtable(this).59)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1029 }) 1030 } Telepen() -> ::windows::runtime::Result<u32>1031 pub fn Telepen() -> ::windows::runtime::Result<u32> { 1032 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1033 let mut result__: u32 = ::std::mem::zeroed(); 1034 (::windows::runtime::Interface::vtable(this).60)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1035 }) 1036 } Code16k() -> ::windows::runtime::Result<u32>1037 pub fn Code16k() -> ::windows::runtime::Result<u32> { 1038 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1039 let mut result__: u32 = ::std::mem::zeroed(); 1040 (::windows::runtime::Interface::vtable(this).61)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1041 }) 1042 } CodablockA() -> ::windows::runtime::Result<u32>1043 pub fn CodablockA() -> ::windows::runtime::Result<u32> { 1044 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1045 let mut result__: u32 = ::std::mem::zeroed(); 1046 (::windows::runtime::Interface::vtable(this).62)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1047 }) 1048 } CodablockF() -> ::windows::runtime::Result<u32>1049 pub fn CodablockF() -> ::windows::runtime::Result<u32> { 1050 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1051 let mut result__: u32 = ::std::mem::zeroed(); 1052 (::windows::runtime::Interface::vtable(this).63)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1053 }) 1054 } Codablock128() -> ::windows::runtime::Result<u32>1055 pub fn Codablock128() -> ::windows::runtime::Result<u32> { 1056 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1057 let mut result__: u32 = ::std::mem::zeroed(); 1058 (::windows::runtime::Interface::vtable(this).64)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1059 }) 1060 } Code49() -> ::windows::runtime::Result<u32>1061 pub fn Code49() -> ::windows::runtime::Result<u32> { 1062 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1063 let mut result__: u32 = ::std::mem::zeroed(); 1064 (::windows::runtime::Interface::vtable(this).65)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1065 }) 1066 } Aztec() -> ::windows::runtime::Result<u32>1067 pub fn Aztec() -> ::windows::runtime::Result<u32> { 1068 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1069 let mut result__: u32 = ::std::mem::zeroed(); 1070 (::windows::runtime::Interface::vtable(this).66)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1071 }) 1072 } DataCode() -> ::windows::runtime::Result<u32>1073 pub fn DataCode() -> ::windows::runtime::Result<u32> { 1074 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1075 let mut result__: u32 = ::std::mem::zeroed(); 1076 (::windows::runtime::Interface::vtable(this).67)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1077 }) 1078 } DataMatrix() -> ::windows::runtime::Result<u32>1079 pub fn DataMatrix() -> ::windows::runtime::Result<u32> { 1080 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1081 let mut result__: u32 = ::std::mem::zeroed(); 1082 (::windows::runtime::Interface::vtable(this).68)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1083 }) 1084 } HanXin() -> ::windows::runtime::Result<u32>1085 pub fn HanXin() -> ::windows::runtime::Result<u32> { 1086 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1087 let mut result__: u32 = ::std::mem::zeroed(); 1088 (::windows::runtime::Interface::vtable(this).69)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1089 }) 1090 } Maxicode() -> ::windows::runtime::Result<u32>1091 pub fn Maxicode() -> ::windows::runtime::Result<u32> { 1092 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1093 let mut result__: u32 = ::std::mem::zeroed(); 1094 (::windows::runtime::Interface::vtable(this).70)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1095 }) 1096 } MicroPdf417() -> ::windows::runtime::Result<u32>1097 pub fn MicroPdf417() -> ::windows::runtime::Result<u32> { 1098 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1099 let mut result__: u32 = ::std::mem::zeroed(); 1100 (::windows::runtime::Interface::vtable(this).71)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1101 }) 1102 } MicroQr() -> ::windows::runtime::Result<u32>1103 pub fn MicroQr() -> ::windows::runtime::Result<u32> { 1104 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1105 let mut result__: u32 = ::std::mem::zeroed(); 1106 (::windows::runtime::Interface::vtable(this).72)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1107 }) 1108 } Pdf417() -> ::windows::runtime::Result<u32>1109 pub fn Pdf417() -> ::windows::runtime::Result<u32> { 1110 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1111 let mut result__: u32 = ::std::mem::zeroed(); 1112 (::windows::runtime::Interface::vtable(this).73)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1113 }) 1114 } Qr() -> ::windows::runtime::Result<u32>1115 pub fn Qr() -> ::windows::runtime::Result<u32> { 1116 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1117 let mut result__: u32 = ::std::mem::zeroed(); 1118 (::windows::runtime::Interface::vtable(this).74)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1119 }) 1120 } MsTag() -> ::windows::runtime::Result<u32>1121 pub fn MsTag() -> ::windows::runtime::Result<u32> { 1122 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1123 let mut result__: u32 = ::std::mem::zeroed(); 1124 (::windows::runtime::Interface::vtable(this).75)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1125 }) 1126 } Ccab() -> ::windows::runtime::Result<u32>1127 pub fn Ccab() -> ::windows::runtime::Result<u32> { 1128 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1129 let mut result__: u32 = ::std::mem::zeroed(); 1130 (::windows::runtime::Interface::vtable(this).76)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1131 }) 1132 } Ccc() -> ::windows::runtime::Result<u32>1133 pub fn Ccc() -> ::windows::runtime::Result<u32> { 1134 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1135 let mut result__: u32 = ::std::mem::zeroed(); 1136 (::windows::runtime::Interface::vtable(this).77)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1137 }) 1138 } Tlc39() -> ::windows::runtime::Result<u32>1139 pub fn Tlc39() -> ::windows::runtime::Result<u32> { 1140 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1141 let mut result__: u32 = ::std::mem::zeroed(); 1142 (::windows::runtime::Interface::vtable(this).78)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1143 }) 1144 } AusPost() -> ::windows::runtime::Result<u32>1145 pub fn AusPost() -> ::windows::runtime::Result<u32> { 1146 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1147 let mut result__: u32 = ::std::mem::zeroed(); 1148 (::windows::runtime::Interface::vtable(this).79)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1149 }) 1150 } CanPost() -> ::windows::runtime::Result<u32>1151 pub fn CanPost() -> ::windows::runtime::Result<u32> { 1152 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1153 let mut result__: u32 = ::std::mem::zeroed(); 1154 (::windows::runtime::Interface::vtable(this).80)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1155 }) 1156 } ChinaPost() -> ::windows::runtime::Result<u32>1157 pub fn ChinaPost() -> ::windows::runtime::Result<u32> { 1158 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1159 let mut result__: u32 = ::std::mem::zeroed(); 1160 (::windows::runtime::Interface::vtable(this).81)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1161 }) 1162 } DutchKix() -> ::windows::runtime::Result<u32>1163 pub fn DutchKix() -> ::windows::runtime::Result<u32> { 1164 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1165 let mut result__: u32 = ::std::mem::zeroed(); 1166 (::windows::runtime::Interface::vtable(this).82)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1167 }) 1168 } InfoMail() -> ::windows::runtime::Result<u32>1169 pub fn InfoMail() -> ::windows::runtime::Result<u32> { 1170 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1171 let mut result__: u32 = ::std::mem::zeroed(); 1172 (::windows::runtime::Interface::vtable(this).83)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1173 }) 1174 } ItalianPost25() -> ::windows::runtime::Result<u32>1175 pub fn ItalianPost25() -> ::windows::runtime::Result<u32> { 1176 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1177 let mut result__: u32 = ::std::mem::zeroed(); 1178 (::windows::runtime::Interface::vtable(this).84)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1179 }) 1180 } ItalianPost39() -> ::windows::runtime::Result<u32>1181 pub fn ItalianPost39() -> ::windows::runtime::Result<u32> { 1182 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1183 let mut result__: u32 = ::std::mem::zeroed(); 1184 (::windows::runtime::Interface::vtable(this).85)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1185 }) 1186 } JapanPost() -> ::windows::runtime::Result<u32>1187 pub fn JapanPost() -> ::windows::runtime::Result<u32> { 1188 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1189 let mut result__: u32 = ::std::mem::zeroed(); 1190 (::windows::runtime::Interface::vtable(this).86)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1191 }) 1192 } KoreanPost() -> ::windows::runtime::Result<u32>1193 pub fn KoreanPost() -> ::windows::runtime::Result<u32> { 1194 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1195 let mut result__: u32 = ::std::mem::zeroed(); 1196 (::windows::runtime::Interface::vtable(this).87)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1197 }) 1198 } SwedenPost() -> ::windows::runtime::Result<u32>1199 pub fn SwedenPost() -> ::windows::runtime::Result<u32> { 1200 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1201 let mut result__: u32 = ::std::mem::zeroed(); 1202 (::windows::runtime::Interface::vtable(this).88)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1203 }) 1204 } UkPost() -> ::windows::runtime::Result<u32>1205 pub fn UkPost() -> ::windows::runtime::Result<u32> { 1206 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1207 let mut result__: u32 = ::std::mem::zeroed(); 1208 (::windows::runtime::Interface::vtable(this).89)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1209 }) 1210 } UsIntelligent() -> ::windows::runtime::Result<u32>1211 pub fn UsIntelligent() -> ::windows::runtime::Result<u32> { 1212 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1213 let mut result__: u32 = ::std::mem::zeroed(); 1214 (::windows::runtime::Interface::vtable(this).90)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1215 }) 1216 } UsIntelligentPkg() -> ::windows::runtime::Result<u32>1217 pub fn UsIntelligentPkg() -> ::windows::runtime::Result<u32> { 1218 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1219 let mut result__: u32 = ::std::mem::zeroed(); 1220 (::windows::runtime::Interface::vtable(this).91)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1221 }) 1222 } UsPlanet() -> ::windows::runtime::Result<u32>1223 pub fn UsPlanet() -> ::windows::runtime::Result<u32> { 1224 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1225 let mut result__: u32 = ::std::mem::zeroed(); 1226 (::windows::runtime::Interface::vtable(this).92)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1227 }) 1228 } UsPostNet() -> ::windows::runtime::Result<u32>1229 pub fn UsPostNet() -> ::windows::runtime::Result<u32> { 1230 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1231 let mut result__: u32 = ::std::mem::zeroed(); 1232 (::windows::runtime::Interface::vtable(this).93)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1233 }) 1234 } Us4StateFics() -> ::windows::runtime::Result<u32>1235 pub fn Us4StateFics() -> ::windows::runtime::Result<u32> { 1236 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1237 let mut result__: u32 = ::std::mem::zeroed(); 1238 (::windows::runtime::Interface::vtable(this).94)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1239 }) 1240 } OcrA() -> ::windows::runtime::Result<u32>1241 pub fn OcrA() -> ::windows::runtime::Result<u32> { 1242 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1243 let mut result__: u32 = ::std::mem::zeroed(); 1244 (::windows::runtime::Interface::vtable(this).95)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1245 }) 1246 } OcrB() -> ::windows::runtime::Result<u32>1247 pub fn OcrB() -> ::windows::runtime::Result<u32> { 1248 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1249 let mut result__: u32 = ::std::mem::zeroed(); 1250 (::windows::runtime::Interface::vtable(this).96)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1251 }) 1252 } Micr() -> ::windows::runtime::Result<u32>1253 pub fn Micr() -> ::windows::runtime::Result<u32> { 1254 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1255 let mut result__: u32 = ::std::mem::zeroed(); 1256 (::windows::runtime::Interface::vtable(this).97)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1257 }) 1258 } ExtendedBase() -> ::windows::runtime::Result<u32>1259 pub fn ExtendedBase() -> ::windows::runtime::Result<u32> { 1260 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1261 let mut result__: u32 = ::std::mem::zeroed(); 1262 (::windows::runtime::Interface::vtable(this).98)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1263 }) 1264 } GetName(scandatatype: u32) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1265 pub fn GetName(scandatatype: u32) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1266 Self::IBarcodeSymbologiesStatics(|this| unsafe { 1267 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1268 (::windows::runtime::Interface::vtable(this).99)(::std::mem::transmute_copy(this), scandatatype, &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1269 }) 1270 } Gs1DWCode() -> ::windows::runtime::Result<u32>1271 pub fn Gs1DWCode() -> ::windows::runtime::Result<u32> { 1272 Self::IBarcodeSymbologiesStatics2(|this| unsafe { 1273 let mut result__: u32 = ::std::mem::zeroed(); 1274 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1275 }) 1276 } IBarcodeSymbologiesStatics<R, F: FnOnce(&IBarcodeSymbologiesStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>1277 pub fn IBarcodeSymbologiesStatics<R, F: FnOnce(&IBarcodeSymbologiesStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 1278 static mut SHARED: ::windows::runtime::FactoryCache<BarcodeSymbologies, IBarcodeSymbologiesStatics> = ::windows::runtime::FactoryCache::new(); 1279 unsafe { SHARED.call(callback) } 1280 } IBarcodeSymbologiesStatics2<R, F: FnOnce(&IBarcodeSymbologiesStatics2) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>1281 pub fn IBarcodeSymbologiesStatics2<R, F: FnOnce(&IBarcodeSymbologiesStatics2) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 1282 static mut SHARED: ::windows::runtime::FactoryCache<BarcodeSymbologies, IBarcodeSymbologiesStatics2> = ::windows::runtime::FactoryCache::new(); 1283 unsafe { SHARED.call(callback) } 1284 } 1285 } 1286 impl ::windows::runtime::RuntimeName for BarcodeSymbologies { 1287 const NAME: &'static str = "Windows.Devices.PointOfService.BarcodeSymbologies"; 1288 } 1289 #[repr(transparent)] 1290 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1291 pub struct BarcodeSymbologyAttributes(::windows::runtime::IInspectable); 1292 impl BarcodeSymbologyAttributes { IsCheckDigitValidationEnabled(&self) -> ::windows::runtime::Result<bool>1293 pub fn IsCheckDigitValidationEnabled(&self) -> ::windows::runtime::Result<bool> { 1294 let this = self; 1295 unsafe { 1296 let mut result__: bool = ::std::mem::zeroed(); 1297 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1298 } 1299 } SetIsCheckDigitValidationEnabled(&self, value: bool) -> ::windows::runtime::Result<()>1300 pub fn SetIsCheckDigitValidationEnabled(&self, value: bool) -> ::windows::runtime::Result<()> { 1301 let this = self; 1302 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 1303 } IsCheckDigitValidationSupported(&self) -> ::windows::runtime::Result<bool>1304 pub fn IsCheckDigitValidationSupported(&self) -> ::windows::runtime::Result<bool> { 1305 let this = self; 1306 unsafe { 1307 let mut result__: bool = ::std::mem::zeroed(); 1308 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1309 } 1310 } IsCheckDigitTransmissionEnabled(&self) -> ::windows::runtime::Result<bool>1311 pub fn IsCheckDigitTransmissionEnabled(&self) -> ::windows::runtime::Result<bool> { 1312 let this = self; 1313 unsafe { 1314 let mut result__: bool = ::std::mem::zeroed(); 1315 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1316 } 1317 } SetIsCheckDigitTransmissionEnabled(&self, value: bool) -> ::windows::runtime::Result<()>1318 pub fn SetIsCheckDigitTransmissionEnabled(&self, value: bool) -> ::windows::runtime::Result<()> { 1319 let this = self; 1320 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value).ok() } 1321 } IsCheckDigitTransmissionSupported(&self) -> ::windows::runtime::Result<bool>1322 pub fn IsCheckDigitTransmissionSupported(&self) -> ::windows::runtime::Result<bool> { 1323 let this = self; 1324 unsafe { 1325 let mut result__: bool = ::std::mem::zeroed(); 1326 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1327 } 1328 } DecodeLength1(&self) -> ::windows::runtime::Result<u32>1329 pub fn DecodeLength1(&self) -> ::windows::runtime::Result<u32> { 1330 let this = self; 1331 unsafe { 1332 let mut result__: u32 = ::std::mem::zeroed(); 1333 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1334 } 1335 } SetDecodeLength1(&self, value: u32) -> ::windows::runtime::Result<()>1336 pub fn SetDecodeLength1(&self, value: u32) -> ::windows::runtime::Result<()> { 1337 let this = self; 1338 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value).ok() } 1339 } DecodeLength2(&self) -> ::windows::runtime::Result<u32>1340 pub fn DecodeLength2(&self) -> ::windows::runtime::Result<u32> { 1341 let this = self; 1342 unsafe { 1343 let mut result__: u32 = ::std::mem::zeroed(); 1344 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1345 } 1346 } SetDecodeLength2(&self, value: u32) -> ::windows::runtime::Result<()>1347 pub fn SetDecodeLength2(&self, value: u32) -> ::windows::runtime::Result<()> { 1348 let this = self; 1349 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), value).ok() } 1350 } DecodeLengthKind(&self) -> ::windows::runtime::Result<BarcodeSymbologyDecodeLengthKind>1351 pub fn DecodeLengthKind(&self) -> ::windows::runtime::Result<BarcodeSymbologyDecodeLengthKind> { 1352 let this = self; 1353 unsafe { 1354 let mut result__: BarcodeSymbologyDecodeLengthKind = ::std::mem::zeroed(); 1355 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), &mut result__).from_abi::<BarcodeSymbologyDecodeLengthKind>(result__) 1356 } 1357 } SetDecodeLengthKind(&self, value: BarcodeSymbologyDecodeLengthKind) -> ::windows::runtime::Result<()>1358 pub fn SetDecodeLengthKind(&self, value: BarcodeSymbologyDecodeLengthKind) -> ::windows::runtime::Result<()> { 1359 let this = self; 1360 unsafe { (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), value).ok() } 1361 } IsDecodeLengthSupported(&self) -> ::windows::runtime::Result<bool>1362 pub fn IsDecodeLengthSupported(&self) -> ::windows::runtime::Result<bool> { 1363 let this = self; 1364 unsafe { 1365 let mut result__: bool = ::std::mem::zeroed(); 1366 (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1367 } 1368 } 1369 } 1370 unsafe impl ::windows::runtime::RuntimeType for BarcodeSymbologyAttributes { 1371 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.BarcodeSymbologyAttributes;{66413a78-ab7a-4ada-8ece-936014b2ead7})"); 1372 } 1373 unsafe impl ::windows::runtime::Interface for BarcodeSymbologyAttributes { 1374 type Vtable = IBarcodeSymbologyAttributes_abi; 1375 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1715550840, 43898, 19162, [142, 206, 147, 96, 20, 178, 234, 215]); 1376 } 1377 impl ::windows::runtime::RuntimeName for BarcodeSymbologyAttributes { 1378 const NAME: &'static str = "Windows.Devices.PointOfService.BarcodeSymbologyAttributes"; 1379 } 1380 impl ::std::convert::From<BarcodeSymbologyAttributes> for ::windows::runtime::IUnknown { from(value: BarcodeSymbologyAttributes) -> Self1381 fn from(value: BarcodeSymbologyAttributes) -> Self { 1382 unsafe { ::std::mem::transmute(value) } 1383 } 1384 } 1385 impl ::std::convert::From<&BarcodeSymbologyAttributes> for ::windows::runtime::IUnknown { from(value: &BarcodeSymbologyAttributes) -> Self1386 fn from(value: &BarcodeSymbologyAttributes) -> Self { 1387 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1388 } 1389 } 1390 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for BarcodeSymbologyAttributes { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1391 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1392 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1393 } 1394 } 1395 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &BarcodeSymbologyAttributes { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1396 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1397 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1398 } 1399 } 1400 impl ::std::convert::From<BarcodeSymbologyAttributes> for ::windows::runtime::IInspectable { from(value: BarcodeSymbologyAttributes) -> Self1401 fn from(value: BarcodeSymbologyAttributes) -> Self { 1402 value.0 1403 } 1404 } 1405 impl ::std::convert::From<&BarcodeSymbologyAttributes> for ::windows::runtime::IInspectable { from(value: &BarcodeSymbologyAttributes) -> Self1406 fn from(value: &BarcodeSymbologyAttributes) -> Self { 1407 value.0.clone() 1408 } 1409 } 1410 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for BarcodeSymbologyAttributes { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1411 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1412 ::windows::runtime::Param::Owned(self.0) 1413 } 1414 } 1415 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a BarcodeSymbologyAttributes { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1416 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1417 ::windows::runtime::Param::Borrowed(&self.0) 1418 } 1419 } 1420 unsafe impl ::std::marker::Send for BarcodeSymbologyAttributes {} 1421 unsafe impl ::std::marker::Sync for BarcodeSymbologyAttributes {} 1422 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 1423 #[repr(transparent)] 1424 pub struct BarcodeSymbologyDecodeLengthKind(pub i32); 1425 impl BarcodeSymbologyDecodeLengthKind { 1426 pub const AnyLength: BarcodeSymbologyDecodeLengthKind = BarcodeSymbologyDecodeLengthKind(0i32); 1427 pub const Discrete: BarcodeSymbologyDecodeLengthKind = BarcodeSymbologyDecodeLengthKind(1i32); 1428 pub const Range: BarcodeSymbologyDecodeLengthKind = BarcodeSymbologyDecodeLengthKind(2i32); 1429 } 1430 impl ::std::convert::From<i32> for BarcodeSymbologyDecodeLengthKind { from(value: i32) -> Self1431 fn from(value: i32) -> Self { 1432 Self(value) 1433 } 1434 } 1435 unsafe impl ::windows::runtime::Abi for BarcodeSymbologyDecodeLengthKind { 1436 type Abi = Self; 1437 type DefaultType = Self; 1438 } 1439 unsafe impl ::windows::runtime::RuntimeType for BarcodeSymbologyDecodeLengthKind { 1440 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Devices.PointOfService.BarcodeSymbologyDecodeLengthKind;i4)"); 1441 } 1442 #[repr(transparent)] 1443 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1444 pub struct CashDrawer(::windows::runtime::IInspectable); 1445 impl CashDrawer { DeviceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1446 pub fn DeviceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1447 let this = self; 1448 unsafe { 1449 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1450 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1451 } 1452 } Capabilities(&self) -> ::windows::runtime::Result<CashDrawerCapabilities>1453 pub fn Capabilities(&self) -> ::windows::runtime::Result<CashDrawerCapabilities> { 1454 let this = self; 1455 unsafe { 1456 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1457 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CashDrawerCapabilities>(result__) 1458 } 1459 } Status(&self) -> ::windows::runtime::Result<CashDrawerStatus>1460 pub fn Status(&self) -> ::windows::runtime::Result<CashDrawerStatus> { 1461 let this = self; 1462 unsafe { 1463 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1464 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CashDrawerStatus>(result__) 1465 } 1466 } IsDrawerOpen(&self) -> ::windows::runtime::Result<bool>1467 pub fn IsDrawerOpen(&self) -> ::windows::runtime::Result<bool> { 1468 let this = self; 1469 unsafe { 1470 let mut result__: bool = ::std::mem::zeroed(); 1471 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1472 } 1473 } DrawerEventSource(&self) -> ::windows::runtime::Result<CashDrawerEventSource>1474 pub fn DrawerEventSource(&self) -> ::windows::runtime::Result<CashDrawerEventSource> { 1475 let this = self; 1476 unsafe { 1477 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1478 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CashDrawerEventSource>(result__) 1479 } 1480 } 1481 #[cfg(feature = "Foundation")] ClaimDrawerAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<ClaimedCashDrawer>>1482 pub fn ClaimDrawerAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<ClaimedCashDrawer>> { 1483 let this = self; 1484 unsafe { 1485 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1486 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<ClaimedCashDrawer>>(result__) 1487 } 1488 } 1489 #[cfg(feature = "Foundation")] CheckHealthAsync(&self, level: UnifiedPosHealthCheckLevel) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>>1490 pub fn CheckHealthAsync(&self, level: UnifiedPosHealthCheckLevel) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>> { 1491 let this = self; 1492 unsafe { 1493 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1494 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), level, &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>>(result__) 1495 } 1496 } 1497 #[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))] GetStatisticsAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<::windows::runtime::HSTRING>>>(&self, statisticscategories: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>>1498 pub fn GetStatisticsAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<::windows::runtime::HSTRING>>>(&self, statisticscategories: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>> { 1499 let this = self; 1500 unsafe { 1501 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1502 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), statisticscategories.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>>(result__) 1503 } 1504 } 1505 #[cfg(feature = "Foundation")] StatusUpdated<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<CashDrawer, CashDrawerStatusUpdatedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>1506 pub fn StatusUpdated<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<CashDrawer, CashDrawerStatusUpdatedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 1507 let this = self; 1508 unsafe { 1509 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 1510 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 1511 } 1512 } 1513 #[cfg(feature = "Foundation")] RemoveStatusUpdated<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>1514 pub fn RemoveStatusUpdated<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 1515 let this = self; 1516 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 1517 } 1518 #[cfg(feature = "Foundation")] Close(&self) -> ::windows::runtime::Result<()>1519 pub fn Close(&self) -> ::windows::runtime::Result<()> { 1520 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::IClosable>(self)?; 1521 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 1522 } 1523 #[cfg(feature = "Foundation")] GetDefaultAsync() -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<CashDrawer>>1524 pub fn GetDefaultAsync() -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<CashDrawer>> { 1525 Self::ICashDrawerStatics(|this| unsafe { 1526 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1527 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<CashDrawer>>(result__) 1528 }) 1529 } 1530 #[cfg(feature = "Foundation")] FromIdAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(deviceid: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<CashDrawer>>1531 pub fn FromIdAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(deviceid: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<CashDrawer>> { 1532 Self::ICashDrawerStatics(|this| unsafe { 1533 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1534 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), deviceid.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<CashDrawer>>(result__) 1535 }) 1536 } GetDeviceSelector() -> ::windows::runtime::Result<::windows::runtime::HSTRING>1537 pub fn GetDeviceSelector() -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1538 Self::ICashDrawerStatics(|this| unsafe { 1539 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1540 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1541 }) 1542 } GetDeviceSelectorWithConnectionTypes(connectiontypes: PosConnectionTypes) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1543 pub fn GetDeviceSelectorWithConnectionTypes(connectiontypes: PosConnectionTypes) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1544 Self::ICashDrawerStatics2(|this| unsafe { 1545 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1546 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), connectiontypes, &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1547 }) 1548 } ICashDrawerStatics<R, F: FnOnce(&ICashDrawerStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>1549 pub fn ICashDrawerStatics<R, F: FnOnce(&ICashDrawerStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 1550 static mut SHARED: ::windows::runtime::FactoryCache<CashDrawer, ICashDrawerStatics> = ::windows::runtime::FactoryCache::new(); 1551 unsafe { SHARED.call(callback) } 1552 } ICashDrawerStatics2<R, F: FnOnce(&ICashDrawerStatics2) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>1553 pub fn ICashDrawerStatics2<R, F: FnOnce(&ICashDrawerStatics2) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 1554 static mut SHARED: ::windows::runtime::FactoryCache<CashDrawer, ICashDrawerStatics2> = ::windows::runtime::FactoryCache::new(); 1555 unsafe { SHARED.call(callback) } 1556 } 1557 } 1558 unsafe impl ::windows::runtime::RuntimeType for CashDrawer { 1559 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.CashDrawer;{9f88f5c8-de54-4aee-a890-920bcbfe30fc})"); 1560 } 1561 unsafe impl ::windows::runtime::Interface for CashDrawer { 1562 type Vtable = ICashDrawer_abi; 1563 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2676553160, 56916, 19182, [168, 144, 146, 11, 203, 254, 48, 252]); 1564 } 1565 impl ::windows::runtime::RuntimeName for CashDrawer { 1566 const NAME: &'static str = "Windows.Devices.PointOfService.CashDrawer"; 1567 } 1568 impl ::std::convert::From<CashDrawer> for ::windows::runtime::IUnknown { from(value: CashDrawer) -> Self1569 fn from(value: CashDrawer) -> Self { 1570 unsafe { ::std::mem::transmute(value) } 1571 } 1572 } 1573 impl ::std::convert::From<&CashDrawer> for ::windows::runtime::IUnknown { from(value: &CashDrawer) -> Self1574 fn from(value: &CashDrawer) -> Self { 1575 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1576 } 1577 } 1578 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for CashDrawer { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1579 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1580 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1581 } 1582 } 1583 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &CashDrawer { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1584 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1585 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1586 } 1587 } 1588 impl ::std::convert::From<CashDrawer> for ::windows::runtime::IInspectable { from(value: CashDrawer) -> Self1589 fn from(value: CashDrawer) -> Self { 1590 value.0 1591 } 1592 } 1593 impl ::std::convert::From<&CashDrawer> for ::windows::runtime::IInspectable { from(value: &CashDrawer) -> Self1594 fn from(value: &CashDrawer) -> Self { 1595 value.0.clone() 1596 } 1597 } 1598 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for CashDrawer { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1599 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1600 ::windows::runtime::Param::Owned(self.0) 1601 } 1602 } 1603 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a CashDrawer { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1604 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1605 ::windows::runtime::Param::Borrowed(&self.0) 1606 } 1607 } 1608 #[cfg(feature = "Foundation")] 1609 impl ::std::convert::TryFrom<CashDrawer> for super::super::Foundation::IClosable { 1610 type Error = ::windows::runtime::Error; try_from(value: CashDrawer) -> ::windows::runtime::Result<Self>1611 fn try_from(value: CashDrawer) -> ::windows::runtime::Result<Self> { 1612 ::std::convert::TryFrom::try_from(&value) 1613 } 1614 } 1615 #[cfg(feature = "Foundation")] 1616 impl ::std::convert::TryFrom<&CashDrawer> for super::super::Foundation::IClosable { 1617 type Error = ::windows::runtime::Error; try_from(value: &CashDrawer) -> ::windows::runtime::Result<Self>1618 fn try_from(value: &CashDrawer) -> ::windows::runtime::Result<Self> { 1619 ::windows::runtime::Interface::cast(value) 1620 } 1621 } 1622 #[cfg(feature = "Foundation")] 1623 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for CashDrawer { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>1624 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 1625 ::windows::runtime::IntoParam::into_param(&self) 1626 } 1627 } 1628 #[cfg(feature = "Foundation")] 1629 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for &CashDrawer { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>1630 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 1631 ::std::convert::TryInto::<super::super::Foundation::IClosable>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 1632 } 1633 } 1634 unsafe impl ::std::marker::Send for CashDrawer {} 1635 unsafe impl ::std::marker::Sync for CashDrawer {} 1636 #[repr(transparent)] 1637 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1638 pub struct CashDrawerCapabilities(::windows::runtime::IInspectable); 1639 impl CashDrawerCapabilities { PowerReportingType(&self) -> ::windows::runtime::Result<UnifiedPosPowerReportingType>1640 pub fn PowerReportingType(&self) -> ::windows::runtime::Result<UnifiedPosPowerReportingType> { 1641 let this = self; 1642 unsafe { 1643 let mut result__: UnifiedPosPowerReportingType = ::std::mem::zeroed(); 1644 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<UnifiedPosPowerReportingType>(result__) 1645 } 1646 } IsStatisticsReportingSupported(&self) -> ::windows::runtime::Result<bool>1647 pub fn IsStatisticsReportingSupported(&self) -> ::windows::runtime::Result<bool> { 1648 let this = self; 1649 unsafe { 1650 let mut result__: bool = ::std::mem::zeroed(); 1651 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1652 } 1653 } IsStatisticsUpdatingSupported(&self) -> ::windows::runtime::Result<bool>1654 pub fn IsStatisticsUpdatingSupported(&self) -> ::windows::runtime::Result<bool> { 1655 let this = self; 1656 unsafe { 1657 let mut result__: bool = ::std::mem::zeroed(); 1658 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1659 } 1660 } IsStatusReportingSupported(&self) -> ::windows::runtime::Result<bool>1661 pub fn IsStatusReportingSupported(&self) -> ::windows::runtime::Result<bool> { 1662 let this = self; 1663 unsafe { 1664 let mut result__: bool = ::std::mem::zeroed(); 1665 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1666 } 1667 } IsStatusMultiDrawerDetectSupported(&self) -> ::windows::runtime::Result<bool>1668 pub fn IsStatusMultiDrawerDetectSupported(&self) -> ::windows::runtime::Result<bool> { 1669 let this = self; 1670 unsafe { 1671 let mut result__: bool = ::std::mem::zeroed(); 1672 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1673 } 1674 } IsDrawerOpenSensorAvailable(&self) -> ::windows::runtime::Result<bool>1675 pub fn IsDrawerOpenSensorAvailable(&self) -> ::windows::runtime::Result<bool> { 1676 let this = self; 1677 unsafe { 1678 let mut result__: bool = ::std::mem::zeroed(); 1679 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1680 } 1681 } 1682 } 1683 unsafe impl ::windows::runtime::RuntimeType for CashDrawerCapabilities { 1684 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.CashDrawerCapabilities;{0bc6de0b-e8e7-4b1f-b1d1-3e501ad08247})"); 1685 } 1686 unsafe impl ::windows::runtime::Interface for CashDrawerCapabilities { 1687 type Vtable = ICashDrawerCapabilities_abi; 1688 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(197582347, 59623, 19231, [177, 209, 62, 80, 26, 208, 130, 71]); 1689 } 1690 impl ::windows::runtime::RuntimeName for CashDrawerCapabilities { 1691 const NAME: &'static str = "Windows.Devices.PointOfService.CashDrawerCapabilities"; 1692 } 1693 impl ::std::convert::From<CashDrawerCapabilities> for ::windows::runtime::IUnknown { from(value: CashDrawerCapabilities) -> Self1694 fn from(value: CashDrawerCapabilities) -> Self { 1695 unsafe { ::std::mem::transmute(value) } 1696 } 1697 } 1698 impl ::std::convert::From<&CashDrawerCapabilities> for ::windows::runtime::IUnknown { from(value: &CashDrawerCapabilities) -> Self1699 fn from(value: &CashDrawerCapabilities) -> Self { 1700 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1701 } 1702 } 1703 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for CashDrawerCapabilities { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1704 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1705 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1706 } 1707 } 1708 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &CashDrawerCapabilities { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1709 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1710 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1711 } 1712 } 1713 impl ::std::convert::From<CashDrawerCapabilities> for ::windows::runtime::IInspectable { from(value: CashDrawerCapabilities) -> Self1714 fn from(value: CashDrawerCapabilities) -> Self { 1715 value.0 1716 } 1717 } 1718 impl ::std::convert::From<&CashDrawerCapabilities> for ::windows::runtime::IInspectable { from(value: &CashDrawerCapabilities) -> Self1719 fn from(value: &CashDrawerCapabilities) -> Self { 1720 value.0.clone() 1721 } 1722 } 1723 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for CashDrawerCapabilities { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1724 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1725 ::windows::runtime::Param::Owned(self.0) 1726 } 1727 } 1728 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a CashDrawerCapabilities { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1729 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1730 ::windows::runtime::Param::Borrowed(&self.0) 1731 } 1732 } 1733 unsafe impl ::std::marker::Send for CashDrawerCapabilities {} 1734 unsafe impl ::std::marker::Sync for CashDrawerCapabilities {} 1735 #[repr(transparent)] 1736 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1737 pub struct CashDrawerCloseAlarm(::windows::runtime::IInspectable); 1738 impl CashDrawerCloseAlarm { 1739 #[cfg(feature = "Foundation")] SetAlarmTimeout<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, value: Param0) -> ::windows::runtime::Result<()>1740 pub fn SetAlarmTimeout<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1741 let this = self; 1742 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1743 } 1744 #[cfg(feature = "Foundation")] AlarmTimeout(&self) -> ::windows::runtime::Result<super::super::Foundation::TimeSpan>1745 pub fn AlarmTimeout(&self) -> ::windows::runtime::Result<super::super::Foundation::TimeSpan> { 1746 let this = self; 1747 unsafe { 1748 let mut result__: super::super::Foundation::TimeSpan = ::std::mem::zeroed(); 1749 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::TimeSpan>(result__) 1750 } 1751 } SetBeepFrequency(&self, value: u32) -> ::windows::runtime::Result<()>1752 pub fn SetBeepFrequency(&self, value: u32) -> ::windows::runtime::Result<()> { 1753 let this = self; 1754 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value).ok() } 1755 } BeepFrequency(&self) -> ::windows::runtime::Result<u32>1756 pub fn BeepFrequency(&self) -> ::windows::runtime::Result<u32> { 1757 let this = self; 1758 unsafe { 1759 let mut result__: u32 = ::std::mem::zeroed(); 1760 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 1761 } 1762 } 1763 #[cfg(feature = "Foundation")] SetBeepDuration<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, value: Param0) -> ::windows::runtime::Result<()>1764 pub fn SetBeepDuration<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1765 let this = self; 1766 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1767 } 1768 #[cfg(feature = "Foundation")] BeepDuration(&self) -> ::windows::runtime::Result<super::super::Foundation::TimeSpan>1769 pub fn BeepDuration(&self) -> ::windows::runtime::Result<super::super::Foundation::TimeSpan> { 1770 let this = self; 1771 unsafe { 1772 let mut result__: super::super::Foundation::TimeSpan = ::std::mem::zeroed(); 1773 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::TimeSpan>(result__) 1774 } 1775 } 1776 #[cfg(feature = "Foundation")] SetBeepDelay<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, value: Param0) -> ::windows::runtime::Result<()>1777 pub fn SetBeepDelay<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1778 let this = self; 1779 unsafe { (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1780 } 1781 #[cfg(feature = "Foundation")] BeepDelay(&self) -> ::windows::runtime::Result<super::super::Foundation::TimeSpan>1782 pub fn BeepDelay(&self) -> ::windows::runtime::Result<super::super::Foundation::TimeSpan> { 1783 let this = self; 1784 unsafe { 1785 let mut result__: super::super::Foundation::TimeSpan = ::std::mem::zeroed(); 1786 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::TimeSpan>(result__) 1787 } 1788 } 1789 #[cfg(feature = "Foundation")] AlarmTimeoutExpired<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<CashDrawerCloseAlarm, ::windows::runtime::IInspectable>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>1790 pub fn AlarmTimeoutExpired<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<CashDrawerCloseAlarm, ::windows::runtime::IInspectable>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 1791 let this = self; 1792 unsafe { 1793 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 1794 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 1795 } 1796 } 1797 #[cfg(feature = "Foundation")] RemoveAlarmTimeoutExpired<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>1798 pub fn RemoveAlarmTimeoutExpired<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 1799 let this = self; 1800 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 1801 } 1802 #[cfg(feature = "Foundation")] StartAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>1803 pub fn StartAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 1804 let this = self; 1805 unsafe { 1806 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1807 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 1808 } 1809 } 1810 } 1811 unsafe impl ::windows::runtime::RuntimeType for CashDrawerCloseAlarm { 1812 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.CashDrawerCloseAlarm;{6bf88cc7-6f63-430e-ab3b-95d75ffbe87f})"); 1813 } 1814 unsafe impl ::windows::runtime::Interface for CashDrawerCloseAlarm { 1815 type Vtable = ICashDrawerCloseAlarm_abi; 1816 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1811451079, 28515, 17166, [171, 59, 149, 215, 95, 251, 232, 127]); 1817 } 1818 impl ::windows::runtime::RuntimeName for CashDrawerCloseAlarm { 1819 const NAME: &'static str = "Windows.Devices.PointOfService.CashDrawerCloseAlarm"; 1820 } 1821 impl ::std::convert::From<CashDrawerCloseAlarm> for ::windows::runtime::IUnknown { from(value: CashDrawerCloseAlarm) -> Self1822 fn from(value: CashDrawerCloseAlarm) -> Self { 1823 unsafe { ::std::mem::transmute(value) } 1824 } 1825 } 1826 impl ::std::convert::From<&CashDrawerCloseAlarm> for ::windows::runtime::IUnknown { from(value: &CashDrawerCloseAlarm) -> Self1827 fn from(value: &CashDrawerCloseAlarm) -> Self { 1828 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1829 } 1830 } 1831 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for CashDrawerCloseAlarm { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1832 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1833 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1834 } 1835 } 1836 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &CashDrawerCloseAlarm { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1837 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1838 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1839 } 1840 } 1841 impl ::std::convert::From<CashDrawerCloseAlarm> for ::windows::runtime::IInspectable { from(value: CashDrawerCloseAlarm) -> Self1842 fn from(value: CashDrawerCloseAlarm) -> Self { 1843 value.0 1844 } 1845 } 1846 impl ::std::convert::From<&CashDrawerCloseAlarm> for ::windows::runtime::IInspectable { from(value: &CashDrawerCloseAlarm) -> Self1847 fn from(value: &CashDrawerCloseAlarm) -> Self { 1848 value.0.clone() 1849 } 1850 } 1851 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for CashDrawerCloseAlarm { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1852 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1853 ::windows::runtime::Param::Owned(self.0) 1854 } 1855 } 1856 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a CashDrawerCloseAlarm { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1857 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1858 ::windows::runtime::Param::Borrowed(&self.0) 1859 } 1860 } 1861 unsafe impl ::std::marker::Send for CashDrawerCloseAlarm {} 1862 unsafe impl ::std::marker::Sync for CashDrawerCloseAlarm {} 1863 #[repr(transparent)] 1864 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1865 pub struct CashDrawerClosedEventArgs(::windows::runtime::IInspectable); 1866 impl CashDrawerClosedEventArgs { CashDrawer(&self) -> ::windows::runtime::Result<CashDrawer>1867 pub fn CashDrawer(&self) -> ::windows::runtime::Result<CashDrawer> { 1868 let this = self; 1869 unsafe { 1870 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1871 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CashDrawer>(result__) 1872 } 1873 } 1874 } 1875 unsafe impl ::windows::runtime::RuntimeType for CashDrawerClosedEventArgs { 1876 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.CashDrawerClosedEventArgs;{69cb3bc1-147f-421c-9c23-090123bb786c})"); 1877 } 1878 unsafe impl ::windows::runtime::Interface for CashDrawerClosedEventArgs { 1879 type Vtable = ICashDrawerEventSourceEventArgs_abi; 1880 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1774926785, 5247, 16924, [156, 35, 9, 1, 35, 187, 120, 108]); 1881 } 1882 impl ::windows::runtime::RuntimeName for CashDrawerClosedEventArgs { 1883 const NAME: &'static str = "Windows.Devices.PointOfService.CashDrawerClosedEventArgs"; 1884 } 1885 impl ::std::convert::From<CashDrawerClosedEventArgs> for ::windows::runtime::IUnknown { from(value: CashDrawerClosedEventArgs) -> Self1886 fn from(value: CashDrawerClosedEventArgs) -> Self { 1887 unsafe { ::std::mem::transmute(value) } 1888 } 1889 } 1890 impl ::std::convert::From<&CashDrawerClosedEventArgs> for ::windows::runtime::IUnknown { from(value: &CashDrawerClosedEventArgs) -> Self1891 fn from(value: &CashDrawerClosedEventArgs) -> Self { 1892 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1893 } 1894 } 1895 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for CashDrawerClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1896 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1897 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1898 } 1899 } 1900 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &CashDrawerClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1901 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1902 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1903 } 1904 } 1905 impl ::std::convert::From<CashDrawerClosedEventArgs> for ::windows::runtime::IInspectable { from(value: CashDrawerClosedEventArgs) -> Self1906 fn from(value: CashDrawerClosedEventArgs) -> Self { 1907 value.0 1908 } 1909 } 1910 impl ::std::convert::From<&CashDrawerClosedEventArgs> for ::windows::runtime::IInspectable { from(value: &CashDrawerClosedEventArgs) -> Self1911 fn from(value: &CashDrawerClosedEventArgs) -> Self { 1912 value.0.clone() 1913 } 1914 } 1915 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for CashDrawerClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1916 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1917 ::windows::runtime::Param::Owned(self.0) 1918 } 1919 } 1920 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a CashDrawerClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1921 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1922 ::windows::runtime::Param::Borrowed(&self.0) 1923 } 1924 } 1925 impl ::std::convert::From<CashDrawerClosedEventArgs> for ICashDrawerEventSourceEventArgs { from(value: CashDrawerClosedEventArgs) -> Self1926 fn from(value: CashDrawerClosedEventArgs) -> Self { 1927 unsafe { ::std::mem::transmute(value) } 1928 } 1929 } 1930 impl ::std::convert::From<&CashDrawerClosedEventArgs> for ICashDrawerEventSourceEventArgs { from(value: &CashDrawerClosedEventArgs) -> Self1931 fn from(value: &CashDrawerClosedEventArgs) -> Self { 1932 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1933 } 1934 } 1935 impl<'a> ::windows::runtime::IntoParam<'a, ICashDrawerEventSourceEventArgs> for CashDrawerClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ICashDrawerEventSourceEventArgs>1936 fn into_param(self) -> ::windows::runtime::Param<'a, ICashDrawerEventSourceEventArgs> { 1937 ::windows::runtime::Param::Owned(::std::convert::Into::<ICashDrawerEventSourceEventArgs>::into(self)) 1938 } 1939 } 1940 impl<'a> ::windows::runtime::IntoParam<'a, ICashDrawerEventSourceEventArgs> for &CashDrawerClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ICashDrawerEventSourceEventArgs>1941 fn into_param(self) -> ::windows::runtime::Param<'a, ICashDrawerEventSourceEventArgs> { 1942 ::windows::runtime::Param::Owned(::std::convert::Into::<ICashDrawerEventSourceEventArgs>::into(::std::clone::Clone::clone(self))) 1943 } 1944 } 1945 unsafe impl ::std::marker::Send for CashDrawerClosedEventArgs {} 1946 unsafe impl ::std::marker::Sync for CashDrawerClosedEventArgs {} 1947 #[repr(transparent)] 1948 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1949 pub struct CashDrawerEventSource(::windows::runtime::IInspectable); 1950 impl CashDrawerEventSource { 1951 #[cfg(feature = "Foundation")] DrawerClosed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<CashDrawerEventSource, CashDrawerClosedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>1952 pub fn DrawerClosed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<CashDrawerEventSource, CashDrawerClosedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 1953 let this = self; 1954 unsafe { 1955 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 1956 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 1957 } 1958 } 1959 #[cfg(feature = "Foundation")] RemoveDrawerClosed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>1960 pub fn RemoveDrawerClosed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 1961 let this = self; 1962 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 1963 } 1964 #[cfg(feature = "Foundation")] DrawerOpened<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<CashDrawerEventSource, CashDrawerOpenedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>1965 pub fn DrawerOpened<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<CashDrawerEventSource, CashDrawerOpenedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 1966 let this = self; 1967 unsafe { 1968 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 1969 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 1970 } 1971 } 1972 #[cfg(feature = "Foundation")] RemoveDrawerOpened<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>1973 pub fn RemoveDrawerOpened<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 1974 let this = self; 1975 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 1976 } 1977 } 1978 unsafe impl ::windows::runtime::RuntimeType for CashDrawerEventSource { 1979 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.CashDrawerEventSource;{e006e46c-f2f9-442f-8dd6-06c10a4227ba})"); 1980 } 1981 unsafe impl ::windows::runtime::Interface for CashDrawerEventSource { 1982 type Vtable = ICashDrawerEventSource_abi; 1983 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3758548076, 62201, 17455, [141, 214, 6, 193, 10, 66, 39, 186]); 1984 } 1985 impl ::windows::runtime::RuntimeName for CashDrawerEventSource { 1986 const NAME: &'static str = "Windows.Devices.PointOfService.CashDrawerEventSource"; 1987 } 1988 impl ::std::convert::From<CashDrawerEventSource> for ::windows::runtime::IUnknown { from(value: CashDrawerEventSource) -> Self1989 fn from(value: CashDrawerEventSource) -> Self { 1990 unsafe { ::std::mem::transmute(value) } 1991 } 1992 } 1993 impl ::std::convert::From<&CashDrawerEventSource> for ::windows::runtime::IUnknown { from(value: &CashDrawerEventSource) -> Self1994 fn from(value: &CashDrawerEventSource) -> Self { 1995 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1996 } 1997 } 1998 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for CashDrawerEventSource { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1999 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2000 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2001 } 2002 } 2003 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &CashDrawerEventSource { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2004 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2005 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2006 } 2007 } 2008 impl ::std::convert::From<CashDrawerEventSource> for ::windows::runtime::IInspectable { from(value: CashDrawerEventSource) -> Self2009 fn from(value: CashDrawerEventSource) -> Self { 2010 value.0 2011 } 2012 } 2013 impl ::std::convert::From<&CashDrawerEventSource> for ::windows::runtime::IInspectable { from(value: &CashDrawerEventSource) -> Self2014 fn from(value: &CashDrawerEventSource) -> Self { 2015 value.0.clone() 2016 } 2017 } 2018 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for CashDrawerEventSource { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2019 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2020 ::windows::runtime::Param::Owned(self.0) 2021 } 2022 } 2023 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a CashDrawerEventSource { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2024 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2025 ::windows::runtime::Param::Borrowed(&self.0) 2026 } 2027 } 2028 unsafe impl ::std::marker::Send for CashDrawerEventSource {} 2029 unsafe impl ::std::marker::Sync for CashDrawerEventSource {} 2030 #[repr(transparent)] 2031 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2032 pub struct CashDrawerOpenedEventArgs(::windows::runtime::IInspectable); 2033 impl CashDrawerOpenedEventArgs { CashDrawer(&self) -> ::windows::runtime::Result<CashDrawer>2034 pub fn CashDrawer(&self) -> ::windows::runtime::Result<CashDrawer> { 2035 let this = self; 2036 unsafe { 2037 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2038 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CashDrawer>(result__) 2039 } 2040 } 2041 } 2042 unsafe impl ::windows::runtime::RuntimeType for CashDrawerOpenedEventArgs { 2043 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.CashDrawerOpenedEventArgs;{69cb3bc1-147f-421c-9c23-090123bb786c})"); 2044 } 2045 unsafe impl ::windows::runtime::Interface for CashDrawerOpenedEventArgs { 2046 type Vtable = ICashDrawerEventSourceEventArgs_abi; 2047 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1774926785, 5247, 16924, [156, 35, 9, 1, 35, 187, 120, 108]); 2048 } 2049 impl ::windows::runtime::RuntimeName for CashDrawerOpenedEventArgs { 2050 const NAME: &'static str = "Windows.Devices.PointOfService.CashDrawerOpenedEventArgs"; 2051 } 2052 impl ::std::convert::From<CashDrawerOpenedEventArgs> for ::windows::runtime::IUnknown { from(value: CashDrawerOpenedEventArgs) -> Self2053 fn from(value: CashDrawerOpenedEventArgs) -> Self { 2054 unsafe { ::std::mem::transmute(value) } 2055 } 2056 } 2057 impl ::std::convert::From<&CashDrawerOpenedEventArgs> for ::windows::runtime::IUnknown { from(value: &CashDrawerOpenedEventArgs) -> Self2058 fn from(value: &CashDrawerOpenedEventArgs) -> Self { 2059 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2060 } 2061 } 2062 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for CashDrawerOpenedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2063 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2064 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2065 } 2066 } 2067 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &CashDrawerOpenedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2068 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2069 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2070 } 2071 } 2072 impl ::std::convert::From<CashDrawerOpenedEventArgs> for ::windows::runtime::IInspectable { from(value: CashDrawerOpenedEventArgs) -> Self2073 fn from(value: CashDrawerOpenedEventArgs) -> Self { 2074 value.0 2075 } 2076 } 2077 impl ::std::convert::From<&CashDrawerOpenedEventArgs> for ::windows::runtime::IInspectable { from(value: &CashDrawerOpenedEventArgs) -> Self2078 fn from(value: &CashDrawerOpenedEventArgs) -> Self { 2079 value.0.clone() 2080 } 2081 } 2082 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for CashDrawerOpenedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2083 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2084 ::windows::runtime::Param::Owned(self.0) 2085 } 2086 } 2087 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a CashDrawerOpenedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2088 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2089 ::windows::runtime::Param::Borrowed(&self.0) 2090 } 2091 } 2092 impl ::std::convert::From<CashDrawerOpenedEventArgs> for ICashDrawerEventSourceEventArgs { from(value: CashDrawerOpenedEventArgs) -> Self2093 fn from(value: CashDrawerOpenedEventArgs) -> Self { 2094 unsafe { ::std::mem::transmute(value) } 2095 } 2096 } 2097 impl ::std::convert::From<&CashDrawerOpenedEventArgs> for ICashDrawerEventSourceEventArgs { from(value: &CashDrawerOpenedEventArgs) -> Self2098 fn from(value: &CashDrawerOpenedEventArgs) -> Self { 2099 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2100 } 2101 } 2102 impl<'a> ::windows::runtime::IntoParam<'a, ICashDrawerEventSourceEventArgs> for CashDrawerOpenedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ICashDrawerEventSourceEventArgs>2103 fn into_param(self) -> ::windows::runtime::Param<'a, ICashDrawerEventSourceEventArgs> { 2104 ::windows::runtime::Param::Owned(::std::convert::Into::<ICashDrawerEventSourceEventArgs>::into(self)) 2105 } 2106 } 2107 impl<'a> ::windows::runtime::IntoParam<'a, ICashDrawerEventSourceEventArgs> for &CashDrawerOpenedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ICashDrawerEventSourceEventArgs>2108 fn into_param(self) -> ::windows::runtime::Param<'a, ICashDrawerEventSourceEventArgs> { 2109 ::windows::runtime::Param::Owned(::std::convert::Into::<ICashDrawerEventSourceEventArgs>::into(::std::clone::Clone::clone(self))) 2110 } 2111 } 2112 unsafe impl ::std::marker::Send for CashDrawerOpenedEventArgs {} 2113 unsafe impl ::std::marker::Sync for CashDrawerOpenedEventArgs {} 2114 #[repr(transparent)] 2115 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2116 pub struct CashDrawerStatus(::windows::runtime::IInspectable); 2117 impl CashDrawerStatus { StatusKind(&self) -> ::windows::runtime::Result<CashDrawerStatusKind>2118 pub fn StatusKind(&self) -> ::windows::runtime::Result<CashDrawerStatusKind> { 2119 let this = self; 2120 unsafe { 2121 let mut result__: CashDrawerStatusKind = ::std::mem::zeroed(); 2122 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CashDrawerStatusKind>(result__) 2123 } 2124 } ExtendedStatus(&self) -> ::windows::runtime::Result<u32>2125 pub fn ExtendedStatus(&self) -> ::windows::runtime::Result<u32> { 2126 let this = self; 2127 unsafe { 2128 let mut result__: u32 = ::std::mem::zeroed(); 2129 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 2130 } 2131 } 2132 } 2133 unsafe impl ::windows::runtime::RuntimeType for CashDrawerStatus { 2134 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.CashDrawerStatus;{6bbd78bf-dca1-4e06-99eb-5af6a5aec108})"); 2135 } 2136 unsafe impl ::windows::runtime::Interface for CashDrawerStatus { 2137 type Vtable = ICashDrawerStatus_abi; 2138 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1807579327, 56481, 19974, [153, 235, 90, 246, 165, 174, 193, 8]); 2139 } 2140 impl ::windows::runtime::RuntimeName for CashDrawerStatus { 2141 const NAME: &'static str = "Windows.Devices.PointOfService.CashDrawerStatus"; 2142 } 2143 impl ::std::convert::From<CashDrawerStatus> for ::windows::runtime::IUnknown { from(value: CashDrawerStatus) -> Self2144 fn from(value: CashDrawerStatus) -> Self { 2145 unsafe { ::std::mem::transmute(value) } 2146 } 2147 } 2148 impl ::std::convert::From<&CashDrawerStatus> for ::windows::runtime::IUnknown { from(value: &CashDrawerStatus) -> Self2149 fn from(value: &CashDrawerStatus) -> Self { 2150 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2151 } 2152 } 2153 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for CashDrawerStatus { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2154 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2155 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2156 } 2157 } 2158 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &CashDrawerStatus { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2159 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2160 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2161 } 2162 } 2163 impl ::std::convert::From<CashDrawerStatus> for ::windows::runtime::IInspectable { from(value: CashDrawerStatus) -> Self2164 fn from(value: CashDrawerStatus) -> Self { 2165 value.0 2166 } 2167 } 2168 impl ::std::convert::From<&CashDrawerStatus> for ::windows::runtime::IInspectable { from(value: &CashDrawerStatus) -> Self2169 fn from(value: &CashDrawerStatus) -> Self { 2170 value.0.clone() 2171 } 2172 } 2173 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for CashDrawerStatus { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2174 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2175 ::windows::runtime::Param::Owned(self.0) 2176 } 2177 } 2178 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a CashDrawerStatus { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2179 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2180 ::windows::runtime::Param::Borrowed(&self.0) 2181 } 2182 } 2183 unsafe impl ::std::marker::Send for CashDrawerStatus {} 2184 unsafe impl ::std::marker::Sync for CashDrawerStatus {} 2185 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] 2186 #[repr(transparent)] 2187 pub struct CashDrawerStatusKind(pub i32); 2188 impl CashDrawerStatusKind { 2189 pub const Online: CashDrawerStatusKind = CashDrawerStatusKind(0i32); 2190 pub const Off: CashDrawerStatusKind = CashDrawerStatusKind(1i32); 2191 pub const Offline: CashDrawerStatusKind = CashDrawerStatusKind(2i32); 2192 pub const OffOrOffline: CashDrawerStatusKind = CashDrawerStatusKind(3i32); 2193 pub const Extended: CashDrawerStatusKind = CashDrawerStatusKind(4i32); 2194 } 2195 impl ::std::convert::From<i32> for CashDrawerStatusKind { from(value: i32) -> Self2196 fn from(value: i32) -> Self { 2197 Self(value) 2198 } 2199 } 2200 unsafe impl ::windows::runtime::Abi for CashDrawerStatusKind { 2201 type Abi = Self; 2202 type DefaultType = Self; 2203 } 2204 unsafe impl ::windows::runtime::RuntimeType for CashDrawerStatusKind { 2205 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Devices.PointOfService.CashDrawerStatusKind;i4)"); 2206 } 2207 #[repr(transparent)] 2208 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2209 pub struct CashDrawerStatusUpdatedEventArgs(::windows::runtime::IInspectable); 2210 impl CashDrawerStatusUpdatedEventArgs { Status(&self) -> ::windows::runtime::Result<CashDrawerStatus>2211 pub fn Status(&self) -> ::windows::runtime::Result<CashDrawerStatus> { 2212 let this = self; 2213 unsafe { 2214 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2215 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CashDrawerStatus>(result__) 2216 } 2217 } 2218 } 2219 unsafe impl ::windows::runtime::RuntimeType for CashDrawerStatusUpdatedEventArgs { 2220 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.CashDrawerStatusUpdatedEventArgs;{30aae98a-0d70-459c-9553-87e124c52488})"); 2221 } 2222 unsafe impl ::windows::runtime::Interface for CashDrawerStatusUpdatedEventArgs { 2223 type Vtable = ICashDrawerStatusUpdatedEventArgs_abi; 2224 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(816507274, 3440, 17820, [149, 83, 135, 225, 36, 197, 36, 136]); 2225 } 2226 impl ::windows::runtime::RuntimeName for CashDrawerStatusUpdatedEventArgs { 2227 const NAME: &'static str = "Windows.Devices.PointOfService.CashDrawerStatusUpdatedEventArgs"; 2228 } 2229 impl ::std::convert::From<CashDrawerStatusUpdatedEventArgs> for ::windows::runtime::IUnknown { from(value: CashDrawerStatusUpdatedEventArgs) -> Self2230 fn from(value: CashDrawerStatusUpdatedEventArgs) -> Self { 2231 unsafe { ::std::mem::transmute(value) } 2232 } 2233 } 2234 impl ::std::convert::From<&CashDrawerStatusUpdatedEventArgs> for ::windows::runtime::IUnknown { from(value: &CashDrawerStatusUpdatedEventArgs) -> Self2235 fn from(value: &CashDrawerStatusUpdatedEventArgs) -> Self { 2236 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2237 } 2238 } 2239 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for CashDrawerStatusUpdatedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2240 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2241 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2242 } 2243 } 2244 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &CashDrawerStatusUpdatedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2245 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2246 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2247 } 2248 } 2249 impl ::std::convert::From<CashDrawerStatusUpdatedEventArgs> for ::windows::runtime::IInspectable { from(value: CashDrawerStatusUpdatedEventArgs) -> Self2250 fn from(value: CashDrawerStatusUpdatedEventArgs) -> Self { 2251 value.0 2252 } 2253 } 2254 impl ::std::convert::From<&CashDrawerStatusUpdatedEventArgs> for ::windows::runtime::IInspectable { from(value: &CashDrawerStatusUpdatedEventArgs) -> Self2255 fn from(value: &CashDrawerStatusUpdatedEventArgs) -> Self { 2256 value.0.clone() 2257 } 2258 } 2259 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for CashDrawerStatusUpdatedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2260 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2261 ::windows::runtime::Param::Owned(self.0) 2262 } 2263 } 2264 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a CashDrawerStatusUpdatedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2265 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2266 ::windows::runtime::Param::Borrowed(&self.0) 2267 } 2268 } 2269 unsafe impl ::std::marker::Send for CashDrawerStatusUpdatedEventArgs {} 2270 unsafe impl ::std::marker::Sync for CashDrawerStatusUpdatedEventArgs {} 2271 #[repr(transparent)] 2272 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2273 pub struct ClaimedBarcodeScanner(::windows::runtime::IInspectable); 2274 impl ClaimedBarcodeScanner { DeviceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2275 pub fn DeviceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2276 let this = self; 2277 unsafe { 2278 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2279 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2280 } 2281 } IsEnabled(&self) -> ::windows::runtime::Result<bool>2282 pub fn IsEnabled(&self) -> ::windows::runtime::Result<bool> { 2283 let this = self; 2284 unsafe { 2285 let mut result__: bool = ::std::mem::zeroed(); 2286 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 2287 } 2288 } SetIsDisabledOnDataReceived(&self, value: bool) -> ::windows::runtime::Result<()>2289 pub fn SetIsDisabledOnDataReceived(&self, value: bool) -> ::windows::runtime::Result<()> { 2290 let this = self; 2291 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value).ok() } 2292 } IsDisabledOnDataReceived(&self) -> ::windows::runtime::Result<bool>2293 pub fn IsDisabledOnDataReceived(&self) -> ::windows::runtime::Result<bool> { 2294 let this = self; 2295 unsafe { 2296 let mut result__: bool = ::std::mem::zeroed(); 2297 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 2298 } 2299 } SetIsDecodeDataEnabled(&self, value: bool) -> ::windows::runtime::Result<()>2300 pub fn SetIsDecodeDataEnabled(&self, value: bool) -> ::windows::runtime::Result<()> { 2301 let this = self; 2302 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value).ok() } 2303 } IsDecodeDataEnabled(&self) -> ::windows::runtime::Result<bool>2304 pub fn IsDecodeDataEnabled(&self) -> ::windows::runtime::Result<bool> { 2305 let this = self; 2306 unsafe { 2307 let mut result__: bool = ::std::mem::zeroed(); 2308 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 2309 } 2310 } 2311 #[cfg(feature = "Foundation")] EnableAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction>2312 pub fn EnableAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction> { 2313 let this = self; 2314 unsafe { 2315 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2316 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncAction>(result__) 2317 } 2318 } 2319 #[cfg(feature = "Foundation")] DisableAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction>2320 pub fn DisableAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction> { 2321 let this = self; 2322 unsafe { 2323 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2324 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncAction>(result__) 2325 } 2326 } RetainDevice(&self) -> ::windows::runtime::Result<()>2327 pub fn RetainDevice(&self) -> ::windows::runtime::Result<()> { 2328 let this = self; 2329 unsafe { (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this)).ok() } 2330 } 2331 #[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))] SetActiveSymbologiesAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<u32>>>(&self, symbologies: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction>2332 pub fn SetActiveSymbologiesAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<u32>>>(&self, symbologies: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction> { 2333 let this = self; 2334 unsafe { 2335 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2336 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), symbologies.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncAction>(result__) 2337 } 2338 } 2339 #[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))] ResetStatisticsAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<::windows::runtime::HSTRING>>>(&self, statisticscategories: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction>2340 pub fn ResetStatisticsAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<::windows::runtime::HSTRING>>>(&self, statisticscategories: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction> { 2341 let this = self; 2342 unsafe { 2343 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2344 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), statisticscategories.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncAction>(result__) 2345 } 2346 } 2347 #[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))] UpdateStatisticsAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::HSTRING>>>>(&self, statistics: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction>2348 pub fn UpdateStatisticsAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::HSTRING>>>>(&self, statistics: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction> { 2349 let this = self; 2350 unsafe { 2351 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2352 (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), statistics.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncAction>(result__) 2353 } 2354 } 2355 #[cfg(feature = "Foundation")] SetActiveProfileAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, profile: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction>2356 pub fn SetActiveProfileAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, profile: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction> { 2357 let this = self; 2358 unsafe { 2359 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2360 (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), profile.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncAction>(result__) 2361 } 2362 } 2363 #[cfg(feature = "Foundation")] DataReceived<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedBarcodeScanner, BarcodeScannerDataReceivedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>2364 pub fn DataReceived<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedBarcodeScanner, BarcodeScannerDataReceivedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 2365 let this = self; 2366 unsafe { 2367 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 2368 (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 2369 } 2370 } 2371 #[cfg(feature = "Foundation")] RemoveDataReceived<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>2372 pub fn RemoveDataReceived<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 2373 let this = self; 2374 unsafe { (::windows::runtime::Interface::vtable(this).20)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 2375 } 2376 #[cfg(feature = "Foundation")] TriggerPressed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventHandler<ClaimedBarcodeScanner>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>2377 pub fn TriggerPressed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventHandler<ClaimedBarcodeScanner>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 2378 let this = self; 2379 unsafe { 2380 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 2381 (::windows::runtime::Interface::vtable(this).21)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 2382 } 2383 } 2384 #[cfg(feature = "Foundation")] RemoveTriggerPressed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>2385 pub fn RemoveTriggerPressed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 2386 let this = self; 2387 unsafe { (::windows::runtime::Interface::vtable(this).22)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 2388 } 2389 #[cfg(feature = "Foundation")] TriggerReleased<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventHandler<ClaimedBarcodeScanner>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>2390 pub fn TriggerReleased<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventHandler<ClaimedBarcodeScanner>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 2391 let this = self; 2392 unsafe { 2393 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 2394 (::windows::runtime::Interface::vtable(this).23)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 2395 } 2396 } 2397 #[cfg(feature = "Foundation")] RemoveTriggerReleased<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>2398 pub fn RemoveTriggerReleased<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 2399 let this = self; 2400 unsafe { (::windows::runtime::Interface::vtable(this).24)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 2401 } 2402 #[cfg(feature = "Foundation")] ReleaseDeviceRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventHandler<ClaimedBarcodeScanner>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>2403 pub fn ReleaseDeviceRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventHandler<ClaimedBarcodeScanner>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 2404 let this = self; 2405 unsafe { 2406 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 2407 (::windows::runtime::Interface::vtable(this).25)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 2408 } 2409 } 2410 #[cfg(feature = "Foundation")] RemoveReleaseDeviceRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>2411 pub fn RemoveReleaseDeviceRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 2412 let this = self; 2413 unsafe { (::windows::runtime::Interface::vtable(this).26)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 2414 } 2415 #[cfg(feature = "Foundation")] ImagePreviewReceived<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedBarcodeScanner, BarcodeScannerImagePreviewReceivedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>2416 pub fn ImagePreviewReceived<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedBarcodeScanner, BarcodeScannerImagePreviewReceivedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 2417 let this = self; 2418 unsafe { 2419 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 2420 (::windows::runtime::Interface::vtable(this).27)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 2421 } 2422 } 2423 #[cfg(feature = "Foundation")] RemoveImagePreviewReceived<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>2424 pub fn RemoveImagePreviewReceived<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 2425 let this = self; 2426 unsafe { (::windows::runtime::Interface::vtable(this).28)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 2427 } 2428 #[cfg(feature = "Foundation")] ErrorOccurred<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedBarcodeScanner, BarcodeScannerErrorOccurredEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>2429 pub fn ErrorOccurred<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedBarcodeScanner, BarcodeScannerErrorOccurredEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 2430 let this = self; 2431 unsafe { 2432 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 2433 (::windows::runtime::Interface::vtable(this).29)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 2434 } 2435 } 2436 #[cfg(feature = "Foundation")] RemoveErrorOccurred<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>2437 pub fn RemoveErrorOccurred<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 2438 let this = self; 2439 unsafe { (::windows::runtime::Interface::vtable(this).30)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 2440 } 2441 #[cfg(feature = "Foundation")] StartSoftwareTriggerAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction>2442 pub fn StartSoftwareTriggerAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction> { 2443 let this = &::windows::runtime::Interface::cast::<IClaimedBarcodeScanner1>(self)?; 2444 unsafe { 2445 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2446 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncAction>(result__) 2447 } 2448 } 2449 #[cfg(feature = "Foundation")] StopSoftwareTriggerAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction>2450 pub fn StopSoftwareTriggerAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction> { 2451 let this = &::windows::runtime::Interface::cast::<IClaimedBarcodeScanner1>(self)?; 2452 unsafe { 2453 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2454 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncAction>(result__) 2455 } 2456 } 2457 #[cfg(feature = "Foundation")] Close(&self) -> ::windows::runtime::Result<()>2458 pub fn Close(&self) -> ::windows::runtime::Result<()> { 2459 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::IClosable>(self)?; 2460 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 2461 } 2462 #[cfg(feature = "Foundation")] GetSymbologyAttributesAsync(&self, barcodesymbology: u32) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<BarcodeSymbologyAttributes>>2463 pub fn GetSymbologyAttributesAsync(&self, barcodesymbology: u32) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<BarcodeSymbologyAttributes>> { 2464 let this = &::windows::runtime::Interface::cast::<IClaimedBarcodeScanner2>(self)?; 2465 unsafe { 2466 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2467 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), barcodesymbology, &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<BarcodeSymbologyAttributes>>(result__) 2468 } 2469 } 2470 #[cfg(feature = "Foundation")] SetSymbologyAttributesAsync<'a, Param1: ::windows::runtime::IntoParam<'a, BarcodeSymbologyAttributes>>(&self, barcodesymbology: u32, attributes: Param1) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>2471 pub fn SetSymbologyAttributesAsync<'a, Param1: ::windows::runtime::IntoParam<'a, BarcodeSymbologyAttributes>>(&self, barcodesymbology: u32, attributes: Param1) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 2472 let this = &::windows::runtime::Interface::cast::<IClaimedBarcodeScanner2>(self)?; 2473 unsafe { 2474 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2475 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), barcodesymbology, attributes.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 2476 } 2477 } 2478 #[cfg(feature = "Foundation")] ShowVideoPreviewAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>2479 pub fn ShowVideoPreviewAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 2480 let this = &::windows::runtime::Interface::cast::<IClaimedBarcodeScanner3>(self)?; 2481 unsafe { 2482 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2483 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 2484 } 2485 } HideVideoPreview(&self) -> ::windows::runtime::Result<()>2486 pub fn HideVideoPreview(&self) -> ::windows::runtime::Result<()> { 2487 let this = &::windows::runtime::Interface::cast::<IClaimedBarcodeScanner3>(self)?; 2488 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this)).ok() } 2489 } SetIsVideoPreviewShownOnEnable(&self, value: bool) -> ::windows::runtime::Result<()>2490 pub fn SetIsVideoPreviewShownOnEnable(&self, value: bool) -> ::windows::runtime::Result<()> { 2491 let this = &::windows::runtime::Interface::cast::<IClaimedBarcodeScanner3>(self)?; 2492 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value).ok() } 2493 } IsVideoPreviewShownOnEnable(&self) -> ::windows::runtime::Result<bool>2494 pub fn IsVideoPreviewShownOnEnable(&self) -> ::windows::runtime::Result<bool> { 2495 let this = &::windows::runtime::Interface::cast::<IClaimedBarcodeScanner3>(self)?; 2496 unsafe { 2497 let mut result__: bool = ::std::mem::zeroed(); 2498 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 2499 } 2500 } 2501 #[cfg(feature = "Foundation")] Closed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedBarcodeScanner, ClaimedBarcodeScannerClosedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>2502 pub fn Closed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedBarcodeScanner, ClaimedBarcodeScannerClosedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 2503 let this = &::windows::runtime::Interface::cast::<IClaimedBarcodeScanner4>(self)?; 2504 unsafe { 2505 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 2506 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 2507 } 2508 } 2509 #[cfg(feature = "Foundation")] RemoveClosed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>2510 pub fn RemoveClosed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 2511 let this = &::windows::runtime::Interface::cast::<IClaimedBarcodeScanner4>(self)?; 2512 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 2513 } 2514 } 2515 unsafe impl ::windows::runtime::RuntimeType for ClaimedBarcodeScanner { 2516 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.ClaimedBarcodeScanner;{4a63b49c-8fa4-4332-bb26-945d11d81e0f})"); 2517 } 2518 unsafe impl ::windows::runtime::Interface for ClaimedBarcodeScanner { 2519 type Vtable = IClaimedBarcodeScanner_abi; 2520 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1248048284, 36772, 17202, [187, 38, 148, 93, 17, 216, 30, 15]); 2521 } 2522 impl ::windows::runtime::RuntimeName for ClaimedBarcodeScanner { 2523 const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedBarcodeScanner"; 2524 } 2525 impl ::std::convert::From<ClaimedBarcodeScanner> for ::windows::runtime::IUnknown { from(value: ClaimedBarcodeScanner) -> Self2526 fn from(value: ClaimedBarcodeScanner) -> Self { 2527 unsafe { ::std::mem::transmute(value) } 2528 } 2529 } 2530 impl ::std::convert::From<&ClaimedBarcodeScanner> for ::windows::runtime::IUnknown { from(value: &ClaimedBarcodeScanner) -> Self2531 fn from(value: &ClaimedBarcodeScanner) -> Self { 2532 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2533 } 2534 } 2535 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ClaimedBarcodeScanner { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2536 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2537 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2538 } 2539 } 2540 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ClaimedBarcodeScanner { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2541 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2542 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2543 } 2544 } 2545 impl ::std::convert::From<ClaimedBarcodeScanner> for ::windows::runtime::IInspectable { from(value: ClaimedBarcodeScanner) -> Self2546 fn from(value: ClaimedBarcodeScanner) -> Self { 2547 value.0 2548 } 2549 } 2550 impl ::std::convert::From<&ClaimedBarcodeScanner> for ::windows::runtime::IInspectable { from(value: &ClaimedBarcodeScanner) -> Self2551 fn from(value: &ClaimedBarcodeScanner) -> Self { 2552 value.0.clone() 2553 } 2554 } 2555 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ClaimedBarcodeScanner { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2556 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2557 ::windows::runtime::Param::Owned(self.0) 2558 } 2559 } 2560 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ClaimedBarcodeScanner { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2561 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2562 ::windows::runtime::Param::Borrowed(&self.0) 2563 } 2564 } 2565 #[cfg(feature = "Foundation")] 2566 impl ::std::convert::TryFrom<ClaimedBarcodeScanner> for super::super::Foundation::IClosable { 2567 type Error = ::windows::runtime::Error; try_from(value: ClaimedBarcodeScanner) -> ::windows::runtime::Result<Self>2568 fn try_from(value: ClaimedBarcodeScanner) -> ::windows::runtime::Result<Self> { 2569 ::std::convert::TryFrom::try_from(&value) 2570 } 2571 } 2572 #[cfg(feature = "Foundation")] 2573 impl ::std::convert::TryFrom<&ClaimedBarcodeScanner> for super::super::Foundation::IClosable { 2574 type Error = ::windows::runtime::Error; try_from(value: &ClaimedBarcodeScanner) -> ::windows::runtime::Result<Self>2575 fn try_from(value: &ClaimedBarcodeScanner) -> ::windows::runtime::Result<Self> { 2576 ::windows::runtime::Interface::cast(value) 2577 } 2578 } 2579 #[cfg(feature = "Foundation")] 2580 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for ClaimedBarcodeScanner { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>2581 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 2582 ::windows::runtime::IntoParam::into_param(&self) 2583 } 2584 } 2585 #[cfg(feature = "Foundation")] 2586 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for &ClaimedBarcodeScanner { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>2587 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 2588 ::std::convert::TryInto::<super::super::Foundation::IClosable>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 2589 } 2590 } 2591 unsafe impl ::std::marker::Send for ClaimedBarcodeScanner {} 2592 unsafe impl ::std::marker::Sync for ClaimedBarcodeScanner {} 2593 #[repr(transparent)] 2594 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2595 pub struct ClaimedBarcodeScannerClosedEventArgs(::windows::runtime::IInspectable); 2596 impl ClaimedBarcodeScannerClosedEventArgs {} 2597 unsafe impl ::windows::runtime::RuntimeType for ClaimedBarcodeScannerClosedEventArgs { 2598 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.ClaimedBarcodeScannerClosedEventArgs;{cf7d5489-a22c-4c65-a901-88d77d833954})"); 2599 } 2600 unsafe impl ::windows::runtime::Interface for ClaimedBarcodeScannerClosedEventArgs { 2601 type Vtable = IClaimedBarcodeScannerClosedEventArgs_abi; 2602 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3481097353, 41516, 19557, [169, 1, 136, 215, 125, 131, 57, 84]); 2603 } 2604 impl ::windows::runtime::RuntimeName for ClaimedBarcodeScannerClosedEventArgs { 2605 const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedBarcodeScannerClosedEventArgs"; 2606 } 2607 impl ::std::convert::From<ClaimedBarcodeScannerClosedEventArgs> for ::windows::runtime::IUnknown { from(value: ClaimedBarcodeScannerClosedEventArgs) -> Self2608 fn from(value: ClaimedBarcodeScannerClosedEventArgs) -> Self { 2609 unsafe { ::std::mem::transmute(value) } 2610 } 2611 } 2612 impl ::std::convert::From<&ClaimedBarcodeScannerClosedEventArgs> for ::windows::runtime::IUnknown { from(value: &ClaimedBarcodeScannerClosedEventArgs) -> Self2613 fn from(value: &ClaimedBarcodeScannerClosedEventArgs) -> Self { 2614 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2615 } 2616 } 2617 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ClaimedBarcodeScannerClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2618 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2619 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2620 } 2621 } 2622 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ClaimedBarcodeScannerClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2623 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2624 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2625 } 2626 } 2627 impl ::std::convert::From<ClaimedBarcodeScannerClosedEventArgs> for ::windows::runtime::IInspectable { from(value: ClaimedBarcodeScannerClosedEventArgs) -> Self2628 fn from(value: ClaimedBarcodeScannerClosedEventArgs) -> Self { 2629 value.0 2630 } 2631 } 2632 impl ::std::convert::From<&ClaimedBarcodeScannerClosedEventArgs> for ::windows::runtime::IInspectable { from(value: &ClaimedBarcodeScannerClosedEventArgs) -> Self2633 fn from(value: &ClaimedBarcodeScannerClosedEventArgs) -> Self { 2634 value.0.clone() 2635 } 2636 } 2637 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ClaimedBarcodeScannerClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2638 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2639 ::windows::runtime::Param::Owned(self.0) 2640 } 2641 } 2642 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ClaimedBarcodeScannerClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2643 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2644 ::windows::runtime::Param::Borrowed(&self.0) 2645 } 2646 } 2647 unsafe impl ::std::marker::Send for ClaimedBarcodeScannerClosedEventArgs {} 2648 unsafe impl ::std::marker::Sync for ClaimedBarcodeScannerClosedEventArgs {} 2649 #[repr(transparent)] 2650 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2651 pub struct ClaimedCashDrawer(::windows::runtime::IInspectable); 2652 impl ClaimedCashDrawer { DeviceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2653 pub fn DeviceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2654 let this = self; 2655 unsafe { 2656 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2657 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2658 } 2659 } IsEnabled(&self) -> ::windows::runtime::Result<bool>2660 pub fn IsEnabled(&self) -> ::windows::runtime::Result<bool> { 2661 let this = self; 2662 unsafe { 2663 let mut result__: bool = ::std::mem::zeroed(); 2664 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 2665 } 2666 } IsDrawerOpen(&self) -> ::windows::runtime::Result<bool>2667 pub fn IsDrawerOpen(&self) -> ::windows::runtime::Result<bool> { 2668 let this = self; 2669 unsafe { 2670 let mut result__: bool = ::std::mem::zeroed(); 2671 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 2672 } 2673 } CloseAlarm(&self) -> ::windows::runtime::Result<CashDrawerCloseAlarm>2674 pub fn CloseAlarm(&self) -> ::windows::runtime::Result<CashDrawerCloseAlarm> { 2675 let this = self; 2676 unsafe { 2677 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2678 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<CashDrawerCloseAlarm>(result__) 2679 } 2680 } 2681 #[cfg(feature = "Foundation")] OpenDrawerAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>2682 pub fn OpenDrawerAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 2683 let this = self; 2684 unsafe { 2685 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2686 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 2687 } 2688 } 2689 #[cfg(feature = "Foundation")] EnableAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>2690 pub fn EnableAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 2691 let this = self; 2692 unsafe { 2693 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2694 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 2695 } 2696 } 2697 #[cfg(feature = "Foundation")] DisableAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>2698 pub fn DisableAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 2699 let this = self; 2700 unsafe { 2701 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2702 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 2703 } 2704 } 2705 #[cfg(feature = "Foundation")] RetainDeviceAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>2706 pub fn RetainDeviceAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 2707 let this = self; 2708 unsafe { 2709 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2710 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 2711 } 2712 } 2713 #[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))] ResetStatisticsAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<::windows::runtime::HSTRING>>>(&self, statisticscategories: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>2714 pub fn ResetStatisticsAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<::windows::runtime::HSTRING>>>(&self, statisticscategories: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 2715 let this = self; 2716 unsafe { 2717 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2718 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), statisticscategories.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 2719 } 2720 } 2721 #[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))] UpdateStatisticsAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::HSTRING>>>>(&self, statistics: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>2722 pub fn UpdateStatisticsAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::HSTRING>>>>(&self, statistics: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 2723 let this = self; 2724 unsafe { 2725 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2726 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), statistics.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 2727 } 2728 } 2729 #[cfg(feature = "Foundation")] ReleaseDeviceRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedCashDrawer, ::windows::runtime::IInspectable>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>2730 pub fn ReleaseDeviceRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedCashDrawer, ::windows::runtime::IInspectable>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 2731 let this = self; 2732 unsafe { 2733 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 2734 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 2735 } 2736 } 2737 #[cfg(feature = "Foundation")] RemoveReleaseDeviceRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>2738 pub fn RemoveReleaseDeviceRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 2739 let this = self; 2740 unsafe { (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 2741 } 2742 #[cfg(feature = "Foundation")] Close(&self) -> ::windows::runtime::Result<()>2743 pub fn Close(&self) -> ::windows::runtime::Result<()> { 2744 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::IClosable>(self)?; 2745 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 2746 } 2747 #[cfg(feature = "Foundation")] Closed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedCashDrawer, ClaimedCashDrawerClosedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>2748 pub fn Closed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedCashDrawer, ClaimedCashDrawerClosedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 2749 let this = &::windows::runtime::Interface::cast::<IClaimedCashDrawer2>(self)?; 2750 unsafe { 2751 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 2752 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 2753 } 2754 } 2755 #[cfg(feature = "Foundation")] RemoveClosed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>2756 pub fn RemoveClosed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 2757 let this = &::windows::runtime::Interface::cast::<IClaimedCashDrawer2>(self)?; 2758 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 2759 } 2760 } 2761 unsafe impl ::windows::runtime::RuntimeType for ClaimedCashDrawer { 2762 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.ClaimedCashDrawer;{ca3f99af-abb8-42c1-8a84-5c66512f5a75})"); 2763 } 2764 unsafe impl ::windows::runtime::Interface for ClaimedCashDrawer { 2765 type Vtable = IClaimedCashDrawer_abi; 2766 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3393165743, 43960, 17089, [138, 132, 92, 102, 81, 47, 90, 117]); 2767 } 2768 impl ::windows::runtime::RuntimeName for ClaimedCashDrawer { 2769 const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedCashDrawer"; 2770 } 2771 impl ::std::convert::From<ClaimedCashDrawer> for ::windows::runtime::IUnknown { from(value: ClaimedCashDrawer) -> Self2772 fn from(value: ClaimedCashDrawer) -> Self { 2773 unsafe { ::std::mem::transmute(value) } 2774 } 2775 } 2776 impl ::std::convert::From<&ClaimedCashDrawer> for ::windows::runtime::IUnknown { from(value: &ClaimedCashDrawer) -> Self2777 fn from(value: &ClaimedCashDrawer) -> Self { 2778 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2779 } 2780 } 2781 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ClaimedCashDrawer { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2782 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2783 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2784 } 2785 } 2786 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ClaimedCashDrawer { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2787 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2788 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2789 } 2790 } 2791 impl ::std::convert::From<ClaimedCashDrawer> for ::windows::runtime::IInspectable { from(value: ClaimedCashDrawer) -> Self2792 fn from(value: ClaimedCashDrawer) -> Self { 2793 value.0 2794 } 2795 } 2796 impl ::std::convert::From<&ClaimedCashDrawer> for ::windows::runtime::IInspectable { from(value: &ClaimedCashDrawer) -> Self2797 fn from(value: &ClaimedCashDrawer) -> Self { 2798 value.0.clone() 2799 } 2800 } 2801 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ClaimedCashDrawer { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2802 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2803 ::windows::runtime::Param::Owned(self.0) 2804 } 2805 } 2806 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ClaimedCashDrawer { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2807 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2808 ::windows::runtime::Param::Borrowed(&self.0) 2809 } 2810 } 2811 #[cfg(feature = "Foundation")] 2812 impl ::std::convert::TryFrom<ClaimedCashDrawer> for super::super::Foundation::IClosable { 2813 type Error = ::windows::runtime::Error; try_from(value: ClaimedCashDrawer) -> ::windows::runtime::Result<Self>2814 fn try_from(value: ClaimedCashDrawer) -> ::windows::runtime::Result<Self> { 2815 ::std::convert::TryFrom::try_from(&value) 2816 } 2817 } 2818 #[cfg(feature = "Foundation")] 2819 impl ::std::convert::TryFrom<&ClaimedCashDrawer> for super::super::Foundation::IClosable { 2820 type Error = ::windows::runtime::Error; try_from(value: &ClaimedCashDrawer) -> ::windows::runtime::Result<Self>2821 fn try_from(value: &ClaimedCashDrawer) -> ::windows::runtime::Result<Self> { 2822 ::windows::runtime::Interface::cast(value) 2823 } 2824 } 2825 #[cfg(feature = "Foundation")] 2826 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for ClaimedCashDrawer { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>2827 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 2828 ::windows::runtime::IntoParam::into_param(&self) 2829 } 2830 } 2831 #[cfg(feature = "Foundation")] 2832 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for &ClaimedCashDrawer { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>2833 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 2834 ::std::convert::TryInto::<super::super::Foundation::IClosable>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 2835 } 2836 } 2837 unsafe impl ::std::marker::Send for ClaimedCashDrawer {} 2838 unsafe impl ::std::marker::Sync for ClaimedCashDrawer {} 2839 #[repr(transparent)] 2840 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2841 pub struct ClaimedCashDrawerClosedEventArgs(::windows::runtime::IInspectable); 2842 impl ClaimedCashDrawerClosedEventArgs {} 2843 unsafe impl ::windows::runtime::RuntimeType for ClaimedCashDrawerClosedEventArgs { 2844 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.ClaimedCashDrawerClosedEventArgs;{cc573f33-3f34-4c5c-baae-deadf16cd7fa})"); 2845 } 2846 unsafe impl ::windows::runtime::Interface for ClaimedCashDrawerClosedEventArgs { 2847 type Vtable = IClaimedCashDrawerClosedEventArgs_abi; 2848 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3428269875, 16180, 19548, [186, 174, 222, 173, 241, 108, 215, 250]); 2849 } 2850 impl ::windows::runtime::RuntimeName for ClaimedCashDrawerClosedEventArgs { 2851 const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedCashDrawerClosedEventArgs"; 2852 } 2853 impl ::std::convert::From<ClaimedCashDrawerClosedEventArgs> for ::windows::runtime::IUnknown { from(value: ClaimedCashDrawerClosedEventArgs) -> Self2854 fn from(value: ClaimedCashDrawerClosedEventArgs) -> Self { 2855 unsafe { ::std::mem::transmute(value) } 2856 } 2857 } 2858 impl ::std::convert::From<&ClaimedCashDrawerClosedEventArgs> for ::windows::runtime::IUnknown { from(value: &ClaimedCashDrawerClosedEventArgs) -> Self2859 fn from(value: &ClaimedCashDrawerClosedEventArgs) -> Self { 2860 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2861 } 2862 } 2863 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ClaimedCashDrawerClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2864 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2865 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2866 } 2867 } 2868 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ClaimedCashDrawerClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2869 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2870 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2871 } 2872 } 2873 impl ::std::convert::From<ClaimedCashDrawerClosedEventArgs> for ::windows::runtime::IInspectable { from(value: ClaimedCashDrawerClosedEventArgs) -> Self2874 fn from(value: ClaimedCashDrawerClosedEventArgs) -> Self { 2875 value.0 2876 } 2877 } 2878 impl ::std::convert::From<&ClaimedCashDrawerClosedEventArgs> for ::windows::runtime::IInspectable { from(value: &ClaimedCashDrawerClosedEventArgs) -> Self2879 fn from(value: &ClaimedCashDrawerClosedEventArgs) -> Self { 2880 value.0.clone() 2881 } 2882 } 2883 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ClaimedCashDrawerClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2884 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2885 ::windows::runtime::Param::Owned(self.0) 2886 } 2887 } 2888 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ClaimedCashDrawerClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2889 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2890 ::windows::runtime::Param::Borrowed(&self.0) 2891 } 2892 } 2893 unsafe impl ::std::marker::Send for ClaimedCashDrawerClosedEventArgs {} 2894 unsafe impl ::std::marker::Sync for ClaimedCashDrawerClosedEventArgs {} 2895 #[repr(transparent)] 2896 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2897 pub struct ClaimedJournalPrinter(::windows::runtime::IInspectable); 2898 impl ClaimedJournalPrinter { CreateJob(&self) -> ::windows::runtime::Result<JournalPrintJob>2899 pub fn CreateJob(&self) -> ::windows::runtime::Result<JournalPrintJob> { 2900 let this = self; 2901 unsafe { 2902 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2903 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<JournalPrintJob>(result__) 2904 } 2905 } SetCharactersPerLine(&self, value: u32) -> ::windows::runtime::Result<()>2906 pub fn SetCharactersPerLine(&self, value: u32) -> ::windows::runtime::Result<()> { 2907 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 2908 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), value).ok() } 2909 } CharactersPerLine(&self) -> ::windows::runtime::Result<u32>2910 pub fn CharactersPerLine(&self) -> ::windows::runtime::Result<u32> { 2911 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 2912 unsafe { 2913 let mut result__: u32 = ::std::mem::zeroed(); 2914 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 2915 } 2916 } SetLineHeight(&self, value: u32) -> ::windows::runtime::Result<()>2917 pub fn SetLineHeight(&self, value: u32) -> ::windows::runtime::Result<()> { 2918 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 2919 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value).ok() } 2920 } LineHeight(&self) -> ::windows::runtime::Result<u32>2921 pub fn LineHeight(&self) -> ::windows::runtime::Result<u32> { 2922 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 2923 unsafe { 2924 let mut result__: u32 = ::std::mem::zeroed(); 2925 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 2926 } 2927 } SetLineSpacing(&self, value: u32) -> ::windows::runtime::Result<()>2928 pub fn SetLineSpacing(&self, value: u32) -> ::windows::runtime::Result<()> { 2929 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 2930 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value).ok() } 2931 } LineSpacing(&self) -> ::windows::runtime::Result<u32>2932 pub fn LineSpacing(&self) -> ::windows::runtime::Result<u32> { 2933 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 2934 unsafe { 2935 let mut result__: u32 = ::std::mem::zeroed(); 2936 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 2937 } 2938 } LineWidth(&self) -> ::windows::runtime::Result<u32>2939 pub fn LineWidth(&self) -> ::windows::runtime::Result<u32> { 2940 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 2941 unsafe { 2942 let mut result__: u32 = ::std::mem::zeroed(); 2943 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 2944 } 2945 } SetIsLetterQuality(&self, value: bool) -> ::windows::runtime::Result<()>2946 pub fn SetIsLetterQuality(&self, value: bool) -> ::windows::runtime::Result<()> { 2947 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 2948 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value).ok() } 2949 } IsLetterQuality(&self) -> ::windows::runtime::Result<bool>2950 pub fn IsLetterQuality(&self) -> ::windows::runtime::Result<bool> { 2951 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 2952 unsafe { 2953 let mut result__: bool = ::std::mem::zeroed(); 2954 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 2955 } 2956 } IsPaperNearEnd(&self) -> ::windows::runtime::Result<bool>2957 pub fn IsPaperNearEnd(&self) -> ::windows::runtime::Result<bool> { 2958 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 2959 unsafe { 2960 let mut result__: bool = ::std::mem::zeroed(); 2961 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 2962 } 2963 } SetColorCartridge(&self, value: PosPrinterColorCartridge) -> ::windows::runtime::Result<()>2964 pub fn SetColorCartridge(&self, value: PosPrinterColorCartridge) -> ::windows::runtime::Result<()> { 2965 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 2966 unsafe { (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), value).ok() } 2967 } ColorCartridge(&self) -> ::windows::runtime::Result<PosPrinterColorCartridge>2968 pub fn ColorCartridge(&self) -> ::windows::runtime::Result<PosPrinterColorCartridge> { 2969 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 2970 unsafe { 2971 let mut result__: PosPrinterColorCartridge = ::std::mem::zeroed(); 2972 (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), &mut result__).from_abi::<PosPrinterColorCartridge>(result__) 2973 } 2974 } IsCoverOpen(&self) -> ::windows::runtime::Result<bool>2975 pub fn IsCoverOpen(&self) -> ::windows::runtime::Result<bool> { 2976 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 2977 unsafe { 2978 let mut result__: bool = ::std::mem::zeroed(); 2979 (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 2980 } 2981 } IsCartridgeRemoved(&self) -> ::windows::runtime::Result<bool>2982 pub fn IsCartridgeRemoved(&self) -> ::windows::runtime::Result<bool> { 2983 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 2984 unsafe { 2985 let mut result__: bool = ::std::mem::zeroed(); 2986 (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 2987 } 2988 } IsCartridgeEmpty(&self) -> ::windows::runtime::Result<bool>2989 pub fn IsCartridgeEmpty(&self) -> ::windows::runtime::Result<bool> { 2990 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 2991 unsafe { 2992 let mut result__: bool = ::std::mem::zeroed(); 2993 (::windows::runtime::Interface::vtable(this).20)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 2994 } 2995 } IsHeadCleaning(&self) -> ::windows::runtime::Result<bool>2996 pub fn IsHeadCleaning(&self) -> ::windows::runtime::Result<bool> { 2997 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 2998 unsafe { 2999 let mut result__: bool = ::std::mem::zeroed(); 3000 (::windows::runtime::Interface::vtable(this).21)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 3001 } 3002 } IsPaperEmpty(&self) -> ::windows::runtime::Result<bool>3003 pub fn IsPaperEmpty(&self) -> ::windows::runtime::Result<bool> { 3004 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 3005 unsafe { 3006 let mut result__: bool = ::std::mem::zeroed(); 3007 (::windows::runtime::Interface::vtable(this).22)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 3008 } 3009 } IsReadyToPrint(&self) -> ::windows::runtime::Result<bool>3010 pub fn IsReadyToPrint(&self) -> ::windows::runtime::Result<bool> { 3011 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 3012 unsafe { 3013 let mut result__: bool = ::std::mem::zeroed(); 3014 (::windows::runtime::Interface::vtable(this).23)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 3015 } 3016 } ValidateData<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, data: Param0) -> ::windows::runtime::Result<bool>3017 pub fn ValidateData<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, data: Param0) -> ::windows::runtime::Result<bool> { 3018 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 3019 unsafe { 3020 let mut result__: bool = ::std::mem::zeroed(); 3021 (::windows::runtime::Interface::vtable(this).24)(::std::mem::transmute_copy(this), data.into_param().abi(), &mut result__).from_abi::<bool>(result__) 3022 } 3023 } 3024 } 3025 unsafe impl ::windows::runtime::RuntimeType for ClaimedJournalPrinter { 3026 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.ClaimedJournalPrinter;{67ea0630-517d-487f-9fdf-d2e0a0a264a5})"); 3027 } 3028 unsafe impl ::windows::runtime::Interface for ClaimedJournalPrinter { 3029 type Vtable = IClaimedJournalPrinter_abi; 3030 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1743390256, 20861, 18559, [159, 223, 210, 224, 160, 162, 100, 165]); 3031 } 3032 impl ::windows::runtime::RuntimeName for ClaimedJournalPrinter { 3033 const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedJournalPrinter"; 3034 } 3035 impl ::std::convert::From<ClaimedJournalPrinter> for ::windows::runtime::IUnknown { from(value: ClaimedJournalPrinter) -> Self3036 fn from(value: ClaimedJournalPrinter) -> Self { 3037 unsafe { ::std::mem::transmute(value) } 3038 } 3039 } 3040 impl ::std::convert::From<&ClaimedJournalPrinter> for ::windows::runtime::IUnknown { from(value: &ClaimedJournalPrinter) -> Self3041 fn from(value: &ClaimedJournalPrinter) -> Self { 3042 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3043 } 3044 } 3045 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ClaimedJournalPrinter { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3046 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3047 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3048 } 3049 } 3050 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ClaimedJournalPrinter { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3051 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3052 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3053 } 3054 } 3055 impl ::std::convert::From<ClaimedJournalPrinter> for ::windows::runtime::IInspectable { from(value: ClaimedJournalPrinter) -> Self3056 fn from(value: ClaimedJournalPrinter) -> Self { 3057 value.0 3058 } 3059 } 3060 impl ::std::convert::From<&ClaimedJournalPrinter> for ::windows::runtime::IInspectable { from(value: &ClaimedJournalPrinter) -> Self3061 fn from(value: &ClaimedJournalPrinter) -> Self { 3062 value.0.clone() 3063 } 3064 } 3065 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ClaimedJournalPrinter { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3066 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3067 ::windows::runtime::Param::Owned(self.0) 3068 } 3069 } 3070 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ClaimedJournalPrinter { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3071 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3072 ::windows::runtime::Param::Borrowed(&self.0) 3073 } 3074 } 3075 impl ::std::convert::TryFrom<ClaimedJournalPrinter> for ICommonClaimedPosPrinterStation { 3076 type Error = ::windows::runtime::Error; try_from(value: ClaimedJournalPrinter) -> ::windows::runtime::Result<Self>3077 fn try_from(value: ClaimedJournalPrinter) -> ::windows::runtime::Result<Self> { 3078 ::std::convert::TryFrom::try_from(&value) 3079 } 3080 } 3081 impl ::std::convert::TryFrom<&ClaimedJournalPrinter> for ICommonClaimedPosPrinterStation { 3082 type Error = ::windows::runtime::Error; try_from(value: &ClaimedJournalPrinter) -> ::windows::runtime::Result<Self>3083 fn try_from(value: &ClaimedJournalPrinter) -> ::windows::runtime::Result<Self> { 3084 ::windows::runtime::Interface::cast(value) 3085 } 3086 } 3087 impl<'a> ::windows::runtime::IntoParam<'a, ICommonClaimedPosPrinterStation> for ClaimedJournalPrinter { into_param(self) -> ::windows::runtime::Param<'a, ICommonClaimedPosPrinterStation>3088 fn into_param(self) -> ::windows::runtime::Param<'a, ICommonClaimedPosPrinterStation> { 3089 ::windows::runtime::IntoParam::into_param(&self) 3090 } 3091 } 3092 impl<'a> ::windows::runtime::IntoParam<'a, ICommonClaimedPosPrinterStation> for &ClaimedJournalPrinter { into_param(self) -> ::windows::runtime::Param<'a, ICommonClaimedPosPrinterStation>3093 fn into_param(self) -> ::windows::runtime::Param<'a, ICommonClaimedPosPrinterStation> { 3094 ::std::convert::TryInto::<ICommonClaimedPosPrinterStation>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 3095 } 3096 } 3097 unsafe impl ::std::marker::Send for ClaimedJournalPrinter {} 3098 unsafe impl ::std::marker::Sync for ClaimedJournalPrinter {} 3099 #[repr(transparent)] 3100 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3101 pub struct ClaimedLineDisplay(::windows::runtime::IInspectable); 3102 impl ClaimedLineDisplay { 3103 #[cfg(feature = "Foundation")] Close(&self) -> ::windows::runtime::Result<()>3104 pub fn Close(&self) -> ::windows::runtime::Result<()> { 3105 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::IClosable>(self)?; 3106 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 3107 } DeviceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3108 pub fn DeviceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3109 let this = self; 3110 unsafe { 3111 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3112 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3113 } 3114 } Capabilities(&self) -> ::windows::runtime::Result<LineDisplayCapabilities>3115 pub fn Capabilities(&self) -> ::windows::runtime::Result<LineDisplayCapabilities> { 3116 let this = self; 3117 unsafe { 3118 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3119 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<LineDisplayCapabilities>(result__) 3120 } 3121 } PhysicalDeviceName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3122 pub fn PhysicalDeviceName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3123 let this = self; 3124 unsafe { 3125 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3126 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3127 } 3128 } PhysicalDeviceDescription(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3129 pub fn PhysicalDeviceDescription(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3130 let this = self; 3131 unsafe { 3132 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3133 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3134 } 3135 } DeviceControlDescription(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3136 pub fn DeviceControlDescription(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3137 let this = self; 3138 unsafe { 3139 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3140 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3141 } 3142 } DeviceControlVersion(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3143 pub fn DeviceControlVersion(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3144 let this = self; 3145 unsafe { 3146 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3147 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3148 } 3149 } DeviceServiceVersion(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3150 pub fn DeviceServiceVersion(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3151 let this = self; 3152 unsafe { 3153 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3154 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3155 } 3156 } DefaultWindow(&self) -> ::windows::runtime::Result<LineDisplayWindow>3157 pub fn DefaultWindow(&self) -> ::windows::runtime::Result<LineDisplayWindow> { 3158 let this = self; 3159 unsafe { 3160 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3161 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), &mut result__).from_abi::<LineDisplayWindow>(result__) 3162 } 3163 } RetainDevice(&self) -> ::windows::runtime::Result<()>3164 pub fn RetainDevice(&self) -> ::windows::runtime::Result<()> { 3165 let this = self; 3166 unsafe { (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this)).ok() } 3167 } 3168 #[cfg(feature = "Foundation")] ReleaseDeviceRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedLineDisplay, ::windows::runtime::IInspectable>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>3169 pub fn ReleaseDeviceRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedLineDisplay, ::windows::runtime::IInspectable>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 3170 let this = self; 3171 unsafe { 3172 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 3173 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 3174 } 3175 } 3176 #[cfg(feature = "Foundation")] RemoveReleaseDeviceRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>3177 pub fn RemoveReleaseDeviceRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 3178 let this = self; 3179 unsafe { (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 3180 } 3181 #[cfg(feature = "Foundation")] FromIdAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(deviceid: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<ClaimedLineDisplay>>3182 pub fn FromIdAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(deviceid: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<ClaimedLineDisplay>> { 3183 Self::IClaimedLineDisplayStatics(|this| unsafe { 3184 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3185 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), deviceid.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<ClaimedLineDisplay>>(result__) 3186 }) 3187 } GetDeviceSelector() -> ::windows::runtime::Result<::windows::runtime::HSTRING>3188 pub fn GetDeviceSelector() -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3189 Self::IClaimedLineDisplayStatics(|this| unsafe { 3190 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3191 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3192 }) 3193 } GetDeviceSelectorWithConnectionTypes(connectiontypes: PosConnectionTypes) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3194 pub fn GetDeviceSelectorWithConnectionTypes(connectiontypes: PosConnectionTypes) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3195 Self::IClaimedLineDisplayStatics(|this| unsafe { 3196 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3197 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), connectiontypes, &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3198 }) 3199 } 3200 #[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))] GetStatisticsAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<::windows::runtime::HSTRING>>>(&self, statisticscategories: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>>3201 pub fn GetStatisticsAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<::windows::runtime::HSTRING>>>(&self, statisticscategories: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>> { 3202 let this = &::windows::runtime::Interface::cast::<IClaimedLineDisplay2>(self)?; 3203 unsafe { 3204 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3205 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), statisticscategories.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>>(result__) 3206 } 3207 } 3208 #[cfg(feature = "Foundation")] CheckHealthAsync(&self, level: UnifiedPosHealthCheckLevel) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>>3209 pub fn CheckHealthAsync(&self, level: UnifiedPosHealthCheckLevel) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>> { 3210 let this = &::windows::runtime::Interface::cast::<IClaimedLineDisplay2>(self)?; 3211 unsafe { 3212 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3213 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), level, &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<::windows::runtime::HSTRING>>(result__) 3214 } 3215 } 3216 #[cfg(feature = "Foundation")] CheckPowerStatusAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<LineDisplayPowerStatus>>3217 pub fn CheckPowerStatusAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<LineDisplayPowerStatus>> { 3218 let this = &::windows::runtime::Interface::cast::<IClaimedLineDisplay2>(self)?; 3219 unsafe { 3220 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3221 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<LineDisplayPowerStatus>>(result__) 3222 } 3223 } 3224 #[cfg(feature = "Foundation")] StatusUpdated<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedLineDisplay, LineDisplayStatusUpdatedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>3225 pub fn StatusUpdated<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedLineDisplay, LineDisplayStatusUpdatedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 3226 let this = &::windows::runtime::Interface::cast::<IClaimedLineDisplay2>(self)?; 3227 unsafe { 3228 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 3229 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 3230 } 3231 } 3232 #[cfg(feature = "Foundation")] RemoveStatusUpdated<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>3233 pub fn RemoveStatusUpdated<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 3234 let this = &::windows::runtime::Interface::cast::<IClaimedLineDisplay2>(self)?; 3235 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 3236 } 3237 #[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))] SupportedScreenSizesInCharacters(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IVectorView<super::super::Foundation::Size>>3238 pub fn SupportedScreenSizesInCharacters(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IVectorView<super::super::Foundation::Size>> { 3239 let this = &::windows::runtime::Interface::cast::<IClaimedLineDisplay2>(self)?; 3240 unsafe { 3241 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3242 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Collections::IVectorView<super::super::Foundation::Size>>(result__) 3243 } 3244 } 3245 #[cfg(feature = "Foundation")] MaxBitmapSizeInPixels(&self) -> ::windows::runtime::Result<super::super::Foundation::Size>3246 pub fn MaxBitmapSizeInPixels(&self) -> ::windows::runtime::Result<super::super::Foundation::Size> { 3247 let this = &::windows::runtime::Interface::cast::<IClaimedLineDisplay2>(self)?; 3248 unsafe { 3249 let mut result__: super::super::Foundation::Size = ::std::mem::zeroed(); 3250 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Size>(result__) 3251 } 3252 } 3253 #[cfg(feature = "Foundation_Collections")] SupportedCharacterSets(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IVectorView<i32>>3254 pub fn SupportedCharacterSets(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::IVectorView<i32>> { 3255 let this = &::windows::runtime::Interface::cast::<IClaimedLineDisplay2>(self)?; 3256 unsafe { 3257 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3258 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Collections::IVectorView<i32>>(result__) 3259 } 3260 } CustomGlyphs(&self) -> ::windows::runtime::Result<LineDisplayCustomGlyphs>3261 pub fn CustomGlyphs(&self) -> ::windows::runtime::Result<LineDisplayCustomGlyphs> { 3262 let this = &::windows::runtime::Interface::cast::<IClaimedLineDisplay2>(self)?; 3263 unsafe { 3264 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3265 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<LineDisplayCustomGlyphs>(result__) 3266 } 3267 } GetAttributes(&self) -> ::windows::runtime::Result<LineDisplayAttributes>3268 pub fn GetAttributes(&self) -> ::windows::runtime::Result<LineDisplayAttributes> { 3269 let this = &::windows::runtime::Interface::cast::<IClaimedLineDisplay2>(self)?; 3270 unsafe { 3271 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3272 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), &mut result__).from_abi::<LineDisplayAttributes>(result__) 3273 } 3274 } 3275 #[cfg(feature = "Foundation")] TryUpdateAttributesAsync<'a, Param0: ::windows::runtime::IntoParam<'a, LineDisplayAttributes>>(&self, attributes: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>3276 pub fn TryUpdateAttributesAsync<'a, Param0: ::windows::runtime::IntoParam<'a, LineDisplayAttributes>>(&self, attributes: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 3277 let this = &::windows::runtime::Interface::cast::<IClaimedLineDisplay2>(self)?; 3278 unsafe { 3279 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3280 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), attributes.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 3281 } 3282 } 3283 #[cfg(feature = "Foundation")] TrySetDescriptorAsync(&self, descriptor: u32, descriptorstate: LineDisplayDescriptorState) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>3284 pub fn TrySetDescriptorAsync(&self, descriptor: u32, descriptorstate: LineDisplayDescriptorState) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 3285 let this = &::windows::runtime::Interface::cast::<IClaimedLineDisplay2>(self)?; 3286 unsafe { 3287 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3288 (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), descriptor, descriptorstate, &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 3289 } 3290 } 3291 #[cfg(feature = "Foundation")] TryClearDescriptorsAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>3292 pub fn TryClearDescriptorsAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 3293 let this = &::windows::runtime::Interface::cast::<IClaimedLineDisplay2>(self)?; 3294 unsafe { 3295 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3296 (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 3297 } 3298 } 3299 #[cfg(feature = "Foundation")] TryCreateWindowAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Rect>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Size>>(&self, viewport: Param0, windowsize: Param1) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<LineDisplayWindow>>3300 pub fn TryCreateWindowAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Rect>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::Size>>(&self, viewport: Param0, windowsize: Param1) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<LineDisplayWindow>> { 3301 let this = &::windows::runtime::Interface::cast::<IClaimedLineDisplay2>(self)?; 3302 unsafe { 3303 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3304 (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), viewport.into_param().abi(), windowsize.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<LineDisplayWindow>>(result__) 3305 } 3306 } 3307 #[cfg(all(feature = "Foundation", feature = "Storage"))] TryStoreStorageFileBitmapAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Storage::StorageFile>>(&self, bitmap: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<LineDisplayStoredBitmap>>3308 pub fn TryStoreStorageFileBitmapAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Storage::StorageFile>>(&self, bitmap: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<LineDisplayStoredBitmap>> { 3309 let this = &::windows::runtime::Interface::cast::<IClaimedLineDisplay2>(self)?; 3310 unsafe { 3311 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3312 (::windows::runtime::Interface::vtable(this).20)(::std::mem::transmute_copy(this), bitmap.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<LineDisplayStoredBitmap>>(result__) 3313 } 3314 } 3315 #[cfg(all(feature = "Foundation", feature = "Storage"))] TryStoreStorageFileBitmapWithAlignmentAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Storage::StorageFile>>(&self, bitmap: Param0, horizontalalignment: LineDisplayHorizontalAlignment, verticalalignment: LineDisplayVerticalAlignment) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<LineDisplayStoredBitmap>>3316 pub fn TryStoreStorageFileBitmapWithAlignmentAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Storage::StorageFile>>(&self, bitmap: Param0, horizontalalignment: LineDisplayHorizontalAlignment, verticalalignment: LineDisplayVerticalAlignment) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<LineDisplayStoredBitmap>> { 3317 let this = &::windows::runtime::Interface::cast::<IClaimedLineDisplay2>(self)?; 3318 unsafe { 3319 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3320 (::windows::runtime::Interface::vtable(this).21)(::std::mem::transmute_copy(this), bitmap.into_param().abi(), horizontalalignment, verticalalignment, &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<LineDisplayStoredBitmap>>(result__) 3321 } 3322 } 3323 #[cfg(all(feature = "Foundation", feature = "Storage"))] TryStoreStorageFileBitmapWithAlignmentAndWidthAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Storage::StorageFile>>(&self, bitmap: Param0, horizontalalignment: LineDisplayHorizontalAlignment, verticalalignment: LineDisplayVerticalAlignment, widthinpixels: i32) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<LineDisplayStoredBitmap>>3324 pub fn TryStoreStorageFileBitmapWithAlignmentAndWidthAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Storage::StorageFile>>(&self, bitmap: Param0, horizontalalignment: LineDisplayHorizontalAlignment, verticalalignment: LineDisplayVerticalAlignment, widthinpixels: i32) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<LineDisplayStoredBitmap>> { 3325 let this = &::windows::runtime::Interface::cast::<IClaimedLineDisplay2>(self)?; 3326 unsafe { 3327 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3328 (::windows::runtime::Interface::vtable(this).22)(::std::mem::transmute_copy(this), bitmap.into_param().abi(), horizontalalignment, verticalalignment, widthinpixels, &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<LineDisplayStoredBitmap>>(result__) 3329 } 3330 } 3331 #[cfg(feature = "Foundation")] Closed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedLineDisplay, ClaimedLineDisplayClosedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>3332 pub fn Closed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedLineDisplay, ClaimedLineDisplayClosedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 3333 let this = &::windows::runtime::Interface::cast::<IClaimedLineDisplay3>(self)?; 3334 unsafe { 3335 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 3336 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 3337 } 3338 } 3339 #[cfg(feature = "Foundation")] RemoveClosed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>3340 pub fn RemoveClosed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 3341 let this = &::windows::runtime::Interface::cast::<IClaimedLineDisplay3>(self)?; 3342 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 3343 } IClaimedLineDisplayStatics<R, F: FnOnce(&IClaimedLineDisplayStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>3344 pub fn IClaimedLineDisplayStatics<R, F: FnOnce(&IClaimedLineDisplayStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 3345 static mut SHARED: ::windows::runtime::FactoryCache<ClaimedLineDisplay, IClaimedLineDisplayStatics> = ::windows::runtime::FactoryCache::new(); 3346 unsafe { SHARED.call(callback) } 3347 } 3348 } 3349 unsafe impl ::windows::runtime::RuntimeType for ClaimedLineDisplay { 3350 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.ClaimedLineDisplay;{120ac970-9a75-4acf-aae7-09972bcf8794})"); 3351 } 3352 unsafe impl ::windows::runtime::Interface for ClaimedLineDisplay { 3353 type Vtable = IClaimedLineDisplay_abi; 3354 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(302696816, 39541, 19151, [170, 231, 9, 151, 43, 207, 135, 148]); 3355 } 3356 impl ::windows::runtime::RuntimeName for ClaimedLineDisplay { 3357 const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedLineDisplay"; 3358 } 3359 impl ::std::convert::From<ClaimedLineDisplay> for ::windows::runtime::IUnknown { from(value: ClaimedLineDisplay) -> Self3360 fn from(value: ClaimedLineDisplay) -> Self { 3361 unsafe { ::std::mem::transmute(value) } 3362 } 3363 } 3364 impl ::std::convert::From<&ClaimedLineDisplay> for ::windows::runtime::IUnknown { from(value: &ClaimedLineDisplay) -> Self3365 fn from(value: &ClaimedLineDisplay) -> Self { 3366 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3367 } 3368 } 3369 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ClaimedLineDisplay { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3370 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3371 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3372 } 3373 } 3374 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ClaimedLineDisplay { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3375 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3376 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3377 } 3378 } 3379 impl ::std::convert::From<ClaimedLineDisplay> for ::windows::runtime::IInspectable { from(value: ClaimedLineDisplay) -> Self3380 fn from(value: ClaimedLineDisplay) -> Self { 3381 value.0 3382 } 3383 } 3384 impl ::std::convert::From<&ClaimedLineDisplay> for ::windows::runtime::IInspectable { from(value: &ClaimedLineDisplay) -> Self3385 fn from(value: &ClaimedLineDisplay) -> Self { 3386 value.0.clone() 3387 } 3388 } 3389 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ClaimedLineDisplay { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3390 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3391 ::windows::runtime::Param::Owned(self.0) 3392 } 3393 } 3394 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ClaimedLineDisplay { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3395 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3396 ::windows::runtime::Param::Borrowed(&self.0) 3397 } 3398 } 3399 #[cfg(feature = "Foundation")] 3400 impl ::std::convert::TryFrom<ClaimedLineDisplay> for super::super::Foundation::IClosable { 3401 type Error = ::windows::runtime::Error; try_from(value: ClaimedLineDisplay) -> ::windows::runtime::Result<Self>3402 fn try_from(value: ClaimedLineDisplay) -> ::windows::runtime::Result<Self> { 3403 ::std::convert::TryFrom::try_from(&value) 3404 } 3405 } 3406 #[cfg(feature = "Foundation")] 3407 impl ::std::convert::TryFrom<&ClaimedLineDisplay> for super::super::Foundation::IClosable { 3408 type Error = ::windows::runtime::Error; try_from(value: &ClaimedLineDisplay) -> ::windows::runtime::Result<Self>3409 fn try_from(value: &ClaimedLineDisplay) -> ::windows::runtime::Result<Self> { 3410 ::windows::runtime::Interface::cast(value) 3411 } 3412 } 3413 #[cfg(feature = "Foundation")] 3414 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for ClaimedLineDisplay { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>3415 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 3416 ::windows::runtime::IntoParam::into_param(&self) 3417 } 3418 } 3419 #[cfg(feature = "Foundation")] 3420 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for &ClaimedLineDisplay { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>3421 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 3422 ::std::convert::TryInto::<super::super::Foundation::IClosable>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 3423 } 3424 } 3425 unsafe impl ::std::marker::Send for ClaimedLineDisplay {} 3426 unsafe impl ::std::marker::Sync for ClaimedLineDisplay {} 3427 #[repr(transparent)] 3428 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3429 pub struct ClaimedLineDisplayClosedEventArgs(::windows::runtime::IInspectable); 3430 impl ClaimedLineDisplayClosedEventArgs {} 3431 unsafe impl ::windows::runtime::RuntimeType for ClaimedLineDisplayClosedEventArgs { 3432 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.ClaimedLineDisplayClosedEventArgs;{f915f364-d3d5-4f10-b511-90939edfacd8})"); 3433 } 3434 unsafe impl ::windows::runtime::Interface for ClaimedLineDisplayClosedEventArgs { 3435 type Vtable = IClaimedLineDisplayClosedEventArgs_abi; 3436 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4178965348, 54229, 20240, [181, 17, 144, 147, 158, 223, 172, 216]); 3437 } 3438 impl ::windows::runtime::RuntimeName for ClaimedLineDisplayClosedEventArgs { 3439 const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedLineDisplayClosedEventArgs"; 3440 } 3441 impl ::std::convert::From<ClaimedLineDisplayClosedEventArgs> for ::windows::runtime::IUnknown { from(value: ClaimedLineDisplayClosedEventArgs) -> Self3442 fn from(value: ClaimedLineDisplayClosedEventArgs) -> Self { 3443 unsafe { ::std::mem::transmute(value) } 3444 } 3445 } 3446 impl ::std::convert::From<&ClaimedLineDisplayClosedEventArgs> for ::windows::runtime::IUnknown { from(value: &ClaimedLineDisplayClosedEventArgs) -> Self3447 fn from(value: &ClaimedLineDisplayClosedEventArgs) -> Self { 3448 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3449 } 3450 } 3451 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ClaimedLineDisplayClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3452 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3453 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3454 } 3455 } 3456 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ClaimedLineDisplayClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3457 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3458 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3459 } 3460 } 3461 impl ::std::convert::From<ClaimedLineDisplayClosedEventArgs> for ::windows::runtime::IInspectable { from(value: ClaimedLineDisplayClosedEventArgs) -> Self3462 fn from(value: ClaimedLineDisplayClosedEventArgs) -> Self { 3463 value.0 3464 } 3465 } 3466 impl ::std::convert::From<&ClaimedLineDisplayClosedEventArgs> for ::windows::runtime::IInspectable { from(value: &ClaimedLineDisplayClosedEventArgs) -> Self3467 fn from(value: &ClaimedLineDisplayClosedEventArgs) -> Self { 3468 value.0.clone() 3469 } 3470 } 3471 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ClaimedLineDisplayClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3472 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3473 ::windows::runtime::Param::Owned(self.0) 3474 } 3475 } 3476 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ClaimedLineDisplayClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3477 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3478 ::windows::runtime::Param::Borrowed(&self.0) 3479 } 3480 } 3481 unsafe impl ::std::marker::Send for ClaimedLineDisplayClosedEventArgs {} 3482 unsafe impl ::std::marker::Sync for ClaimedLineDisplayClosedEventArgs {} 3483 #[repr(transparent)] 3484 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3485 pub struct ClaimedMagneticStripeReader(::windows::runtime::IInspectable); 3486 impl ClaimedMagneticStripeReader { DeviceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3487 pub fn DeviceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3488 let this = self; 3489 unsafe { 3490 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3491 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3492 } 3493 } IsEnabled(&self) -> ::windows::runtime::Result<bool>3494 pub fn IsEnabled(&self) -> ::windows::runtime::Result<bool> { 3495 let this = self; 3496 unsafe { 3497 let mut result__: bool = ::std::mem::zeroed(); 3498 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 3499 } 3500 } SetIsDisabledOnDataReceived(&self, value: bool) -> ::windows::runtime::Result<()>3501 pub fn SetIsDisabledOnDataReceived(&self, value: bool) -> ::windows::runtime::Result<()> { 3502 let this = self; 3503 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value).ok() } 3504 } IsDisabledOnDataReceived(&self) -> ::windows::runtime::Result<bool>3505 pub fn IsDisabledOnDataReceived(&self) -> ::windows::runtime::Result<bool> { 3506 let this = self; 3507 unsafe { 3508 let mut result__: bool = ::std::mem::zeroed(); 3509 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 3510 } 3511 } SetIsDecodeDataEnabled(&self, value: bool) -> ::windows::runtime::Result<()>3512 pub fn SetIsDecodeDataEnabled(&self, value: bool) -> ::windows::runtime::Result<()> { 3513 let this = self; 3514 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value).ok() } 3515 } IsDecodeDataEnabled(&self) -> ::windows::runtime::Result<bool>3516 pub fn IsDecodeDataEnabled(&self) -> ::windows::runtime::Result<bool> { 3517 let this = self; 3518 unsafe { 3519 let mut result__: bool = ::std::mem::zeroed(); 3520 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 3521 } 3522 } IsDeviceAuthenticated(&self) -> ::windows::runtime::Result<bool>3523 pub fn IsDeviceAuthenticated(&self) -> ::windows::runtime::Result<bool> { 3524 let this = self; 3525 unsafe { 3526 let mut result__: bool = ::std::mem::zeroed(); 3527 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 3528 } 3529 } SetDataEncryptionAlgorithm(&self, value: u32) -> ::windows::runtime::Result<()>3530 pub fn SetDataEncryptionAlgorithm(&self, value: u32) -> ::windows::runtime::Result<()> { 3531 let this = self; 3532 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value).ok() } 3533 } DataEncryptionAlgorithm(&self) -> ::windows::runtime::Result<u32>3534 pub fn DataEncryptionAlgorithm(&self) -> ::windows::runtime::Result<u32> { 3535 let this = self; 3536 unsafe { 3537 let mut result__: u32 = ::std::mem::zeroed(); 3538 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 3539 } 3540 } SetTracksToRead(&self, value: MagneticStripeReaderTrackIds) -> ::windows::runtime::Result<()>3541 pub fn SetTracksToRead(&self, value: MagneticStripeReaderTrackIds) -> ::windows::runtime::Result<()> { 3542 let this = self; 3543 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), value).ok() } 3544 } TracksToRead(&self) -> ::windows::runtime::Result<MagneticStripeReaderTrackIds>3545 pub fn TracksToRead(&self) -> ::windows::runtime::Result<MagneticStripeReaderTrackIds> { 3546 let this = self; 3547 unsafe { 3548 let mut result__: MagneticStripeReaderTrackIds = ::std::mem::zeroed(); 3549 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), &mut result__).from_abi::<MagneticStripeReaderTrackIds>(result__) 3550 } 3551 } SetIsTransmitSentinelsEnabled(&self, value: bool) -> ::windows::runtime::Result<()>3552 pub fn SetIsTransmitSentinelsEnabled(&self, value: bool) -> ::windows::runtime::Result<()> { 3553 let this = self; 3554 unsafe { (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), value).ok() } 3555 } IsTransmitSentinelsEnabled(&self) -> ::windows::runtime::Result<bool>3556 pub fn IsTransmitSentinelsEnabled(&self) -> ::windows::runtime::Result<bool> { 3557 let this = self; 3558 unsafe { 3559 let mut result__: bool = ::std::mem::zeroed(); 3560 (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 3561 } 3562 } 3563 #[cfg(feature = "Foundation")] EnableAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction>3564 pub fn EnableAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction> { 3565 let this = self; 3566 unsafe { 3567 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3568 (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncAction>(result__) 3569 } 3570 } 3571 #[cfg(feature = "Foundation")] DisableAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction>3572 pub fn DisableAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction> { 3573 let this = self; 3574 unsafe { 3575 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3576 (::windows::runtime::Interface::vtable(this).20)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncAction>(result__) 3577 } 3578 } RetainDevice(&self) -> ::windows::runtime::Result<()>3579 pub fn RetainDevice(&self) -> ::windows::runtime::Result<()> { 3580 let this = self; 3581 unsafe { (::windows::runtime::Interface::vtable(this).21)(::std::mem::transmute_copy(this)).ok() } 3582 } SetErrorReportingType(&self, value: MagneticStripeReaderErrorReportingType) -> ::windows::runtime::Result<()>3583 pub fn SetErrorReportingType(&self, value: MagneticStripeReaderErrorReportingType) -> ::windows::runtime::Result<()> { 3584 let this = self; 3585 unsafe { (::windows::runtime::Interface::vtable(this).22)(::std::mem::transmute_copy(this), value).ok() } 3586 } 3587 #[cfg(all(feature = "Foundation", feature = "Storage_Streams"))] RetrieveDeviceAuthenticationDataAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Storage::Streams::IBuffer>>3588 pub fn RetrieveDeviceAuthenticationDataAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<super::super::Storage::Streams::IBuffer>> { 3589 let this = self; 3590 unsafe { 3591 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3592 (::windows::runtime::Interface::vtable(this).23)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<super::super::Storage::Streams::IBuffer>>(result__) 3593 } 3594 } 3595 #[cfg(feature = "Foundation")] AuthenticateDeviceAsync(&self, responsetoken: &[<u8 as ::windows::runtime::Abi>::DefaultType]) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction>3596 pub fn AuthenticateDeviceAsync(&self, responsetoken: &[<u8 as ::windows::runtime::Abi>::DefaultType]) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction> { 3597 let this = self; 3598 unsafe { 3599 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3600 (::windows::runtime::Interface::vtable(this).24)(::std::mem::transmute_copy(this), responsetoken.len() as u32, ::std::mem::transmute(responsetoken.as_ptr()), &mut result__).from_abi::<super::super::Foundation::IAsyncAction>(result__) 3601 } 3602 } 3603 #[cfg(feature = "Foundation")] DeAuthenticateDeviceAsync(&self, responsetoken: &[<u8 as ::windows::runtime::Abi>::DefaultType]) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction>3604 pub fn DeAuthenticateDeviceAsync(&self, responsetoken: &[<u8 as ::windows::runtime::Abi>::DefaultType]) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction> { 3605 let this = self; 3606 unsafe { 3607 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3608 (::windows::runtime::Interface::vtable(this).25)(::std::mem::transmute_copy(this), responsetoken.len() as u32, ::std::mem::transmute(responsetoken.as_ptr()), &mut result__).from_abi::<super::super::Foundation::IAsyncAction>(result__) 3609 } 3610 } 3611 #[cfg(feature = "Foundation")] UpdateKeyAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0, keyname: Param1) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction>3612 pub fn UpdateKeyAsync<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, key: Param0, keyname: Param1) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction> { 3613 let this = self; 3614 unsafe { 3615 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3616 (::windows::runtime::Interface::vtable(this).26)(::std::mem::transmute_copy(this), key.into_param().abi(), keyname.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncAction>(result__) 3617 } 3618 } 3619 #[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))] ResetStatisticsAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<::windows::runtime::HSTRING>>>(&self, statisticscategories: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction>3620 pub fn ResetStatisticsAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<::windows::runtime::HSTRING>>>(&self, statisticscategories: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction> { 3621 let this = self; 3622 unsafe { 3623 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3624 (::windows::runtime::Interface::vtable(this).27)(::std::mem::transmute_copy(this), statisticscategories.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncAction>(result__) 3625 } 3626 } 3627 #[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))] UpdateStatisticsAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::HSTRING>>>>(&self, statistics: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction>3628 pub fn UpdateStatisticsAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::HSTRING>>>>(&self, statistics: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncAction> { 3629 let this = self; 3630 unsafe { 3631 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3632 (::windows::runtime::Interface::vtable(this).28)(::std::mem::transmute_copy(this), statistics.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncAction>(result__) 3633 } 3634 } 3635 #[cfg(feature = "Foundation")] BankCardDataReceived<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedMagneticStripeReader, MagneticStripeReaderBankCardDataReceivedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>3636 pub fn BankCardDataReceived<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedMagneticStripeReader, MagneticStripeReaderBankCardDataReceivedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 3637 let this = self; 3638 unsafe { 3639 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 3640 (::windows::runtime::Interface::vtable(this).29)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 3641 } 3642 } 3643 #[cfg(feature = "Foundation")] RemoveBankCardDataReceived<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>3644 pub fn RemoveBankCardDataReceived<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 3645 let this = self; 3646 unsafe { (::windows::runtime::Interface::vtable(this).30)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 3647 } 3648 #[cfg(feature = "Foundation")] AamvaCardDataReceived<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedMagneticStripeReader, MagneticStripeReaderAamvaCardDataReceivedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>3649 pub fn AamvaCardDataReceived<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedMagneticStripeReader, MagneticStripeReaderAamvaCardDataReceivedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 3650 let this = self; 3651 unsafe { 3652 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 3653 (::windows::runtime::Interface::vtable(this).31)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 3654 } 3655 } 3656 #[cfg(feature = "Foundation")] RemoveAamvaCardDataReceived<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>3657 pub fn RemoveAamvaCardDataReceived<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 3658 let this = self; 3659 unsafe { (::windows::runtime::Interface::vtable(this).32)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 3660 } 3661 #[cfg(feature = "Foundation")] VendorSpecificDataReceived<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedMagneticStripeReader, MagneticStripeReaderVendorSpecificCardDataReceivedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>3662 pub fn VendorSpecificDataReceived<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedMagneticStripeReader, MagneticStripeReaderVendorSpecificCardDataReceivedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 3663 let this = self; 3664 unsafe { 3665 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 3666 (::windows::runtime::Interface::vtable(this).33)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 3667 } 3668 } 3669 #[cfg(feature = "Foundation")] RemoveVendorSpecificDataReceived<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>3670 pub fn RemoveVendorSpecificDataReceived<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 3671 let this = self; 3672 unsafe { (::windows::runtime::Interface::vtable(this).34)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 3673 } 3674 #[cfg(feature = "Foundation")] ReleaseDeviceRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventHandler<ClaimedMagneticStripeReader>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>3675 pub fn ReleaseDeviceRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventHandler<ClaimedMagneticStripeReader>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 3676 let this = self; 3677 unsafe { 3678 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 3679 (::windows::runtime::Interface::vtable(this).35)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 3680 } 3681 } 3682 #[cfg(feature = "Foundation")] RemoveReleaseDeviceRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>3683 pub fn RemoveReleaseDeviceRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 3684 let this = self; 3685 unsafe { (::windows::runtime::Interface::vtable(this).36)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 3686 } 3687 #[cfg(feature = "Foundation")] ErrorOccurred<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedMagneticStripeReader, MagneticStripeReaderErrorOccurredEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>3688 pub fn ErrorOccurred<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedMagneticStripeReader, MagneticStripeReaderErrorOccurredEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 3689 let this = self; 3690 unsafe { 3691 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 3692 (::windows::runtime::Interface::vtable(this).37)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 3693 } 3694 } 3695 #[cfg(feature = "Foundation")] RemoveErrorOccurred<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>3696 pub fn RemoveErrorOccurred<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 3697 let this = self; 3698 unsafe { (::windows::runtime::Interface::vtable(this).38)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 3699 } 3700 #[cfg(feature = "Foundation")] Close(&self) -> ::windows::runtime::Result<()>3701 pub fn Close(&self) -> ::windows::runtime::Result<()> { 3702 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::IClosable>(self)?; 3703 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 3704 } 3705 #[cfg(feature = "Foundation")] Closed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedMagneticStripeReader, ClaimedMagneticStripeReaderClosedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>3706 pub fn Closed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedMagneticStripeReader, ClaimedMagneticStripeReaderClosedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 3707 let this = &::windows::runtime::Interface::cast::<IClaimedMagneticStripeReader2>(self)?; 3708 unsafe { 3709 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 3710 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 3711 } 3712 } 3713 #[cfg(feature = "Foundation")] RemoveClosed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>3714 pub fn RemoveClosed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 3715 let this = &::windows::runtime::Interface::cast::<IClaimedMagneticStripeReader2>(self)?; 3716 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 3717 } 3718 } 3719 unsafe impl ::windows::runtime::RuntimeType for ClaimedMagneticStripeReader { 3720 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.ClaimedMagneticStripeReader;{475ca8f3-9417-48bc-b9d7-4163a7844c02})"); 3721 } 3722 unsafe impl ::windows::runtime::Interface for ClaimedMagneticStripeReader { 3723 type Vtable = IClaimedMagneticStripeReader_abi; 3724 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1197254899, 37911, 18620, [185, 215, 65, 99, 167, 132, 76, 2]); 3725 } 3726 impl ::windows::runtime::RuntimeName for ClaimedMagneticStripeReader { 3727 const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedMagneticStripeReader"; 3728 } 3729 impl ::std::convert::From<ClaimedMagneticStripeReader> for ::windows::runtime::IUnknown { from(value: ClaimedMagneticStripeReader) -> Self3730 fn from(value: ClaimedMagneticStripeReader) -> Self { 3731 unsafe { ::std::mem::transmute(value) } 3732 } 3733 } 3734 impl ::std::convert::From<&ClaimedMagneticStripeReader> for ::windows::runtime::IUnknown { from(value: &ClaimedMagneticStripeReader) -> Self3735 fn from(value: &ClaimedMagneticStripeReader) -> Self { 3736 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3737 } 3738 } 3739 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ClaimedMagneticStripeReader { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3740 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3741 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3742 } 3743 } 3744 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ClaimedMagneticStripeReader { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3745 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3746 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3747 } 3748 } 3749 impl ::std::convert::From<ClaimedMagneticStripeReader> for ::windows::runtime::IInspectable { from(value: ClaimedMagneticStripeReader) -> Self3750 fn from(value: ClaimedMagneticStripeReader) -> Self { 3751 value.0 3752 } 3753 } 3754 impl ::std::convert::From<&ClaimedMagneticStripeReader> for ::windows::runtime::IInspectable { from(value: &ClaimedMagneticStripeReader) -> Self3755 fn from(value: &ClaimedMagneticStripeReader) -> Self { 3756 value.0.clone() 3757 } 3758 } 3759 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ClaimedMagneticStripeReader { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3760 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3761 ::windows::runtime::Param::Owned(self.0) 3762 } 3763 } 3764 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ClaimedMagneticStripeReader { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3765 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3766 ::windows::runtime::Param::Borrowed(&self.0) 3767 } 3768 } 3769 #[cfg(feature = "Foundation")] 3770 impl ::std::convert::TryFrom<ClaimedMagneticStripeReader> for super::super::Foundation::IClosable { 3771 type Error = ::windows::runtime::Error; try_from(value: ClaimedMagneticStripeReader) -> ::windows::runtime::Result<Self>3772 fn try_from(value: ClaimedMagneticStripeReader) -> ::windows::runtime::Result<Self> { 3773 ::std::convert::TryFrom::try_from(&value) 3774 } 3775 } 3776 #[cfg(feature = "Foundation")] 3777 impl ::std::convert::TryFrom<&ClaimedMagneticStripeReader> for super::super::Foundation::IClosable { 3778 type Error = ::windows::runtime::Error; try_from(value: &ClaimedMagneticStripeReader) -> ::windows::runtime::Result<Self>3779 fn try_from(value: &ClaimedMagneticStripeReader) -> ::windows::runtime::Result<Self> { 3780 ::windows::runtime::Interface::cast(value) 3781 } 3782 } 3783 #[cfg(feature = "Foundation")] 3784 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for ClaimedMagneticStripeReader { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>3785 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 3786 ::windows::runtime::IntoParam::into_param(&self) 3787 } 3788 } 3789 #[cfg(feature = "Foundation")] 3790 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for &ClaimedMagneticStripeReader { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>3791 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 3792 ::std::convert::TryInto::<super::super::Foundation::IClosable>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 3793 } 3794 } 3795 unsafe impl ::std::marker::Send for ClaimedMagneticStripeReader {} 3796 unsafe impl ::std::marker::Sync for ClaimedMagneticStripeReader {} 3797 #[repr(transparent)] 3798 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3799 pub struct ClaimedMagneticStripeReaderClosedEventArgs(::windows::runtime::IInspectable); 3800 impl ClaimedMagneticStripeReaderClosedEventArgs {} 3801 unsafe impl ::windows::runtime::RuntimeType for ClaimedMagneticStripeReaderClosedEventArgs { 3802 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.ClaimedMagneticStripeReaderClosedEventArgs;{14ada93a-adcd-4c80-acda-c3eaed2647e1})"); 3803 } 3804 unsafe impl ::windows::runtime::Interface for ClaimedMagneticStripeReaderClosedEventArgs { 3805 type Vtable = IClaimedMagneticStripeReaderClosedEventArgs_abi; 3806 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(346925370, 44493, 19584, [172, 218, 195, 234, 237, 38, 71, 225]); 3807 } 3808 impl ::windows::runtime::RuntimeName for ClaimedMagneticStripeReaderClosedEventArgs { 3809 const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedMagneticStripeReaderClosedEventArgs"; 3810 } 3811 impl ::std::convert::From<ClaimedMagneticStripeReaderClosedEventArgs> for ::windows::runtime::IUnknown { from(value: ClaimedMagneticStripeReaderClosedEventArgs) -> Self3812 fn from(value: ClaimedMagneticStripeReaderClosedEventArgs) -> Self { 3813 unsafe { ::std::mem::transmute(value) } 3814 } 3815 } 3816 impl ::std::convert::From<&ClaimedMagneticStripeReaderClosedEventArgs> for ::windows::runtime::IUnknown { from(value: &ClaimedMagneticStripeReaderClosedEventArgs) -> Self3817 fn from(value: &ClaimedMagneticStripeReaderClosedEventArgs) -> Self { 3818 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3819 } 3820 } 3821 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ClaimedMagneticStripeReaderClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3822 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3823 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3824 } 3825 } 3826 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ClaimedMagneticStripeReaderClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3827 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3828 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3829 } 3830 } 3831 impl ::std::convert::From<ClaimedMagneticStripeReaderClosedEventArgs> for ::windows::runtime::IInspectable { from(value: ClaimedMagneticStripeReaderClosedEventArgs) -> Self3832 fn from(value: ClaimedMagneticStripeReaderClosedEventArgs) -> Self { 3833 value.0 3834 } 3835 } 3836 impl ::std::convert::From<&ClaimedMagneticStripeReaderClosedEventArgs> for ::windows::runtime::IInspectable { from(value: &ClaimedMagneticStripeReaderClosedEventArgs) -> Self3837 fn from(value: &ClaimedMagneticStripeReaderClosedEventArgs) -> Self { 3838 value.0.clone() 3839 } 3840 } 3841 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ClaimedMagneticStripeReaderClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3842 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3843 ::windows::runtime::Param::Owned(self.0) 3844 } 3845 } 3846 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ClaimedMagneticStripeReaderClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>3847 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 3848 ::windows::runtime::Param::Borrowed(&self.0) 3849 } 3850 } 3851 unsafe impl ::std::marker::Send for ClaimedMagneticStripeReaderClosedEventArgs {} 3852 unsafe impl ::std::marker::Sync for ClaimedMagneticStripeReaderClosedEventArgs {} 3853 #[repr(transparent)] 3854 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3855 pub struct ClaimedPosPrinter(::windows::runtime::IInspectable); 3856 impl ClaimedPosPrinter { DeviceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3857 pub fn DeviceId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3858 let this = self; 3859 unsafe { 3860 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3861 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3862 } 3863 } IsEnabled(&self) -> ::windows::runtime::Result<bool>3864 pub fn IsEnabled(&self) -> ::windows::runtime::Result<bool> { 3865 let this = self; 3866 unsafe { 3867 let mut result__: bool = ::std::mem::zeroed(); 3868 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 3869 } 3870 } SetCharacterSet(&self, value: u32) -> ::windows::runtime::Result<()>3871 pub fn SetCharacterSet(&self, value: u32) -> ::windows::runtime::Result<()> { 3872 let this = self; 3873 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value).ok() } 3874 } CharacterSet(&self) -> ::windows::runtime::Result<u32>3875 pub fn CharacterSet(&self) -> ::windows::runtime::Result<u32> { 3876 let this = self; 3877 unsafe { 3878 let mut result__: u32 = ::std::mem::zeroed(); 3879 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 3880 } 3881 } IsCoverOpen(&self) -> ::windows::runtime::Result<bool>3882 pub fn IsCoverOpen(&self) -> ::windows::runtime::Result<bool> { 3883 let this = self; 3884 unsafe { 3885 let mut result__: bool = ::std::mem::zeroed(); 3886 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 3887 } 3888 } SetIsCharacterSetMappingEnabled(&self, value: bool) -> ::windows::runtime::Result<()>3889 pub fn SetIsCharacterSetMappingEnabled(&self, value: bool) -> ::windows::runtime::Result<()> { 3890 let this = self; 3891 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 3892 } IsCharacterSetMappingEnabled(&self) -> ::windows::runtime::Result<bool>3893 pub fn IsCharacterSetMappingEnabled(&self) -> ::windows::runtime::Result<bool> { 3894 let this = self; 3895 unsafe { 3896 let mut result__: bool = ::std::mem::zeroed(); 3897 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 3898 } 3899 } SetMapMode(&self, value: PosPrinterMapMode) -> ::windows::runtime::Result<()>3900 pub fn SetMapMode(&self, value: PosPrinterMapMode) -> ::windows::runtime::Result<()> { 3901 let this = self; 3902 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value).ok() } 3903 } MapMode(&self) -> ::windows::runtime::Result<PosPrinterMapMode>3904 pub fn MapMode(&self) -> ::windows::runtime::Result<PosPrinterMapMode> { 3905 let this = self; 3906 unsafe { 3907 let mut result__: PosPrinterMapMode = ::std::mem::zeroed(); 3908 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<PosPrinterMapMode>(result__) 3909 } 3910 } Receipt(&self) -> ::windows::runtime::Result<ClaimedReceiptPrinter>3911 pub fn Receipt(&self) -> ::windows::runtime::Result<ClaimedReceiptPrinter> { 3912 let this = self; 3913 unsafe { 3914 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3915 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ClaimedReceiptPrinter>(result__) 3916 } 3917 } Slip(&self) -> ::windows::runtime::Result<ClaimedSlipPrinter>3918 pub fn Slip(&self) -> ::windows::runtime::Result<ClaimedSlipPrinter> { 3919 let this = self; 3920 unsafe { 3921 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3922 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ClaimedSlipPrinter>(result__) 3923 } 3924 } Journal(&self) -> ::windows::runtime::Result<ClaimedJournalPrinter>3925 pub fn Journal(&self) -> ::windows::runtime::Result<ClaimedJournalPrinter> { 3926 let this = self; 3927 unsafe { 3928 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3929 (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ClaimedJournalPrinter>(result__) 3930 } 3931 } 3932 #[cfg(feature = "Foundation")] EnableAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>3933 pub fn EnableAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 3934 let this = self; 3935 unsafe { 3936 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3937 (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 3938 } 3939 } 3940 #[cfg(feature = "Foundation")] DisableAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>3941 pub fn DisableAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 3942 let this = self; 3943 unsafe { 3944 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3945 (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 3946 } 3947 } 3948 #[cfg(feature = "Foundation")] RetainDeviceAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>3949 pub fn RetainDeviceAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 3950 let this = self; 3951 unsafe { 3952 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3953 (::windows::runtime::Interface::vtable(this).20)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 3954 } 3955 } 3956 #[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))] ResetStatisticsAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<::windows::runtime::HSTRING>>>(&self, statisticscategories: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>3957 pub fn ResetStatisticsAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<::windows::runtime::HSTRING>>>(&self, statisticscategories: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 3958 let this = self; 3959 unsafe { 3960 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3961 (::windows::runtime::Interface::vtable(this).21)(::std::mem::transmute_copy(this), statisticscategories.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 3962 } 3963 } 3964 #[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))] UpdateStatisticsAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::HSTRING>>>>(&self, statistics: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>3965 pub fn UpdateStatisticsAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::Collections::IIterable<super::super::Foundation::Collections::IKeyValuePair<::windows::runtime::HSTRING, ::windows::runtime::HSTRING>>>>(&self, statistics: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 3966 let this = self; 3967 unsafe { 3968 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3969 (::windows::runtime::Interface::vtable(this).22)(::std::mem::transmute_copy(this), statistics.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 3970 } 3971 } 3972 #[cfg(feature = "Foundation")] ReleaseDeviceRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedPosPrinter, PosPrinterReleaseDeviceRequestedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>3973 pub fn ReleaseDeviceRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedPosPrinter, PosPrinterReleaseDeviceRequestedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 3974 let this = self; 3975 unsafe { 3976 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 3977 (::windows::runtime::Interface::vtable(this).23)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 3978 } 3979 } 3980 #[cfg(feature = "Foundation")] RemoveReleaseDeviceRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>3981 pub fn RemoveReleaseDeviceRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 3982 let this = self; 3983 unsafe { (::windows::runtime::Interface::vtable(this).24)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 3984 } 3985 #[cfg(feature = "Foundation")] Close(&self) -> ::windows::runtime::Result<()>3986 pub fn Close(&self) -> ::windows::runtime::Result<()> { 3987 let this = &::windows::runtime::Interface::cast::<super::super::Foundation::IClosable>(self)?; 3988 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 3989 } 3990 #[cfg(feature = "Foundation")] Closed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedPosPrinter, ClaimedPosPrinterClosedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken>3991 pub fn Closed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TypedEventHandler<ClaimedPosPrinter, ClaimedPosPrinterClosedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::Foundation::EventRegistrationToken> { 3992 let this = &::windows::runtime::Interface::cast::<IClaimedPosPrinter2>(self)?; 3993 unsafe { 3994 let mut result__: super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 3995 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) 3996 } 3997 } 3998 #[cfg(feature = "Foundation")] RemoveClosed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>3999 pub fn RemoveClosed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 4000 let this = &::windows::runtime::Interface::cast::<IClaimedPosPrinter2>(self)?; 4001 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 4002 } 4003 } 4004 unsafe impl ::windows::runtime::RuntimeType for ClaimedPosPrinter { 4005 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.ClaimedPosPrinter;{6d64ce0c-e03e-4b14-a38e-c28c34b86353})"); 4006 } 4007 unsafe impl ::windows::runtime::Interface for ClaimedPosPrinter { 4008 type Vtable = IClaimedPosPrinter_abi; 4009 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1835322892, 57406, 19220, [163, 142, 194, 140, 52, 184, 99, 83]); 4010 } 4011 impl ::windows::runtime::RuntimeName for ClaimedPosPrinter { 4012 const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedPosPrinter"; 4013 } 4014 impl ::std::convert::From<ClaimedPosPrinter> for ::windows::runtime::IUnknown { from(value: ClaimedPosPrinter) -> Self4015 fn from(value: ClaimedPosPrinter) -> Self { 4016 unsafe { ::std::mem::transmute(value) } 4017 } 4018 } 4019 impl ::std::convert::From<&ClaimedPosPrinter> for ::windows::runtime::IUnknown { from(value: &ClaimedPosPrinter) -> Self4020 fn from(value: &ClaimedPosPrinter) -> Self { 4021 ::std::convert::From::from(::std::clone::Clone::clone(value)) 4022 } 4023 } 4024 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ClaimedPosPrinter { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4025 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4026 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 4027 } 4028 } 4029 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ClaimedPosPrinter { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4030 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4031 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 4032 } 4033 } 4034 impl ::std::convert::From<ClaimedPosPrinter> for ::windows::runtime::IInspectable { from(value: ClaimedPosPrinter) -> Self4035 fn from(value: ClaimedPosPrinter) -> Self { 4036 value.0 4037 } 4038 } 4039 impl ::std::convert::From<&ClaimedPosPrinter> for ::windows::runtime::IInspectable { from(value: &ClaimedPosPrinter) -> Self4040 fn from(value: &ClaimedPosPrinter) -> Self { 4041 value.0.clone() 4042 } 4043 } 4044 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ClaimedPosPrinter { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>4045 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 4046 ::windows::runtime::Param::Owned(self.0) 4047 } 4048 } 4049 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ClaimedPosPrinter { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>4050 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 4051 ::windows::runtime::Param::Borrowed(&self.0) 4052 } 4053 } 4054 #[cfg(feature = "Foundation")] 4055 impl ::std::convert::TryFrom<ClaimedPosPrinter> for super::super::Foundation::IClosable { 4056 type Error = ::windows::runtime::Error; try_from(value: ClaimedPosPrinter) -> ::windows::runtime::Result<Self>4057 fn try_from(value: ClaimedPosPrinter) -> ::windows::runtime::Result<Self> { 4058 ::std::convert::TryFrom::try_from(&value) 4059 } 4060 } 4061 #[cfg(feature = "Foundation")] 4062 impl ::std::convert::TryFrom<&ClaimedPosPrinter> for super::super::Foundation::IClosable { 4063 type Error = ::windows::runtime::Error; try_from(value: &ClaimedPosPrinter) -> ::windows::runtime::Result<Self>4064 fn try_from(value: &ClaimedPosPrinter) -> ::windows::runtime::Result<Self> { 4065 ::windows::runtime::Interface::cast(value) 4066 } 4067 } 4068 #[cfg(feature = "Foundation")] 4069 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for ClaimedPosPrinter { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>4070 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 4071 ::windows::runtime::IntoParam::into_param(&self) 4072 } 4073 } 4074 #[cfg(feature = "Foundation")] 4075 impl<'a> ::windows::runtime::IntoParam<'a, super::super::Foundation::IClosable> for &ClaimedPosPrinter { into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable>4076 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::Foundation::IClosable> { 4077 ::std::convert::TryInto::<super::super::Foundation::IClosable>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 4078 } 4079 } 4080 unsafe impl ::std::marker::Send for ClaimedPosPrinter {} 4081 unsafe impl ::std::marker::Sync for ClaimedPosPrinter {} 4082 #[repr(transparent)] 4083 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 4084 pub struct ClaimedPosPrinterClosedEventArgs(::windows::runtime::IInspectable); 4085 impl ClaimedPosPrinterClosedEventArgs {} 4086 unsafe impl ::windows::runtime::RuntimeType for ClaimedPosPrinterClosedEventArgs { 4087 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.ClaimedPosPrinterClosedEventArgs;{e2b7a27b-4d40-471d-92ed-63375b18c788})"); 4088 } 4089 unsafe impl ::windows::runtime::Interface for ClaimedPosPrinterClosedEventArgs { 4090 type Vtable = IClaimedPosPrinterClosedEventArgs_abi; 4091 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3803685499, 19776, 18205, [146, 237, 99, 55, 91, 24, 199, 136]); 4092 } 4093 impl ::windows::runtime::RuntimeName for ClaimedPosPrinterClosedEventArgs { 4094 const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedPosPrinterClosedEventArgs"; 4095 } 4096 impl ::std::convert::From<ClaimedPosPrinterClosedEventArgs> for ::windows::runtime::IUnknown { from(value: ClaimedPosPrinterClosedEventArgs) -> Self4097 fn from(value: ClaimedPosPrinterClosedEventArgs) -> Self { 4098 unsafe { ::std::mem::transmute(value) } 4099 } 4100 } 4101 impl ::std::convert::From<&ClaimedPosPrinterClosedEventArgs> for ::windows::runtime::IUnknown { from(value: &ClaimedPosPrinterClosedEventArgs) -> Self4102 fn from(value: &ClaimedPosPrinterClosedEventArgs) -> Self { 4103 ::std::convert::From::from(::std::clone::Clone::clone(value)) 4104 } 4105 } 4106 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ClaimedPosPrinterClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4107 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4108 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 4109 } 4110 } 4111 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ClaimedPosPrinterClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4112 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4113 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 4114 } 4115 } 4116 impl ::std::convert::From<ClaimedPosPrinterClosedEventArgs> for ::windows::runtime::IInspectable { from(value: ClaimedPosPrinterClosedEventArgs) -> Self4117 fn from(value: ClaimedPosPrinterClosedEventArgs) -> Self { 4118 value.0 4119 } 4120 } 4121 impl ::std::convert::From<&ClaimedPosPrinterClosedEventArgs> for ::windows::runtime::IInspectable { from(value: &ClaimedPosPrinterClosedEventArgs) -> Self4122 fn from(value: &ClaimedPosPrinterClosedEventArgs) -> Self { 4123 value.0.clone() 4124 } 4125 } 4126 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ClaimedPosPrinterClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>4127 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 4128 ::windows::runtime::Param::Owned(self.0) 4129 } 4130 } 4131 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ClaimedPosPrinterClosedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>4132 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 4133 ::windows::runtime::Param::Borrowed(&self.0) 4134 } 4135 } 4136 unsafe impl ::std::marker::Send for ClaimedPosPrinterClosedEventArgs {} 4137 unsafe impl ::std::marker::Sync for ClaimedPosPrinterClosedEventArgs {} 4138 #[repr(transparent)] 4139 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 4140 pub struct ClaimedReceiptPrinter(::windows::runtime::IInspectable); 4141 impl ClaimedReceiptPrinter { SidewaysMaxLines(&self) -> ::windows::runtime::Result<u32>4142 pub fn SidewaysMaxLines(&self) -> ::windows::runtime::Result<u32> { 4143 let this = self; 4144 unsafe { 4145 let mut result__: u32 = ::std::mem::zeroed(); 4146 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 4147 } 4148 } SidewaysMaxChars(&self) -> ::windows::runtime::Result<u32>4149 pub fn SidewaysMaxChars(&self) -> ::windows::runtime::Result<u32> { 4150 let this = self; 4151 unsafe { 4152 let mut result__: u32 = ::std::mem::zeroed(); 4153 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 4154 } 4155 } LinesToPaperCut(&self) -> ::windows::runtime::Result<u32>4156 pub fn LinesToPaperCut(&self) -> ::windows::runtime::Result<u32> { 4157 let this = self; 4158 unsafe { 4159 let mut result__: u32 = ::std::mem::zeroed(); 4160 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 4161 } 4162 } 4163 #[cfg(feature = "Foundation")] PageSize(&self) -> ::windows::runtime::Result<super::super::Foundation::Size>4164 pub fn PageSize(&self) -> ::windows::runtime::Result<super::super::Foundation::Size> { 4165 let this = self; 4166 unsafe { 4167 let mut result__: super::super::Foundation::Size = ::std::mem::zeroed(); 4168 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Size>(result__) 4169 } 4170 } 4171 #[cfg(feature = "Foundation")] PrintArea(&self) -> ::windows::runtime::Result<super::super::Foundation::Rect>4172 pub fn PrintArea(&self) -> ::windows::runtime::Result<super::super::Foundation::Rect> { 4173 let this = self; 4174 unsafe { 4175 let mut result__: super::super::Foundation::Rect = ::std::mem::zeroed(); 4176 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Rect>(result__) 4177 } 4178 } CreateJob(&self) -> ::windows::runtime::Result<ReceiptPrintJob>4179 pub fn CreateJob(&self) -> ::windows::runtime::Result<ReceiptPrintJob> { 4180 let this = self; 4181 unsafe { 4182 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 4183 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<ReceiptPrintJob>(result__) 4184 } 4185 } SetCharactersPerLine(&self, value: u32) -> ::windows::runtime::Result<()>4186 pub fn SetCharactersPerLine(&self, value: u32) -> ::windows::runtime::Result<()> { 4187 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4188 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), value).ok() } 4189 } CharactersPerLine(&self) -> ::windows::runtime::Result<u32>4190 pub fn CharactersPerLine(&self) -> ::windows::runtime::Result<u32> { 4191 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4192 unsafe { 4193 let mut result__: u32 = ::std::mem::zeroed(); 4194 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 4195 } 4196 } SetLineHeight(&self, value: u32) -> ::windows::runtime::Result<()>4197 pub fn SetLineHeight(&self, value: u32) -> ::windows::runtime::Result<()> { 4198 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4199 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value).ok() } 4200 } LineHeight(&self) -> ::windows::runtime::Result<u32>4201 pub fn LineHeight(&self) -> ::windows::runtime::Result<u32> { 4202 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4203 unsafe { 4204 let mut result__: u32 = ::std::mem::zeroed(); 4205 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 4206 } 4207 } SetLineSpacing(&self, value: u32) -> ::windows::runtime::Result<()>4208 pub fn SetLineSpacing(&self, value: u32) -> ::windows::runtime::Result<()> { 4209 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4210 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value).ok() } 4211 } LineSpacing(&self) -> ::windows::runtime::Result<u32>4212 pub fn LineSpacing(&self) -> ::windows::runtime::Result<u32> { 4213 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4214 unsafe { 4215 let mut result__: u32 = ::std::mem::zeroed(); 4216 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 4217 } 4218 } LineWidth(&self) -> ::windows::runtime::Result<u32>4219 pub fn LineWidth(&self) -> ::windows::runtime::Result<u32> { 4220 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4221 unsafe { 4222 let mut result__: u32 = ::std::mem::zeroed(); 4223 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 4224 } 4225 } SetIsLetterQuality(&self, value: bool) -> ::windows::runtime::Result<()>4226 pub fn SetIsLetterQuality(&self, value: bool) -> ::windows::runtime::Result<()> { 4227 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4228 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value).ok() } 4229 } IsLetterQuality(&self) -> ::windows::runtime::Result<bool>4230 pub fn IsLetterQuality(&self) -> ::windows::runtime::Result<bool> { 4231 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4232 unsafe { 4233 let mut result__: bool = ::std::mem::zeroed(); 4234 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 4235 } 4236 } IsPaperNearEnd(&self) -> ::windows::runtime::Result<bool>4237 pub fn IsPaperNearEnd(&self) -> ::windows::runtime::Result<bool> { 4238 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4239 unsafe { 4240 let mut result__: bool = ::std::mem::zeroed(); 4241 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 4242 } 4243 } SetColorCartridge(&self, value: PosPrinterColorCartridge) -> ::windows::runtime::Result<()>4244 pub fn SetColorCartridge(&self, value: PosPrinterColorCartridge) -> ::windows::runtime::Result<()> { 4245 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4246 unsafe { (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), value).ok() } 4247 } ColorCartridge(&self) -> ::windows::runtime::Result<PosPrinterColorCartridge>4248 pub fn ColorCartridge(&self) -> ::windows::runtime::Result<PosPrinterColorCartridge> { 4249 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4250 unsafe { 4251 let mut result__: PosPrinterColorCartridge = ::std::mem::zeroed(); 4252 (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), &mut result__).from_abi::<PosPrinterColorCartridge>(result__) 4253 } 4254 } IsCoverOpen(&self) -> ::windows::runtime::Result<bool>4255 pub fn IsCoverOpen(&self) -> ::windows::runtime::Result<bool> { 4256 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4257 unsafe { 4258 let mut result__: bool = ::std::mem::zeroed(); 4259 (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 4260 } 4261 } IsCartridgeRemoved(&self) -> ::windows::runtime::Result<bool>4262 pub fn IsCartridgeRemoved(&self) -> ::windows::runtime::Result<bool> { 4263 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4264 unsafe { 4265 let mut result__: bool = ::std::mem::zeroed(); 4266 (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 4267 } 4268 } IsCartridgeEmpty(&self) -> ::windows::runtime::Result<bool>4269 pub fn IsCartridgeEmpty(&self) -> ::windows::runtime::Result<bool> { 4270 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4271 unsafe { 4272 let mut result__: bool = ::std::mem::zeroed(); 4273 (::windows::runtime::Interface::vtable(this).20)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 4274 } 4275 } IsHeadCleaning(&self) -> ::windows::runtime::Result<bool>4276 pub fn IsHeadCleaning(&self) -> ::windows::runtime::Result<bool> { 4277 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4278 unsafe { 4279 let mut result__: bool = ::std::mem::zeroed(); 4280 (::windows::runtime::Interface::vtable(this).21)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 4281 } 4282 } IsPaperEmpty(&self) -> ::windows::runtime::Result<bool>4283 pub fn IsPaperEmpty(&self) -> ::windows::runtime::Result<bool> { 4284 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4285 unsafe { 4286 let mut result__: bool = ::std::mem::zeroed(); 4287 (::windows::runtime::Interface::vtable(this).22)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 4288 } 4289 } IsReadyToPrint(&self) -> ::windows::runtime::Result<bool>4290 pub fn IsReadyToPrint(&self) -> ::windows::runtime::Result<bool> { 4291 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4292 unsafe { 4293 let mut result__: bool = ::std::mem::zeroed(); 4294 (::windows::runtime::Interface::vtable(this).23)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 4295 } 4296 } ValidateData<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, data: Param0) -> ::windows::runtime::Result<bool>4297 pub fn ValidateData<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, data: Param0) -> ::windows::runtime::Result<bool> { 4298 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4299 unsafe { 4300 let mut result__: bool = ::std::mem::zeroed(); 4301 (::windows::runtime::Interface::vtable(this).24)(::std::mem::transmute_copy(this), data.into_param().abi(), &mut result__).from_abi::<bool>(result__) 4302 } 4303 } 4304 } 4305 unsafe impl ::windows::runtime::RuntimeType for ClaimedReceiptPrinter { 4306 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Devices.PointOfService.ClaimedReceiptPrinter;{9ad27a74-dd61-4ee2-9837-5b5d72d538b9})"); 4307 } 4308 unsafe impl ::windows::runtime::Interface for ClaimedReceiptPrinter { 4309 type Vtable = IClaimedReceiptPrinter_abi; 4310 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2597485172, 56673, 20194, [152, 55, 91, 93, 114, 213, 56, 185]); 4311 } 4312 impl ::windows::runtime::RuntimeName for ClaimedReceiptPrinter { 4313 const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedReceiptPrinter"; 4314 } 4315 impl ::std::convert::From<ClaimedReceiptPrinter> for ::windows::runtime::IUnknown { from(value: ClaimedReceiptPrinter) -> Self4316 fn from(value: ClaimedReceiptPrinter) -> Self { 4317 unsafe { ::std::mem::transmute(value) } 4318 } 4319 } 4320 impl ::std::convert::From<&ClaimedReceiptPrinter> for ::windows::runtime::IUnknown { from(value: &ClaimedReceiptPrinter) -> Self4321 fn from(value: &ClaimedReceiptPrinter) -> Self { 4322 ::std::convert::From::from(::std::clone::Clone::clone(value)) 4323 } 4324 } 4325 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ClaimedReceiptPrinter { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4326 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4327 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 4328 } 4329 } 4330 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ClaimedReceiptPrinter { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4331 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4332 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 4333 } 4334 } 4335 impl ::std::convert::From<ClaimedReceiptPrinter> for ::windows::runtime::IInspectable { from(value: ClaimedReceiptPrinter) -> Self4336 fn from(value: ClaimedReceiptPrinter) -> Self { 4337 value.0 4338 } 4339 } 4340 impl ::std::convert::From<&ClaimedReceiptPrinter> for ::windows::runtime::IInspectable { from(value: &ClaimedReceiptPrinter) -> Self4341 fn from(value: &ClaimedReceiptPrinter) -> Self { 4342 value.0.clone() 4343 } 4344 } 4345 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ClaimedReceiptPrinter { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>4346 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 4347 ::windows::runtime::Param::Owned(self.0) 4348 } 4349 } 4350 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ClaimedReceiptPrinter { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>4351 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 4352 ::windows::runtime::Param::Borrowed(&self.0) 4353 } 4354 } 4355 impl ::std::convert::TryFrom<ClaimedReceiptPrinter> for ICommonClaimedPosPrinterStation { 4356 type Error = ::windows::runtime::Error; try_from(value: ClaimedReceiptPrinter) -> ::windows::runtime::Result<Self>4357 fn try_from(value: ClaimedReceiptPrinter) -> ::windows::runtime::Result<Self> { 4358 ::std::convert::TryFrom::try_from(&value) 4359 } 4360 } 4361 impl ::std::convert::TryFrom<&ClaimedReceiptPrinter> for ICommonClaimedPosPrinterStation { 4362 type Error = ::windows::runtime::Error; try_from(value: &ClaimedReceiptPrinter) -> ::windows::runtime::Result<Self>4363 fn try_from(value: &ClaimedReceiptPrinter) -> ::windows::runtime::Result<Self> { 4364 ::windows::runtime::Interface::cast(value) 4365 } 4366 } 4367 impl<'a> ::windows::runtime::IntoParam<'a, ICommonClaimedPosPrinterStation> for ClaimedReceiptPrinter { into_param(self) -> ::windows::runtime::Param<'a, ICommonClaimedPosPrinterStation>4368 fn into_param(self) -> ::windows::runtime::Param<'a, ICommonClaimedPosPrinterStation> { 4369 ::windows::runtime::IntoParam::into_param(&self) 4370 } 4371 } 4372 impl<'a> ::windows::runtime::IntoParam<'a, ICommonClaimedPosPrinterStation> for &ClaimedReceiptPrinter { into_param(self) -> ::windows::runtime::Param<'a, ICommonClaimedPosPrinterStation>4373 fn into_param(self) -> ::windows::runtime::Param<'a, ICommonClaimedPosPrinterStation> { 4374 ::std::convert::TryInto::<ICommonClaimedPosPrinterStation>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 4375 } 4376 } 4377 unsafe impl ::std::marker::Send for ClaimedReceiptPrinter {} 4378 unsafe impl ::std::marker::Sync for ClaimedReceiptPrinter {} 4379 #[repr(transparent)] 4380 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 4381 pub struct ClaimedSlipPrinter(::windows::runtime::IInspectable); 4382 impl ClaimedSlipPrinter { SidewaysMaxLines(&self) -> ::windows::runtime::Result<u32>4383 pub fn SidewaysMaxLines(&self) -> ::windows::runtime::Result<u32> { 4384 let this = self; 4385 unsafe { 4386 let mut result__: u32 = ::std::mem::zeroed(); 4387 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 4388 } 4389 } SidewaysMaxChars(&self) -> ::windows::runtime::Result<u32>4390 pub fn SidewaysMaxChars(&self) -> ::windows::runtime::Result<u32> { 4391 let this = self; 4392 unsafe { 4393 let mut result__: u32 = ::std::mem::zeroed(); 4394 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 4395 } 4396 } MaxLines(&self) -> ::windows::runtime::Result<u32>4397 pub fn MaxLines(&self) -> ::windows::runtime::Result<u32> { 4398 let this = self; 4399 unsafe { 4400 let mut result__: u32 = ::std::mem::zeroed(); 4401 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 4402 } 4403 } LinesNearEndToEnd(&self) -> ::windows::runtime::Result<u32>4404 pub fn LinesNearEndToEnd(&self) -> ::windows::runtime::Result<u32> { 4405 let this = self; 4406 unsafe { 4407 let mut result__: u32 = ::std::mem::zeroed(); 4408 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 4409 } 4410 } PrintSide(&self) -> ::windows::runtime::Result<PosPrinterPrintSide>4411 pub fn PrintSide(&self) -> ::windows::runtime::Result<PosPrinterPrintSide> { 4412 let this = self; 4413 unsafe { 4414 let mut result__: PosPrinterPrintSide = ::std::mem::zeroed(); 4415 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<PosPrinterPrintSide>(result__) 4416 } 4417 } 4418 #[cfg(feature = "Foundation")] PageSize(&self) -> ::windows::runtime::Result<super::super::Foundation::Size>4419 pub fn PageSize(&self) -> ::windows::runtime::Result<super::super::Foundation::Size> { 4420 let this = self; 4421 unsafe { 4422 let mut result__: super::super::Foundation::Size = ::std::mem::zeroed(); 4423 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Size>(result__) 4424 } 4425 } 4426 #[cfg(feature = "Foundation")] PrintArea(&self) -> ::windows::runtime::Result<super::super::Foundation::Rect>4427 pub fn PrintArea(&self) -> ::windows::runtime::Result<super::super::Foundation::Rect> { 4428 let this = self; 4429 unsafe { 4430 let mut result__: super::super::Foundation::Rect = ::std::mem::zeroed(); 4431 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Rect>(result__) 4432 } 4433 } OpenJaws(&self) -> ::windows::runtime::Result<()>4434 pub fn OpenJaws(&self) -> ::windows::runtime::Result<()> { 4435 let this = self; 4436 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this)).ok() } 4437 } CloseJaws(&self) -> ::windows::runtime::Result<()>4438 pub fn CloseJaws(&self) -> ::windows::runtime::Result<()> { 4439 let this = self; 4440 unsafe { (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this)).ok() } 4441 } 4442 #[cfg(feature = "Foundation")] InsertSlipAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, timeout: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>4443 pub fn InsertSlipAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, timeout: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 4444 let this = self; 4445 unsafe { 4446 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 4447 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), timeout.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 4448 } 4449 } 4450 #[cfg(feature = "Foundation")] RemoveSlipAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, timeout: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>4451 pub fn RemoveSlipAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::TimeSpan>>(&self, timeout: Param0) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> { 4452 let this = self; 4453 unsafe { 4454 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 4455 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), timeout.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__) 4456 } 4457 } ChangePrintSide(&self, printside: PosPrinterPrintSide) -> ::windows::runtime::Result<()>4458 pub fn ChangePrintSide(&self, printside: PosPrinterPrintSide) -> ::windows::runtime::Result<()> { 4459 let this = self; 4460 unsafe { (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), printside).ok() } 4461 } CreateJob(&self) -> ::windows::runtime::Result<SlipPrintJob>4462 pub fn CreateJob(&self) -> ::windows::runtime::Result<SlipPrintJob> { 4463 let this = self; 4464 unsafe { 4465 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 4466 (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), &mut result__).from_abi::<SlipPrintJob>(result__) 4467 } 4468 } SetCharactersPerLine(&self, value: u32) -> ::windows::runtime::Result<()>4469 pub fn SetCharactersPerLine(&self, value: u32) -> ::windows::runtime::Result<()> { 4470 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4471 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), value).ok() } 4472 } CharactersPerLine(&self) -> ::windows::runtime::Result<u32>4473 pub fn CharactersPerLine(&self) -> ::windows::runtime::Result<u32> { 4474 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4475 unsafe { 4476 let mut result__: u32 = ::std::mem::zeroed(); 4477 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 4478 } 4479 } SetLineHeight(&self, value: u32) -> ::windows::runtime::Result<()>4480 pub fn SetLineHeight(&self, value: u32) -> ::windows::runtime::Result<()> { 4481 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4482 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value).ok() } 4483 } LineHeight(&self) -> ::windows::runtime::Result<u32>4484 pub fn LineHeight(&self) -> ::windows::runtime::Result<u32> { 4485 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4486 unsafe { 4487 let mut result__: u32 = ::std::mem::zeroed(); 4488 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 4489 } 4490 } SetLineSpacing(&self, value: u32) -> ::windows::runtime::Result<()>4491 pub fn SetLineSpacing(&self, value: u32) -> ::windows::runtime::Result<()> { 4492 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4493 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value).ok() } 4494 } LineSpacing(&self) -> ::windows::runtime::Result<u32>4495 pub fn LineSpacing(&self) -> ::windows::runtime::Result<u32> { 4496 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4497 unsafe { 4498 let mut result__: u32 = ::std::mem::zeroed(); 4499 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 4500 } 4501 } LineWidth(&self) -> ::windows::runtime::Result<u32>4502 pub fn LineWidth(&self) -> ::windows::runtime::Result<u32> { 4503 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4504 unsafe { 4505 let mut result__: u32 = ::std::mem::zeroed(); 4506 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 4507 } 4508 } SetIsLetterQuality(&self, value: bool) -> ::windows::runtime::Result<()>4509 pub fn SetIsLetterQuality(&self, value: bool) -> ::windows::runtime::Result<()> { 4510 let this = &::windows::runtime::Interface::cast::<ICommonClaimedPosPrinterStation>(self)?; 4511 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value).ok() } 4512 } IsLetterQuality(&self) -> ::windows::runtime::Result<bool>4513