]> git.proxmox.com Git - rustc.git/blob - vendor/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs
New upstream version 1.70.0+dfsg1
[rustc.git] / vendor / windows / src / Windows / Graphics / Printing / PrintTicket / mod.rs
1 #[doc(hidden)]
2 #[repr(transparent)]
3 pub struct IPrintTicketCapabilities(::windows::core::IUnknown);
4 unsafe impl ::windows::core::Interface for IPrintTicketCapabilities {
5 type Vtable = IPrintTicketCapabilities_Vtbl;
6 }
7 impl ::core::clone::Clone for IPrintTicketCapabilities {
8 fn clone(&self) -> Self {
9 Self(self.0.clone())
10 }
11 }
12 unsafe impl ::windows::core::ComInterface for IPrintTicketCapabilities {
13 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8c45508b_bbdc_4256_a142_2fd615ecb416);
14 }
15 #[repr(C)]
16 #[doc(hidden)]
17 pub struct IPrintTicketCapabilities_Vtbl {
18 pub base__: ::windows::core::IInspectable_Vtbl,
19 pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
20 pub XmlNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
21 #[cfg(feature = "Data_Xml_Dom")]
22 pub XmlNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
23 #[cfg(not(feature = "Data_Xml_Dom"))]
24 XmlNode: usize,
25 pub DocumentBindingFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
26 pub DocumentCollateFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
27 pub DocumentDuplexFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
28 pub DocumentHolePunchFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
29 pub DocumentInputBinFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
30 pub DocumentNUpFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
31 pub DocumentStapleFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
32 pub JobPasscodeFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
33 pub PageBorderlessFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
34 pub PageMediaSizeFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
35 pub PageMediaTypeFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
36 pub PageOrientationFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
37 pub PageOutputColorFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
38 pub PageOutputQualityFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
39 pub PageResolutionFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
40 pub GetFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows::core::HSTRING>, xmlnamespace: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
41 pub GetParameterDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows::core::HSTRING>, xmlnamespace: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
42 }
43 #[doc(hidden)]
44 #[repr(transparent)]
45 pub struct IPrintTicketFeature(::windows::core::IUnknown);
46 unsafe impl ::windows::core::Interface for IPrintTicketFeature {
47 type Vtable = IPrintTicketFeature_Vtbl;
48 }
49 impl ::core::clone::Clone for IPrintTicketFeature {
50 fn clone(&self) -> Self {
51 Self(self.0.clone())
52 }
53 }
54 unsafe impl ::windows::core::ComInterface for IPrintTicketFeature {
55 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe7607d6a_59f5_4103_8858_b97710963d39);
56 }
57 #[repr(C)]
58 #[doc(hidden)]
59 pub struct IPrintTicketFeature_Vtbl {
60 pub base__: ::windows::core::IInspectable_Vtbl,
61 pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
62 pub XmlNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
63 #[cfg(feature = "Data_Xml_Dom")]
64 pub XmlNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
65 #[cfg(not(feature = "Data_Xml_Dom"))]
66 XmlNode: usize,
67 pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
68 pub GetOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows::core::HSTRING>, xmlnamespace: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
69 #[cfg(feature = "Foundation_Collections")]
70 pub Options: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
71 #[cfg(not(feature = "Foundation_Collections"))]
72 Options: usize,
73 pub GetSelectedOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
74 pub SetSelectedOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
75 pub SelectionType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PrintTicketFeatureSelectionType) -> ::windows::core::HRESULT,
76 }
77 #[doc(hidden)]
78 #[repr(transparent)]
79 pub struct IPrintTicketOption(::windows::core::IUnknown);
80 unsafe impl ::windows::core::Interface for IPrintTicketOption {
81 type Vtable = IPrintTicketOption_Vtbl;
82 }
83 impl ::core::clone::Clone for IPrintTicketOption {
84 fn clone(&self) -> Self {
85 Self(self.0.clone())
86 }
87 }
88 unsafe impl ::windows::core::ComInterface for IPrintTicketOption {
89 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb086cf90_b367_4e4b_bd48_9c78a0bb31ce);
90 }
91 #[repr(C)]
92 #[doc(hidden)]
93 pub struct IPrintTicketOption_Vtbl {
94 pub base__: ::windows::core::IInspectable_Vtbl,
95 pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
96 pub XmlNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
97 #[cfg(feature = "Data_Xml_Dom")]
98 pub XmlNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
99 #[cfg(not(feature = "Data_Xml_Dom"))]
100 XmlNode: usize,
101 pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
102 #[cfg(feature = "Data_Xml_Dom")]
103 pub GetPropertyNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows::core::HSTRING>, xmlnamespace: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
104 #[cfg(not(feature = "Data_Xml_Dom"))]
105 GetPropertyNode: usize,
106 #[cfg(feature = "Data_Xml_Dom")]
107 pub GetScoredPropertyNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows::core::HSTRING>, xmlnamespace: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
108 #[cfg(not(feature = "Data_Xml_Dom"))]
109 GetScoredPropertyNode: usize,
110 pub GetPropertyValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows::core::HSTRING>, xmlnamespace: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
111 pub GetScoredPropertyValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows::core::HSTRING>, xmlnamespace: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
112 }
113 #[doc(hidden)]
114 #[repr(transparent)]
115 pub struct IPrintTicketParameterDefinition(::windows::core::IUnknown);
116 unsafe impl ::windows::core::Interface for IPrintTicketParameterDefinition {
117 type Vtable = IPrintTicketParameterDefinition_Vtbl;
118 }
119 impl ::core::clone::Clone for IPrintTicketParameterDefinition {
120 fn clone(&self) -> Self {
121 Self(self.0.clone())
122 }
123 }
124 unsafe impl ::windows::core::ComInterface for IPrintTicketParameterDefinition {
125 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd6bab4e4_2962_4c01_b7f3_9a9294eb8335);
126 }
127 #[repr(C)]
128 #[doc(hidden)]
129 pub struct IPrintTicketParameterDefinition_Vtbl {
130 pub base__: ::windows::core::IInspectable_Vtbl,
131 pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
132 pub XmlNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
133 #[cfg(feature = "Data_Xml_Dom")]
134 pub XmlNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
135 #[cfg(not(feature = "Data_Xml_Dom"))]
136 XmlNode: usize,
137 pub DataType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PrintTicketParameterDataType) -> ::windows::core::HRESULT,
138 pub UnitType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
139 pub RangeMin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT,
140 pub RangeMax: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT,
141 }
142 #[doc(hidden)]
143 #[repr(transparent)]
144 pub struct IPrintTicketParameterInitializer(::windows::core::IUnknown);
145 unsafe impl ::windows::core::Interface for IPrintTicketParameterInitializer {
146 type Vtable = IPrintTicketParameterInitializer_Vtbl;
147 }
148 impl ::core::clone::Clone for IPrintTicketParameterInitializer {
149 fn clone(&self) -> Self {
150 Self(self.0.clone())
151 }
152 }
153 unsafe impl ::windows::core::ComInterface for IPrintTicketParameterInitializer {
154 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5e3335bb_a0a5_48b1_9d5c_07116ddc597a);
155 }
156 #[repr(C)]
157 #[doc(hidden)]
158 pub struct IPrintTicketParameterInitializer_Vtbl {
159 pub base__: ::windows::core::IInspectable_Vtbl,
160 pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
161 pub XmlNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
162 #[cfg(feature = "Data_Xml_Dom")]
163 pub XmlNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
164 #[cfg(not(feature = "Data_Xml_Dom"))]
165 XmlNode: usize,
166 pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
167 pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
168 }
169 #[doc(hidden)]
170 #[repr(transparent)]
171 pub struct IPrintTicketValue(::windows::core::IUnknown);
172 unsafe impl ::windows::core::Interface for IPrintTicketValue {
173 type Vtable = IPrintTicketValue_Vtbl;
174 }
175 impl ::core::clone::Clone for IPrintTicketValue {
176 fn clone(&self) -> Self {
177 Self(self.0.clone())
178 }
179 }
180 unsafe impl ::windows::core::ComInterface for IPrintTicketValue {
181 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x66b30a32_244d_4e22_a98b_bb3cf1f2dd91);
182 }
183 #[repr(C)]
184 #[doc(hidden)]
185 pub struct IPrintTicketValue_Vtbl {
186 pub base__: ::windows::core::IInspectable_Vtbl,
187 pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PrintTicketValueType) -> ::windows::core::HRESULT,
188 pub GetValueAsInteger: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT,
189 pub GetValueAsString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
190 }
191 #[doc(hidden)]
192 #[repr(transparent)]
193 pub struct IWorkflowPrintTicket(::windows::core::IUnknown);
194 unsafe impl ::windows::core::Interface for IWorkflowPrintTicket {
195 type Vtable = IWorkflowPrintTicket_Vtbl;
196 }
197 impl ::core::clone::Clone for IWorkflowPrintTicket {
198 fn clone(&self) -> Self {
199 Self(self.0.clone())
200 }
201 }
202 unsafe impl ::windows::core::ComInterface for IWorkflowPrintTicket {
203 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x41d52285_35e8_448e_a8c5_e4b6a2cf826c);
204 }
205 #[repr(C)]
206 #[doc(hidden)]
207 pub struct IWorkflowPrintTicket_Vtbl {
208 pub base__: ::windows::core::IInspectable_Vtbl,
209 pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
210 pub XmlNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
211 #[cfg(feature = "Data_Xml_Dom")]
212 pub XmlNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
213 #[cfg(not(feature = "Data_Xml_Dom"))]
214 XmlNode: usize,
215 pub GetCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
216 pub DocumentBindingFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
217 pub DocumentCollateFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
218 pub DocumentDuplexFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
219 pub DocumentHolePunchFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
220 pub DocumentInputBinFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
221 pub DocumentNUpFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
222 pub DocumentStapleFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
223 pub JobPasscodeFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
224 pub PageBorderlessFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
225 pub PageMediaSizeFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
226 pub PageMediaTypeFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
227 pub PageOrientationFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
228 pub PageOutputColorFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
229 pub PageOutputQualityFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
230 pub PageResolutionFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
231 pub GetFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows::core::HSTRING>, xmlnamespace: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
232 #[cfg(feature = "Foundation")]
233 pub NotifyXmlChangedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
234 #[cfg(not(feature = "Foundation"))]
235 NotifyXmlChangedAsync: usize,
236 #[cfg(feature = "Foundation")]
237 pub ValidateAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
238 #[cfg(not(feature = "Foundation"))]
239 ValidateAsync: usize,
240 pub GetParameterInitializer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows::core::HSTRING>, xmlnamespace: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
241 pub SetParameterInitializerAsInteger: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows::core::HSTRING>, xmlnamespace: ::std::mem::MaybeUninit<::windows::core::HSTRING>, integervalue: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
242 pub SetParameterInitializerAsString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows::core::HSTRING>, xmlnamespace: ::std::mem::MaybeUninit<::windows::core::HSTRING>, stringvalue: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
243 pub MergeAndValidateTicket: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deltashematicket: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
244 }
245 #[doc(hidden)]
246 #[repr(transparent)]
247 pub struct IWorkflowPrintTicketValidationResult(::windows::core::IUnknown);
248 unsafe impl ::windows::core::Interface for IWorkflowPrintTicketValidationResult {
249 type Vtable = IWorkflowPrintTicketValidationResult_Vtbl;
250 }
251 impl ::core::clone::Clone for IWorkflowPrintTicketValidationResult {
252 fn clone(&self) -> Self {
253 Self(self.0.clone())
254 }
255 }
256 unsafe impl ::windows::core::ComInterface for IWorkflowPrintTicketValidationResult {
257 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0ad1f392_da7b_4a36_bf36_6a99a62e2059);
258 }
259 #[repr(C)]
260 #[doc(hidden)]
261 pub struct IWorkflowPrintTicketValidationResult_Vtbl {
262 pub base__: ::windows::core::IInspectable_Vtbl,
263 pub Validated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
264 pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows::core::HRESULT) -> ::windows::core::HRESULT,
265 }
266 #[doc = "*Required features: `\"Graphics_Printing_PrintTicket\"`*"]
267 #[repr(transparent)]
268 pub struct PrintTicketCapabilities(::windows::core::IUnknown);
269 impl PrintTicketCapabilities {
270 pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
271 let this = self;
272 unsafe {
273 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
274 (::windows::core::Interface::vtable(this).Name)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
275 }
276 }
277 pub fn XmlNamespace(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
278 let this = self;
279 unsafe {
280 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
281 (::windows::core::Interface::vtable(this).XmlNamespace)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
282 }
283 }
284 #[doc = "*Required features: `\"Data_Xml_Dom\"`*"]
285 #[cfg(feature = "Data_Xml_Dom")]
286 pub fn XmlNode(&self) -> ::windows::core::Result<super::super::super::Data::Xml::Dom::IXmlNode> {
287 let this = self;
288 unsafe {
289 let mut result__ = ::windows::core::zeroed::<super::super::super::Data::Xml::Dom::IXmlNode>();
290 (::windows::core::Interface::vtable(this).XmlNode)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
291 }
292 }
293 pub fn DocumentBindingFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
294 let this = self;
295 unsafe {
296 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
297 (::windows::core::Interface::vtable(this).DocumentBindingFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
298 }
299 }
300 pub fn DocumentCollateFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
301 let this = self;
302 unsafe {
303 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
304 (::windows::core::Interface::vtable(this).DocumentCollateFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
305 }
306 }
307 pub fn DocumentDuplexFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
308 let this = self;
309 unsafe {
310 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
311 (::windows::core::Interface::vtable(this).DocumentDuplexFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
312 }
313 }
314 pub fn DocumentHolePunchFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
315 let this = self;
316 unsafe {
317 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
318 (::windows::core::Interface::vtable(this).DocumentHolePunchFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
319 }
320 }
321 pub fn DocumentInputBinFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
322 let this = self;
323 unsafe {
324 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
325 (::windows::core::Interface::vtable(this).DocumentInputBinFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
326 }
327 }
328 pub fn DocumentNUpFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
329 let this = self;
330 unsafe {
331 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
332 (::windows::core::Interface::vtable(this).DocumentNUpFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
333 }
334 }
335 pub fn DocumentStapleFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
336 let this = self;
337 unsafe {
338 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
339 (::windows::core::Interface::vtable(this).DocumentStapleFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
340 }
341 }
342 pub fn JobPasscodeFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
343 let this = self;
344 unsafe {
345 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
346 (::windows::core::Interface::vtable(this).JobPasscodeFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
347 }
348 }
349 pub fn PageBorderlessFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
350 let this = self;
351 unsafe {
352 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
353 (::windows::core::Interface::vtable(this).PageBorderlessFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
354 }
355 }
356 pub fn PageMediaSizeFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
357 let this = self;
358 unsafe {
359 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
360 (::windows::core::Interface::vtable(this).PageMediaSizeFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
361 }
362 }
363 pub fn PageMediaTypeFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
364 let this = self;
365 unsafe {
366 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
367 (::windows::core::Interface::vtable(this).PageMediaTypeFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
368 }
369 }
370 pub fn PageOrientationFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
371 let this = self;
372 unsafe {
373 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
374 (::windows::core::Interface::vtable(this).PageOrientationFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
375 }
376 }
377 pub fn PageOutputColorFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
378 let this = self;
379 unsafe {
380 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
381 (::windows::core::Interface::vtable(this).PageOutputColorFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
382 }
383 }
384 pub fn PageOutputQualityFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
385 let this = self;
386 unsafe {
387 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
388 (::windows::core::Interface::vtable(this).PageOutputQualityFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
389 }
390 }
391 pub fn PageResolutionFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
392 let this = self;
393 unsafe {
394 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
395 (::windows::core::Interface::vtable(this).PageResolutionFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
396 }
397 }
398 pub fn GetFeature(&self, name: &::windows::core::HSTRING, xmlnamespace: &::windows::core::HSTRING) -> ::windows::core::Result<PrintTicketFeature> {
399 let this = self;
400 unsafe {
401 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
402 (::windows::core::Interface::vtable(this).GetFeature)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(xmlnamespace), &mut result__).from_abi(result__)
403 }
404 }
405 pub fn GetParameterDefinition(&self, name: &::windows::core::HSTRING, xmlnamespace: &::windows::core::HSTRING) -> ::windows::core::Result<PrintTicketParameterDefinition> {
406 let this = self;
407 unsafe {
408 let mut result__ = ::windows::core::zeroed::<PrintTicketParameterDefinition>();
409 (::windows::core::Interface::vtable(this).GetParameterDefinition)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(xmlnamespace), &mut result__).from_abi(result__)
410 }
411 }
412 }
413 impl ::core::cmp::PartialEq for PrintTicketCapabilities {
414 fn eq(&self, other: &Self) -> bool {
415 self.0 == other.0
416 }
417 }
418 impl ::core::cmp::Eq for PrintTicketCapabilities {}
419 impl ::core::fmt::Debug for PrintTicketCapabilities {
420 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
421 f.debug_tuple("PrintTicketCapabilities").field(&self.0).finish()
422 }
423 }
424 impl ::windows::core::RuntimeType for PrintTicketCapabilities {
425 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.PrintTicket.PrintTicketCapabilities;{8c45508b-bbdc-4256-a142-2fd615ecb416})");
426 }
427 impl ::core::clone::Clone for PrintTicketCapabilities {
428 fn clone(&self) -> Self {
429 Self(self.0.clone())
430 }
431 }
432 unsafe impl ::windows::core::Interface for PrintTicketCapabilities {
433 type Vtable = IPrintTicketCapabilities_Vtbl;
434 }
435 unsafe impl ::windows::core::ComInterface for PrintTicketCapabilities {
436 const IID: ::windows::core::GUID = <IPrintTicketCapabilities as ::windows::core::ComInterface>::IID;
437 }
438 impl ::windows::core::RuntimeName for PrintTicketCapabilities {
439 const NAME: &'static str = "Windows.Graphics.Printing.PrintTicket.PrintTicketCapabilities";
440 }
441 ::windows::imp::interface_hierarchy!(PrintTicketCapabilities, ::windows::core::IUnknown, ::windows::core::IInspectable);
442 unsafe impl ::core::marker::Send for PrintTicketCapabilities {}
443 unsafe impl ::core::marker::Sync for PrintTicketCapabilities {}
444 #[doc = "*Required features: `\"Graphics_Printing_PrintTicket\"`*"]
445 #[repr(transparent)]
446 pub struct PrintTicketFeature(::windows::core::IUnknown);
447 impl PrintTicketFeature {
448 pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
449 let this = self;
450 unsafe {
451 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
452 (::windows::core::Interface::vtable(this).Name)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
453 }
454 }
455 pub fn XmlNamespace(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
456 let this = self;
457 unsafe {
458 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
459 (::windows::core::Interface::vtable(this).XmlNamespace)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
460 }
461 }
462 #[doc = "*Required features: `\"Data_Xml_Dom\"`*"]
463 #[cfg(feature = "Data_Xml_Dom")]
464 pub fn XmlNode(&self) -> ::windows::core::Result<super::super::super::Data::Xml::Dom::IXmlNode> {
465 let this = self;
466 unsafe {
467 let mut result__ = ::windows::core::zeroed::<super::super::super::Data::Xml::Dom::IXmlNode>();
468 (::windows::core::Interface::vtable(this).XmlNode)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
469 }
470 }
471 pub fn DisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
472 let this = self;
473 unsafe {
474 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
475 (::windows::core::Interface::vtable(this).DisplayName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
476 }
477 }
478 pub fn GetOption(&self, name: &::windows::core::HSTRING, xmlnamespace: &::windows::core::HSTRING) -> ::windows::core::Result<PrintTicketOption> {
479 let this = self;
480 unsafe {
481 let mut result__ = ::windows::core::zeroed::<PrintTicketOption>();
482 (::windows::core::Interface::vtable(this).GetOption)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(xmlnamespace), &mut result__).from_abi(result__)
483 }
484 }
485 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
486 #[cfg(feature = "Foundation_Collections")]
487 pub fn Options(&self) -> ::windows::core::Result<super::super::super::Foundation::Collections::IVectorView<PrintTicketOption>> {
488 let this = self;
489 unsafe {
490 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::Collections::IVectorView<PrintTicketOption>>();
491 (::windows::core::Interface::vtable(this).Options)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
492 }
493 }
494 pub fn GetSelectedOption(&self) -> ::windows::core::Result<PrintTicketOption> {
495 let this = self;
496 unsafe {
497 let mut result__ = ::windows::core::zeroed::<PrintTicketOption>();
498 (::windows::core::Interface::vtable(this).GetSelectedOption)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
499 }
500 }
501 pub fn SetSelectedOption(&self, value: &PrintTicketOption) -> ::windows::core::Result<()> {
502 let this = self;
503 unsafe { (::windows::core::Interface::vtable(this).SetSelectedOption)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
504 }
505 pub fn SelectionType(&self) -> ::windows::core::Result<PrintTicketFeatureSelectionType> {
506 let this = self;
507 unsafe {
508 let mut result__ = ::windows::core::zeroed::<PrintTicketFeatureSelectionType>();
509 (::windows::core::Interface::vtable(this).SelectionType)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
510 }
511 }
512 }
513 impl ::core::cmp::PartialEq for PrintTicketFeature {
514 fn eq(&self, other: &Self) -> bool {
515 self.0 == other.0
516 }
517 }
518 impl ::core::cmp::Eq for PrintTicketFeature {}
519 impl ::core::fmt::Debug for PrintTicketFeature {
520 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
521 f.debug_tuple("PrintTicketFeature").field(&self.0).finish()
522 }
523 }
524 impl ::windows::core::RuntimeType for PrintTicketFeature {
525 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.PrintTicket.PrintTicketFeature;{e7607d6a-59f5-4103-8858-b97710963d39})");
526 }
527 impl ::core::clone::Clone for PrintTicketFeature {
528 fn clone(&self) -> Self {
529 Self(self.0.clone())
530 }
531 }
532 unsafe impl ::windows::core::Interface for PrintTicketFeature {
533 type Vtable = IPrintTicketFeature_Vtbl;
534 }
535 unsafe impl ::windows::core::ComInterface for PrintTicketFeature {
536 const IID: ::windows::core::GUID = <IPrintTicketFeature as ::windows::core::ComInterface>::IID;
537 }
538 impl ::windows::core::RuntimeName for PrintTicketFeature {
539 const NAME: &'static str = "Windows.Graphics.Printing.PrintTicket.PrintTicketFeature";
540 }
541 ::windows::imp::interface_hierarchy!(PrintTicketFeature, ::windows::core::IUnknown, ::windows::core::IInspectable);
542 unsafe impl ::core::marker::Send for PrintTicketFeature {}
543 unsafe impl ::core::marker::Sync for PrintTicketFeature {}
544 #[doc = "*Required features: `\"Graphics_Printing_PrintTicket\"`*"]
545 #[repr(transparent)]
546 pub struct PrintTicketOption(::windows::core::IUnknown);
547 impl PrintTicketOption {
548 pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
549 let this = self;
550 unsafe {
551 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
552 (::windows::core::Interface::vtable(this).Name)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
553 }
554 }
555 pub fn XmlNamespace(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
556 let this = self;
557 unsafe {
558 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
559 (::windows::core::Interface::vtable(this).XmlNamespace)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
560 }
561 }
562 #[doc = "*Required features: `\"Data_Xml_Dom\"`*"]
563 #[cfg(feature = "Data_Xml_Dom")]
564 pub fn XmlNode(&self) -> ::windows::core::Result<super::super::super::Data::Xml::Dom::IXmlNode> {
565 let this = self;
566 unsafe {
567 let mut result__ = ::windows::core::zeroed::<super::super::super::Data::Xml::Dom::IXmlNode>();
568 (::windows::core::Interface::vtable(this).XmlNode)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
569 }
570 }
571 pub fn DisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
572 let this = self;
573 unsafe {
574 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
575 (::windows::core::Interface::vtable(this).DisplayName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
576 }
577 }
578 #[doc = "*Required features: `\"Data_Xml_Dom\"`*"]
579 #[cfg(feature = "Data_Xml_Dom")]
580 pub fn GetPropertyNode(&self, name: &::windows::core::HSTRING, xmlnamespace: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::super::Data::Xml::Dom::IXmlNode> {
581 let this = self;
582 unsafe {
583 let mut result__ = ::windows::core::zeroed::<super::super::super::Data::Xml::Dom::IXmlNode>();
584 (::windows::core::Interface::vtable(this).GetPropertyNode)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(xmlnamespace), &mut result__).from_abi(result__)
585 }
586 }
587 #[doc = "*Required features: `\"Data_Xml_Dom\"`*"]
588 #[cfg(feature = "Data_Xml_Dom")]
589 pub fn GetScoredPropertyNode(&self, name: &::windows::core::HSTRING, xmlnamespace: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::super::Data::Xml::Dom::IXmlNode> {
590 let this = self;
591 unsafe {
592 let mut result__ = ::windows::core::zeroed::<super::super::super::Data::Xml::Dom::IXmlNode>();
593 (::windows::core::Interface::vtable(this).GetScoredPropertyNode)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(xmlnamespace), &mut result__).from_abi(result__)
594 }
595 }
596 pub fn GetPropertyValue(&self, name: &::windows::core::HSTRING, xmlnamespace: &::windows::core::HSTRING) -> ::windows::core::Result<PrintTicketValue> {
597 let this = self;
598 unsafe {
599 let mut result__ = ::windows::core::zeroed::<PrintTicketValue>();
600 (::windows::core::Interface::vtable(this).GetPropertyValue)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(xmlnamespace), &mut result__).from_abi(result__)
601 }
602 }
603 pub fn GetScoredPropertyValue(&self, name: &::windows::core::HSTRING, xmlnamespace: &::windows::core::HSTRING) -> ::windows::core::Result<PrintTicketValue> {
604 let this = self;
605 unsafe {
606 let mut result__ = ::windows::core::zeroed::<PrintTicketValue>();
607 (::windows::core::Interface::vtable(this).GetScoredPropertyValue)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(xmlnamespace), &mut result__).from_abi(result__)
608 }
609 }
610 }
611 impl ::core::cmp::PartialEq for PrintTicketOption {
612 fn eq(&self, other: &Self) -> bool {
613 self.0 == other.0
614 }
615 }
616 impl ::core::cmp::Eq for PrintTicketOption {}
617 impl ::core::fmt::Debug for PrintTicketOption {
618 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
619 f.debug_tuple("PrintTicketOption").field(&self.0).finish()
620 }
621 }
622 impl ::windows::core::RuntimeType for PrintTicketOption {
623 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.PrintTicket.PrintTicketOption;{b086cf90-b367-4e4b-bd48-9c78a0bb31ce})");
624 }
625 impl ::core::clone::Clone for PrintTicketOption {
626 fn clone(&self) -> Self {
627 Self(self.0.clone())
628 }
629 }
630 unsafe impl ::windows::core::Interface for PrintTicketOption {
631 type Vtable = IPrintTicketOption_Vtbl;
632 }
633 unsafe impl ::windows::core::ComInterface for PrintTicketOption {
634 const IID: ::windows::core::GUID = <IPrintTicketOption as ::windows::core::ComInterface>::IID;
635 }
636 impl ::windows::core::RuntimeName for PrintTicketOption {
637 const NAME: &'static str = "Windows.Graphics.Printing.PrintTicket.PrintTicketOption";
638 }
639 ::windows::imp::interface_hierarchy!(PrintTicketOption, ::windows::core::IUnknown, ::windows::core::IInspectable);
640 unsafe impl ::core::marker::Send for PrintTicketOption {}
641 unsafe impl ::core::marker::Sync for PrintTicketOption {}
642 #[doc = "*Required features: `\"Graphics_Printing_PrintTicket\"`*"]
643 #[repr(transparent)]
644 pub struct PrintTicketParameterDefinition(::windows::core::IUnknown);
645 impl PrintTicketParameterDefinition {
646 pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
647 let this = self;
648 unsafe {
649 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
650 (::windows::core::Interface::vtable(this).Name)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
651 }
652 }
653 pub fn XmlNamespace(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
654 let this = self;
655 unsafe {
656 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
657 (::windows::core::Interface::vtable(this).XmlNamespace)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
658 }
659 }
660 #[doc = "*Required features: `\"Data_Xml_Dom\"`*"]
661 #[cfg(feature = "Data_Xml_Dom")]
662 pub fn XmlNode(&self) -> ::windows::core::Result<super::super::super::Data::Xml::Dom::IXmlNode> {
663 let this = self;
664 unsafe {
665 let mut result__ = ::windows::core::zeroed::<super::super::super::Data::Xml::Dom::IXmlNode>();
666 (::windows::core::Interface::vtable(this).XmlNode)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
667 }
668 }
669 pub fn DataType(&self) -> ::windows::core::Result<PrintTicketParameterDataType> {
670 let this = self;
671 unsafe {
672 let mut result__ = ::windows::core::zeroed::<PrintTicketParameterDataType>();
673 (::windows::core::Interface::vtable(this).DataType)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
674 }
675 }
676 pub fn UnitType(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
677 let this = self;
678 unsafe {
679 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
680 (::windows::core::Interface::vtable(this).UnitType)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
681 }
682 }
683 pub fn RangeMin(&self) -> ::windows::core::Result<i32> {
684 let this = self;
685 unsafe {
686 let mut result__ = ::windows::core::zeroed::<i32>();
687 (::windows::core::Interface::vtable(this).RangeMin)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
688 }
689 }
690 pub fn RangeMax(&self) -> ::windows::core::Result<i32> {
691 let this = self;
692 unsafe {
693 let mut result__ = ::windows::core::zeroed::<i32>();
694 (::windows::core::Interface::vtable(this).RangeMax)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
695 }
696 }
697 }
698 impl ::core::cmp::PartialEq for PrintTicketParameterDefinition {
699 fn eq(&self, other: &Self) -> bool {
700 self.0 == other.0
701 }
702 }
703 impl ::core::cmp::Eq for PrintTicketParameterDefinition {}
704 impl ::core::fmt::Debug for PrintTicketParameterDefinition {
705 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
706 f.debug_tuple("PrintTicketParameterDefinition").field(&self.0).finish()
707 }
708 }
709 impl ::windows::core::RuntimeType for PrintTicketParameterDefinition {
710 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.PrintTicket.PrintTicketParameterDefinition;{d6bab4e4-2962-4c01-b7f3-9a9294eb8335})");
711 }
712 impl ::core::clone::Clone for PrintTicketParameterDefinition {
713 fn clone(&self) -> Self {
714 Self(self.0.clone())
715 }
716 }
717 unsafe impl ::windows::core::Interface for PrintTicketParameterDefinition {
718 type Vtable = IPrintTicketParameterDefinition_Vtbl;
719 }
720 unsafe impl ::windows::core::ComInterface for PrintTicketParameterDefinition {
721 const IID: ::windows::core::GUID = <IPrintTicketParameterDefinition as ::windows::core::ComInterface>::IID;
722 }
723 impl ::windows::core::RuntimeName for PrintTicketParameterDefinition {
724 const NAME: &'static str = "Windows.Graphics.Printing.PrintTicket.PrintTicketParameterDefinition";
725 }
726 ::windows::imp::interface_hierarchy!(PrintTicketParameterDefinition, ::windows::core::IUnknown, ::windows::core::IInspectable);
727 unsafe impl ::core::marker::Send for PrintTicketParameterDefinition {}
728 unsafe impl ::core::marker::Sync for PrintTicketParameterDefinition {}
729 #[doc = "*Required features: `\"Graphics_Printing_PrintTicket\"`*"]
730 #[repr(transparent)]
731 pub struct PrintTicketParameterInitializer(::windows::core::IUnknown);
732 impl PrintTicketParameterInitializer {
733 pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
734 let this = self;
735 unsafe {
736 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
737 (::windows::core::Interface::vtable(this).Name)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
738 }
739 }
740 pub fn XmlNamespace(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
741 let this = self;
742 unsafe {
743 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
744 (::windows::core::Interface::vtable(this).XmlNamespace)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
745 }
746 }
747 #[doc = "*Required features: `\"Data_Xml_Dom\"`*"]
748 #[cfg(feature = "Data_Xml_Dom")]
749 pub fn XmlNode(&self) -> ::windows::core::Result<super::super::super::Data::Xml::Dom::IXmlNode> {
750 let this = self;
751 unsafe {
752 let mut result__ = ::windows::core::zeroed::<super::super::super::Data::Xml::Dom::IXmlNode>();
753 (::windows::core::Interface::vtable(this).XmlNode)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
754 }
755 }
756 pub fn SetValue(&self, value: &PrintTicketValue) -> ::windows::core::Result<()> {
757 let this = self;
758 unsafe { (::windows::core::Interface::vtable(this).SetValue)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
759 }
760 pub fn Value(&self) -> ::windows::core::Result<PrintTicketValue> {
761 let this = self;
762 unsafe {
763 let mut result__ = ::windows::core::zeroed::<PrintTicketValue>();
764 (::windows::core::Interface::vtable(this).Value)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
765 }
766 }
767 }
768 impl ::core::cmp::PartialEq for PrintTicketParameterInitializer {
769 fn eq(&self, other: &Self) -> bool {
770 self.0 == other.0
771 }
772 }
773 impl ::core::cmp::Eq for PrintTicketParameterInitializer {}
774 impl ::core::fmt::Debug for PrintTicketParameterInitializer {
775 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
776 f.debug_tuple("PrintTicketParameterInitializer").field(&self.0).finish()
777 }
778 }
779 impl ::windows::core::RuntimeType for PrintTicketParameterInitializer {
780 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.PrintTicket.PrintTicketParameterInitializer;{5e3335bb-a0a5-48b1-9d5c-07116ddc597a})");
781 }
782 impl ::core::clone::Clone for PrintTicketParameterInitializer {
783 fn clone(&self) -> Self {
784 Self(self.0.clone())
785 }
786 }
787 unsafe impl ::windows::core::Interface for PrintTicketParameterInitializer {
788 type Vtable = IPrintTicketParameterInitializer_Vtbl;
789 }
790 unsafe impl ::windows::core::ComInterface for PrintTicketParameterInitializer {
791 const IID: ::windows::core::GUID = <IPrintTicketParameterInitializer as ::windows::core::ComInterface>::IID;
792 }
793 impl ::windows::core::RuntimeName for PrintTicketParameterInitializer {
794 const NAME: &'static str = "Windows.Graphics.Printing.PrintTicket.PrintTicketParameterInitializer";
795 }
796 ::windows::imp::interface_hierarchy!(PrintTicketParameterInitializer, ::windows::core::IUnknown, ::windows::core::IInspectable);
797 unsafe impl ::core::marker::Send for PrintTicketParameterInitializer {}
798 unsafe impl ::core::marker::Sync for PrintTicketParameterInitializer {}
799 #[doc = "*Required features: `\"Graphics_Printing_PrintTicket\"`*"]
800 #[repr(transparent)]
801 pub struct PrintTicketValue(::windows::core::IUnknown);
802 impl PrintTicketValue {
803 pub fn Type(&self) -> ::windows::core::Result<PrintTicketValueType> {
804 let this = self;
805 unsafe {
806 let mut result__ = ::windows::core::zeroed::<PrintTicketValueType>();
807 (::windows::core::Interface::vtable(this).Type)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
808 }
809 }
810 pub fn GetValueAsInteger(&self) -> ::windows::core::Result<i32> {
811 let this = self;
812 unsafe {
813 let mut result__ = ::windows::core::zeroed::<i32>();
814 (::windows::core::Interface::vtable(this).GetValueAsInteger)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
815 }
816 }
817 pub fn GetValueAsString(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
818 let this = self;
819 unsafe {
820 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
821 (::windows::core::Interface::vtable(this).GetValueAsString)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
822 }
823 }
824 }
825 impl ::core::cmp::PartialEq for PrintTicketValue {
826 fn eq(&self, other: &Self) -> bool {
827 self.0 == other.0
828 }
829 }
830 impl ::core::cmp::Eq for PrintTicketValue {}
831 impl ::core::fmt::Debug for PrintTicketValue {
832 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
833 f.debug_tuple("PrintTicketValue").field(&self.0).finish()
834 }
835 }
836 impl ::windows::core::RuntimeType for PrintTicketValue {
837 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.PrintTicket.PrintTicketValue;{66b30a32-244d-4e22-a98b-bb3cf1f2dd91})");
838 }
839 impl ::core::clone::Clone for PrintTicketValue {
840 fn clone(&self) -> Self {
841 Self(self.0.clone())
842 }
843 }
844 unsafe impl ::windows::core::Interface for PrintTicketValue {
845 type Vtable = IPrintTicketValue_Vtbl;
846 }
847 unsafe impl ::windows::core::ComInterface for PrintTicketValue {
848 const IID: ::windows::core::GUID = <IPrintTicketValue as ::windows::core::ComInterface>::IID;
849 }
850 impl ::windows::core::RuntimeName for PrintTicketValue {
851 const NAME: &'static str = "Windows.Graphics.Printing.PrintTicket.PrintTicketValue";
852 }
853 ::windows::imp::interface_hierarchy!(PrintTicketValue, ::windows::core::IUnknown, ::windows::core::IInspectable);
854 unsafe impl ::core::marker::Send for PrintTicketValue {}
855 unsafe impl ::core::marker::Sync for PrintTicketValue {}
856 #[doc = "*Required features: `\"Graphics_Printing_PrintTicket\"`*"]
857 #[repr(transparent)]
858 pub struct WorkflowPrintTicket(::windows::core::IUnknown);
859 impl WorkflowPrintTicket {
860 pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
861 let this = self;
862 unsafe {
863 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
864 (::windows::core::Interface::vtable(this).Name)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
865 }
866 }
867 pub fn XmlNamespace(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
868 let this = self;
869 unsafe {
870 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
871 (::windows::core::Interface::vtable(this).XmlNamespace)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
872 }
873 }
874 #[doc = "*Required features: `\"Data_Xml_Dom\"`*"]
875 #[cfg(feature = "Data_Xml_Dom")]
876 pub fn XmlNode(&self) -> ::windows::core::Result<super::super::super::Data::Xml::Dom::IXmlNode> {
877 let this = self;
878 unsafe {
879 let mut result__ = ::windows::core::zeroed::<super::super::super::Data::Xml::Dom::IXmlNode>();
880 (::windows::core::Interface::vtable(this).XmlNode)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
881 }
882 }
883 pub fn GetCapabilities(&self) -> ::windows::core::Result<PrintTicketCapabilities> {
884 let this = self;
885 unsafe {
886 let mut result__ = ::windows::core::zeroed::<PrintTicketCapabilities>();
887 (::windows::core::Interface::vtable(this).GetCapabilities)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
888 }
889 }
890 pub fn DocumentBindingFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
891 let this = self;
892 unsafe {
893 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
894 (::windows::core::Interface::vtable(this).DocumentBindingFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
895 }
896 }
897 pub fn DocumentCollateFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
898 let this = self;
899 unsafe {
900 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
901 (::windows::core::Interface::vtable(this).DocumentCollateFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
902 }
903 }
904 pub fn DocumentDuplexFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
905 let this = self;
906 unsafe {
907 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
908 (::windows::core::Interface::vtable(this).DocumentDuplexFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
909 }
910 }
911 pub fn DocumentHolePunchFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
912 let this = self;
913 unsafe {
914 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
915 (::windows::core::Interface::vtable(this).DocumentHolePunchFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
916 }
917 }
918 pub fn DocumentInputBinFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
919 let this = self;
920 unsafe {
921 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
922 (::windows::core::Interface::vtable(this).DocumentInputBinFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
923 }
924 }
925 pub fn DocumentNUpFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
926 let this = self;
927 unsafe {
928 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
929 (::windows::core::Interface::vtable(this).DocumentNUpFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
930 }
931 }
932 pub fn DocumentStapleFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
933 let this = self;
934 unsafe {
935 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
936 (::windows::core::Interface::vtable(this).DocumentStapleFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
937 }
938 }
939 pub fn JobPasscodeFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
940 let this = self;
941 unsafe {
942 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
943 (::windows::core::Interface::vtable(this).JobPasscodeFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
944 }
945 }
946 pub fn PageBorderlessFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
947 let this = self;
948 unsafe {
949 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
950 (::windows::core::Interface::vtable(this).PageBorderlessFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
951 }
952 }
953 pub fn PageMediaSizeFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
954 let this = self;
955 unsafe {
956 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
957 (::windows::core::Interface::vtable(this).PageMediaSizeFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
958 }
959 }
960 pub fn PageMediaTypeFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
961 let this = self;
962 unsafe {
963 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
964 (::windows::core::Interface::vtable(this).PageMediaTypeFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
965 }
966 }
967 pub fn PageOrientationFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
968 let this = self;
969 unsafe {
970 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
971 (::windows::core::Interface::vtable(this).PageOrientationFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
972 }
973 }
974 pub fn PageOutputColorFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
975 let this = self;
976 unsafe {
977 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
978 (::windows::core::Interface::vtable(this).PageOutputColorFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
979 }
980 }
981 pub fn PageOutputQualityFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
982 let this = self;
983 unsafe {
984 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
985 (::windows::core::Interface::vtable(this).PageOutputQualityFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
986 }
987 }
988 pub fn PageResolutionFeature(&self) -> ::windows::core::Result<PrintTicketFeature> {
989 let this = self;
990 unsafe {
991 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
992 (::windows::core::Interface::vtable(this).PageResolutionFeature)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
993 }
994 }
995 pub fn GetFeature(&self, name: &::windows::core::HSTRING, xmlnamespace: &::windows::core::HSTRING) -> ::windows::core::Result<PrintTicketFeature> {
996 let this = self;
997 unsafe {
998 let mut result__ = ::windows::core::zeroed::<PrintTicketFeature>();
999 (::windows::core::Interface::vtable(this).GetFeature)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(xmlnamespace), &mut result__).from_abi(result__)
1000 }
1001 }
1002 #[doc = "*Required features: `\"Foundation\"`*"]
1003 #[cfg(feature = "Foundation")]
1004 pub fn NotifyXmlChangedAsync(&self) -> ::windows::core::Result<super::super::super::Foundation::IAsyncAction> {
1005 let this = self;
1006 unsafe {
1007 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::IAsyncAction>();
1008 (::windows::core::Interface::vtable(this).NotifyXmlChangedAsync)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1009 }
1010 }
1011 #[doc = "*Required features: `\"Foundation\"`*"]
1012 #[cfg(feature = "Foundation")]
1013 pub fn ValidateAsync(&self) -> ::windows::core::Result<super::super::super::Foundation::IAsyncOperation<WorkflowPrintTicketValidationResult>> {
1014 let this = self;
1015 unsafe {
1016 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::IAsyncOperation<WorkflowPrintTicketValidationResult>>();
1017 (::windows::core::Interface::vtable(this).ValidateAsync)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1018 }
1019 }
1020 pub fn GetParameterInitializer(&self, name: &::windows::core::HSTRING, xmlnamespace: &::windows::core::HSTRING) -> ::windows::core::Result<PrintTicketParameterInitializer> {
1021 let this = self;
1022 unsafe {
1023 let mut result__ = ::windows::core::zeroed::<PrintTicketParameterInitializer>();
1024 (::windows::core::Interface::vtable(this).GetParameterInitializer)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(xmlnamespace), &mut result__).from_abi(result__)
1025 }
1026 }
1027 pub fn SetParameterInitializerAsInteger(&self, name: &::windows::core::HSTRING, xmlnamespace: &::windows::core::HSTRING, integervalue: i32) -> ::windows::core::Result<PrintTicketParameterInitializer> {
1028 let this = self;
1029 unsafe {
1030 let mut result__ = ::windows::core::zeroed::<PrintTicketParameterInitializer>();
1031 (::windows::core::Interface::vtable(this).SetParameterInitializerAsInteger)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(xmlnamespace), integervalue, &mut result__).from_abi(result__)
1032 }
1033 }
1034 pub fn SetParameterInitializerAsString(&self, name: &::windows::core::HSTRING, xmlnamespace: &::windows::core::HSTRING, stringvalue: &::windows::core::HSTRING) -> ::windows::core::Result<PrintTicketParameterInitializer> {
1035 let this = self;
1036 unsafe {
1037 let mut result__ = ::windows::core::zeroed::<PrintTicketParameterInitializer>();
1038 (::windows::core::Interface::vtable(this).SetParameterInitializerAsString)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(xmlnamespace), ::core::mem::transmute_copy(stringvalue), &mut result__).from_abi(result__)
1039 }
1040 }
1041 pub fn MergeAndValidateTicket(&self, deltashematicket: &WorkflowPrintTicket) -> ::windows::core::Result<WorkflowPrintTicket> {
1042 let this = self;
1043 unsafe {
1044 let mut result__ = ::windows::core::zeroed::<WorkflowPrintTicket>();
1045 (::windows::core::Interface::vtable(this).MergeAndValidateTicket)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(deltashematicket), &mut result__).from_abi(result__)
1046 }
1047 }
1048 }
1049 impl ::core::cmp::PartialEq for WorkflowPrintTicket {
1050 fn eq(&self, other: &Self) -> bool {
1051 self.0 == other.0
1052 }
1053 }
1054 impl ::core::cmp::Eq for WorkflowPrintTicket {}
1055 impl ::core::fmt::Debug for WorkflowPrintTicket {
1056 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
1057 f.debug_tuple("WorkflowPrintTicket").field(&self.0).finish()
1058 }
1059 }
1060 impl ::windows::core::RuntimeType for WorkflowPrintTicket {
1061 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.PrintTicket.WorkflowPrintTicket;{41d52285-35e8-448e-a8c5-e4b6a2cf826c})");
1062 }
1063 impl ::core::clone::Clone for WorkflowPrintTicket {
1064 fn clone(&self) -> Self {
1065 Self(self.0.clone())
1066 }
1067 }
1068 unsafe impl ::windows::core::Interface for WorkflowPrintTicket {
1069 type Vtable = IWorkflowPrintTicket_Vtbl;
1070 }
1071 unsafe impl ::windows::core::ComInterface for WorkflowPrintTicket {
1072 const IID: ::windows::core::GUID = <IWorkflowPrintTicket as ::windows::core::ComInterface>::IID;
1073 }
1074 impl ::windows::core::RuntimeName for WorkflowPrintTicket {
1075 const NAME: &'static str = "Windows.Graphics.Printing.PrintTicket.WorkflowPrintTicket";
1076 }
1077 ::windows::imp::interface_hierarchy!(WorkflowPrintTicket, ::windows::core::IUnknown, ::windows::core::IInspectable);
1078 unsafe impl ::core::marker::Send for WorkflowPrintTicket {}
1079 unsafe impl ::core::marker::Sync for WorkflowPrintTicket {}
1080 #[doc = "*Required features: `\"Graphics_Printing_PrintTicket\"`*"]
1081 #[repr(transparent)]
1082 pub struct WorkflowPrintTicketValidationResult(::windows::core::IUnknown);
1083 impl WorkflowPrintTicketValidationResult {
1084 pub fn Validated(&self) -> ::windows::core::Result<bool> {
1085 let this = self;
1086 unsafe {
1087 let mut result__ = ::windows::core::zeroed::<bool>();
1088 (::windows::core::Interface::vtable(this).Validated)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1089 }
1090 }
1091 pub fn ExtendedError(&self) -> ::windows::core::Result<::windows::core::HRESULT> {
1092 let this = self;
1093 unsafe {
1094 let mut result__ = ::windows::core::zeroed::<::windows::core::HRESULT>();
1095 (::windows::core::Interface::vtable(this).ExtendedError)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1096 }
1097 }
1098 }
1099 impl ::core::cmp::PartialEq for WorkflowPrintTicketValidationResult {
1100 fn eq(&self, other: &Self) -> bool {
1101 self.0 == other.0
1102 }
1103 }
1104 impl ::core::cmp::Eq for WorkflowPrintTicketValidationResult {}
1105 impl ::core::fmt::Debug for WorkflowPrintTicketValidationResult {
1106 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
1107 f.debug_tuple("WorkflowPrintTicketValidationResult").field(&self.0).finish()
1108 }
1109 }
1110 impl ::windows::core::RuntimeType for WorkflowPrintTicketValidationResult {
1111 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Graphics.Printing.PrintTicket.WorkflowPrintTicketValidationResult;{0ad1f392-da7b-4a36-bf36-6a99a62e2059})");
1112 }
1113 impl ::core::clone::Clone for WorkflowPrintTicketValidationResult {
1114 fn clone(&self) -> Self {
1115 Self(self.0.clone())
1116 }
1117 }
1118 unsafe impl ::windows::core::Interface for WorkflowPrintTicketValidationResult {
1119 type Vtable = IWorkflowPrintTicketValidationResult_Vtbl;
1120 }
1121 unsafe impl ::windows::core::ComInterface for WorkflowPrintTicketValidationResult {
1122 const IID: ::windows::core::GUID = <IWorkflowPrintTicketValidationResult as ::windows::core::ComInterface>::IID;
1123 }
1124 impl ::windows::core::RuntimeName for WorkflowPrintTicketValidationResult {
1125 const NAME: &'static str = "Windows.Graphics.Printing.PrintTicket.WorkflowPrintTicketValidationResult";
1126 }
1127 ::windows::imp::interface_hierarchy!(WorkflowPrintTicketValidationResult, ::windows::core::IUnknown, ::windows::core::IInspectable);
1128 unsafe impl ::core::marker::Send for WorkflowPrintTicketValidationResult {}
1129 unsafe impl ::core::marker::Sync for WorkflowPrintTicketValidationResult {}
1130 #[doc = "*Required features: `\"Graphics_Printing_PrintTicket\"`*"]
1131 #[repr(transparent)]
1132 #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
1133 pub struct PrintTicketFeatureSelectionType(pub i32);
1134 impl PrintTicketFeatureSelectionType {
1135 pub const PickOne: Self = Self(0i32);
1136 pub const PickMany: Self = Self(1i32);
1137 }
1138 impl ::core::marker::Copy for PrintTicketFeatureSelectionType {}
1139 impl ::core::clone::Clone for PrintTicketFeatureSelectionType {
1140 fn clone(&self) -> Self {
1141 *self
1142 }
1143 }
1144 impl ::core::default::Default for PrintTicketFeatureSelectionType {
1145 fn default() -> Self {
1146 Self(0)
1147 }
1148 }
1149 impl ::windows::core::TypeKind for PrintTicketFeatureSelectionType {
1150 type TypeKind = ::windows::core::CopyType;
1151 }
1152 impl ::core::fmt::Debug for PrintTicketFeatureSelectionType {
1153 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
1154 f.debug_tuple("PrintTicketFeatureSelectionType").field(&self.0).finish()
1155 }
1156 }
1157 impl ::windows::core::RuntimeType for PrintTicketFeatureSelectionType {
1158 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.Graphics.Printing.PrintTicket.PrintTicketFeatureSelectionType;i4)");
1159 }
1160 #[doc = "*Required features: `\"Graphics_Printing_PrintTicket\"`*"]
1161 #[repr(transparent)]
1162 #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
1163 pub struct PrintTicketParameterDataType(pub i32);
1164 impl PrintTicketParameterDataType {
1165 pub const Integer: Self = Self(0i32);
1166 pub const NumericString: Self = Self(1i32);
1167 pub const String: Self = Self(2i32);
1168 }
1169 impl ::core::marker::Copy for PrintTicketParameterDataType {}
1170 impl ::core::clone::Clone for PrintTicketParameterDataType {
1171 fn clone(&self) -> Self {
1172 *self
1173 }
1174 }
1175 impl ::core::default::Default for PrintTicketParameterDataType {
1176 fn default() -> Self {
1177 Self(0)
1178 }
1179 }
1180 impl ::windows::core::TypeKind for PrintTicketParameterDataType {
1181 type TypeKind = ::windows::core::CopyType;
1182 }
1183 impl ::core::fmt::Debug for PrintTicketParameterDataType {
1184 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
1185 f.debug_tuple("PrintTicketParameterDataType").field(&self.0).finish()
1186 }
1187 }
1188 impl ::windows::core::RuntimeType for PrintTicketParameterDataType {
1189 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.Graphics.Printing.PrintTicket.PrintTicketParameterDataType;i4)");
1190 }
1191 #[doc = "*Required features: `\"Graphics_Printing_PrintTicket\"`*"]
1192 #[repr(transparent)]
1193 #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
1194 pub struct PrintTicketValueType(pub i32);
1195 impl PrintTicketValueType {
1196 pub const Integer: Self = Self(0i32);
1197 pub const String: Self = Self(1i32);
1198 pub const Unknown: Self = Self(2i32);
1199 }
1200 impl ::core::marker::Copy for PrintTicketValueType {}
1201 impl ::core::clone::Clone for PrintTicketValueType {
1202 fn clone(&self) -> Self {
1203 *self
1204 }
1205 }
1206 impl ::core::default::Default for PrintTicketValueType {
1207 fn default() -> Self {
1208 Self(0)
1209 }
1210 }
1211 impl ::windows::core::TypeKind for PrintTicketValueType {
1212 type TypeKind = ::windows::core::CopyType;
1213 }
1214 impl ::core::fmt::Debug for PrintTicketValueType {
1215 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
1216 f.debug_tuple("PrintTicketValueType").field(&self.0).finish()
1217 }
1218 }
1219 impl ::windows::core::RuntimeType for PrintTicketValueType {
1220 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.Graphics.Printing.PrintTicket.PrintTicketValueType;i4)");
1221 }
1222 #[cfg(feature = "implement")]
1223 ::core::include!("impl.rs");