1 | // Bindings generated by `windows-bindgen` 0.52.0 |
2 | |
3 | #![allow (non_snake_case, non_upper_case_globals, non_camel_case_types, dead_code, clippy::all)] |
4 | #[inline ] |
5 | pub unsafe fn CoCreateGuid() -> ::windows_core::Result<::windows_core::GUID> { |
6 | ::windows_targets::link!("ole32.dll" "system" fn CoCreateGuid(pguid : *mut ::windows_core::GUID) -> ::windows_core::HRESULT); |
7 | let mut result__: GUID = ::std::mem::zeroed(); |
8 | CoCreateGuid(&mut result__).from_abi(result__) |
9 | } |
10 | #[inline ] |
11 | pub unsafe fn RoGetAgileReference<P0>(options: AgileReferenceOptions, riid: *const ::windows_core::GUID, punk: P0) -> ::windows_core::Result<IAgileReference> |
12 | where |
13 | P0: ::windows_core::IntoParam<::windows_core::IUnknown>, |
14 | { |
15 | ::windows_targets::link!("ole32.dll" "system" fn RoGetAgileReference(options : AgileReferenceOptions, riid : *const ::windows_core::GUID, punk : * mut::core::ffi::c_void, ppagilereference : *mut * mut::core::ffi::c_void) -> ::windows_core::HRESULT); |
16 | let mut result__: *mut c_void = ::std::mem::zeroed(); |
17 | RoGetAgileReference(options, riid, punk:punk.into_param().abi(), &mut result__).from_abi(result__) |
18 | } |
19 | #[inline ] |
20 | pub unsafe fn GetErrorInfo(dwreserved: u32) -> ::windows_core::Result<IErrorInfo> { |
21 | ::windows_targets::link!("oleaut32.dll" "system" fn GetErrorInfo(dwreserved : u32, pperrinfo : *mut * mut::core::ffi::c_void) -> ::windows_core::HRESULT); |
22 | let mut result__: *mut c_void = ::std::mem::zeroed(); |
23 | GetErrorInfo(dwreserved, &mut result__).from_abi(result__) |
24 | } |
25 | #[inline ] |
26 | pub unsafe fn SetErrorInfo<P0>(dwreserved: u32, perrinfo: P0) -> ::windows_core::Result<()> |
27 | where |
28 | P0: ::windows_core::IntoParam<IErrorInfo>, |
29 | { |
30 | ::windows_targets::link!("oleaut32.dll" "system" fn SetErrorInfo(dwreserved : u32, perrinfo : * mut::core::ffi::c_void) -> ::windows_core::HRESULT); |
31 | SetErrorInfo(dwreserved, perrinfo:perrinfo.into_param().abi()).ok() |
32 | } |
33 | pub const AGILEREFERENCE_DEFAULT: AgileReferenceOptions = AgileReferenceOptions(0i32); |
34 | #[repr (transparent)] |
35 | #[derive (::core::cmp::PartialEq, ::core::cmp::Eq)] |
36 | pub struct AgileReferenceOptions(pub i32); |
37 | impl ::core::marker::Copy for AgileReferenceOptions {} |
38 | impl ::core::clone::Clone for AgileReferenceOptions { |
39 | fn clone(&self) -> Self { |
40 | *self |
41 | } |
42 | } |
43 | impl ::core::default::Default for AgileReferenceOptions { |
44 | fn default() -> Self { |
45 | Self(0) |
46 | } |
47 | } |
48 | impl ::windows_core::TypeKind for AgileReferenceOptions { |
49 | type TypeKind = ::windows_core::CopyType; |
50 | } |
51 | impl ::core::fmt::Debug for AgileReferenceOptions { |
52 | fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
53 | f.debug_tuple(name:"AgileReferenceOptions" ).field(&self.0).finish() |
54 | } |
55 | } |
56 | pub const CLASS_E_CLASSNOTAVAILABLE: ::windows_core::HRESULT = ::windows_core::HRESULT(-2147221231i32); |
57 | pub const CO_E_NOTINITIALIZED: ::windows_core::HRESULT = ::windows_core::HRESULT(-2147221008i32); |
58 | #[repr (C)] |
59 | pub struct DateTime { |
60 | pub UniversalTime: i64, |
61 | } |
62 | impl ::core::marker::Copy for DateTime {} |
63 | impl ::core::clone::Clone for DateTime { |
64 | fn clone(&self) -> Self { |
65 | *self |
66 | } |
67 | } |
68 | impl ::core::fmt::Debug for DateTime { |
69 | fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
70 | f.debug_struct("DateTime" ).field(name:"UniversalTime" , &self.UniversalTime).finish() |
71 | } |
72 | } |
73 | impl ::windows_core::TypeKind for DateTime { |
74 | type TypeKind = ::windows_core::CopyType; |
75 | } |
76 | impl ::windows_core::RuntimeType for DateTime { |
77 | const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"struct(Windows.Foundation.DateTime;i8)" ); |
78 | } |
79 | impl ::core::cmp::PartialEq for DateTime { |
80 | fn eq(&self, other: &Self) -> bool { |
81 | self.UniversalTime == other.UniversalTime |
82 | } |
83 | } |
84 | impl ::core::cmp::Eq for DateTime {} |
85 | impl ::core::default::Default for DateTime { |
86 | fn default() -> Self { |
87 | unsafe { ::core::mem::zeroed() } |
88 | } |
89 | } |
90 | pub const E_BOUNDS: ::windows_core::HRESULT = ::windows_core::HRESULT(-2147483637i32); |
91 | pub const E_NOINTERFACE: ::windows_core::HRESULT = ::windows_core::HRESULT(-2147467262i32); |
92 | pub const E_OUTOFMEMORY: ::windows_core::HRESULT = ::windows_core::HRESULT(-2147024882i32); |
93 | #[repr (transparent)] |
94 | #[derive (::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] |
95 | pub struct IAgileObject(::windows_core::IUnknown); |
96 | impl IAgileObject {} |
97 | ::windows_core::imp::interface_hierarchy!(IAgileObject, ::windows_core::IUnknown); |
98 | unsafe impl ::windows_core::Interface for IAgileObject { |
99 | type Vtable = IAgileObject_Vtbl; |
100 | } |
101 | unsafe impl ::windows_core::ComInterface for IAgileObject { |
102 | const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(uuid:0x94ea2b94_e9cc_49e0_c0ff_ee64ca8f5b90); |
103 | } |
104 | #[repr (C)] |
105 | #[doc (hidden)] |
106 | pub struct IAgileObject_Vtbl { |
107 | pub base__: ::windows_core::IUnknown_Vtbl, |
108 | } |
109 | #[repr (transparent)] |
110 | #[derive (::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] |
111 | pub struct IAgileReference(::windows_core::IUnknown); |
112 | impl IAgileReference { |
113 | pub unsafe fn Resolve<T>(&self) -> ::windows_core::Result<T> |
114 | where |
115 | T: ::windows_core::ComInterface, |
116 | { |
117 | let mut result__: *mut c_void = ::std::ptr::null_mut(); |
118 | (::windows_core::Interface::vtable(self).Resolve)(::windows_core::Interface::as_raw(self), &<T as ::windows_core::ComInterface>::IID, &mut result__).from_abi(result__) |
119 | } |
120 | } |
121 | ::windows_core::imp::interface_hierarchy!(IAgileReference, ::windows_core::IUnknown); |
122 | unsafe impl ::windows_core::Interface for IAgileReference { |
123 | type Vtable = IAgileReference_Vtbl; |
124 | } |
125 | unsafe impl ::windows_core::ComInterface for IAgileReference { |
126 | const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(uuid:0xc03f6a43_65a4_9818_987e_e0b810d2a6f2); |
127 | } |
128 | #[repr (C)] |
129 | #[doc (hidden)] |
130 | pub struct IAgileReference_Vtbl { |
131 | pub base__: ::windows_core::IUnknown_Vtbl, |
132 | pub Resolve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppvobjectreference: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
133 | } |
134 | #[repr (transparent)] |
135 | #[derive (::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] |
136 | pub struct IErrorInfo(::windows_core::IUnknown); |
137 | impl IErrorInfo { |
138 | pub unsafe fn GetGUID(&self) -> ::windows_core::Result<::windows_core::GUID> { |
139 | let mut result__: GUID = ::std::mem::zeroed(); |
140 | (::windows_core::Interface::vtable(self).GetGUID)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) |
141 | } |
142 | pub unsafe fn GetSource(&self) -> ::windows_core::Result<::windows_core::BSTR> { |
143 | let mut result__: MaybeUninit = ::std::mem::zeroed(); |
144 | (::windows_core::Interface::vtable(self).GetSource)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) |
145 | } |
146 | pub unsafe fn GetDescription(&self) -> ::windows_core::Result<::windows_core::BSTR> { |
147 | let mut result__: MaybeUninit = ::std::mem::zeroed(); |
148 | (::windows_core::Interface::vtable(self).GetDescription)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) |
149 | } |
150 | pub unsafe fn GetHelpFile(&self) -> ::windows_core::Result<::windows_core::BSTR> { |
151 | let mut result__: MaybeUninit = ::std::mem::zeroed(); |
152 | (::windows_core::Interface::vtable(self).GetHelpFile)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) |
153 | } |
154 | pub unsafe fn GetHelpContext(&self) -> ::windows_core::Result<u32> { |
155 | let mut result__: u32 = ::std::mem::zeroed(); |
156 | (::windows_core::Interface::vtable(self).GetHelpContext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) |
157 | } |
158 | } |
159 | ::windows_core::imp::interface_hierarchy!(IErrorInfo, ::windows_core::IUnknown); |
160 | unsafe impl ::windows_core::Interface for IErrorInfo { |
161 | type Vtable = IErrorInfo_Vtbl; |
162 | } |
163 | unsafe impl ::windows_core::ComInterface for IErrorInfo { |
164 | const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(uuid:0x1cf2b120_547d_101b_8e65_08002b2bd119); |
165 | } |
166 | #[repr (C)] |
167 | #[doc (hidden)] |
168 | pub struct IErrorInfo_Vtbl { |
169 | pub base__: ::windows_core::IUnknown_Vtbl, |
170 | pub GetGUID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, |
171 | pub GetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsource: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, |
172 | pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, |
173 | pub GetHelpFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrhelpfile: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, |
174 | pub GetHelpContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwhelpcontext: *mut u32) -> ::windows_core::HRESULT, |
175 | } |
176 | #[repr (transparent)] |
177 | #[derive (::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] |
178 | pub struct ILanguageExceptionErrorInfo(::windows_core::IUnknown); |
179 | impl ILanguageExceptionErrorInfo { |
180 | pub unsafe fn GetLanguageException(&self) -> ::windows_core::Result<::windows_core::IUnknown> { |
181 | let mut result__: *mut c_void = ::std::mem::zeroed(); |
182 | (::windows_core::Interface::vtable(self).GetLanguageException)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) |
183 | } |
184 | } |
185 | ::windows_core::imp::interface_hierarchy!(ILanguageExceptionErrorInfo, ::windows_core::IUnknown); |
186 | unsafe impl ::windows_core::Interface for ILanguageExceptionErrorInfo { |
187 | type Vtable = ILanguageExceptionErrorInfo_Vtbl; |
188 | } |
189 | unsafe impl ::windows_core::ComInterface for ILanguageExceptionErrorInfo { |
190 | const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(uuid:0x04a2dbf3_df83_116c_0946_0812abf6e07d); |
191 | } |
192 | #[repr (C)] |
193 | #[doc (hidden)] |
194 | pub struct ILanguageExceptionErrorInfo_Vtbl { |
195 | pub base__: ::windows_core::IUnknown_Vtbl, |
196 | pub GetLanguageException: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languageexception: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
197 | } |
198 | #[repr (transparent)] |
199 | #[derive (::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] |
200 | pub struct ILanguageExceptionErrorInfo2(::windows_core::IUnknown); |
201 | impl ILanguageExceptionErrorInfo2 { |
202 | pub unsafe fn GetLanguageException(&self) -> ::windows_core::Result<::windows_core::IUnknown> { |
203 | let mut result__: *mut c_void = ::std::mem::zeroed(); |
204 | (::windows_core::Interface::vtable(self).base__.GetLanguageException)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) |
205 | } |
206 | pub unsafe fn GetPreviousLanguageExceptionErrorInfo(&self) -> ::windows_core::Result<ILanguageExceptionErrorInfo2> { |
207 | let mut result__: *mut c_void = ::std::mem::zeroed(); |
208 | (::windows_core::Interface::vtable(self).GetPreviousLanguageExceptionErrorInfo)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) |
209 | } |
210 | pub unsafe fn CapturePropagationContext<P0>(&self, languageexception: P0) -> ::windows_core::Result<()> |
211 | where |
212 | P0: ::windows_core::IntoParam<::windows_core::IUnknown>, |
213 | { |
214 | (::windows_core::Interface::vtable(self).CapturePropagationContext)(::windows_core::Interface::as_raw(self), languageexception.into_param().abi()).ok() |
215 | } |
216 | pub unsafe fn GetPropagationContextHead(&self) -> ::windows_core::Result<ILanguageExceptionErrorInfo2> { |
217 | let mut result__: *mut c_void = ::std::mem::zeroed(); |
218 | (::windows_core::Interface::vtable(self).GetPropagationContextHead)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) |
219 | } |
220 | } |
221 | ::windows_core::imp::interface_hierarchy!(ILanguageExceptionErrorInfo2, ::windows_core::IUnknown, ILanguageExceptionErrorInfo); |
222 | unsafe impl ::windows_core::Interface for ILanguageExceptionErrorInfo2 { |
223 | type Vtable = ILanguageExceptionErrorInfo2_Vtbl; |
224 | } |
225 | unsafe impl ::windows_core::ComInterface for ILanguageExceptionErrorInfo2 { |
226 | const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(uuid:0x5746e5c4_5b97_424c_b620_2822915734dd); |
227 | } |
228 | #[repr (C)] |
229 | #[doc (hidden)] |
230 | pub struct ILanguageExceptionErrorInfo2_Vtbl { |
231 | pub base__: ILanguageExceptionErrorInfo_Vtbl, |
232 | pub GetPreviousLanguageExceptionErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, previouslanguageexceptionerrorinfo: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
233 | pub CapturePropagationContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languageexception: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
234 | pub GetPropagationContextHead: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propagatedlanguageexceptionerrorinfohead: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
235 | } |
236 | #[repr (transparent)] |
237 | #[derive (::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] |
238 | pub struct IPropertyValue(::windows_core::IUnknown); |
239 | impl IPropertyValue { |
240 | pub fn Type(&self) -> ::windows_core::Result<PropertyType> { |
241 | let this = self; |
242 | unsafe { |
243 | let mut result__ = ::std::mem::zeroed(); |
244 | (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
245 | } |
246 | } |
247 | pub fn IsNumericScalar(&self) -> ::windows_core::Result<bool> { |
248 | let this = self; |
249 | unsafe { |
250 | let mut result__ = ::std::mem::zeroed(); |
251 | (::windows_core::Interface::vtable(this).IsNumericScalar)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
252 | } |
253 | } |
254 | pub fn GetUInt8(&self) -> ::windows_core::Result<u8> { |
255 | let this = self; |
256 | unsafe { |
257 | let mut result__ = ::std::mem::zeroed(); |
258 | (::windows_core::Interface::vtable(this).GetUInt8)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
259 | } |
260 | } |
261 | pub fn GetInt16(&self) -> ::windows_core::Result<i16> { |
262 | let this = self; |
263 | unsafe { |
264 | let mut result__ = ::std::mem::zeroed(); |
265 | (::windows_core::Interface::vtable(this).GetInt16)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
266 | } |
267 | } |
268 | pub fn GetUInt16(&self) -> ::windows_core::Result<u16> { |
269 | let this = self; |
270 | unsafe { |
271 | let mut result__ = ::std::mem::zeroed(); |
272 | (::windows_core::Interface::vtable(this).GetUInt16)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
273 | } |
274 | } |
275 | pub fn GetInt32(&self) -> ::windows_core::Result<i32> { |
276 | let this = self; |
277 | unsafe { |
278 | let mut result__ = ::std::mem::zeroed(); |
279 | (::windows_core::Interface::vtable(this).GetInt32)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
280 | } |
281 | } |
282 | pub fn GetUInt32(&self) -> ::windows_core::Result<u32> { |
283 | let this = self; |
284 | unsafe { |
285 | let mut result__ = ::std::mem::zeroed(); |
286 | (::windows_core::Interface::vtable(this).GetUInt32)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
287 | } |
288 | } |
289 | pub fn GetInt64(&self) -> ::windows_core::Result<i64> { |
290 | let this = self; |
291 | unsafe { |
292 | let mut result__ = ::std::mem::zeroed(); |
293 | (::windows_core::Interface::vtable(this).GetInt64)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
294 | } |
295 | } |
296 | pub fn GetUInt64(&self) -> ::windows_core::Result<u64> { |
297 | let this = self; |
298 | unsafe { |
299 | let mut result__ = ::std::mem::zeroed(); |
300 | (::windows_core::Interface::vtable(this).GetUInt64)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
301 | } |
302 | } |
303 | pub fn GetSingle(&self) -> ::windows_core::Result<f32> { |
304 | let this = self; |
305 | unsafe { |
306 | let mut result__ = ::std::mem::zeroed(); |
307 | (::windows_core::Interface::vtable(this).GetSingle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
308 | } |
309 | } |
310 | pub fn GetDouble(&self) -> ::windows_core::Result<f64> { |
311 | let this = self; |
312 | unsafe { |
313 | let mut result__ = ::std::mem::zeroed(); |
314 | (::windows_core::Interface::vtable(this).GetDouble)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
315 | } |
316 | } |
317 | pub fn GetChar16(&self) -> ::windows_core::Result<u16> { |
318 | let this = self; |
319 | unsafe { |
320 | let mut result__ = ::std::mem::zeroed(); |
321 | (::windows_core::Interface::vtable(this).GetChar16)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
322 | } |
323 | } |
324 | pub fn GetBoolean(&self) -> ::windows_core::Result<bool> { |
325 | let this = self; |
326 | unsafe { |
327 | let mut result__ = ::std::mem::zeroed(); |
328 | (::windows_core::Interface::vtable(this).GetBoolean)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
329 | } |
330 | } |
331 | pub fn GetString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { |
332 | let this = self; |
333 | unsafe { |
334 | let mut result__ = ::std::mem::zeroed(); |
335 | (::windows_core::Interface::vtable(this).GetString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
336 | } |
337 | } |
338 | pub fn GetGuid(&self) -> ::windows_core::Result<::windows_core::GUID> { |
339 | let this = self; |
340 | unsafe { |
341 | let mut result__ = ::std::mem::zeroed(); |
342 | (::windows_core::Interface::vtable(this).GetGuid)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
343 | } |
344 | } |
345 | pub fn GetDateTime(&self) -> ::windows_core::Result<DateTime> { |
346 | let this = self; |
347 | unsafe { |
348 | let mut result__ = ::std::mem::zeroed(); |
349 | (::windows_core::Interface::vtable(this).GetDateTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
350 | } |
351 | } |
352 | pub fn GetTimeSpan(&self) -> ::windows_core::Result<TimeSpan> { |
353 | let this = self; |
354 | unsafe { |
355 | let mut result__ = ::std::mem::zeroed(); |
356 | (::windows_core::Interface::vtable(this).GetTimeSpan)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
357 | } |
358 | } |
359 | pub fn GetPoint(&self) -> ::windows_core::Result<Point> { |
360 | let this = self; |
361 | unsafe { |
362 | let mut result__ = ::std::mem::zeroed(); |
363 | (::windows_core::Interface::vtable(this).GetPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
364 | } |
365 | } |
366 | pub fn GetSize(&self) -> ::windows_core::Result<Size> { |
367 | let this = self; |
368 | unsafe { |
369 | let mut result__ = ::std::mem::zeroed(); |
370 | (::windows_core::Interface::vtable(this).GetSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
371 | } |
372 | } |
373 | pub fn GetRect(&self) -> ::windows_core::Result<Rect> { |
374 | let this = self; |
375 | unsafe { |
376 | let mut result__ = ::std::mem::zeroed(); |
377 | (::windows_core::Interface::vtable(this).GetRect)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
378 | } |
379 | } |
380 | pub fn GetUInt8Array(&self, value: &mut ::windows_core::Array<u8>) -> ::windows_core::Result<()> { |
381 | let this = self; |
382 | unsafe { (::windows_core::Interface::vtable(this).GetUInt8Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
383 | } |
384 | pub fn GetInt16Array(&self, value: &mut ::windows_core::Array<i16>) -> ::windows_core::Result<()> { |
385 | let this = self; |
386 | unsafe { (::windows_core::Interface::vtable(this).GetInt16Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
387 | } |
388 | pub fn GetUInt16Array(&self, value: &mut ::windows_core::Array<u16>) -> ::windows_core::Result<()> { |
389 | let this = self; |
390 | unsafe { (::windows_core::Interface::vtable(this).GetUInt16Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
391 | } |
392 | pub fn GetInt32Array(&self, value: &mut ::windows_core::Array<i32>) -> ::windows_core::Result<()> { |
393 | let this = self; |
394 | unsafe { (::windows_core::Interface::vtable(this).GetInt32Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
395 | } |
396 | pub fn GetUInt32Array(&self, value: &mut ::windows_core::Array<u32>) -> ::windows_core::Result<()> { |
397 | let this = self; |
398 | unsafe { (::windows_core::Interface::vtable(this).GetUInt32Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
399 | } |
400 | pub fn GetInt64Array(&self, value: &mut ::windows_core::Array<i64>) -> ::windows_core::Result<()> { |
401 | let this = self; |
402 | unsafe { (::windows_core::Interface::vtable(this).GetInt64Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
403 | } |
404 | pub fn GetUInt64Array(&self, value: &mut ::windows_core::Array<u64>) -> ::windows_core::Result<()> { |
405 | let this = self; |
406 | unsafe { (::windows_core::Interface::vtable(this).GetUInt64Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
407 | } |
408 | pub fn GetSingleArray(&self, value: &mut ::windows_core::Array<f32>) -> ::windows_core::Result<()> { |
409 | let this = self; |
410 | unsafe { (::windows_core::Interface::vtable(this).GetSingleArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
411 | } |
412 | pub fn GetDoubleArray(&self, value: &mut ::windows_core::Array<f64>) -> ::windows_core::Result<()> { |
413 | let this = self; |
414 | unsafe { (::windows_core::Interface::vtable(this).GetDoubleArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
415 | } |
416 | pub fn GetChar16Array(&self, value: &mut ::windows_core::Array<u16>) -> ::windows_core::Result<()> { |
417 | let this = self; |
418 | unsafe { (::windows_core::Interface::vtable(this).GetChar16Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
419 | } |
420 | pub fn GetBooleanArray(&self, value: &mut ::windows_core::Array<bool>) -> ::windows_core::Result<()> { |
421 | let this = self; |
422 | unsafe { (::windows_core::Interface::vtable(this).GetBooleanArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
423 | } |
424 | pub fn GetStringArray(&self, value: &mut ::windows_core::Array<::windows_core::HSTRING>) -> ::windows_core::Result<()> { |
425 | let this = self; |
426 | unsafe { (::windows_core::Interface::vtable(this).GetStringArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
427 | } |
428 | pub fn GetInspectableArray(&self, value: &mut ::windows_core::Array<::windows_core::IInspectable>) -> ::windows_core::Result<()> { |
429 | let this = self; |
430 | unsafe { (::windows_core::Interface::vtable(this).GetInspectableArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
431 | } |
432 | pub fn GetGuidArray(&self, value: &mut ::windows_core::Array<::windows_core::GUID>) -> ::windows_core::Result<()> { |
433 | let this = self; |
434 | unsafe { (::windows_core::Interface::vtable(this).GetGuidArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
435 | } |
436 | pub fn GetDateTimeArray(&self, value: &mut ::windows_core::Array<DateTime>) -> ::windows_core::Result<()> { |
437 | let this = self; |
438 | unsafe { (::windows_core::Interface::vtable(this).GetDateTimeArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
439 | } |
440 | pub fn GetTimeSpanArray(&self, value: &mut ::windows_core::Array<TimeSpan>) -> ::windows_core::Result<()> { |
441 | let this = self; |
442 | unsafe { (::windows_core::Interface::vtable(this).GetTimeSpanArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
443 | } |
444 | pub fn GetPointArray(&self, value: &mut ::windows_core::Array<Point>) -> ::windows_core::Result<()> { |
445 | let this = self; |
446 | unsafe { (::windows_core::Interface::vtable(this).GetPointArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
447 | } |
448 | pub fn GetSizeArray(&self, value: &mut ::windows_core::Array<Size>) -> ::windows_core::Result<()> { |
449 | let this = self; |
450 | unsafe { (::windows_core::Interface::vtable(this).GetSizeArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
451 | } |
452 | pub fn GetRectArray(&self, value: &mut ::windows_core::Array<Rect>) -> ::windows_core::Result<()> { |
453 | let this = self; |
454 | unsafe { (::windows_core::Interface::vtable(this).GetRectArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
455 | } |
456 | } |
457 | ::windows_core::imp::interface_hierarchy!(IPropertyValue, ::windows_core::IUnknown, ::windows_core::IInspectable); |
458 | impl ::windows_core::RuntimeType for IPropertyValue { |
459 | const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"{4bd682dd-7554-40e9-9a9b-82654ede7e62}" ); |
460 | } |
461 | unsafe impl ::windows_core::Interface for IPropertyValue { |
462 | type Vtable = IPropertyValue_Vtbl; |
463 | } |
464 | unsafe impl ::windows_core::ComInterface for IPropertyValue { |
465 | const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(uuid:0x4bd682dd_7554_40e9_9a9b_82654ede7e62); |
466 | } |
467 | #[repr (C)] |
468 | #[doc (hidden)] |
469 | pub struct IPropertyValue_Vtbl { |
470 | pub base__: ::windows_core::IInspectable_Vtbl, |
471 | pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PropertyType) -> ::windows_core::HRESULT, |
472 | pub IsNumericScalar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, |
473 | pub GetUInt8: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, |
474 | pub GetInt16: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i16) -> ::windows_core::HRESULT, |
475 | pub GetUInt16: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, |
476 | pub GetInt32: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, |
477 | pub GetUInt32: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, |
478 | pub GetInt64: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i64) -> ::windows_core::HRESULT, |
479 | pub GetUInt64: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, |
480 | pub GetSingle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, |
481 | pub GetDouble: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, |
482 | pub GetChar16: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, |
483 | pub GetBoolean: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, |
484 | pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, |
485 | pub GetGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, |
486 | pub GetDateTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut DateTime) -> ::windows_core::HRESULT, |
487 | pub GetTimeSpan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut TimeSpan) -> ::windows_core::HRESULT, |
488 | pub GetPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut Point) -> ::windows_core::HRESULT, |
489 | pub GetSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut Size) -> ::windows_core::HRESULT, |
490 | pub GetRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut Rect) -> ::windows_core::HRESULT, |
491 | pub GetUInt8Array: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut u8) -> ::windows_core::HRESULT, |
492 | pub GetInt16Array: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut i16) -> ::windows_core::HRESULT, |
493 | pub GetUInt16Array: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut u16) -> ::windows_core::HRESULT, |
494 | pub GetInt32Array: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut i32) -> ::windows_core::HRESULT, |
495 | pub GetUInt32Array: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut u32) -> ::windows_core::HRESULT, |
496 | pub GetInt64Array: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut i64) -> ::windows_core::HRESULT, |
497 | pub GetUInt64Array: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut u64) -> ::windows_core::HRESULT, |
498 | pub GetSingleArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut f32) -> ::windows_core::HRESULT, |
499 | pub GetDoubleArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut f64) -> ::windows_core::HRESULT, |
500 | pub GetChar16Array: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut u16) -> ::windows_core::HRESULT, |
501 | pub GetBooleanArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut bool) -> ::windows_core::HRESULT, |
502 | pub GetStringArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, |
503 | pub GetInspectableArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
504 | pub GetGuidArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut ::windows_core::GUID) -> ::windows_core::HRESULT, |
505 | pub GetDateTimeArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut DateTime) -> ::windows_core::HRESULT, |
506 | pub GetTimeSpanArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut TimeSpan) -> ::windows_core::HRESULT, |
507 | pub GetPointArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut Point) -> ::windows_core::HRESULT, |
508 | pub GetSizeArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut Size) -> ::windows_core::HRESULT, |
509 | pub GetRectArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut Rect) -> ::windows_core::HRESULT, |
510 | } |
511 | #[doc (hidden)] |
512 | #[repr (transparent)] |
513 | #[derive (::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] |
514 | pub struct IPropertyValueStatics(::windows_core::IUnknown); |
515 | unsafe impl ::windows_core::Interface for IPropertyValueStatics { |
516 | type Vtable = IPropertyValueStatics_Vtbl; |
517 | } |
518 | unsafe impl ::windows_core::ComInterface for IPropertyValueStatics { |
519 | const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(uuid:0x629bdbc8_d932_4ff4_96b9_8d96c5c1e858); |
520 | } |
521 | #[repr (C)] |
522 | #[doc (hidden)] |
523 | pub struct IPropertyValueStatics_Vtbl { |
524 | pub base__: ::windows_core::IInspectable_Vtbl, |
525 | pub CreateEmpty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
526 | pub CreateUInt8: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u8, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
527 | pub CreateInt16: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
528 | pub CreateUInt16: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u16, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
529 | pub CreateInt32: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
530 | pub CreateUInt32: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
531 | pub CreateInt64: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i64, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
532 | pub CreateUInt64: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u64, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
533 | pub CreateSingle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
534 | pub CreateDouble: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
535 | pub CreateChar16: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u16, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
536 | pub CreateBoolean: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
537 | pub CreateString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
538 | pub CreateInspectable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
539 | pub CreateGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::windows_core::GUID, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
540 | pub CreateDateTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: DateTime, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
541 | pub CreateTimeSpan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: TimeSpan, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
542 | pub CreatePoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: Point, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
543 | pub CreateSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: Size, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
544 | pub CreateRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: Rect, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
545 | pub CreateUInt8Array: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: u32, value: *const u8, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
546 | pub CreateInt16Array: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: u32, value: *const i16, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
547 | pub CreateUInt16Array: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: u32, value: *const u16, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
548 | pub CreateInt32Array: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: u32, value: *const i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
549 | pub CreateUInt32Array: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: u32, value: *const u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
550 | pub CreateInt64Array: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: u32, value: *const i64, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
551 | pub CreateUInt64Array: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: u32, value: *const u64, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
552 | pub CreateSingleArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: u32, value: *const f32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
553 | pub CreateDoubleArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: u32, value: *const f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
554 | pub CreateChar16Array: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: u32, value: *const u16, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
555 | pub CreateBooleanArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: u32, value: *const bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
556 | pub CreateStringArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: u32, value: *const ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
557 | pub CreateInspectableArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: u32, value: *const *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
558 | pub CreateGuidArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: u32, value: *const ::windows_core::GUID, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
559 | pub CreateDateTimeArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: u32, value: *const DateTime, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
560 | pub CreateTimeSpanArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: u32, value: *const TimeSpan, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
561 | pub CreatePointArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: u32, value: *const Point, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
562 | pub CreateSizeArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: u32, value: *const Size, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
563 | pub CreateRectArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: u32, value: *const Rect, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
564 | } |
565 | #[repr (transparent)] |
566 | #[derive (::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] |
567 | pub struct IReference<T>(::windows_core::IUnknown, ::core::marker::PhantomData<T>) |
568 | where |
569 | T: ::windows_core::RuntimeType + 'static; |
570 | impl<T: ::windows_core::RuntimeType + 'static> IReference<T> { |
571 | pub fn Value(&self) -> ::windows_core::Result<T> { |
572 | let this = self; |
573 | unsafe { |
574 | let mut result__ = ::std::mem::zeroed(); |
575 | (::windows_core::Interface::vtable(this).Value)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
576 | } |
577 | } |
578 | pub fn Type(&self) -> ::windows_core::Result<PropertyType> { |
579 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
580 | unsafe { |
581 | let mut result__ = ::std::mem::zeroed(); |
582 | (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
583 | } |
584 | } |
585 | pub fn IsNumericScalar(&self) -> ::windows_core::Result<bool> { |
586 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
587 | unsafe { |
588 | let mut result__ = ::std::mem::zeroed(); |
589 | (::windows_core::Interface::vtable(this).IsNumericScalar)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
590 | } |
591 | } |
592 | pub fn GetUInt8(&self) -> ::windows_core::Result<u8> { |
593 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
594 | unsafe { |
595 | let mut result__ = ::std::mem::zeroed(); |
596 | (::windows_core::Interface::vtable(this).GetUInt8)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
597 | } |
598 | } |
599 | pub fn GetInt16(&self) -> ::windows_core::Result<i16> { |
600 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
601 | unsafe { |
602 | let mut result__ = ::std::mem::zeroed(); |
603 | (::windows_core::Interface::vtable(this).GetInt16)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
604 | } |
605 | } |
606 | pub fn GetUInt16(&self) -> ::windows_core::Result<u16> { |
607 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
608 | unsafe { |
609 | let mut result__ = ::std::mem::zeroed(); |
610 | (::windows_core::Interface::vtable(this).GetUInt16)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
611 | } |
612 | } |
613 | pub fn GetInt32(&self) -> ::windows_core::Result<i32> { |
614 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
615 | unsafe { |
616 | let mut result__ = ::std::mem::zeroed(); |
617 | (::windows_core::Interface::vtable(this).GetInt32)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
618 | } |
619 | } |
620 | pub fn GetUInt32(&self) -> ::windows_core::Result<u32> { |
621 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
622 | unsafe { |
623 | let mut result__ = ::std::mem::zeroed(); |
624 | (::windows_core::Interface::vtable(this).GetUInt32)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
625 | } |
626 | } |
627 | pub fn GetInt64(&self) -> ::windows_core::Result<i64> { |
628 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
629 | unsafe { |
630 | let mut result__ = ::std::mem::zeroed(); |
631 | (::windows_core::Interface::vtable(this).GetInt64)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
632 | } |
633 | } |
634 | pub fn GetUInt64(&self) -> ::windows_core::Result<u64> { |
635 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
636 | unsafe { |
637 | let mut result__ = ::std::mem::zeroed(); |
638 | (::windows_core::Interface::vtable(this).GetUInt64)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
639 | } |
640 | } |
641 | pub fn GetSingle(&self) -> ::windows_core::Result<f32> { |
642 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
643 | unsafe { |
644 | let mut result__ = ::std::mem::zeroed(); |
645 | (::windows_core::Interface::vtable(this).GetSingle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
646 | } |
647 | } |
648 | pub fn GetDouble(&self) -> ::windows_core::Result<f64> { |
649 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
650 | unsafe { |
651 | let mut result__ = ::std::mem::zeroed(); |
652 | (::windows_core::Interface::vtable(this).GetDouble)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
653 | } |
654 | } |
655 | pub fn GetChar16(&self) -> ::windows_core::Result<u16> { |
656 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
657 | unsafe { |
658 | let mut result__ = ::std::mem::zeroed(); |
659 | (::windows_core::Interface::vtable(this).GetChar16)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
660 | } |
661 | } |
662 | pub fn GetBoolean(&self) -> ::windows_core::Result<bool> { |
663 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
664 | unsafe { |
665 | let mut result__ = ::std::mem::zeroed(); |
666 | (::windows_core::Interface::vtable(this).GetBoolean)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
667 | } |
668 | } |
669 | pub fn GetString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { |
670 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
671 | unsafe { |
672 | let mut result__ = ::std::mem::zeroed(); |
673 | (::windows_core::Interface::vtable(this).GetString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
674 | } |
675 | } |
676 | pub fn GetGuid(&self) -> ::windows_core::Result<::windows_core::GUID> { |
677 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
678 | unsafe { |
679 | let mut result__ = ::std::mem::zeroed(); |
680 | (::windows_core::Interface::vtable(this).GetGuid)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
681 | } |
682 | } |
683 | pub fn GetDateTime(&self) -> ::windows_core::Result<DateTime> { |
684 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
685 | unsafe { |
686 | let mut result__ = ::std::mem::zeroed(); |
687 | (::windows_core::Interface::vtable(this).GetDateTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
688 | } |
689 | } |
690 | pub fn GetTimeSpan(&self) -> ::windows_core::Result<TimeSpan> { |
691 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
692 | unsafe { |
693 | let mut result__ = ::std::mem::zeroed(); |
694 | (::windows_core::Interface::vtable(this).GetTimeSpan)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
695 | } |
696 | } |
697 | pub fn GetPoint(&self) -> ::windows_core::Result<Point> { |
698 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
699 | unsafe { |
700 | let mut result__ = ::std::mem::zeroed(); |
701 | (::windows_core::Interface::vtable(this).GetPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
702 | } |
703 | } |
704 | pub fn GetSize(&self) -> ::windows_core::Result<Size> { |
705 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
706 | unsafe { |
707 | let mut result__ = ::std::mem::zeroed(); |
708 | (::windows_core::Interface::vtable(this).GetSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
709 | } |
710 | } |
711 | pub fn GetRect(&self) -> ::windows_core::Result<Rect> { |
712 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
713 | unsafe { |
714 | let mut result__ = ::std::mem::zeroed(); |
715 | (::windows_core::Interface::vtable(this).GetRect)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
716 | } |
717 | } |
718 | pub fn GetUInt8Array(&self, value: &mut ::windows_core::Array<u8>) -> ::windows_core::Result<()> { |
719 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
720 | unsafe { (::windows_core::Interface::vtable(this).GetUInt8Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
721 | } |
722 | pub fn GetInt16Array(&self, value: &mut ::windows_core::Array<i16>) -> ::windows_core::Result<()> { |
723 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
724 | unsafe { (::windows_core::Interface::vtable(this).GetInt16Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
725 | } |
726 | pub fn GetUInt16Array(&self, value: &mut ::windows_core::Array<u16>) -> ::windows_core::Result<()> { |
727 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
728 | unsafe { (::windows_core::Interface::vtable(this).GetUInt16Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
729 | } |
730 | pub fn GetInt32Array(&self, value: &mut ::windows_core::Array<i32>) -> ::windows_core::Result<()> { |
731 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
732 | unsafe { (::windows_core::Interface::vtable(this).GetInt32Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
733 | } |
734 | pub fn GetUInt32Array(&self, value: &mut ::windows_core::Array<u32>) -> ::windows_core::Result<()> { |
735 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
736 | unsafe { (::windows_core::Interface::vtable(this).GetUInt32Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
737 | } |
738 | pub fn GetInt64Array(&self, value: &mut ::windows_core::Array<i64>) -> ::windows_core::Result<()> { |
739 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
740 | unsafe { (::windows_core::Interface::vtable(this).GetInt64Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
741 | } |
742 | pub fn GetUInt64Array(&self, value: &mut ::windows_core::Array<u64>) -> ::windows_core::Result<()> { |
743 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
744 | unsafe { (::windows_core::Interface::vtable(this).GetUInt64Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
745 | } |
746 | pub fn GetSingleArray(&self, value: &mut ::windows_core::Array<f32>) -> ::windows_core::Result<()> { |
747 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
748 | unsafe { (::windows_core::Interface::vtable(this).GetSingleArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
749 | } |
750 | pub fn GetDoubleArray(&self, value: &mut ::windows_core::Array<f64>) -> ::windows_core::Result<()> { |
751 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
752 | unsafe { (::windows_core::Interface::vtable(this).GetDoubleArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
753 | } |
754 | pub fn GetChar16Array(&self, value: &mut ::windows_core::Array<u16>) -> ::windows_core::Result<()> { |
755 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
756 | unsafe { (::windows_core::Interface::vtable(this).GetChar16Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
757 | } |
758 | pub fn GetBooleanArray(&self, value: &mut ::windows_core::Array<bool>) -> ::windows_core::Result<()> { |
759 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
760 | unsafe { (::windows_core::Interface::vtable(this).GetBooleanArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
761 | } |
762 | pub fn GetStringArray(&self, value: &mut ::windows_core::Array<::windows_core::HSTRING>) -> ::windows_core::Result<()> { |
763 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
764 | unsafe { (::windows_core::Interface::vtable(this).GetStringArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
765 | } |
766 | pub fn GetInspectableArray(&self, value: &mut ::windows_core::Array<::windows_core::IInspectable>) -> ::windows_core::Result<()> { |
767 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
768 | unsafe { (::windows_core::Interface::vtable(this).GetInspectableArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
769 | } |
770 | pub fn GetGuidArray(&self, value: &mut ::windows_core::Array<::windows_core::GUID>) -> ::windows_core::Result<()> { |
771 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
772 | unsafe { (::windows_core::Interface::vtable(this).GetGuidArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
773 | } |
774 | pub fn GetDateTimeArray(&self, value: &mut ::windows_core::Array<DateTime>) -> ::windows_core::Result<()> { |
775 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
776 | unsafe { (::windows_core::Interface::vtable(this).GetDateTimeArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
777 | } |
778 | pub fn GetTimeSpanArray(&self, value: &mut ::windows_core::Array<TimeSpan>) -> ::windows_core::Result<()> { |
779 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
780 | unsafe { (::windows_core::Interface::vtable(this).GetTimeSpanArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
781 | } |
782 | pub fn GetPointArray(&self, value: &mut ::windows_core::Array<Point>) -> ::windows_core::Result<()> { |
783 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
784 | unsafe { (::windows_core::Interface::vtable(this).GetPointArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
785 | } |
786 | pub fn GetSizeArray(&self, value: &mut ::windows_core::Array<Size>) -> ::windows_core::Result<()> { |
787 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
788 | unsafe { (::windows_core::Interface::vtable(this).GetSizeArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
789 | } |
790 | pub fn GetRectArray(&self, value: &mut ::windows_core::Array<Rect>) -> ::windows_core::Result<()> { |
791 | let this = &::windows_core::ComInterface::cast::<IPropertyValue>(self)?; |
792 | unsafe { (::windows_core::Interface::vtable(this).GetRectArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } |
793 | } |
794 | } |
795 | impl<T: ::windows_core::RuntimeType + 'static> ::windows_core::CanInto<::windows_core::IUnknown> for IReference<T> {} |
796 | impl<T: ::windows_core::RuntimeType + 'static> ::windows_core::CanInto<::windows_core::IInspectable> for IReference<T> {} |
797 | impl<T: ::windows_core::RuntimeType + 'static> ::windows_core::CanTryInto<IPropertyValue> for IReference<T> {} |
798 | impl<T: ::windows_core::RuntimeType + 'static> ::windows_core::RuntimeType for IReference<T> { |
799 | const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new().push_slice(b"pinterface(" ).push_slice(b"{61c17706-2d65-11e0-9ae8-d48564015472}" ).push_slice(b";" ).push_other(<T as ::windows_core::RuntimeType>::SIGNATURE).push_slice(b")" ) }; |
800 | } |
801 | unsafe impl<T: ::windows_core::RuntimeType + 'static> ::windows_core::Interface for IReference<T> { |
802 | type Vtable = IReference_Vtbl<T>; |
803 | } |
804 | unsafe impl<T: ::windows_core::RuntimeType + 'static> ::windows_core::ComInterface for IReference<T> { |
805 | const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(<Self as ::windows_core::RuntimeType>::SIGNATURE); |
806 | } |
807 | #[repr (C)] |
808 | #[doc (hidden)] |
809 | pub struct IReference_Vtbl<T> |
810 | where |
811 | T: ::windows_core::RuntimeType + 'static, |
812 | { |
813 | pub base__: ::windows_core::IInspectable_Vtbl, |
814 | pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::AbiType<T>) -> ::windows_core::HRESULT, |
815 | pub T: ::core::marker::PhantomData<T>, |
816 | } |
817 | #[repr (transparent)] |
818 | #[derive (::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] |
819 | pub struct IRestrictedErrorInfo(::windows_core::IUnknown); |
820 | impl IRestrictedErrorInfo { |
821 | pub unsafe fn GetErrorDetails(&self, description: *mut ::windows_core::BSTR, error: *mut ::windows_core::HRESULT, restricteddescription: *mut ::windows_core::BSTR, capabilitysid: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { |
822 | (::windows_core::Interface::vtable(self).GetErrorDetails)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(src:description), error, ::core::mem::transmute(src:restricteddescription), ::core::mem::transmute(src:capabilitysid)).ok() |
823 | } |
824 | pub unsafe fn GetReference(&self) -> ::windows_core::Result<::windows_core::BSTR> { |
825 | let mut result__: MaybeUninit = ::std::mem::zeroed(); |
826 | (::windows_core::Interface::vtable(self).GetReference)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) |
827 | } |
828 | } |
829 | ::windows_core::imp::interface_hierarchy!(IRestrictedErrorInfo, ::windows_core::IUnknown); |
830 | unsafe impl ::core::marker::Send for IRestrictedErrorInfo {} |
831 | unsafe impl ::core::marker::Sync for IRestrictedErrorInfo {} |
832 | unsafe impl ::windows_core::Interface for IRestrictedErrorInfo { |
833 | type Vtable = IRestrictedErrorInfo_Vtbl; |
834 | } |
835 | unsafe impl ::windows_core::ComInterface for IRestrictedErrorInfo { |
836 | const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(uuid:0x82ba7092_4c88_427d_a7bc_16dd93feb67e); |
837 | } |
838 | #[repr (C)] |
839 | #[doc (hidden)] |
840 | pub struct IRestrictedErrorInfo_Vtbl { |
841 | pub base__: ::windows_core::IUnknown_Vtbl, |
842 | pub GetErrorDetails: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, error: *mut ::windows_core::HRESULT, restricteddescription: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, capabilitysid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, |
843 | pub GetReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reference: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, |
844 | } |
845 | #[repr (transparent)] |
846 | #[derive (::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] |
847 | pub struct IStringable(::windows_core::IUnknown); |
848 | impl IStringable { |
849 | pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { |
850 | let this: &IStringable = self; |
851 | unsafe { |
852 | let mut result__: MaybeUninit = ::std::mem::zeroed(); |
853 | (::windows_core::Interface::vtable(self:this).ToString)(::windows_core::Interface::as_raw(self:this), &mut result__).from_abi(result__) |
854 | } |
855 | } |
856 | } |
857 | ::windows_core::imp::interface_hierarchy!(IStringable, ::windows_core::IUnknown, ::windows_core::IInspectable); |
858 | impl ::windows_core::RuntimeType for IStringable { |
859 | const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"{96369f54-8eb6-48f0-abce-c1b211e627c3}" ); |
860 | } |
861 | unsafe impl ::windows_core::Interface for IStringable { |
862 | type Vtable = IStringable_Vtbl; |
863 | } |
864 | unsafe impl ::windows_core::ComInterface for IStringable { |
865 | const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(uuid:0x96369f54_8eb6_48f0_abce_c1b211e627c3); |
866 | } |
867 | #[repr (C)] |
868 | #[doc (hidden)] |
869 | pub struct IStringable_Vtbl { |
870 | pub base__: ::windows_core::IInspectable_Vtbl, |
871 | pub ToString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, |
872 | } |
873 | #[repr (transparent)] |
874 | #[derive (::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] |
875 | pub struct IWeakReference(::windows_core::IUnknown); |
876 | impl IWeakReference { |
877 | pub unsafe fn Resolve<T>(&self) -> ::windows_core::Result<T> |
878 | where |
879 | T: ::windows_core::ComInterface, |
880 | { |
881 | let mut result__: *mut c_void = ::std::ptr::null_mut(); |
882 | (::windows_core::Interface::vtable(self).Resolve)(::windows_core::Interface::as_raw(self), &<T as ::windows_core::ComInterface>::IID, &mut result__).from_abi(result__) |
883 | } |
884 | } |
885 | ::windows_core::imp::interface_hierarchy!(IWeakReference, ::windows_core::IUnknown); |
886 | unsafe impl ::windows_core::Interface for IWeakReference { |
887 | type Vtable = IWeakReference_Vtbl; |
888 | } |
889 | unsafe impl ::windows_core::ComInterface for IWeakReference { |
890 | const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(uuid:0x00000037_0000_0000_c000_000000000046); |
891 | } |
892 | #[repr (C)] |
893 | #[doc (hidden)] |
894 | pub struct IWeakReference_Vtbl { |
895 | pub base__: ::windows_core::IUnknown_Vtbl, |
896 | pub Resolve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, objectreference: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
897 | } |
898 | #[repr (transparent)] |
899 | #[derive (::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] |
900 | pub struct IWeakReferenceSource(::windows_core::IUnknown); |
901 | impl IWeakReferenceSource { |
902 | pub unsafe fn GetWeakReference(&self) -> ::windows_core::Result<IWeakReference> { |
903 | let mut result__: *mut c_void = ::std::mem::zeroed(); |
904 | (::windows_core::Interface::vtable(self).GetWeakReference)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) |
905 | } |
906 | } |
907 | ::windows_core::imp::interface_hierarchy!(IWeakReferenceSource, ::windows_core::IUnknown); |
908 | unsafe impl ::windows_core::Interface for IWeakReferenceSource { |
909 | type Vtable = IWeakReferenceSource_Vtbl; |
910 | } |
911 | unsafe impl ::windows_core::ComInterface for IWeakReferenceSource { |
912 | const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(uuid:0x00000038_0000_0000_c000_000000000046); |
913 | } |
914 | #[repr (C)] |
915 | #[doc (hidden)] |
916 | pub struct IWeakReferenceSource_Vtbl { |
917 | pub base__: ::windows_core::IUnknown_Vtbl, |
918 | pub GetWeakReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, weakreference: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
919 | } |
920 | pub const JSCRIPT_E_CANTEXECUTE: ::windows_core::HRESULT = ::windows_core::HRESULT(-1996357631i32); |
921 | #[repr (C)] |
922 | pub struct Point { |
923 | pub X: f32, |
924 | pub Y: f32, |
925 | } |
926 | impl ::core::marker::Copy for Point {} |
927 | impl ::core::clone::Clone for Point { |
928 | fn clone(&self) -> Self { |
929 | *self |
930 | } |
931 | } |
932 | impl ::core::fmt::Debug for Point { |
933 | fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
934 | f.debug_struct("Point" ).field("X" , &self.X).field(name:"Y" , &self.Y).finish() |
935 | } |
936 | } |
937 | impl ::windows_core::TypeKind for Point { |
938 | type TypeKind = ::windows_core::CopyType; |
939 | } |
940 | impl ::windows_core::RuntimeType for Point { |
941 | const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"struct(Windows.Foundation.Point;f4;f4)" ); |
942 | } |
943 | impl ::core::cmp::PartialEq for Point { |
944 | fn eq(&self, other: &Self) -> bool { |
945 | self.X == other.X && self.Y == other.Y |
946 | } |
947 | } |
948 | impl ::core::cmp::Eq for Point {} |
949 | impl ::core::default::Default for Point { |
950 | fn default() -> Self { |
951 | unsafe { ::core::mem::zeroed() } |
952 | } |
953 | } |
954 | #[repr (transparent)] |
955 | #[derive (::core::cmp::PartialEq, ::core::cmp::Eq)] |
956 | pub struct PropertyType(pub i32); |
957 | impl PropertyType { |
958 | pub const Empty: Self = Self(0i32); |
959 | pub const UInt8: Self = Self(1i32); |
960 | pub const Int16: Self = Self(2i32); |
961 | pub const UInt16: Self = Self(3i32); |
962 | pub const Int32: Self = Self(4i32); |
963 | pub const UInt32: Self = Self(5i32); |
964 | pub const Int64: Self = Self(6i32); |
965 | pub const UInt64: Self = Self(7i32); |
966 | pub const Single: Self = Self(8i32); |
967 | pub const Double: Self = Self(9i32); |
968 | pub const Char16: Self = Self(10i32); |
969 | pub const Boolean: Self = Self(11i32); |
970 | pub const String: Self = Self(12i32); |
971 | pub const Inspectable: Self = Self(13i32); |
972 | pub const DateTime: Self = Self(14i32); |
973 | pub const TimeSpan: Self = Self(15i32); |
974 | pub const Guid: Self = Self(16i32); |
975 | pub const Point: Self = Self(17i32); |
976 | pub const Size: Self = Self(18i32); |
977 | pub const Rect: Self = Self(19i32); |
978 | pub const OtherType: Self = Self(20i32); |
979 | pub const UInt8Array: Self = Self(1025i32); |
980 | pub const Int16Array: Self = Self(1026i32); |
981 | pub const UInt16Array: Self = Self(1027i32); |
982 | pub const Int32Array: Self = Self(1028i32); |
983 | pub const UInt32Array: Self = Self(1029i32); |
984 | pub const Int64Array: Self = Self(1030i32); |
985 | pub const UInt64Array: Self = Self(1031i32); |
986 | pub const SingleArray: Self = Self(1032i32); |
987 | pub const DoubleArray: Self = Self(1033i32); |
988 | pub const Char16Array: Self = Self(1034i32); |
989 | pub const BooleanArray: Self = Self(1035i32); |
990 | pub const StringArray: Self = Self(1036i32); |
991 | pub const InspectableArray: Self = Self(1037i32); |
992 | pub const DateTimeArray: Self = Self(1038i32); |
993 | pub const TimeSpanArray: Self = Self(1039i32); |
994 | pub const GuidArray: Self = Self(1040i32); |
995 | pub const PointArray: Self = Self(1041i32); |
996 | pub const SizeArray: Self = Self(1042i32); |
997 | pub const RectArray: Self = Self(1043i32); |
998 | pub const OtherTypeArray: Self = Self(1044i32); |
999 | } |
1000 | impl ::core::marker::Copy for PropertyType {} |
1001 | impl ::core::clone::Clone for PropertyType { |
1002 | fn clone(&self) -> Self { |
1003 | *self |
1004 | } |
1005 | } |
1006 | impl ::core::default::Default for PropertyType { |
1007 | fn default() -> Self { |
1008 | Self(0) |
1009 | } |
1010 | } |
1011 | impl ::windows_core::TypeKind for PropertyType { |
1012 | type TypeKind = ::windows_core::CopyType; |
1013 | } |
1014 | impl ::core::fmt::Debug for PropertyType { |
1015 | fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
1016 | f.debug_tuple(name:"PropertyType" ).field(&self.0).finish() |
1017 | } |
1018 | } |
1019 | impl ::windows_core::RuntimeType for PropertyType { |
1020 | const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.Foundation.PropertyType;i4)" ); |
1021 | } |
1022 | pub struct PropertyValue; |
1023 | impl PropertyValue { |
1024 | pub fn CreateEmpty() -> ::windows_core::Result<::windows_core::IInspectable> { |
1025 | Self::IPropertyValueStatics(|this| unsafe { |
1026 | let mut result__ = ::std::mem::zeroed(); |
1027 | (::windows_core::Interface::vtable(this).CreateEmpty)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
1028 | }) |
1029 | } |
1030 | pub fn CreateUInt8(value: u8) -> ::windows_core::Result<::windows_core::IInspectable> { |
1031 | Self::IPropertyValueStatics(|this| unsafe { |
1032 | let mut result__ = ::std::mem::zeroed(); |
1033 | (::windows_core::Interface::vtable(this).CreateUInt8)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) |
1034 | }) |
1035 | } |
1036 | pub fn CreateInt16(value: i16) -> ::windows_core::Result<::windows_core::IInspectable> { |
1037 | Self::IPropertyValueStatics(|this| unsafe { |
1038 | let mut result__ = ::std::mem::zeroed(); |
1039 | (::windows_core::Interface::vtable(this).CreateInt16)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) |
1040 | }) |
1041 | } |
1042 | pub fn CreateUInt16(value: u16) -> ::windows_core::Result<::windows_core::IInspectable> { |
1043 | Self::IPropertyValueStatics(|this| unsafe { |
1044 | let mut result__ = ::std::mem::zeroed(); |
1045 | (::windows_core::Interface::vtable(this).CreateUInt16)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) |
1046 | }) |
1047 | } |
1048 | pub fn CreateInt32(value: i32) -> ::windows_core::Result<::windows_core::IInspectable> { |
1049 | Self::IPropertyValueStatics(|this| unsafe { |
1050 | let mut result__ = ::std::mem::zeroed(); |
1051 | (::windows_core::Interface::vtable(this).CreateInt32)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) |
1052 | }) |
1053 | } |
1054 | pub fn CreateUInt32(value: u32) -> ::windows_core::Result<::windows_core::IInspectable> { |
1055 | Self::IPropertyValueStatics(|this| unsafe { |
1056 | let mut result__ = ::std::mem::zeroed(); |
1057 | (::windows_core::Interface::vtable(this).CreateUInt32)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) |
1058 | }) |
1059 | } |
1060 | pub fn CreateInt64(value: i64) -> ::windows_core::Result<::windows_core::IInspectable> { |
1061 | Self::IPropertyValueStatics(|this| unsafe { |
1062 | let mut result__ = ::std::mem::zeroed(); |
1063 | (::windows_core::Interface::vtable(this).CreateInt64)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) |
1064 | }) |
1065 | } |
1066 | pub fn CreateUInt64(value: u64) -> ::windows_core::Result<::windows_core::IInspectable> { |
1067 | Self::IPropertyValueStatics(|this| unsafe { |
1068 | let mut result__ = ::std::mem::zeroed(); |
1069 | (::windows_core::Interface::vtable(this).CreateUInt64)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) |
1070 | }) |
1071 | } |
1072 | pub fn CreateSingle(value: f32) -> ::windows_core::Result<::windows_core::IInspectable> { |
1073 | Self::IPropertyValueStatics(|this| unsafe { |
1074 | let mut result__ = ::std::mem::zeroed(); |
1075 | (::windows_core::Interface::vtable(this).CreateSingle)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) |
1076 | }) |
1077 | } |
1078 | pub fn CreateDouble(value: f64) -> ::windows_core::Result<::windows_core::IInspectable> { |
1079 | Self::IPropertyValueStatics(|this| unsafe { |
1080 | let mut result__ = ::std::mem::zeroed(); |
1081 | (::windows_core::Interface::vtable(this).CreateDouble)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) |
1082 | }) |
1083 | } |
1084 | pub fn CreateChar16(value: u16) -> ::windows_core::Result<::windows_core::IInspectable> { |
1085 | Self::IPropertyValueStatics(|this| unsafe { |
1086 | let mut result__ = ::std::mem::zeroed(); |
1087 | (::windows_core::Interface::vtable(this).CreateChar16)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) |
1088 | }) |
1089 | } |
1090 | pub fn CreateBoolean(value: bool) -> ::windows_core::Result<::windows_core::IInspectable> { |
1091 | Self::IPropertyValueStatics(|this| unsafe { |
1092 | let mut result__ = ::std::mem::zeroed(); |
1093 | (::windows_core::Interface::vtable(this).CreateBoolean)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) |
1094 | }) |
1095 | } |
1096 | pub fn CreateString(value: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::IInspectable> { |
1097 | Self::IPropertyValueStatics(|this| unsafe { |
1098 | let mut result__ = ::std::mem::zeroed(); |
1099 | (::windows_core::Interface::vtable(this).CreateString)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value), &mut result__).from_abi(result__) |
1100 | }) |
1101 | } |
1102 | pub fn CreateInspectable<P0>(value: P0) -> ::windows_core::Result<::windows_core::IInspectable> |
1103 | where |
1104 | P0: ::windows_core::IntoParam<::windows_core::IInspectable>, |
1105 | { |
1106 | Self::IPropertyValueStatics(|this| unsafe { |
1107 | let mut result__ = ::std::mem::zeroed(); |
1108 | (::windows_core::Interface::vtable(this).CreateInspectable)(::windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).from_abi(result__) |
1109 | }) |
1110 | } |
1111 | pub fn CreateGuid(value: ::windows_core::GUID) -> ::windows_core::Result<::windows_core::IInspectable> { |
1112 | Self::IPropertyValueStatics(|this| unsafe { |
1113 | let mut result__ = ::std::mem::zeroed(); |
1114 | (::windows_core::Interface::vtable(this).CreateGuid)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) |
1115 | }) |
1116 | } |
1117 | pub fn CreateDateTime(value: DateTime) -> ::windows_core::Result<::windows_core::IInspectable> { |
1118 | Self::IPropertyValueStatics(|this| unsafe { |
1119 | let mut result__ = ::std::mem::zeroed(); |
1120 | (::windows_core::Interface::vtable(this).CreateDateTime)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) |
1121 | }) |
1122 | } |
1123 | pub fn CreateTimeSpan(value: TimeSpan) -> ::windows_core::Result<::windows_core::IInspectable> { |
1124 | Self::IPropertyValueStatics(|this| unsafe { |
1125 | let mut result__ = ::std::mem::zeroed(); |
1126 | (::windows_core::Interface::vtable(this).CreateTimeSpan)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) |
1127 | }) |
1128 | } |
1129 | pub fn CreatePoint(value: Point) -> ::windows_core::Result<::windows_core::IInspectable> { |
1130 | Self::IPropertyValueStatics(|this| unsafe { |
1131 | let mut result__ = ::std::mem::zeroed(); |
1132 | (::windows_core::Interface::vtable(this).CreatePoint)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) |
1133 | }) |
1134 | } |
1135 | pub fn CreateSize(value: Size) -> ::windows_core::Result<::windows_core::IInspectable> { |
1136 | Self::IPropertyValueStatics(|this| unsafe { |
1137 | let mut result__ = ::std::mem::zeroed(); |
1138 | (::windows_core::Interface::vtable(this).CreateSize)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) |
1139 | }) |
1140 | } |
1141 | pub fn CreateRect(value: Rect) -> ::windows_core::Result<::windows_core::IInspectable> { |
1142 | Self::IPropertyValueStatics(|this| unsafe { |
1143 | let mut result__ = ::std::mem::zeroed(); |
1144 | (::windows_core::Interface::vtable(this).CreateRect)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) |
1145 | }) |
1146 | } |
1147 | pub fn CreateUInt8Array(value: &[u8]) -> ::windows_core::Result<::windows_core::IInspectable> { |
1148 | Self::IPropertyValueStatics(|this| unsafe { |
1149 | let mut result__ = ::std::mem::zeroed(); |
1150 | (::windows_core::Interface::vtable(this).CreateUInt8Array)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr(), &mut result__).from_abi(result__) |
1151 | }) |
1152 | } |
1153 | pub fn CreateInt16Array(value: &[i16]) -> ::windows_core::Result<::windows_core::IInspectable> { |
1154 | Self::IPropertyValueStatics(|this| unsafe { |
1155 | let mut result__ = ::std::mem::zeroed(); |
1156 | (::windows_core::Interface::vtable(this).CreateInt16Array)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr(), &mut result__).from_abi(result__) |
1157 | }) |
1158 | } |
1159 | pub fn CreateUInt16Array(value: &[u16]) -> ::windows_core::Result<::windows_core::IInspectable> { |
1160 | Self::IPropertyValueStatics(|this| unsafe { |
1161 | let mut result__ = ::std::mem::zeroed(); |
1162 | (::windows_core::Interface::vtable(this).CreateUInt16Array)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr(), &mut result__).from_abi(result__) |
1163 | }) |
1164 | } |
1165 | pub fn CreateInt32Array(value: &[i32]) -> ::windows_core::Result<::windows_core::IInspectable> { |
1166 | Self::IPropertyValueStatics(|this| unsafe { |
1167 | let mut result__ = ::std::mem::zeroed(); |
1168 | (::windows_core::Interface::vtable(this).CreateInt32Array)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr(), &mut result__).from_abi(result__) |
1169 | }) |
1170 | } |
1171 | pub fn CreateUInt32Array(value: &[u32]) -> ::windows_core::Result<::windows_core::IInspectable> { |
1172 | Self::IPropertyValueStatics(|this| unsafe { |
1173 | let mut result__ = ::std::mem::zeroed(); |
1174 | (::windows_core::Interface::vtable(this).CreateUInt32Array)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr(), &mut result__).from_abi(result__) |
1175 | }) |
1176 | } |
1177 | pub fn CreateInt64Array(value: &[i64]) -> ::windows_core::Result<::windows_core::IInspectable> { |
1178 | Self::IPropertyValueStatics(|this| unsafe { |
1179 | let mut result__ = ::std::mem::zeroed(); |
1180 | (::windows_core::Interface::vtable(this).CreateInt64Array)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr(), &mut result__).from_abi(result__) |
1181 | }) |
1182 | } |
1183 | pub fn CreateUInt64Array(value: &[u64]) -> ::windows_core::Result<::windows_core::IInspectable> { |
1184 | Self::IPropertyValueStatics(|this| unsafe { |
1185 | let mut result__ = ::std::mem::zeroed(); |
1186 | (::windows_core::Interface::vtable(this).CreateUInt64Array)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr(), &mut result__).from_abi(result__) |
1187 | }) |
1188 | } |
1189 | pub fn CreateSingleArray(value: &[f32]) -> ::windows_core::Result<::windows_core::IInspectable> { |
1190 | Self::IPropertyValueStatics(|this| unsafe { |
1191 | let mut result__ = ::std::mem::zeroed(); |
1192 | (::windows_core::Interface::vtable(this).CreateSingleArray)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr(), &mut result__).from_abi(result__) |
1193 | }) |
1194 | } |
1195 | pub fn CreateDoubleArray(value: &[f64]) -> ::windows_core::Result<::windows_core::IInspectable> { |
1196 | Self::IPropertyValueStatics(|this| unsafe { |
1197 | let mut result__ = ::std::mem::zeroed(); |
1198 | (::windows_core::Interface::vtable(this).CreateDoubleArray)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr(), &mut result__).from_abi(result__) |
1199 | }) |
1200 | } |
1201 | pub fn CreateChar16Array(value: &[u16]) -> ::windows_core::Result<::windows_core::IInspectable> { |
1202 | Self::IPropertyValueStatics(|this| unsafe { |
1203 | let mut result__ = ::std::mem::zeroed(); |
1204 | (::windows_core::Interface::vtable(this).CreateChar16Array)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr(), &mut result__).from_abi(result__) |
1205 | }) |
1206 | } |
1207 | pub fn CreateBooleanArray(value: &[bool]) -> ::windows_core::Result<::windows_core::IInspectable> { |
1208 | Self::IPropertyValueStatics(|this| unsafe { |
1209 | let mut result__ = ::std::mem::zeroed(); |
1210 | (::windows_core::Interface::vtable(this).CreateBooleanArray)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr(), &mut result__).from_abi(result__) |
1211 | }) |
1212 | } |
1213 | pub fn CreateStringArray(value: &[::windows_core::HSTRING]) -> ::windows_core::Result<::windows_core::IInspectable> { |
1214 | Self::IPropertyValueStatics(|this| unsafe { |
1215 | let mut result__ = ::std::mem::zeroed(); |
1216 | (::windows_core::Interface::vtable(this).CreateStringArray)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), ::core::mem::transmute(value.as_ptr()), &mut result__).from_abi(result__) |
1217 | }) |
1218 | } |
1219 | pub fn CreateInspectableArray(value: &[::core::option::Option<::windows_core::IInspectable>]) -> ::windows_core::Result<::windows_core::IInspectable> { |
1220 | Self::IPropertyValueStatics(|this| unsafe { |
1221 | let mut result__ = ::std::mem::zeroed(); |
1222 | (::windows_core::Interface::vtable(this).CreateInspectableArray)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), ::core::mem::transmute(value.as_ptr()), &mut result__).from_abi(result__) |
1223 | }) |
1224 | } |
1225 | pub fn CreateGuidArray(value: &[::windows_core::GUID]) -> ::windows_core::Result<::windows_core::IInspectable> { |
1226 | Self::IPropertyValueStatics(|this| unsafe { |
1227 | let mut result__ = ::std::mem::zeroed(); |
1228 | (::windows_core::Interface::vtable(this).CreateGuidArray)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr(), &mut result__).from_abi(result__) |
1229 | }) |
1230 | } |
1231 | pub fn CreateDateTimeArray(value: &[DateTime]) -> ::windows_core::Result<::windows_core::IInspectable> { |
1232 | Self::IPropertyValueStatics(|this| unsafe { |
1233 | let mut result__ = ::std::mem::zeroed(); |
1234 | (::windows_core::Interface::vtable(this).CreateDateTimeArray)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr(), &mut result__).from_abi(result__) |
1235 | }) |
1236 | } |
1237 | pub fn CreateTimeSpanArray(value: &[TimeSpan]) -> ::windows_core::Result<::windows_core::IInspectable> { |
1238 | Self::IPropertyValueStatics(|this| unsafe { |
1239 | let mut result__ = ::std::mem::zeroed(); |
1240 | (::windows_core::Interface::vtable(this).CreateTimeSpanArray)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr(), &mut result__).from_abi(result__) |
1241 | }) |
1242 | } |
1243 | pub fn CreatePointArray(value: &[Point]) -> ::windows_core::Result<::windows_core::IInspectable> { |
1244 | Self::IPropertyValueStatics(|this| unsafe { |
1245 | let mut result__ = ::std::mem::zeroed(); |
1246 | (::windows_core::Interface::vtable(this).CreatePointArray)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr(), &mut result__).from_abi(result__) |
1247 | }) |
1248 | } |
1249 | pub fn CreateSizeArray(value: &[Size]) -> ::windows_core::Result<::windows_core::IInspectable> { |
1250 | Self::IPropertyValueStatics(|this| unsafe { |
1251 | let mut result__ = ::std::mem::zeroed(); |
1252 | (::windows_core::Interface::vtable(this).CreateSizeArray)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr(), &mut result__).from_abi(result__) |
1253 | }) |
1254 | } |
1255 | pub fn CreateRectArray(value: &[Rect]) -> ::windows_core::Result<::windows_core::IInspectable> { |
1256 | Self::IPropertyValueStatics(|this| unsafe { |
1257 | let mut result__ = ::std::mem::zeroed(); |
1258 | (::windows_core::Interface::vtable(this).CreateRectArray)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr(), &mut result__).from_abi(result__) |
1259 | }) |
1260 | } |
1261 | #[doc (hidden)] |
1262 | pub fn IPropertyValueStatics<R, F: FnOnce(&IPropertyValueStatics) -> ::windows_core::Result<R>>(callback: F) -> ::windows_core::Result<R> { |
1263 | static SHARED: ::windows_core::imp::FactoryCache<PropertyValue, IPropertyValueStatics> = ::windows_core::imp::FactoryCache::new(); |
1264 | SHARED.call(callback) |
1265 | } |
1266 | } |
1267 | impl ::windows_core::RuntimeName for PropertyValue { |
1268 | const NAME: &'static str = "Windows.Foundation.PropertyValue" ; |
1269 | } |
1270 | pub const RPC_E_DISCONNECTED: ::windows_core::HRESULT = ::windows_core::HRESULT(-2147417848i32); |
1271 | #[repr (C)] |
1272 | pub struct Rect { |
1273 | pub X: f32, |
1274 | pub Y: f32, |
1275 | pub Width: f32, |
1276 | pub Height: f32, |
1277 | } |
1278 | impl ::core::marker::Copy for Rect {} |
1279 | impl ::core::clone::Clone for Rect { |
1280 | fn clone(&self) -> Self { |
1281 | *self |
1282 | } |
1283 | } |
1284 | impl ::core::fmt::Debug for Rect { |
1285 | fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
1286 | f.debug_struct("Rect" ).field("X" , &self.X).field("Y" , &self.Y).field("Width" , &self.Width).field(name:"Height" , &self.Height).finish() |
1287 | } |
1288 | } |
1289 | impl ::windows_core::TypeKind for Rect { |
1290 | type TypeKind = ::windows_core::CopyType; |
1291 | } |
1292 | impl ::windows_core::RuntimeType for Rect { |
1293 | const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"struct(Windows.Foundation.Rect;f4;f4;f4;f4)" ); |
1294 | } |
1295 | impl ::core::cmp::PartialEq for Rect { |
1296 | fn eq(&self, other: &Self) -> bool { |
1297 | self.X == other.X && self.Y == other.Y && self.Width == other.Width && self.Height == other.Height |
1298 | } |
1299 | } |
1300 | impl ::core::cmp::Eq for Rect {} |
1301 | impl ::core::default::Default for Rect { |
1302 | fn default() -> Self { |
1303 | unsafe { ::core::mem::zeroed() } |
1304 | } |
1305 | } |
1306 | #[repr (C)] |
1307 | pub struct Size { |
1308 | pub Width: f32, |
1309 | pub Height: f32, |
1310 | } |
1311 | impl ::core::marker::Copy for Size {} |
1312 | impl ::core::clone::Clone for Size { |
1313 | fn clone(&self) -> Self { |
1314 | *self |
1315 | } |
1316 | } |
1317 | impl ::core::fmt::Debug for Size { |
1318 | fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
1319 | f.debug_struct("Size" ).field("Width" , &self.Width).field(name:"Height" , &self.Height).finish() |
1320 | } |
1321 | } |
1322 | impl ::windows_core::TypeKind for Size { |
1323 | type TypeKind = ::windows_core::CopyType; |
1324 | } |
1325 | impl ::windows_core::RuntimeType for Size { |
1326 | const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"struct(Windows.Foundation.Size;f4;f4)" ); |
1327 | } |
1328 | impl ::core::cmp::PartialEq for Size { |
1329 | fn eq(&self, other: &Self) -> bool { |
1330 | self.Width == other.Width && self.Height == other.Height |
1331 | } |
1332 | } |
1333 | impl ::core::cmp::Eq for Size {} |
1334 | impl ::core::default::Default for Size { |
1335 | fn default() -> Self { |
1336 | unsafe { ::core::mem::zeroed() } |
1337 | } |
1338 | } |
1339 | #[repr (C)] |
1340 | pub struct TimeSpan { |
1341 | pub Duration: i64, |
1342 | } |
1343 | impl ::core::marker::Copy for TimeSpan {} |
1344 | impl ::core::clone::Clone for TimeSpan { |
1345 | fn clone(&self) -> Self { |
1346 | *self |
1347 | } |
1348 | } |
1349 | impl ::core::fmt::Debug for TimeSpan { |
1350 | fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
1351 | f.debug_struct("TimeSpan" ).field(name:"Duration" , &self.Duration).finish() |
1352 | } |
1353 | } |
1354 | impl ::windows_core::TypeKind for TimeSpan { |
1355 | type TypeKind = ::windows_core::CopyType; |
1356 | } |
1357 | impl ::windows_core::RuntimeType for TimeSpan { |
1358 | const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"struct(Windows.Foundation.TimeSpan;i8)" ); |
1359 | } |
1360 | impl ::core::cmp::PartialEq for TimeSpan { |
1361 | fn eq(&self, other: &Self) -> bool { |
1362 | self.Duration == other.Duration |
1363 | } |
1364 | } |
1365 | impl ::core::cmp::Eq for TimeSpan {} |
1366 | impl ::core::default::Default for TimeSpan { |
1367 | fn default() -> Self { |
1368 | unsafe { ::core::mem::zeroed() } |
1369 | } |
1370 | } |
1371 | |