#![allow(unused_variables, non_upper_case_globals, non_snake_case, unused_unsafe, non_camel_case_types, dead_code, clippy::all)] #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowBackgroundSession(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowBackgroundSession { type Vtable = IPrintWorkflowBackgroundSession_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1534661562, 3166, 21130, [116, 88, 134, 164, 108, 189, 220, 69]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowBackgroundSession_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, setupeventhandler: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, submittedeventhandler: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut PrintWorkflowSessionStatus) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowBackgroundSetupRequestedEventArgs(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowBackgroundSetupRequestedEventArgs { type Vtable = IPrintWorkflowBackgroundSetupRequestedEventArgs_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1139372866, 5968, 22985, [97, 251, 56, 55, 72, 162, 3, 98]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowBackgroundSetupRequestedEventArgs_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, #[cfg(all(feature = "Foundation", feature = "Graphics_Printing_PrintTicket"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(all(feature = "Foundation", feature = "Graphics_Printing_PrintTicket")))] usize, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowConfiguration(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowConfiguration { type Vtable = IPrintWorkflowConfiguration_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3500852461, 64843, 24053, [75, 182, 141, 13, 21, 158, 190, 63]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowConfiguration_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowConfiguration2(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowConfiguration2 { type Vtable = IPrintWorkflowConfiguration2_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3728018000, 42708, 23522, [139, 154, 9, 211, 211, 158, 167, 128]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowConfiguration2_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, reason: PrintWorkflowJobAbortReason) -> ::windows::runtime::HRESULT, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowForegroundSession(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowForegroundSession { type Vtable = IPrintWorkflowForegroundSession_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3348849616, 63724, 19691, [149, 58, 200, 135, 97, 87, 221, 51]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowForegroundSession_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, setupeventhandler: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, xpsdataavailableeventhandler: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut PrintWorkflowSessionStatus) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowForegroundSetupRequestedEventArgs(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowForegroundSetupRequestedEventArgs { type Vtable = IPrintWorkflowForegroundSetupRequestedEventArgs_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3152249415, 39963, 19923, [155, 43, 200, 4, 104, 217, 65, 179]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowForegroundSetupRequestedEventArgs_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, #[cfg(all(feature = "Foundation", feature = "Graphics_Printing_PrintTicket"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(all(feature = "Foundation", feature = "Graphics_Printing_PrintTicket")))] usize, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowJobActivatedEventArgs(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowJobActivatedEventArgs { type Vtable = IPrintWorkflowJobActivatedEventArgs_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3569180269, 846, 24064, [166, 22, 249, 97, 160, 51, 220, 200]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowJobActivatedEventArgs_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowJobBackgroundSession(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowJobBackgroundSession { type Vtable = IPrintWorkflowJobBackgroundSession_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3320605400, 8393, 23889, [133, 7, 39, 52, 180, 111, 150, 197]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowJobBackgroundSession_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut PrintWorkflowSessionStatus) -> ::windows::runtime::HRESULT, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowJobNotificationEventArgs(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowJobNotificationEventArgs { type Vtable = IPrintWorkflowJobNotificationEventArgs_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(182546362, 21400, 24250, [180, 114, 151, 134, 80, 24, 106, 154]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowJobNotificationEventArgs_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowJobStartingEventArgs(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowJobStartingEventArgs { type Vtable = IPrintWorkflowJobStartingEventArgs_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3822689192, 12717, 24073, [176, 215, 96, 27, 151, 241, 97, 173]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowJobStartingEventArgs_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(feature = "Devices_Printers")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Devices_Printers"))] usize, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowJobTriggerDetails(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowJobTriggerDetails { type Vtable = IPrintWorkflowJobTriggerDetails_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4280901929, 24802, 20955, [186, 140, 226, 204, 221, 181, 22, 185]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowJobTriggerDetails_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowJobUISession(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowJobUISession { type Vtable = IPrintWorkflowJobUISession_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(13136747, 30263, 22151, [163, 2, 15, 102, 77, 42, 172, 101]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowJobUISession_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut PrintWorkflowSessionStatus) -> ::windows::runtime::HRESULT, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, handler: ::windows::runtime::RawPtr, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowObjectModelSourceFileContent(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowObjectModelSourceFileContent { type Vtable = IPrintWorkflowObjectModelSourceFileContent_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3278670442, 35370, 16794, [179, 195, 32, 144, 230, 191, 171, 47]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowObjectModelSourceFileContent_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowObjectModelSourceFileContentFactory(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowObjectModelSourceFileContentFactory { type Vtable = IPrintWorkflowObjectModelSourceFileContentFactory_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2477897987, 61459, 22230, [183, 8, 153, 172, 44, 203, 18, 238]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowObjectModelSourceFileContentFactory_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, #[cfg(feature = "Storage_Streams")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, xpsstream: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Storage_Streams"))] usize, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowObjectModelTargetPackage(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowObjectModelTargetPackage { type Vtable = IPrintWorkflowObjectModelTargetPackage_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2107030644, 39764, 19617, [173, 58, 151, 156, 61, 68, 221, 172]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowObjectModelTargetPackage_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowPdlConverter(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowPdlConverter { type Vtable = IPrintWorkflowPdlConverter_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1080052578, 2788, 20977, [129, 143, 115, 29, 192, 176, 5, 171]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowPdlConverter_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, #[cfg(all(feature = "Foundation", feature = "Graphics_Printing_PrintTicket", feature = "Storage_Streams"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, printticket: ::windows::runtime::RawPtr, inputstream: ::windows::runtime::RawPtr, outputstream: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(all(feature = "Foundation", feature = "Graphics_Printing_PrintTicket", feature = "Storage_Streams")))] usize, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowPdlDataAvailableEventArgs(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowPdlDataAvailableEventArgs { type Vtable = IPrintWorkflowPdlDataAvailableEventArgs_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3568134992, 5447, 22929, [160, 239, 226, 238, 32, 33, 21, 24]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowPdlDataAvailableEventArgs_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowPdlModificationRequestedEventArgs(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowPdlModificationRequestedEventArgs { type Vtable = IPrintWorkflowPdlModificationRequestedEventArgs_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(439589473, 11795, 24285, [167, 7, 206, 236, 97, 215, 51, 59]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowPdlModificationRequestedEventArgs_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, targetcontenttype: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(all(feature = "Devices_Printers", feature = "Foundation_Collections"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, jobattributes: ::windows::runtime::RawPtr, targetcontenttype: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(all(feature = "Devices_Printers", feature = "Foundation_Collections")))] usize, #[cfg(feature = "Storage_Streams")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, jobattributesbuffer: ::windows::runtime::RawPtr, targetcontenttype: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Storage_Streams"))] usize, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, conversiontype: PrintWorkflowPdlConversionType, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowPdlSourceContent(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowPdlSourceContent { type Vtable = IPrintWorkflowPdlSourceContent_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2465725505, 12984, 22187, [132, 94, 177, 230, 139, 58, 237, 213]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowPdlSourceContent_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::std::mem::ManuallyDrop<::windows::runtime::HSTRING>) -> ::windows::runtime::HRESULT, #[cfg(feature = "Storage_Streams")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Storage_Streams"))] usize, #[cfg(all(feature = "Foundation", feature = "Storage"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(all(feature = "Foundation", feature = "Storage")))] usize, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowPdlTargetStream(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowPdlTargetStream { type Vtable = IPrintWorkflowPdlTargetStream_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2806177765, 7907, 21161, [159, 159, 46, 32, 67, 24, 15, 209]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowPdlTargetStream_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, #[cfg(feature = "Storage_Streams")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Storage_Streams"))] usize, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, status: PrintWorkflowSubmittedStatus) -> ::windows::runtime::HRESULT, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowPrinterJob(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowPrinterJob { type Vtable = IPrintWorkflowPrinterJob_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(302030740, 3348, 21571, [188, 9, 37, 3, 17, 206, 87, 11]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowPrinterJob_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut i32) -> ::windows::runtime::HRESULT, #[cfg(feature = "Devices_Printers")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Devices_Printers"))] usize, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut PrintWorkflowPrinterJobStatus) -> ::windows::runtime::HRESULT, #[cfg(feature = "Graphics_Printing_PrintTicket")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Graphics_Printing_PrintTicket"))] usize, #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, attributenames: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] usize, #[cfg(all(feature = "Devices_Printers", feature = "Foundation_Collections"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, attributenames: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(all(feature = "Devices_Printers", feature = "Foundation_Collections")))] usize, #[cfg(all(feature = "Devices_Printers", feature = "Storage_Streams"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, jobattributesbuffer: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(all(feature = "Devices_Printers", feature = "Storage_Streams")))] usize, #[cfg(all(feature = "Devices_Printers", feature = "Foundation_Collections"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, jobattributes: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(all(feature = "Devices_Printers", feature = "Foundation_Collections")))] usize, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowSourceContent(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowSourceContent { type Vtable = IPrintWorkflowSourceContent_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(438879809, 52913, 17715, [187, 115, 251, 230, 62, 239, 219, 24]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowSourceContent_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, #[cfg(all(feature = "Foundation", feature = "Graphics_Printing_PrintTicket"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(all(feature = "Foundation", feature = "Graphics_Printing_PrintTicket")))] usize, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowSpoolStreamContent(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowSpoolStreamContent { type Vtable = IPrintWorkflowSpoolStreamContent_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1927634638, 58374, 19316, [132, 225, 63, 243, 253, 205, 175, 112]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowSpoolStreamContent_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, #[cfg(feature = "Storage_Streams")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Storage_Streams"))] usize, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowStreamTarget(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowStreamTarget { type Vtable = IPrintWorkflowStreamTarget_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2990258820, 34149, 18571, [152, 57, 28, 158, 124, 122, 169, 22]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowStreamTarget_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, #[cfg(feature = "Storage_Streams")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Storage_Streams"))] usize, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowSubmittedEventArgs(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowSubmittedEventArgs { type Vtable = IPrintWorkflowSubmittedEventArgs_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(987564609, 14228, 21865, [92, 135, 64, 232, 255, 114, 15, 131]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowSubmittedEventArgs_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(feature = "Graphics_Printing_PrintTicket")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, jobprintticket: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Graphics_Printing_PrintTicket"))] usize, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowSubmittedOperation(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowSubmittedOperation { type Vtable = IPrintWorkflowSubmittedOperation_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(776888854, 15329, 24335, [92, 129, 165, 162, 189, 78, 171, 14]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowSubmittedOperation_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, status: PrintWorkflowSubmittedStatus) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowTarget(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowTarget { type Vtable = IPrintWorkflowTarget_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(702162796, 2675, 23277, [79, 61, 151, 13, 50, 81, 240, 87]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowTarget_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowTriggerDetails(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowTriggerDetails { type Vtable = IPrintWorkflowTriggerDetails_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1463408744, 40326, 16466, [176, 203, 243, 16, 190, 205, 89, 187]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowTriggerDetails_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowUIActivatedEventArgs(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowUIActivatedEventArgs { type Vtable = IPrintWorkflowUIActivatedEventArgs_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3163194445, 2539, 22342, [114, 166, 141, 200, 181, 237, 190, 155]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowUIActivatedEventArgs_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowUILauncher(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowUILauncher { type Vtable = IPrintWorkflowUILauncher_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1693049391, 5324, 22568, [150, 251, 57, 22, 63, 182, 195, 120]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowUILauncher_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] #[doc(hidden)] pub struct IPrintWorkflowXpsDataAvailableEventArgs(::windows::runtime::IInspectable); unsafe impl ::windows::runtime::Interface for IPrintWorkflowXpsDataAvailableEventArgs { type Vtable = IPrintWorkflowXpsDataAvailableEventArgs_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1293009713, 21713, 17230, [190, 14, 130, 197, 250, 88, 229, 178]); } #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowXpsDataAvailableEventArgs_abi( pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT, pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, #[cfg(not(feature = "Foundation"))] usize, ); #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowBackgroundSession(::windows::runtime::IInspectable); impl PrintWorkflowBackgroundSession { #[cfg(feature = "Foundation")] pub fn SetupRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler>>(&self, setupeventhandler: Param0) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), setupeventhandler.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] pub fn RemoveSetupRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { let this = self; unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } } #[cfg(feature = "Foundation")] pub fn Submitted<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler>>(&self, submittedeventhandler: Param0) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), submittedeventhandler.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] pub fn RemoveSubmitted<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { let this = self; unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } } pub fn Status(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: PrintWorkflowSessionStatus = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } pub fn Start(&self) -> ::windows::runtime::Result<()> { let this = self; unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this)).ok() } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowBackgroundSession { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowBackgroundSession;{5b7913ba-0c5e-528a-7458-86a46cbddc45})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowBackgroundSession { type Vtable = IPrintWorkflowBackgroundSession_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1534661562, 3166, 21130, [116, 88, 134, 164, 108, 189, 220, 69]); } impl ::windows::runtime::RuntimeName for PrintWorkflowBackgroundSession { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowBackgroundSession"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowBackgroundSession) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowBackgroundSession> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowBackgroundSession) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowBackgroundSession { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowBackgroundSession { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowBackgroundSession) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowBackgroundSession> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowBackgroundSession) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowBackgroundSession { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowBackgroundSession { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowBackgroundSession {} unsafe impl ::std::marker::Sync for PrintWorkflowBackgroundSession {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowBackgroundSetupRequestedEventArgs(::windows::runtime::IInspectable); impl PrintWorkflowBackgroundSetupRequestedEventArgs { #[cfg(all(feature = "Foundation", feature = "Graphics_Printing_PrintTicket"))] pub fn GetUserPrintTicketAsync(&self) -> ::windows::runtime::Result> { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::>(result__) } } pub fn Configuration(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } pub fn SetRequiresUI(&self) -> ::windows::runtime::Result<()> { let this = self; unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this)).ok() } } #[cfg(feature = "Foundation")] pub fn GetDeferral(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowBackgroundSetupRequestedEventArgs { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowBackgroundSetupRequestedEventArgs;{43e97342-1750-59c9-61fb-383748a20362})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowBackgroundSetupRequestedEventArgs { type Vtable = IPrintWorkflowBackgroundSetupRequestedEventArgs_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1139372866, 5968, 22985, [97, 251, 56, 55, 72, 162, 3, 98]); } impl ::windows::runtime::RuntimeName for PrintWorkflowBackgroundSetupRequestedEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowBackgroundSetupRequestedEventArgs"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowBackgroundSetupRequestedEventArgs) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowBackgroundSetupRequestedEventArgs> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowBackgroundSetupRequestedEventArgs) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowBackgroundSetupRequestedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowBackgroundSetupRequestedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowBackgroundSetupRequestedEventArgs) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowBackgroundSetupRequestedEventArgs> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowBackgroundSetupRequestedEventArgs) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowBackgroundSetupRequestedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowBackgroundSetupRequestedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowBackgroundSetupRequestedEventArgs {} unsafe impl ::std::marker::Sync for PrintWorkflowBackgroundSetupRequestedEventArgs {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowConfiguration(::windows::runtime::IInspectable); impl PrintWorkflowConfiguration { pub fn SourceAppDisplayName(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { let this = self; unsafe { let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) } } pub fn JobTitle(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { let this = self; unsafe { let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) } } pub fn SessionId(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { let this = self; unsafe { let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) } } pub fn AbortPrintFlow(&self, reason: PrintWorkflowJobAbortReason) -> ::windows::runtime::Result<()> { let this = &::windows::runtime::Interface::cast::(self)?; unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), reason).ok() } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowConfiguration { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowConfiguration;{d0aac4ed-fd4b-5df5-4bb6-8d0d159ebe3f})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowConfiguration { type Vtable = IPrintWorkflowConfiguration_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3500852461, 64843, 24053, [75, 182, 141, 13, 21, 158, 190, 63]); } impl ::windows::runtime::RuntimeName for PrintWorkflowConfiguration { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowConfiguration"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowConfiguration) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowConfiguration> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowConfiguration) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowConfiguration { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowConfiguration { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowConfiguration) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowConfiguration> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowConfiguration) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowConfiguration { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowConfiguration { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowConfiguration {} unsafe impl ::std::marker::Sync for PrintWorkflowConfiguration {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowForegroundSession(::windows::runtime::IInspectable); impl PrintWorkflowForegroundSession { #[cfg(feature = "Foundation")] pub fn SetupRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler>>(&self, setupeventhandler: Param0) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), setupeventhandler.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] pub fn RemoveSetupRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { let this = self; unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } } #[cfg(feature = "Foundation")] pub fn XpsDataAvailable<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler>>(&self, xpsdataavailableeventhandler: Param0) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), xpsdataavailableeventhandler.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] pub fn RemoveXpsDataAvailable<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { let this = self; unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } } pub fn Status(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: PrintWorkflowSessionStatus = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } pub fn Start(&self) -> ::windows::runtime::Result<()> { let this = self; unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this)).ok() } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowForegroundSession { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowForegroundSession;{c79b63d0-f8ec-4ceb-953a-c8876157dd33})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowForegroundSession { type Vtable = IPrintWorkflowForegroundSession_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3348849616, 63724, 19691, [149, 58, 200, 135, 97, 87, 221, 51]); } impl ::windows::runtime::RuntimeName for PrintWorkflowForegroundSession { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowForegroundSession"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowForegroundSession) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowForegroundSession> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowForegroundSession) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowForegroundSession { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowForegroundSession { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowForegroundSession) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowForegroundSession> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowForegroundSession) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowForegroundSession { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowForegroundSession { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowForegroundSession {} unsafe impl ::std::marker::Sync for PrintWorkflowForegroundSession {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowForegroundSetupRequestedEventArgs(::windows::runtime::IInspectable); impl PrintWorkflowForegroundSetupRequestedEventArgs { #[cfg(all(feature = "Foundation", feature = "Graphics_Printing_PrintTicket"))] pub fn GetUserPrintTicketAsync(&self) -> ::windows::runtime::Result> { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::>(result__) } } pub fn Configuration(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] pub fn GetDeferral(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowForegroundSetupRequestedEventArgs { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowForegroundSetupRequestedEventArgs;{bbe38247-9c1b-4dd3-9b2b-c80468d941b3})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowForegroundSetupRequestedEventArgs { type Vtable = IPrintWorkflowForegroundSetupRequestedEventArgs_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3152249415, 39963, 19923, [155, 43, 200, 4, 104, 217, 65, 179]); } impl ::windows::runtime::RuntimeName for PrintWorkflowForegroundSetupRequestedEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowForegroundSetupRequestedEventArgs"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowForegroundSetupRequestedEventArgs) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowForegroundSetupRequestedEventArgs> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowForegroundSetupRequestedEventArgs) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowForegroundSetupRequestedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowForegroundSetupRequestedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowForegroundSetupRequestedEventArgs) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowForegroundSetupRequestedEventArgs> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowForegroundSetupRequestedEventArgs) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowForegroundSetupRequestedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowForegroundSetupRequestedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowForegroundSetupRequestedEventArgs {} unsafe impl ::std::marker::Sync for PrintWorkflowForegroundSetupRequestedEventArgs {} #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] #[repr(transparent)] pub struct PrintWorkflowJobAbortReason(pub i32); impl PrintWorkflowJobAbortReason { pub const JobFailed: PrintWorkflowJobAbortReason = PrintWorkflowJobAbortReason(0i32); pub const UserCanceled: PrintWorkflowJobAbortReason = PrintWorkflowJobAbortReason(1i32); } impl ::std::convert::From for PrintWorkflowJobAbortReason { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::runtime::Abi for PrintWorkflowJobAbortReason { type Abi = Self; type DefaultType = Self; } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowJobAbortReason { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Graphics.Printing.Workflow.PrintWorkflowJobAbortReason;i4)"); } #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowJobActivatedEventArgs(::windows::runtime::IInspectable); impl PrintWorkflowJobActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows::runtime::Result { let this = &::windows::runtime::Interface::cast::(self)?; unsafe { let mut result__: super::super::super::ApplicationModel::Activation::ActivationKind = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows::runtime::Result { let this = &::windows::runtime::Interface::cast::(self)?; unsafe { let mut result__: super::super::super::ApplicationModel::Activation::ApplicationExecutionState = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows::runtime::Result { let this = &::windows::runtime::Interface::cast::(self)?; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows::runtime::Result { let this = &::windows::runtime::Interface::cast::(self)?; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } pub fn Session(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowJobActivatedEventArgs { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowJobActivatedEventArgs;{d4bd5e6d-034e-5e00-a616-f961a033dcc8})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowJobActivatedEventArgs { type Vtable = IPrintWorkflowJobActivatedEventArgs_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3569180269, 846, 24064, [166, 22, 249, 97, 160, 51, 220, 200]); } impl ::windows::runtime::RuntimeName for PrintWorkflowJobActivatedEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowJobActivatedEventArgs"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowJobActivatedEventArgs) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowJobActivatedEventArgs> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowJobActivatedEventArgs) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowJobActivatedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowJobActivatedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowJobActivatedEventArgs) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowJobActivatedEventArgs> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowJobActivatedEventArgs) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowJobActivatedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowJobActivatedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } #[cfg(feature = "ApplicationModel_Activation")] impl ::std::convert::TryFrom for super::super::super::ApplicationModel::Activation::IActivatedEventArgs { type Error = ::windows::runtime::Error; fn try_from(value: PrintWorkflowJobActivatedEventArgs) -> ::windows::runtime::Result { ::std::convert::TryFrom::try_from(&value) } } #[cfg(feature = "ApplicationModel_Activation")] impl ::std::convert::TryFrom<&PrintWorkflowJobActivatedEventArgs> for super::super::super::ApplicationModel::Activation::IActivatedEventArgs { type Error = ::windows::runtime::Error; fn try_from(value: &PrintWorkflowJobActivatedEventArgs) -> ::windows::runtime::Result { ::windows::runtime::Interface::cast(value) } } #[cfg(feature = "ApplicationModel_Activation")] impl<'a> ::windows::runtime::IntoParam<'a, super::super::super::ApplicationModel::Activation::IActivatedEventArgs> for PrintWorkflowJobActivatedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, super::super::super::ApplicationModel::Activation::IActivatedEventArgs> { ::windows::runtime::IntoParam::into_param(&self) } } #[cfg(feature = "ApplicationModel_Activation")] impl<'a> ::windows::runtime::IntoParam<'a, super::super::super::ApplicationModel::Activation::IActivatedEventArgs> for &PrintWorkflowJobActivatedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, super::super::super::ApplicationModel::Activation::IActivatedEventArgs> { ::std::convert::TryInto::::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) } } #[cfg(feature = "ApplicationModel_Activation")] impl ::std::convert::TryFrom for super::super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser { type Error = ::windows::runtime::Error; fn try_from(value: PrintWorkflowJobActivatedEventArgs) -> ::windows::runtime::Result { ::std::convert::TryFrom::try_from(&value) } } #[cfg(feature = "ApplicationModel_Activation")] impl ::std::convert::TryFrom<&PrintWorkflowJobActivatedEventArgs> for super::super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser { type Error = ::windows::runtime::Error; fn try_from(value: &PrintWorkflowJobActivatedEventArgs) -> ::windows::runtime::Result { ::windows::runtime::Interface::cast(value) } } #[cfg(feature = "ApplicationModel_Activation")] impl<'a> ::windows::runtime::IntoParam<'a, super::super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser> for PrintWorkflowJobActivatedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, super::super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser> { ::windows::runtime::IntoParam::into_param(&self) } } #[cfg(feature = "ApplicationModel_Activation")] impl<'a> ::windows::runtime::IntoParam<'a, super::super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser> for &PrintWorkflowJobActivatedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, super::super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser> { ::std::convert::TryInto::::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) } } unsafe impl ::std::marker::Send for PrintWorkflowJobActivatedEventArgs {} unsafe impl ::std::marker::Sync for PrintWorkflowJobActivatedEventArgs {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowJobBackgroundSession(::windows::runtime::IInspectable); impl PrintWorkflowJobBackgroundSession { pub fn Status(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: PrintWorkflowSessionStatus = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] pub fn JobStarting<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] pub fn RemoveJobStarting<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { let this = self; unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } } #[cfg(feature = "Foundation")] pub fn PdlModificationRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] pub fn RemovePdlModificationRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { let this = self; unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } } pub fn Start(&self) -> ::windows::runtime::Result<()> { let this = self; unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this)).ok() } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowJobBackgroundSession { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowJobBackgroundSession;{c5ec6ad8-20c9-5d51-8507-2734b46f96c5})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowJobBackgroundSession { type Vtable = IPrintWorkflowJobBackgroundSession_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3320605400, 8393, 23889, [133, 7, 39, 52, 180, 111, 150, 197]); } impl ::windows::runtime::RuntimeName for PrintWorkflowJobBackgroundSession { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowJobBackgroundSession"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowJobBackgroundSession) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowJobBackgroundSession> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowJobBackgroundSession) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowJobBackgroundSession { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowJobBackgroundSession { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowJobBackgroundSession) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowJobBackgroundSession> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowJobBackgroundSession) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowJobBackgroundSession { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowJobBackgroundSession { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowJobBackgroundSession {} unsafe impl ::std::marker::Sync for PrintWorkflowJobBackgroundSession {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowJobNotificationEventArgs(::windows::runtime::IInspectable); impl PrintWorkflowJobNotificationEventArgs { pub fn Configuration(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } pub fn PrinterJob(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] pub fn GetDeferral(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowJobNotificationEventArgs { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowJobNotificationEventArgs;{0ae16fba-5398-5eba-b472-978650186a9a})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowJobNotificationEventArgs { type Vtable = IPrintWorkflowJobNotificationEventArgs_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(182546362, 21400, 24250, [180, 114, 151, 134, 80, 24, 106, 154]); } impl ::windows::runtime::RuntimeName for PrintWorkflowJobNotificationEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowJobNotificationEventArgs"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowJobNotificationEventArgs) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowJobNotificationEventArgs> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowJobNotificationEventArgs) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowJobNotificationEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowJobNotificationEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowJobNotificationEventArgs) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowJobNotificationEventArgs> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowJobNotificationEventArgs) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowJobNotificationEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowJobNotificationEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowJobNotificationEventArgs {} unsafe impl ::std::marker::Sync for PrintWorkflowJobNotificationEventArgs {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowJobStartingEventArgs(::windows::runtime::IInspectable); impl PrintWorkflowJobStartingEventArgs { pub fn Configuration(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "Devices_Printers")] pub fn Printer(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } pub fn SetSkipSystemRendering(&self) -> ::windows::runtime::Result<()> { let this = self; unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this)).ok() } } #[cfg(feature = "Foundation")] pub fn GetDeferral(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowJobStartingEventArgs { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowJobStartingEventArgs;{e3d99ba8-31ad-5e09-b0d7-601b97f161ad})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowJobStartingEventArgs { type Vtable = IPrintWorkflowJobStartingEventArgs_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3822689192, 12717, 24073, [176, 215, 96, 27, 151, 241, 97, 173]); } impl ::windows::runtime::RuntimeName for PrintWorkflowJobStartingEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowJobStartingEventArgs"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowJobStartingEventArgs) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowJobStartingEventArgs> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowJobStartingEventArgs) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowJobStartingEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowJobStartingEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowJobStartingEventArgs) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowJobStartingEventArgs> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowJobStartingEventArgs) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowJobStartingEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowJobStartingEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowJobStartingEventArgs {} unsafe impl ::std::marker::Sync for PrintWorkflowJobStartingEventArgs {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowJobTriggerDetails(::windows::runtime::IInspectable); impl PrintWorkflowJobTriggerDetails { pub fn PrintWorkflowJobSession(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowJobTriggerDetails { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowJobTriggerDetails;{ff296129-60e2-51db-ba8c-e2ccddb516b9})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowJobTriggerDetails { type Vtable = IPrintWorkflowJobTriggerDetails_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4280901929, 24802, 20955, [186, 140, 226, 204, 221, 181, 22, 185]); } impl ::windows::runtime::RuntimeName for PrintWorkflowJobTriggerDetails { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowJobTriggerDetails"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowJobTriggerDetails) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowJobTriggerDetails> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowJobTriggerDetails) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowJobTriggerDetails { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowJobTriggerDetails { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowJobTriggerDetails) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowJobTriggerDetails> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowJobTriggerDetails) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowJobTriggerDetails { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowJobTriggerDetails { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowJobTriggerDetails {} unsafe impl ::std::marker::Sync for PrintWorkflowJobTriggerDetails {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowJobUISession(::windows::runtime::IInspectable); impl PrintWorkflowJobUISession { pub fn Status(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: PrintWorkflowSessionStatus = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] pub fn PdlDataAvailable<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] pub fn RemovePdlDataAvailable<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { let this = self; unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } } #[cfg(feature = "Foundation")] pub fn JobNotification<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] pub fn RemoveJobNotification<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { let this = self; unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } } pub fn Start(&self) -> ::windows::runtime::Result<()> { let this = self; unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this)).ok() } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowJobUISession { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowJobUISession;{00c8736b-7637-5687-a302-0f664d2aac65})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowJobUISession { type Vtable = IPrintWorkflowJobUISession_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(13136747, 30263, 22151, [163, 2, 15, 102, 77, 42, 172, 101]); } impl ::windows::runtime::RuntimeName for PrintWorkflowJobUISession { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowJobUISession"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowJobUISession) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowJobUISession> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowJobUISession) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowJobUISession { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowJobUISession { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowJobUISession) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowJobUISession> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowJobUISession) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowJobUISession { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowJobUISession { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowJobUISession {} unsafe impl ::std::marker::Sync for PrintWorkflowJobUISession {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowObjectModelSourceFileContent(::windows::runtime::IInspectable); impl PrintWorkflowObjectModelSourceFileContent { #[cfg(feature = "Storage_Streams")] pub fn CreateInstance<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Storage::Streams::IInputStream>>(xpsstream: Param0) -> ::windows::runtime::Result { Self::IPrintWorkflowObjectModelSourceFileContentFactory(|this| unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), xpsstream.into_param().abi(), &mut result__).from_abi::(result__) }) } pub fn IPrintWorkflowObjectModelSourceFileContentFactory ::windows::runtime::Result>(callback: F) -> ::windows::runtime::Result { static mut SHARED: ::windows::runtime::FactoryCache = ::windows::runtime::FactoryCache::new(); unsafe { SHARED.call(callback) } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowObjectModelSourceFileContent { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowObjectModelSourceFileContent;{c36c8a6a-8a2a-419a-b3c3-2090e6bfab2f})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowObjectModelSourceFileContent { type Vtable = IPrintWorkflowObjectModelSourceFileContent_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3278670442, 35370, 16794, [179, 195, 32, 144, 230, 191, 171, 47]); } impl ::windows::runtime::RuntimeName for PrintWorkflowObjectModelSourceFileContent { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowObjectModelSourceFileContent"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowObjectModelSourceFileContent) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowObjectModelSourceFileContent> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowObjectModelSourceFileContent) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowObjectModelSourceFileContent { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowObjectModelSourceFileContent { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowObjectModelSourceFileContent) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowObjectModelSourceFileContent> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowObjectModelSourceFileContent) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowObjectModelSourceFileContent { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowObjectModelSourceFileContent { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowObjectModelSourceFileContent {} unsafe impl ::std::marker::Sync for PrintWorkflowObjectModelSourceFileContent {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowObjectModelTargetPackage(::windows::runtime::IInspectable); impl PrintWorkflowObjectModelTargetPackage {} unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowObjectModelTargetPackage { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowObjectModelTargetPackage;{7d96bc74-9b54-4ca1-ad3a-979c3d44ddac})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowObjectModelTargetPackage { type Vtable = IPrintWorkflowObjectModelTargetPackage_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2107030644, 39764, 19617, [173, 58, 151, 156, 61, 68, 221, 172]); } impl ::windows::runtime::RuntimeName for PrintWorkflowObjectModelTargetPackage { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowObjectModelTargetPackage"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowObjectModelTargetPackage) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowObjectModelTargetPackage> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowObjectModelTargetPackage) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowObjectModelTargetPackage { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowObjectModelTargetPackage { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowObjectModelTargetPackage) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowObjectModelTargetPackage> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowObjectModelTargetPackage) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowObjectModelTargetPackage { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowObjectModelTargetPackage { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowObjectModelTargetPackage {} unsafe impl ::std::marker::Sync for PrintWorkflowObjectModelTargetPackage {} #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] #[repr(transparent)] pub struct PrintWorkflowPdlConversionType(pub i32); impl PrintWorkflowPdlConversionType { pub const XpsToPdf: PrintWorkflowPdlConversionType = PrintWorkflowPdlConversionType(0i32); pub const XpsToPwgr: PrintWorkflowPdlConversionType = PrintWorkflowPdlConversionType(1i32); pub const XpsToPclm: PrintWorkflowPdlConversionType = PrintWorkflowPdlConversionType(2i32); } impl ::std::convert::From for PrintWorkflowPdlConversionType { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::runtime::Abi for PrintWorkflowPdlConversionType { type Abi = Self; type DefaultType = Self; } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowPdlConversionType { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Graphics.Printing.Workflow.PrintWorkflowPdlConversionType;i4)"); } #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowPdlConverter(::windows::runtime::IInspectable); impl PrintWorkflowPdlConverter { #[cfg(all(feature = "Foundation", feature = "Graphics_Printing_PrintTicket", feature = "Storage_Streams"))] pub fn ConvertPdlAsync<'a, Param0: ::windows::runtime::IntoParam<'a, super::PrintTicket::WorkflowPrintTicket>, Param1: ::windows::runtime::IntoParam<'a, super::super::super::Storage::Streams::IInputStream>, Param2: ::windows::runtime::IntoParam<'a, super::super::super::Storage::Streams::IOutputStream>>(&self, printticket: Param0, inputstream: Param1, outputstream: Param2) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), printticket.into_param().abi(), inputstream.into_param().abi(), outputstream.into_param().abi(), &mut result__).from_abi::(result__) } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowPdlConverter { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowPdlConverter;{40604b62-0ae4-51f1-818f-731dc0b005ab})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowPdlConverter { type Vtable = IPrintWorkflowPdlConverter_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1080052578, 2788, 20977, [129, 143, 115, 29, 192, 176, 5, 171]); } impl ::windows::runtime::RuntimeName for PrintWorkflowPdlConverter { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowPdlConverter"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowPdlConverter) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowPdlConverter> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowPdlConverter) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowPdlConverter { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowPdlConverter { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowPdlConverter) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowPdlConverter> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowPdlConverter) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowPdlConverter { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowPdlConverter { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowPdlConverter {} unsafe impl ::std::marker::Sync for PrintWorkflowPdlConverter {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowPdlDataAvailableEventArgs(::windows::runtime::IInspectable); impl PrintWorkflowPdlDataAvailableEventArgs { pub fn Configuration(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } pub fn PrinterJob(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } pub fn SourceContent(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] pub fn GetDeferral(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowPdlDataAvailableEventArgs { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowPdlDataAvailableEventArgs;{d4ad6b50-1547-5991-a0ef-e2ee20211518})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowPdlDataAvailableEventArgs { type Vtable = IPrintWorkflowPdlDataAvailableEventArgs_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3568134992, 5447, 22929, [160, 239, 226, 238, 32, 33, 21, 24]); } impl ::windows::runtime::RuntimeName for PrintWorkflowPdlDataAvailableEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowPdlDataAvailableEventArgs"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowPdlDataAvailableEventArgs) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowPdlDataAvailableEventArgs> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowPdlDataAvailableEventArgs) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowPdlDataAvailableEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowPdlDataAvailableEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowPdlDataAvailableEventArgs) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowPdlDataAvailableEventArgs> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowPdlDataAvailableEventArgs) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowPdlDataAvailableEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowPdlDataAvailableEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowPdlDataAvailableEventArgs {} unsafe impl ::std::marker::Sync for PrintWorkflowPdlDataAvailableEventArgs {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowPdlModificationRequestedEventArgs(::windows::runtime::IInspectable); impl PrintWorkflowPdlModificationRequestedEventArgs { pub fn Configuration(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } pub fn PrinterJob(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } pub fn SourceContent(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } pub fn UILauncher(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } pub fn CreateJobOnPrinter<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, targetcontenttype: Param0) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), targetcontenttype.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(all(feature = "Devices_Printers", feature = "Foundation_Collections"))] pub fn CreateJobOnPrinterWithAttributes<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Collections::IIterable>>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, jobattributes: Param0, targetcontenttype: Param1) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), jobattributes.into_param().abi(), targetcontenttype.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Storage_Streams")] pub fn CreateJobOnPrinterWithAttributesBuffer<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Storage::Streams::IBuffer>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, jobattributesbuffer: Param0, targetcontenttype: Param1) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), jobattributesbuffer.into_param().abi(), targetcontenttype.into_param().abi(), &mut result__).from_abi::(result__) } } pub fn GetPdlConverter(&self, conversiontype: PrintWorkflowPdlConversionType) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), conversiontype, &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] pub fn GetDeferral(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowPdlModificationRequestedEventArgs { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowPdlModificationRequestedEventArgs;{1a339a61-2e13-5edd-a707-ceec61d7333b})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowPdlModificationRequestedEventArgs { type Vtable = IPrintWorkflowPdlModificationRequestedEventArgs_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(439589473, 11795, 24285, [167, 7, 206, 236, 97, 215, 51, 59]); } impl ::windows::runtime::RuntimeName for PrintWorkflowPdlModificationRequestedEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowPdlModificationRequestedEventArgs"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowPdlModificationRequestedEventArgs) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowPdlModificationRequestedEventArgs> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowPdlModificationRequestedEventArgs) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowPdlModificationRequestedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowPdlModificationRequestedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowPdlModificationRequestedEventArgs) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowPdlModificationRequestedEventArgs> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowPdlModificationRequestedEventArgs) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowPdlModificationRequestedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowPdlModificationRequestedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowPdlModificationRequestedEventArgs {} unsafe impl ::std::marker::Sync for PrintWorkflowPdlModificationRequestedEventArgs {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowPdlSourceContent(::windows::runtime::IInspectable); impl PrintWorkflowPdlSourceContent { pub fn ContentType(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { let this = self; unsafe { let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) } } #[cfg(feature = "Storage_Streams")] pub fn GetInputStream(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(all(feature = "Foundation", feature = "Storage"))] pub fn GetContentFileAsync(&self) -> ::windows::runtime::Result> { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::>(result__) } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowPdlSourceContent { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowPdlSourceContent;{92f7fc41-32b8-56ab-845e-b1e68b3aedd5})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowPdlSourceContent { type Vtable = IPrintWorkflowPdlSourceContent_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2465725505, 12984, 22187, [132, 94, 177, 230, 139, 58, 237, 213]); } impl ::windows::runtime::RuntimeName for PrintWorkflowPdlSourceContent { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowPdlSourceContent"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowPdlSourceContent) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowPdlSourceContent> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowPdlSourceContent) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowPdlSourceContent { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowPdlSourceContent { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowPdlSourceContent) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowPdlSourceContent> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowPdlSourceContent) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowPdlSourceContent { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowPdlSourceContent { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowPdlSourceContent {} unsafe impl ::std::marker::Sync for PrintWorkflowPdlSourceContent {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowPdlTargetStream(::windows::runtime::IInspectable); impl PrintWorkflowPdlTargetStream { #[cfg(feature = "Storage_Streams")] pub fn GetOutputStream(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } pub fn CompleteStreamSubmission(&self, status: PrintWorkflowSubmittedStatus) -> ::windows::runtime::Result<()> { let this = self; unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), status).ok() } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowPdlTargetStream { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowPdlTargetStream;{a742dfe5-1ee3-52a9-9f9f-2e2043180fd1})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowPdlTargetStream { type Vtable = IPrintWorkflowPdlTargetStream_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2806177765, 7907, 21161, [159, 159, 46, 32, 67, 24, 15, 209]); } impl ::windows::runtime::RuntimeName for PrintWorkflowPdlTargetStream { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowPdlTargetStream"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowPdlTargetStream) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowPdlTargetStream> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowPdlTargetStream) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowPdlTargetStream { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowPdlTargetStream { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowPdlTargetStream) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowPdlTargetStream> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowPdlTargetStream) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowPdlTargetStream { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowPdlTargetStream { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowPdlTargetStream {} unsafe impl ::std::marker::Sync for PrintWorkflowPdlTargetStream {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowPrinterJob(::windows::runtime::IInspectable); impl PrintWorkflowPrinterJob { pub fn JobId(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: i32 = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "Devices_Printers")] pub fn Printer(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } pub fn GetJobStatus(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: PrintWorkflowPrinterJobStatus = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "Graphics_Printing_PrintTicket")] pub fn GetJobPrintTicket(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn GetJobAttributesAsBuffer<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Collections::IIterable<::windows::runtime::HSTRING>>>(&self, attributenames: Param0) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), attributenames.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(all(feature = "Devices_Printers", feature = "Foundation_Collections"))] pub fn GetJobAttributes<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Collections::IIterable<::windows::runtime::HSTRING>>>(&self, attributenames: Param0) -> ::windows::runtime::Result> { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), attributenames.into_param().abi(), &mut result__).from_abi::>(result__) } } #[cfg(all(feature = "Devices_Printers", feature = "Storage_Streams"))] pub fn SetJobAttributesFromBuffer<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Storage::Streams::IBuffer>>(&self, jobattributesbuffer: Param0) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), jobattributesbuffer.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(all(feature = "Devices_Printers", feature = "Foundation_Collections"))] pub fn SetJobAttributes<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Collections::IIterable>>>(&self, jobattributes: Param0) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), jobattributes.into_param().abi(), &mut result__).from_abi::(result__) } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowPrinterJob { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowPrinterJob;{12009f94-0d14-5443-bc09-250311ce570b})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowPrinterJob { type Vtable = IPrintWorkflowPrinterJob_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(302030740, 3348, 21571, [188, 9, 37, 3, 17, 206, 87, 11]); } impl ::windows::runtime::RuntimeName for PrintWorkflowPrinterJob { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowPrinterJob"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowPrinterJob) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowPrinterJob> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowPrinterJob) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowPrinterJob { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowPrinterJob { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowPrinterJob) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowPrinterJob> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowPrinterJob) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowPrinterJob { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowPrinterJob { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowPrinterJob {} unsafe impl ::std::marker::Sync for PrintWorkflowPrinterJob {} #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] #[repr(transparent)] pub struct PrintWorkflowPrinterJobStatus(pub i32); impl PrintWorkflowPrinterJobStatus { pub const Error: PrintWorkflowPrinterJobStatus = PrintWorkflowPrinterJobStatus(0i32); pub const Aborted: PrintWorkflowPrinterJobStatus = PrintWorkflowPrinterJobStatus(1i32); pub const InProgress: PrintWorkflowPrinterJobStatus = PrintWorkflowPrinterJobStatus(2i32); pub const Completed: PrintWorkflowPrinterJobStatus = PrintWorkflowPrinterJobStatus(3i32); } impl ::std::convert::From for PrintWorkflowPrinterJobStatus { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::runtime::Abi for PrintWorkflowPrinterJobStatus { type Abi = Self; type DefaultType = Self; } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowPrinterJobStatus { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Graphics.Printing.Workflow.PrintWorkflowPrinterJobStatus;i4)"); } #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] #[repr(transparent)] pub struct PrintWorkflowSessionStatus(pub i32); impl PrintWorkflowSessionStatus { pub const Started: PrintWorkflowSessionStatus = PrintWorkflowSessionStatus(0i32); pub const Completed: PrintWorkflowSessionStatus = PrintWorkflowSessionStatus(1i32); pub const Aborted: PrintWorkflowSessionStatus = PrintWorkflowSessionStatus(2i32); pub const Closed: PrintWorkflowSessionStatus = PrintWorkflowSessionStatus(3i32); pub const PdlDataAvailableForModification: PrintWorkflowSessionStatus = PrintWorkflowSessionStatus(4i32); } impl ::std::convert::From for PrintWorkflowSessionStatus { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::runtime::Abi for PrintWorkflowSessionStatus { type Abi = Self; type DefaultType = Self; } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowSessionStatus { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Graphics.Printing.Workflow.PrintWorkflowSessionStatus;i4)"); } #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowSourceContent(::windows::runtime::IInspectable); impl PrintWorkflowSourceContent { #[cfg(all(feature = "Foundation", feature = "Graphics_Printing_PrintTicket"))] pub fn GetJobPrintTicketAsync(&self) -> ::windows::runtime::Result> { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::>(result__) } } pub fn GetSourceSpoolDataAsStreamContent(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } pub fn GetSourceSpoolDataAsXpsObjectModel(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowSourceContent { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowSourceContent;{1a28c641-ceb1-4533-bb73-fbe63eefdb18})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowSourceContent { type Vtable = IPrintWorkflowSourceContent_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(438879809, 52913, 17715, [187, 115, 251, 230, 62, 239, 219, 24]); } impl ::windows::runtime::RuntimeName for PrintWorkflowSourceContent { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowSourceContent"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowSourceContent) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowSourceContent> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowSourceContent) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowSourceContent { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowSourceContent { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowSourceContent) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowSourceContent> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowSourceContent) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowSourceContent { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowSourceContent { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowSourceContent {} unsafe impl ::std::marker::Sync for PrintWorkflowSourceContent {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowSpoolStreamContent(::windows::runtime::IInspectable); impl PrintWorkflowSpoolStreamContent { #[cfg(feature = "Storage_Streams")] pub fn GetInputStream(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowSpoolStreamContent { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowSpoolStreamContent;{72e55ece-e406-4b74-84e1-3ff3fdcdaf70})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowSpoolStreamContent { type Vtable = IPrintWorkflowSpoolStreamContent_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1927634638, 58374, 19316, [132, 225, 63, 243, 253, 205, 175, 112]); } impl ::windows::runtime::RuntimeName for PrintWorkflowSpoolStreamContent { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowSpoolStreamContent"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowSpoolStreamContent) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowSpoolStreamContent> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowSpoolStreamContent) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowSpoolStreamContent { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowSpoolStreamContent { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowSpoolStreamContent) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowSpoolStreamContent> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowSpoolStreamContent) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowSpoolStreamContent { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowSpoolStreamContent { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowSpoolStreamContent {} unsafe impl ::std::marker::Sync for PrintWorkflowSpoolStreamContent {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowStreamTarget(::windows::runtime::IInspectable); impl PrintWorkflowStreamTarget { #[cfg(feature = "Storage_Streams")] pub fn GetOutputStream(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowStreamTarget { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowStreamTarget;{b23bba84-8565-488b-9839-1c9e7c7aa916})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowStreamTarget { type Vtable = IPrintWorkflowStreamTarget_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2990258820, 34149, 18571, [152, 57, 28, 158, 124, 122, 169, 22]); } impl ::windows::runtime::RuntimeName for PrintWorkflowStreamTarget { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowStreamTarget"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowStreamTarget) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowStreamTarget> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowStreamTarget) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowStreamTarget { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowStreamTarget { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowStreamTarget) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowStreamTarget> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowStreamTarget) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowStreamTarget { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowStreamTarget { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowStreamTarget {} unsafe impl ::std::marker::Sync for PrintWorkflowStreamTarget {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowSubmittedEventArgs(::windows::runtime::IInspectable); impl PrintWorkflowSubmittedEventArgs { pub fn Operation(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "Graphics_Printing_PrintTicket")] pub fn GetTarget<'a, Param0: ::windows::runtime::IntoParam<'a, super::PrintTicket::WorkflowPrintTicket>>(&self, jobprintticket: Param0) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), jobprintticket.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] pub fn GetDeferral(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowSubmittedEventArgs { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowSubmittedEventArgs;{3add0a41-3794-5569-5c87-40e8ff720f83})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowSubmittedEventArgs { type Vtable = IPrintWorkflowSubmittedEventArgs_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(987564609, 14228, 21865, [92, 135, 64, 232, 255, 114, 15, 131]); } impl ::windows::runtime::RuntimeName for PrintWorkflowSubmittedEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowSubmittedEventArgs"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowSubmittedEventArgs) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowSubmittedEventArgs> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowSubmittedEventArgs) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowSubmittedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowSubmittedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowSubmittedEventArgs) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowSubmittedEventArgs> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowSubmittedEventArgs) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowSubmittedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowSubmittedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowSubmittedEventArgs {} unsafe impl ::std::marker::Sync for PrintWorkflowSubmittedEventArgs {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowSubmittedOperation(::windows::runtime::IInspectable); impl PrintWorkflowSubmittedOperation { pub fn Complete(&self, status: PrintWorkflowSubmittedStatus) -> ::windows::runtime::Result<()> { let this = self; unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), status).ok() } } pub fn Configuration(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } pub fn XpsContent(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowSubmittedOperation { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowSubmittedOperation;{2e4e6216-3be1-5f0f-5c81-a5a2bd4eab0e})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowSubmittedOperation { type Vtable = IPrintWorkflowSubmittedOperation_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(776888854, 15329, 24335, [92, 129, 165, 162, 189, 78, 171, 14]); } impl ::windows::runtime::RuntimeName for PrintWorkflowSubmittedOperation { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowSubmittedOperation"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowSubmittedOperation) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowSubmittedOperation> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowSubmittedOperation) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowSubmittedOperation { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowSubmittedOperation { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowSubmittedOperation) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowSubmittedOperation> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowSubmittedOperation) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowSubmittedOperation { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowSubmittedOperation { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowSubmittedOperation {} unsafe impl ::std::marker::Sync for PrintWorkflowSubmittedOperation {} #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] #[repr(transparent)] pub struct PrintWorkflowSubmittedStatus(pub i32); impl PrintWorkflowSubmittedStatus { pub const Succeeded: PrintWorkflowSubmittedStatus = PrintWorkflowSubmittedStatus(0i32); pub const Canceled: PrintWorkflowSubmittedStatus = PrintWorkflowSubmittedStatus(1i32); pub const Failed: PrintWorkflowSubmittedStatus = PrintWorkflowSubmittedStatus(2i32); } impl ::std::convert::From for PrintWorkflowSubmittedStatus { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::runtime::Abi for PrintWorkflowSubmittedStatus { type Abi = Self; type DefaultType = Self; } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowSubmittedStatus { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Graphics.Printing.Workflow.PrintWorkflowSubmittedStatus;i4)"); } #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowTarget(::windows::runtime::IInspectable); impl PrintWorkflowTarget { pub fn TargetAsStream(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } pub fn TargetAsXpsObjectModelPackage(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowTarget { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowTarget;{29da276c-0a73-5aed-4f3d-970d3251f057})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowTarget { type Vtable = IPrintWorkflowTarget_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(702162796, 2675, 23277, [79, 61, 151, 13, 50, 81, 240, 87]); } impl ::windows::runtime::RuntimeName for PrintWorkflowTarget { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowTarget"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowTarget) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowTarget> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowTarget) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowTarget { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowTarget { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowTarget) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowTarget> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowTarget) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowTarget { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowTarget { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowTarget {} unsafe impl ::std::marker::Sync for PrintWorkflowTarget {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowTriggerDetails(::windows::runtime::IInspectable); impl PrintWorkflowTriggerDetails { pub fn PrintWorkflowSession(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowTriggerDetails { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowTriggerDetails;{5739d868-9d86-4052-b0cb-f310becd59bb})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowTriggerDetails { type Vtable = IPrintWorkflowTriggerDetails_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1463408744, 40326, 16466, [176, 203, 243, 16, 190, 205, 89, 187]); } impl ::windows::runtime::RuntimeName for PrintWorkflowTriggerDetails { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowTriggerDetails"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowTriggerDetails) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowTriggerDetails> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowTriggerDetails) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowTriggerDetails { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowTriggerDetails { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowTriggerDetails) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowTriggerDetails> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowTriggerDetails) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowTriggerDetails { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowTriggerDetails { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowTriggerDetails {} unsafe impl ::std::marker::Sync for PrintWorkflowTriggerDetails {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowUIActivatedEventArgs(::windows::runtime::IInspectable); impl PrintWorkflowUIActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows::runtime::Result { let this = &::windows::runtime::Interface::cast::(self)?; unsafe { let mut result__: super::super::super::ApplicationModel::Activation::ActivationKind = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows::runtime::Result { let this = &::windows::runtime::Interface::cast::(self)?; unsafe { let mut result__: super::super::super::ApplicationModel::Activation::ApplicationExecutionState = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows::runtime::Result { let this = &::windows::runtime::Interface::cast::(self)?; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows::runtime::Result { let this = &::windows::runtime::Interface::cast::(self)?; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } pub fn PrintWorkflowSession(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowUIActivatedEventArgs { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowUIActivatedEventArgs;{bc8a844d-09eb-5746-72a6-8dc8b5edbe9b})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowUIActivatedEventArgs { type Vtable = IPrintWorkflowUIActivatedEventArgs_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3163194445, 2539, 22342, [114, 166, 141, 200, 181, 237, 190, 155]); } impl ::windows::runtime::RuntimeName for PrintWorkflowUIActivatedEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowUIActivatedEventArgs"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowUIActivatedEventArgs) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowUIActivatedEventArgs> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowUIActivatedEventArgs) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowUIActivatedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowUIActivatedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowUIActivatedEventArgs) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowUIActivatedEventArgs> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowUIActivatedEventArgs) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowUIActivatedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowUIActivatedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } #[cfg(feature = "ApplicationModel_Activation")] impl ::std::convert::TryFrom for super::super::super::ApplicationModel::Activation::IActivatedEventArgs { type Error = ::windows::runtime::Error; fn try_from(value: PrintWorkflowUIActivatedEventArgs) -> ::windows::runtime::Result { ::std::convert::TryFrom::try_from(&value) } } #[cfg(feature = "ApplicationModel_Activation")] impl ::std::convert::TryFrom<&PrintWorkflowUIActivatedEventArgs> for super::super::super::ApplicationModel::Activation::IActivatedEventArgs { type Error = ::windows::runtime::Error; fn try_from(value: &PrintWorkflowUIActivatedEventArgs) -> ::windows::runtime::Result { ::windows::runtime::Interface::cast(value) } } #[cfg(feature = "ApplicationModel_Activation")] impl<'a> ::windows::runtime::IntoParam<'a, super::super::super::ApplicationModel::Activation::IActivatedEventArgs> for PrintWorkflowUIActivatedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, super::super::super::ApplicationModel::Activation::IActivatedEventArgs> { ::windows::runtime::IntoParam::into_param(&self) } } #[cfg(feature = "ApplicationModel_Activation")] impl<'a> ::windows::runtime::IntoParam<'a, super::super::super::ApplicationModel::Activation::IActivatedEventArgs> for &PrintWorkflowUIActivatedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, super::super::super::ApplicationModel::Activation::IActivatedEventArgs> { ::std::convert::TryInto::::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) } } #[cfg(feature = "ApplicationModel_Activation")] impl ::std::convert::TryFrom for super::super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser { type Error = ::windows::runtime::Error; fn try_from(value: PrintWorkflowUIActivatedEventArgs) -> ::windows::runtime::Result { ::std::convert::TryFrom::try_from(&value) } } #[cfg(feature = "ApplicationModel_Activation")] impl ::std::convert::TryFrom<&PrintWorkflowUIActivatedEventArgs> for super::super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser { type Error = ::windows::runtime::Error; fn try_from(value: &PrintWorkflowUIActivatedEventArgs) -> ::windows::runtime::Result { ::windows::runtime::Interface::cast(value) } } #[cfg(feature = "ApplicationModel_Activation")] impl<'a> ::windows::runtime::IntoParam<'a, super::super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser> for PrintWorkflowUIActivatedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, super::super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser> { ::windows::runtime::IntoParam::into_param(&self) } } #[cfg(feature = "ApplicationModel_Activation")] impl<'a> ::windows::runtime::IntoParam<'a, super::super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser> for &PrintWorkflowUIActivatedEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, super::super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser> { ::std::convert::TryInto::::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) } } unsafe impl ::std::marker::Send for PrintWorkflowUIActivatedEventArgs {} unsafe impl ::std::marker::Sync for PrintWorkflowUIActivatedEventArgs {} #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)] #[repr(transparent)] pub struct PrintWorkflowUICompletionStatus(pub i32); impl PrintWorkflowUICompletionStatus { pub const Completed: PrintWorkflowUICompletionStatus = PrintWorkflowUICompletionStatus(0i32); pub const LaunchFailed: PrintWorkflowUICompletionStatus = PrintWorkflowUICompletionStatus(1i32); pub const JobFailed: PrintWorkflowUICompletionStatus = PrintWorkflowUICompletionStatus(2i32); pub const UserCanceled: PrintWorkflowUICompletionStatus = PrintWorkflowUICompletionStatus(3i32); } impl ::std::convert::From for PrintWorkflowUICompletionStatus { fn from(value: i32) -> Self { Self(value) } } unsafe impl ::windows::runtime::Abi for PrintWorkflowUICompletionStatus { type Abi = Self; type DefaultType = Self; } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowUICompletionStatus { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"enum(Windows.Graphics.Printing.Workflow.PrintWorkflowUICompletionStatus;i4)"); } #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowUILauncher(::windows::runtime::IInspectable); impl PrintWorkflowUILauncher { pub fn IsUILaunchEnabled(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: bool = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] pub fn LaunchAndCompleteUIAsync(&self) -> ::windows::runtime::Result> { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::>(result__) } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowUILauncher { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowUILauncher;{64e9e22f-14cc-5828-96fb-39163fb6c378})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowUILauncher { type Vtable = IPrintWorkflowUILauncher_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1693049391, 5324, 22568, [150, 251, 57, 22, 63, 182, 195, 120]); } impl ::windows::runtime::RuntimeName for PrintWorkflowUILauncher { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowUILauncher"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowUILauncher) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowUILauncher> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowUILauncher) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowUILauncher { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowUILauncher { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowUILauncher) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowUILauncher> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowUILauncher) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowUILauncher { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowUILauncher { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowUILauncher {} unsafe impl ::std::marker::Sync for PrintWorkflowUILauncher {} #[repr(transparent)] #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] pub struct PrintWorkflowXpsDataAvailableEventArgs(::windows::runtime::IInspectable); impl PrintWorkflowXpsDataAvailableEventArgs { pub fn Operation(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] pub fn GetDeferral(&self) -> ::windows::runtime::Result { let this = self; unsafe { let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } } unsafe impl ::windows::runtime::RuntimeType for PrintWorkflowXpsDataAvailableEventArgs { const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.Workflow.PrintWorkflowXpsDataAvailableEventArgs;{4d11c331-54d1-434e-be0e-82c5fa58e5b2})"); } unsafe impl ::windows::runtime::Interface for PrintWorkflowXpsDataAvailableEventArgs { type Vtable = IPrintWorkflowXpsDataAvailableEventArgs_abi; const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1293009713, 21713, 17230, [190, 14, 130, 197, 250, 88, 229, 178]); } impl ::windows::runtime::RuntimeName for PrintWorkflowXpsDataAvailableEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowXpsDataAvailableEventArgs"; } impl ::std::convert::From for ::windows::runtime::IUnknown { fn from(value: PrintWorkflowXpsDataAvailableEventArgs) -> Self { unsafe { ::std::mem::transmute(value) } } } impl ::std::convert::From<&PrintWorkflowXpsDataAvailableEventArgs> for ::windows::runtime::IUnknown { fn from(value: &PrintWorkflowXpsDataAvailableEventArgs) -> Self { ::std::convert::From::from(::std::clone::Clone::clone(value)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PrintWorkflowXpsDataAvailableEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PrintWorkflowXpsDataAvailableEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) } } impl ::std::convert::From for ::windows::runtime::IInspectable { fn from(value: PrintWorkflowXpsDataAvailableEventArgs) -> Self { value.0 } } impl ::std::convert::From<&PrintWorkflowXpsDataAvailableEventArgs> for ::windows::runtime::IInspectable { fn from(value: &PrintWorkflowXpsDataAvailableEventArgs) -> Self { value.0.clone() } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PrintWorkflowXpsDataAvailableEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Owned(self.0) } } impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PrintWorkflowXpsDataAvailableEventArgs { fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { ::windows::runtime::Param::Borrowed(&self.0) } } unsafe impl ::std::marker::Send for PrintWorkflowXpsDataAvailableEventArgs {} unsafe impl ::std::marker::Sync for PrintWorkflowXpsDataAvailableEventArgs {}