| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IAppServiceCatalogStatics(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Interface for IAppServiceCatalogStatics { |
| type Vtable = IAppServiceCatalogStatics_Vtbl; |
| } |
| impl ::core::clone::Clone for IAppServiceCatalogStatics { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for IAppServiceCatalogStatics { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xef0d2507_d132_4c85_8395_3c31d5a1e941); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IAppServiceCatalogStatics_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Foundation_Collections")] |
| pub FindAppServiceProvidersAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appservicename: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation_Collections"))] |
| FindAppServiceProvidersAsync: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IAppServiceClosedEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Interface for IAppServiceClosedEventArgs { |
| type Vtable = IAppServiceClosedEventArgs_Vtbl; |
| } |
| impl ::core::clone::Clone for IAppServiceClosedEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for IAppServiceClosedEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xde6016f6_cb03_4d35_ac8d_cc6303239731); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IAppServiceClosedEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppServiceClosedStatus) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IAppServiceConnection(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Interface for IAppServiceConnection { |
| type Vtable = IAppServiceConnection_Vtbl; |
| } |
| impl ::core::clone::Clone for IAppServiceConnection { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for IAppServiceConnection { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9dd474a2_871f_4d52_89a9_9e090531bd27); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IAppServiceConnection_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub AppServiceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT, |
| pub SetAppServiceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT, |
| pub PackageFamilyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT, |
| pub SetPackageFamilyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Foundation")] |
| pub OpenAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| OpenAsync: usize, |
| #[cfg(feature = "Foundation_Collections")] |
| pub SendMessageAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, message: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation_Collections"))] |
| SendMessageAsync: usize, |
| #[cfg(feature = "Foundation")] |
| pub RequestReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RequestReceived: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveRequestReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveRequestReceived: usize, |
| #[cfg(feature = "Foundation")] |
| pub ServiceClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| ServiceClosed: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveServiceClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveServiceClosed: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IAppServiceConnection2(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Interface for IAppServiceConnection2 { |
| type Vtable = IAppServiceConnection2_Vtbl; |
| } |
| impl ::core::clone::Clone for IAppServiceConnection2 { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for IAppServiceConnection2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8bdfcd5f_2302_4fbd_8061_52511c2f8bf9); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IAppServiceConnection2_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(all(feature = "Foundation", feature = "System_RemoteSystems"))] |
| pub OpenRemoteAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remotesystemconnectionrequest: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Foundation", feature = "System_RemoteSystems")))] |
| OpenRemoteAsync: usize, |
| #[cfg(feature = "System")] |
| pub User: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "System"))] |
| User: usize, |
| #[cfg(feature = "System")] |
| pub SetUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "System"))] |
| SetUser: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IAppServiceConnectionStatics(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Interface for IAppServiceConnectionStatics { |
| type Vtable = IAppServiceConnectionStatics_Vtbl; |
| } |
| impl ::core::clone::Clone for IAppServiceConnectionStatics { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for IAppServiceConnectionStatics { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xadc56ce9_d408_5673_8637_827a4b274168); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IAppServiceConnectionStatics_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(all(feature = "Foundation_Collections", feature = "System_RemoteSystems"))] |
| pub SendStatelessMessageAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connection: *mut ::core::ffi::c_void, connectionrequest: *mut ::core::ffi::c_void, message: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Foundation_Collections", feature = "System_RemoteSystems")))] |
| SendStatelessMessageAsync: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IAppServiceDeferral(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Interface for IAppServiceDeferral { |
| type Vtable = IAppServiceDeferral_Vtbl; |
| } |
| impl ::core::clone::Clone for IAppServiceDeferral { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for IAppServiceDeferral { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7e1b5322_eab0_4248_ae04_fdf93838e472); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IAppServiceDeferral_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IAppServiceRequest(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Interface for IAppServiceRequest { |
| type Vtable = IAppServiceRequest_Vtbl; |
| } |
| impl ::core::clone::Clone for IAppServiceRequest { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for IAppServiceRequest { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x20e58d9d_18de_4b01_80ba_90a76204e3c8); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IAppServiceRequest_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Foundation_Collections")] |
| pub Message: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation_Collections"))] |
| Message: usize, |
| #[cfg(feature = "Foundation_Collections")] |
| pub SendResponseAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, message: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation_Collections"))] |
| SendResponseAsync: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IAppServiceRequestReceivedEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Interface for IAppServiceRequestReceivedEventArgs { |
| type Vtable = IAppServiceRequestReceivedEventArgs_Vtbl; |
| } |
| impl ::core::clone::Clone for IAppServiceRequestReceivedEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for IAppServiceRequestReceivedEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6e122360_ff65_44ae_9e45_857fe4180681); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IAppServiceRequestReceivedEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IAppServiceResponse(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Interface for IAppServiceResponse { |
| type Vtable = IAppServiceResponse_Vtbl; |
| } |
| impl ::core::clone::Clone for IAppServiceResponse { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for IAppServiceResponse { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8d503cec_9aa3_4e68_9559_9de63e372ce4); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IAppServiceResponse_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Foundation_Collections")] |
| pub Message: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation_Collections"))] |
| Message: usize, |
| pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppServiceResponseStatus) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IAppServiceTriggerDetails(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Interface for IAppServiceTriggerDetails { |
| type Vtable = IAppServiceTriggerDetails_Vtbl; |
| } |
| impl ::core::clone::Clone for IAppServiceTriggerDetails { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for IAppServiceTriggerDetails { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x88a2dcac_ad28_41b8_80bb_bdf1b2169e19); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IAppServiceTriggerDetails_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT, |
| pub CallerPackageFamilyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT, |
| pub AppServiceConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IAppServiceTriggerDetails2(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Interface for IAppServiceTriggerDetails2 { |
| type Vtable = IAppServiceTriggerDetails2_Vtbl; |
| } |
| impl ::core::clone::Clone for IAppServiceTriggerDetails2 { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for IAppServiceTriggerDetails2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe83d54b2_28cc_43f2_b465_c0482e59e2dc); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IAppServiceTriggerDetails2_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub IsRemoteSystemConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IAppServiceTriggerDetails3(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Interface for IAppServiceTriggerDetails3 { |
| type Vtable = IAppServiceTriggerDetails3_Vtbl; |
| } |
| impl ::core::clone::Clone for IAppServiceTriggerDetails3 { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for IAppServiceTriggerDetails3 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfbd71e21_7939_4e68_9e3c_7780147aabb6); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IAppServiceTriggerDetails3_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Foundation")] |
| pub CheckCallerForCapabilityAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, capabilityname: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| CheckCallerForCapabilityAsync: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IAppServiceTriggerDetails4(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Interface for IAppServiceTriggerDetails4 { |
| type Vtable = IAppServiceTriggerDetails4_Vtbl; |
| } |
| impl ::core::clone::Clone for IAppServiceTriggerDetails4 { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for IAppServiceTriggerDetails4 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1185b180_8861_5e30_ab55_1cf4d08bbf6d); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IAppServiceTriggerDetails4_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub CallerRemoteConnectionToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IStatelessAppServiceResponse(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Interface for IStatelessAppServiceResponse { |
| type Vtable = IStatelessAppServiceResponse_Vtbl; |
| } |
| impl ::core::clone::Clone for IStatelessAppServiceResponse { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for IStatelessAppServiceResponse { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x43754af7_a9ec_52fe_82e7_939b68dc9388); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IStatelessAppServiceResponse_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Foundation_Collections")] |
| pub Message: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation_Collections"))] |
| Message: usize, |
| pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut StatelessAppServiceResponseStatus) -> ::windows::core::HRESULT, |
| } |
| #[doc = "*Required features: `\"ApplicationModel_AppService\"`*"] |
| pub struct AppServiceCatalog; |
| impl AppServiceCatalog { |
| #[doc = "*Required features: `\"Foundation_Collections\"`*"] |
| #[cfg(feature = "Foundation_Collections")] |
| pub fn FindAppServiceProvidersAsync(appservicename: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<super::AppInfo>>> { |
| Self::IAppServiceCatalogStatics(|this| unsafe { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<super::AppInfo>>>(); |
| (::windows::core::Interface::vtable(this).FindAppServiceProvidersAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(appservicename), &mut result__).from_abi(result__) |
| }) |
| } |
| #[doc(hidden)] |
| pub fn IAppServiceCatalogStatics<R, F: FnOnce(&IAppServiceCatalogStatics) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> { |
| static SHARED: ::windows::imp::FactoryCache<AppServiceCatalog, IAppServiceCatalogStatics> = ::windows::imp::FactoryCache::new(); |
| SHARED.call(callback) |
| } |
| } |
| impl ::windows::core::RuntimeName for AppServiceCatalog { |
| const NAME: &'static str = "Windows.ApplicationModel.AppService.AppServiceCatalog"; |
| } |
| #[doc = "*Required features: `\"ApplicationModel_AppService\"`*"] |
| #[repr(transparent)] |
| pub struct AppServiceClosedEventArgs(::windows::core::IUnknown); |
| impl AppServiceClosedEventArgs { |
| pub fn Status(&self) -> ::windows::core::Result<AppServiceClosedStatus> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<AppServiceClosedStatus>(); |
| (::windows::core::Interface::vtable(this).Status)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__) |
| } |
| } |
| } |
| impl ::core::cmp::PartialEq for AppServiceClosedEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for AppServiceClosedEventArgs {} |
| impl ::core::fmt::Debug for AppServiceClosedEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("AppServiceClosedEventArgs").field(&self.0).finish() |
| } |
| } |
| impl ::windows::core::RuntimeType for AppServiceClosedEventArgs { |
| const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.AppService.AppServiceClosedEventArgs;{de6016f6-cb03-4d35-ac8d-cc6303239731})"); |
| } |
| impl ::core::clone::Clone for AppServiceClosedEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::Interface for AppServiceClosedEventArgs { |
| type Vtable = IAppServiceClosedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::ComInterface for AppServiceClosedEventArgs { |
| const IID: ::windows::core::GUID = <IAppServiceClosedEventArgs as ::windows::core::ComInterface>::IID; |
| } |
| impl ::windows::core::RuntimeName for AppServiceClosedEventArgs { |
| const NAME: &'static str = "Windows.ApplicationModel.AppService.AppServiceClosedEventArgs"; |
| } |
| ::windows::imp::interface_hierarchy!(AppServiceClosedEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for AppServiceClosedEventArgs {} |
| unsafe impl ::core::marker::Sync for AppServiceClosedEventArgs {} |
| #[doc = "*Required features: `\"ApplicationModel_AppService\"`*"] |
| #[repr(transparent)] |
| pub struct AppServiceConnection(::windows::core::IUnknown); |
| impl AppServiceConnection { |
| pub fn new() -> ::windows::core::Result<Self> { |
| Self::IActivationFactory(|f| f.ActivateInstance::<Self>()) |
| } |
| fn IActivationFactory<R, F: FnOnce(&::windows::imp::IGenericFactory) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> { |
| static SHARED: ::windows::imp::FactoryCache<AppServiceConnection, ::windows::imp::IGenericFactory> = ::windows::imp::FactoryCache::new(); |
| SHARED.call(callback) |
| } |
| pub fn AppServiceName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>(); |
| (::windows::core::Interface::vtable(this).AppServiceName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__) |
| } |
| } |
| pub fn SetAppServiceName(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Interface::vtable(this).SetAppServiceName)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } |
| } |
| pub fn PackageFamilyName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>(); |
| (::windows::core::Interface::vtable(this).PackageFamilyName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__) |
| } |
| } |
| pub fn SetPackageFamilyName(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Interface::vtable(this).SetPackageFamilyName)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn OpenAsync(&self) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<AppServiceConnectionStatus>> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<AppServiceConnectionStatus>>(); |
| (::windows::core::Interface::vtable(this).OpenAsync)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation_Collections\"`*"] |
| #[cfg(feature = "Foundation_Collections")] |
| pub fn SendMessageAsync(&self, message: &super::super::Foundation::Collections::ValueSet) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<AppServiceResponse>> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<AppServiceResponse>>(); |
| (::windows::core::Interface::vtable(this).SendMessageAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(message), &mut result__).from_abi(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RequestReceived(&self, handler: &super::super::Foundation::TypedEventHandler<AppServiceConnection, AppServiceRequestReceivedEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::EventRegistrationToken>(); |
| (::windows::core::Interface::vtable(this).RequestReceived)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(handler), &mut result__).from_abi(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveRequestReceived(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Interface::vtable(this).RemoveRequestReceived)(::windows::core::Interface::as_raw(this), token).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn ServiceClosed(&self, handler: &super::super::Foundation::TypedEventHandler<AppServiceConnection, AppServiceClosedEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::EventRegistrationToken>(); |
| (::windows::core::Interface::vtable(this).ServiceClosed)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(handler), &mut result__).from_abi(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveServiceClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Interface::vtable(this).RemoveServiceClosed)(::windows::core::Interface::as_raw(this), token).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`, `\"System_RemoteSystems\"`*"] |
| #[cfg(all(feature = "Foundation", feature = "System_RemoteSystems"))] |
| pub fn OpenRemoteAsync(&self, remotesystemconnectionrequest: &super::super::System::RemoteSystems::RemoteSystemConnectionRequest) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<AppServiceConnectionStatus>> { |
| let this = &::windows::core::ComInterface::cast::<IAppServiceConnection2>(self)?; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<AppServiceConnectionStatus>>(); |
| (::windows::core::Interface::vtable(this).OpenRemoteAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(remotesystemconnectionrequest), &mut result__).from_abi(result__) |
| } |
| } |
| #[doc = "*Required features: `\"System\"`*"] |
| #[cfg(feature = "System")] |
| pub fn User(&self) -> ::windows::core::Result<super::super::System::User> { |
| let this = &::windows::core::ComInterface::cast::<IAppServiceConnection2>(self)?; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<super::super::System::User>(); |
| (::windows::core::Interface::vtable(this).User)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__) |
| } |
| } |
| #[doc = "*Required features: `\"System\"`*"] |
| #[cfg(feature = "System")] |
| pub fn SetUser(&self, value: &super::super::System::User) -> ::windows::core::Result<()> { |
| let this = &::windows::core::ComInterface::cast::<IAppServiceConnection2>(self)?; |
| unsafe { (::windows::core::Interface::vtable(this).SetUser)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation_Collections\"`, `\"System_RemoteSystems\"`*"] |
| #[cfg(all(feature = "Foundation_Collections", feature = "System_RemoteSystems"))] |
| pub fn SendStatelessMessageAsync(connection: &AppServiceConnection, connectionrequest: &super::super::System::RemoteSystems::RemoteSystemConnectionRequest, message: &super::super::Foundation::Collections::ValueSet) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<StatelessAppServiceResponse>> { |
| Self::IAppServiceConnectionStatics(|this| unsafe { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<StatelessAppServiceResponse>>(); |
| (::windows::core::Interface::vtable(this).SendStatelessMessageAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(connection), ::core::mem::transmute_copy(connectionrequest), ::core::mem::transmute_copy(message), &mut result__).from_abi(result__) |
| }) |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Close(&self) -> ::windows::core::Result<()> { |
| let this = &::windows::core::ComInterface::cast::<super::super::Foundation::IClosable>(self)?; |
| unsafe { (::windows::core::Interface::vtable(this).Close)(::windows::core::Interface::as_raw(this)).ok() } |
| } |
| #[doc(hidden)] |
| pub fn IAppServiceConnectionStatics<R, F: FnOnce(&IAppServiceConnectionStatics) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> { |
| static SHARED: ::windows::imp::FactoryCache<AppServiceConnection, IAppServiceConnectionStatics> = ::windows::imp::FactoryCache::new(); |
| SHARED.call(callback) |
| } |
| } |
| impl ::core::cmp::PartialEq for AppServiceConnection { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for AppServiceConnection {} |
| impl ::core::fmt::Debug for AppServiceConnection { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("AppServiceConnection").field(&self.0).finish() |
| } |
| } |
| impl ::windows::core::RuntimeType for AppServiceConnection { |
| const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.AppService.AppServiceConnection;{9dd474a2-871f-4d52-89a9-9e090531bd27})"); |
| } |
| impl ::core::clone::Clone for AppServiceConnection { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::Interface for AppServiceConnection { |
| type Vtable = IAppServiceConnection_Vtbl; |
| } |
| unsafe impl ::windows::core::ComInterface for AppServiceConnection { |
| const IID: ::windows::core::GUID = <IAppServiceConnection as ::windows::core::ComInterface>::IID; |
| } |
| impl ::windows::core::RuntimeName for AppServiceConnection { |
| const NAME: &'static str = "Windows.ApplicationModel.AppService.AppServiceConnection"; |
| } |
| ::windows::imp::interface_hierarchy!(AppServiceConnection, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| #[cfg(feature = "Foundation")] |
| impl ::windows::core::CanTryInto<super::super::Foundation::IClosable> for AppServiceConnection {} |
| unsafe impl ::core::marker::Send for AppServiceConnection {} |
| unsafe impl ::core::marker::Sync for AppServiceConnection {} |
| #[doc = "*Required features: `\"ApplicationModel_AppService\"`*"] |
| #[repr(transparent)] |
| pub struct AppServiceDeferral(::windows::core::IUnknown); |
| impl AppServiceDeferral { |
| pub fn Complete(&self) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Interface::vtable(this).Complete)(::windows::core::Interface::as_raw(this)).ok() } |
| } |
| } |
| impl ::core::cmp::PartialEq for AppServiceDeferral { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for AppServiceDeferral {} |
| impl ::core::fmt::Debug for AppServiceDeferral { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("AppServiceDeferral").field(&self.0).finish() |
| } |
| } |
| impl ::windows::core::RuntimeType for AppServiceDeferral { |
| const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.AppService.AppServiceDeferral;{7e1b5322-eab0-4248-ae04-fdf93838e472})"); |
| } |
| impl ::core::clone::Clone for AppServiceDeferral { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::Interface for AppServiceDeferral { |
| type Vtable = IAppServiceDeferral_Vtbl; |
| } |
| unsafe impl ::windows::core::ComInterface for AppServiceDeferral { |
| const IID: ::windows::core::GUID = <IAppServiceDeferral as ::windows::core::ComInterface>::IID; |
| } |
| impl ::windows::core::RuntimeName for AppServiceDeferral { |
| const NAME: &'static str = "Windows.ApplicationModel.AppService.AppServiceDeferral"; |
| } |
| ::windows::imp::interface_hierarchy!(AppServiceDeferral, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for AppServiceDeferral {} |
| unsafe impl ::core::marker::Sync for AppServiceDeferral {} |
| #[doc = "*Required features: `\"ApplicationModel_AppService\"`*"] |
| #[repr(transparent)] |
| pub struct AppServiceRequest(::windows::core::IUnknown); |
| impl AppServiceRequest { |
| #[doc = "*Required features: `\"Foundation_Collections\"`*"] |
| #[cfg(feature = "Foundation_Collections")] |
| pub fn Message(&self) -> ::windows::core::Result<super::super::Foundation::Collections::ValueSet> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::Collections::ValueSet>(); |
| (::windows::core::Interface::vtable(this).Message)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation_Collections\"`*"] |
| #[cfg(feature = "Foundation_Collections")] |
| pub fn SendResponseAsync(&self, message: &super::super::Foundation::Collections::ValueSet) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<AppServiceResponseStatus>> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<AppServiceResponseStatus>>(); |
| (::windows::core::Interface::vtable(this).SendResponseAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(message), &mut result__).from_abi(result__) |
| } |
| } |
| } |
| impl ::core::cmp::PartialEq for AppServiceRequest { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for AppServiceRequest {} |
| impl ::core::fmt::Debug for AppServiceRequest { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("AppServiceRequest").field(&self.0).finish() |
| } |
| } |
| impl ::windows::core::RuntimeType for AppServiceRequest { |
| const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.AppService.AppServiceRequest;{20e58d9d-18de-4b01-80ba-90a76204e3c8})"); |
| } |
| impl ::core::clone::Clone for AppServiceRequest { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::Interface for AppServiceRequest { |
| type Vtable = IAppServiceRequest_Vtbl; |
| } |
| unsafe impl ::windows::core::ComInterface for AppServiceRequest { |
| const IID: ::windows::core::GUID = <IAppServiceRequest as ::windows::core::ComInterface>::IID; |
| } |
| impl ::windows::core::RuntimeName for AppServiceRequest { |
| const NAME: &'static str = "Windows.ApplicationModel.AppService.AppServiceRequest"; |
| } |
| ::windows::imp::interface_hierarchy!(AppServiceRequest, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for AppServiceRequest {} |
| unsafe impl ::core::marker::Sync for AppServiceRequest {} |
| #[doc = "*Required features: `\"ApplicationModel_AppService\"`*"] |
| #[repr(transparent)] |
| pub struct AppServiceRequestReceivedEventArgs(::windows::core::IUnknown); |
| impl AppServiceRequestReceivedEventArgs { |
| pub fn Request(&self) -> ::windows::core::Result<AppServiceRequest> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<AppServiceRequest>(); |
| (::windows::core::Interface::vtable(this).Request)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__) |
| } |
| } |
| pub fn GetDeferral(&self) -> ::windows::core::Result<AppServiceDeferral> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<AppServiceDeferral>(); |
| (::windows::core::Interface::vtable(this).GetDeferral)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__) |
| } |
| } |
| } |
| impl ::core::cmp::PartialEq for AppServiceRequestReceivedEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for AppServiceRequestReceivedEventArgs {} |
| impl ::core::fmt::Debug for AppServiceRequestReceivedEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("AppServiceRequestReceivedEventArgs").field(&self.0).finish() |
| } |
| } |
| impl ::windows::core::RuntimeType for AppServiceRequestReceivedEventArgs { |
| const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.AppService.AppServiceRequestReceivedEventArgs;{6e122360-ff65-44ae-9e45-857fe4180681})"); |
| } |
| impl ::core::clone::Clone for AppServiceRequestReceivedEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::Interface for AppServiceRequestReceivedEventArgs { |
| type Vtable = IAppServiceRequestReceivedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::ComInterface for AppServiceRequestReceivedEventArgs { |
| const IID: ::windows::core::GUID = <IAppServiceRequestReceivedEventArgs as ::windows::core::ComInterface>::IID; |
| } |
| impl ::windows::core::RuntimeName for AppServiceRequestReceivedEventArgs { |
| const NAME: &'static str = "Windows.ApplicationModel.AppService.AppServiceRequestReceivedEventArgs"; |
| } |
| ::windows::imp::interface_hierarchy!(AppServiceRequestReceivedEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for AppServiceRequestReceivedEventArgs {} |
| unsafe impl ::core::marker::Sync for AppServiceRequestReceivedEventArgs {} |
| #[doc = "*Required features: `\"ApplicationModel_AppService\"`*"] |
| #[repr(transparent)] |
| pub struct AppServiceResponse(::windows::core::IUnknown); |
| impl AppServiceResponse { |
| #[doc = "*Required features: `\"Foundation_Collections\"`*"] |
| #[cfg(feature = "Foundation_Collections")] |
| pub fn Message(&self) -> ::windows::core::Result<super::super::Foundation::Collections::ValueSet> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::Collections::ValueSet>(); |
| (::windows::core::Interface::vtable(this).Message)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__) |
| } |
| } |
| pub fn Status(&self) -> ::windows::core::Result<AppServiceResponseStatus> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<AppServiceResponseStatus>(); |
| (::windows::core::Interface::vtable(this).Status)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__) |
| } |
| } |
| } |
| impl ::core::cmp::PartialEq for AppServiceResponse { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for AppServiceResponse {} |
| impl ::core::fmt::Debug for AppServiceResponse { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("AppServiceResponse").field(&self.0).finish() |
| } |
| } |
| impl ::windows::core::RuntimeType for AppServiceResponse { |
| const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.AppService.AppServiceResponse;{8d503cec-9aa3-4e68-9559-9de63e372ce4})"); |
| } |
| impl ::core::clone::Clone for AppServiceResponse { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::Interface for AppServiceResponse { |
| type Vtable = IAppServiceResponse_Vtbl; |
| } |
| unsafe impl ::windows::core::ComInterface for AppServiceResponse { |
| const IID: ::windows::core::GUID = <IAppServiceResponse as ::windows::core::ComInterface>::IID; |
| } |
| impl ::windows::core::RuntimeName for AppServiceResponse { |
| const NAME: &'static str = "Windows.ApplicationModel.AppService.AppServiceResponse"; |
| } |
| ::windows::imp::interface_hierarchy!(AppServiceResponse, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for AppServiceResponse {} |
| unsafe impl ::core::marker::Sync for AppServiceResponse {} |
| #[doc = "*Required features: `\"ApplicationModel_AppService\"`*"] |
| #[repr(transparent)] |
| pub struct AppServiceTriggerDetails(::windows::core::IUnknown); |
| impl AppServiceTriggerDetails { |
| pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>(); |
| (::windows::core::Interface::vtable(this).Name)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__) |
| } |
| } |
| pub fn CallerPackageFamilyName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>(); |
| (::windows::core::Interface::vtable(this).CallerPackageFamilyName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__) |
| } |
| } |
| pub fn AppServiceConnection(&self) -> ::windows::core::Result<AppServiceConnection> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<AppServiceConnection>(); |
| (::windows::core::Interface::vtable(this).AppServiceConnection)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__) |
| } |
| } |
| pub fn IsRemoteSystemConnection(&self) -> ::windows::core::Result<bool> { |
| let this = &::windows::core::ComInterface::cast::<IAppServiceTriggerDetails2>(self)?; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<bool>(); |
| (::windows::core::Interface::vtable(this).IsRemoteSystemConnection)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn CheckCallerForCapabilityAsync(&self, capabilityname: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<bool>> { |
| let this = &::windows::core::ComInterface::cast::<IAppServiceTriggerDetails3>(self)?; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<bool>>(); |
| (::windows::core::Interface::vtable(this).CheckCallerForCapabilityAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(capabilityname), &mut result__).from_abi(result__) |
| } |
| } |
| pub fn CallerRemoteConnectionToken(&self) -> ::windows::core::Result<::windows::core::HSTRING> { |
| let this = &::windows::core::ComInterface::cast::<IAppServiceTriggerDetails4>(self)?; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>(); |
| (::windows::core::Interface::vtable(this).CallerRemoteConnectionToken)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__) |
| } |
| } |
| } |
| impl ::core::cmp::PartialEq for AppServiceTriggerDetails { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for AppServiceTriggerDetails {} |
| impl ::core::fmt::Debug for AppServiceTriggerDetails { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("AppServiceTriggerDetails").field(&self.0).finish() |
| } |
| } |
| impl ::windows::core::RuntimeType for AppServiceTriggerDetails { |
| const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.AppService.AppServiceTriggerDetails;{88a2dcac-ad28-41b8-80bb-bdf1b2169e19})"); |
| } |
| impl ::core::clone::Clone for AppServiceTriggerDetails { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::Interface for AppServiceTriggerDetails { |
| type Vtable = IAppServiceTriggerDetails_Vtbl; |
| } |
| unsafe impl ::windows::core::ComInterface for AppServiceTriggerDetails { |
| const IID: ::windows::core::GUID = <IAppServiceTriggerDetails as ::windows::core::ComInterface>::IID; |
| } |
| impl ::windows::core::RuntimeName for AppServiceTriggerDetails { |
| const NAME: &'static str = "Windows.ApplicationModel.AppService.AppServiceTriggerDetails"; |
| } |
| ::windows::imp::interface_hierarchy!(AppServiceTriggerDetails, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for AppServiceTriggerDetails {} |
| unsafe impl ::core::marker::Sync for AppServiceTriggerDetails {} |
| #[doc = "*Required features: `\"ApplicationModel_AppService\"`*"] |
| #[repr(transparent)] |
| pub struct StatelessAppServiceResponse(::windows::core::IUnknown); |
| impl StatelessAppServiceResponse { |
| #[doc = "*Required features: `\"Foundation_Collections\"`*"] |
| #[cfg(feature = "Foundation_Collections")] |
| pub fn Message(&self) -> ::windows::core::Result<super::super::Foundation::Collections::ValueSet> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<super::super::Foundation::Collections::ValueSet>(); |
| (::windows::core::Interface::vtable(this).Message)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__) |
| } |
| } |
| pub fn Status(&self) -> ::windows::core::Result<StatelessAppServiceResponseStatus> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::windows::core::zeroed::<StatelessAppServiceResponseStatus>(); |
| (::windows::core::Interface::vtable(this).Status)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__) |
| } |
| } |
| } |
| impl ::core::cmp::PartialEq for StatelessAppServiceResponse { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for StatelessAppServiceResponse {} |
| impl ::core::fmt::Debug for StatelessAppServiceResponse { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("StatelessAppServiceResponse").field(&self.0).finish() |
| } |
| } |
| impl ::windows::core::RuntimeType for StatelessAppServiceResponse { |
| const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.AppService.StatelessAppServiceResponse;{43754af7-a9ec-52fe-82e7-939b68dc9388})"); |
| } |
| impl ::core::clone::Clone for StatelessAppServiceResponse { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::Interface for StatelessAppServiceResponse { |
| type Vtable = IStatelessAppServiceResponse_Vtbl; |
| } |
| unsafe impl ::windows::core::ComInterface for StatelessAppServiceResponse { |
| const IID: ::windows::core::GUID = <IStatelessAppServiceResponse as ::windows::core::ComInterface>::IID; |
| } |
| impl ::windows::core::RuntimeName for StatelessAppServiceResponse { |
| const NAME: &'static str = "Windows.ApplicationModel.AppService.StatelessAppServiceResponse"; |
| } |
| ::windows::imp::interface_hierarchy!(StatelessAppServiceResponse, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for StatelessAppServiceResponse {} |
| unsafe impl ::core::marker::Sync for StatelessAppServiceResponse {} |
| #[doc = "*Required features: `\"ApplicationModel_AppService\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct AppServiceClosedStatus(pub i32); |
| impl AppServiceClosedStatus { |
| pub const Completed: Self = Self(0i32); |
| pub const Canceled: Self = Self(1i32); |
| pub const ResourceLimitsExceeded: Self = Self(2i32); |
| pub const Unknown: Self = Self(3i32); |
| } |
| impl ::core::marker::Copy for AppServiceClosedStatus {} |
| impl ::core::clone::Clone for AppServiceClosedStatus { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for AppServiceClosedStatus { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for AppServiceClosedStatus { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for AppServiceClosedStatus { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("AppServiceClosedStatus").field(&self.0).finish() |
| } |
| } |
| impl ::windows::core::RuntimeType for AppServiceClosedStatus { |
| const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.AppService.AppServiceClosedStatus;i4)"); |
| } |
| #[doc = "*Required features: `\"ApplicationModel_AppService\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct AppServiceConnectionStatus(pub i32); |
| impl AppServiceConnectionStatus { |
| pub const Success: Self = Self(0i32); |
| pub const AppNotInstalled: Self = Self(1i32); |
| pub const AppUnavailable: Self = Self(2i32); |
| pub const AppServiceUnavailable: Self = Self(3i32); |
| pub const Unknown: Self = Self(4i32); |
| pub const RemoteSystemUnavailable: Self = Self(5i32); |
| pub const RemoteSystemNotSupportedByApp: Self = Self(6i32); |
| pub const NotAuthorized: Self = Self(7i32); |
| pub const AuthenticationError: Self = Self(8i32); |
| pub const NetworkNotAvailable: Self = Self(9i32); |
| pub const DisabledByPolicy: Self = Self(10i32); |
| pub const WebServiceUnavailable: Self = Self(11i32); |
| } |
| impl ::core::marker::Copy for AppServiceConnectionStatus {} |
| impl ::core::clone::Clone for AppServiceConnectionStatus { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for AppServiceConnectionStatus { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for AppServiceConnectionStatus { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for AppServiceConnectionStatus { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("AppServiceConnectionStatus").field(&self.0).finish() |
| } |
| } |
| impl ::windows::core::RuntimeType for AppServiceConnectionStatus { |
| const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.AppService.AppServiceConnectionStatus;i4)"); |
| } |
| #[doc = "*Required features: `\"ApplicationModel_AppService\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct AppServiceResponseStatus(pub i32); |
| impl AppServiceResponseStatus { |
| pub const Success: Self = Self(0i32); |
| pub const Failure: Self = Self(1i32); |
| pub const ResourceLimitsExceeded: Self = Self(2i32); |
| pub const Unknown: Self = Self(3i32); |
| pub const RemoteSystemUnavailable: Self = Self(4i32); |
| pub const MessageSizeTooLarge: Self = Self(5i32); |
| pub const AppUnavailable: Self = Self(6i32); |
| pub const AuthenticationError: Self = Self(7i32); |
| pub const NetworkNotAvailable: Self = Self(8i32); |
| pub const DisabledByPolicy: Self = Self(9i32); |
| pub const WebServiceUnavailable: Self = Self(10i32); |
| } |
| impl ::core::marker::Copy for AppServiceResponseStatus {} |
| impl ::core::clone::Clone for AppServiceResponseStatus { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for AppServiceResponseStatus { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for AppServiceResponseStatus { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for AppServiceResponseStatus { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("AppServiceResponseStatus").field(&self.0).finish() |
| } |
| } |
| impl ::windows::core::RuntimeType for AppServiceResponseStatus { |
| const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.AppService.AppServiceResponseStatus;i4)"); |
| } |
| #[doc = "*Required features: `\"ApplicationModel_AppService\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct StatelessAppServiceResponseStatus(pub i32); |
| impl StatelessAppServiceResponseStatus { |
| pub const Success: Self = Self(0i32); |
| pub const AppNotInstalled: Self = Self(1i32); |
| pub const AppUnavailable: Self = Self(2i32); |
| pub const AppServiceUnavailable: Self = Self(3i32); |
| pub const RemoteSystemUnavailable: Self = Self(4i32); |
| pub const RemoteSystemNotSupportedByApp: Self = Self(5i32); |
| pub const NotAuthorized: Self = Self(6i32); |
| pub const ResourceLimitsExceeded: Self = Self(7i32); |
| pub const MessageSizeTooLarge: Self = Self(8i32); |
| pub const Failure: Self = Self(9i32); |
| pub const Unknown: Self = Self(10i32); |
| pub const AuthenticationError: Self = Self(11i32); |
| pub const NetworkNotAvailable: Self = Self(12i32); |
| pub const DisabledByPolicy: Self = Self(13i32); |
| pub const WebServiceUnavailable: Self = Self(14i32); |
| } |
| impl ::core::marker::Copy for StatelessAppServiceResponseStatus {} |
| impl ::core::clone::Clone for StatelessAppServiceResponseStatus { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for StatelessAppServiceResponseStatus { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for StatelessAppServiceResponseStatus { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for StatelessAppServiceResponseStatus { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("StatelessAppServiceResponseStatus").field(&self.0).finish() |
| } |
| } |
| impl ::windows::core::RuntimeType for StatelessAppServiceResponseStatus { |
| const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.AppService.StatelessAppServiceResponseStatus;i4)"); |
| } |
| #[cfg(feature = "implement")] |
| ::core::include!("impl.rs"); |