1 #![allow(unused_variables, non_upper_case_globals, non_snake_case, unused_unsafe, non_camel_case_types, dead_code, clippy::all)]
2 #[repr(transparent)]
3 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
4 #[doc(hidden)]
5 pub struct IPreviewBuildsManager(::windows::runtime::IInspectable);
6 unsafe impl ::windows::runtime::Interface for IPreviewBuildsManager {
7     type Vtable = IPreviewBuildsManager_abi;
8     const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4194819425, 32335, 23031, [124, 159, 222, 249, 5, 28, 95, 98]);
9 }
10 #[repr(C)]
11 #[doc(hidden)]
12 pub struct IPreviewBuildsManager_abi(
13     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
14     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
15     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
16     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT,
17     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
18     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT,
19     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT,
20     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: bool) -> ::windows::runtime::HRESULT,
21     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
22     #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
23     #[cfg(not(feature = "Foundation"))] usize,
24 );
25 #[repr(transparent)]
26 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
27 #[doc(hidden)]
28 pub struct IPreviewBuildsManagerStatics(::windows::runtime::IInspectable);
29 unsafe impl ::windows::runtime::Interface for IPreviewBuildsManagerStatics {
30     type Vtable = IPreviewBuildsManagerStatics_abi;
31     const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1044523143, 45330, 23152, [125, 161, 151, 215, 141, 50, 170, 41]);
32 }
33 #[repr(C)]
34 #[doc(hidden)]
35 pub struct IPreviewBuildsManagerStatics_abi(
36     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
37     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
38     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
39     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT,
40     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
41     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT,
42     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
43     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut bool) -> ::windows::runtime::HRESULT,
44 );
45 #[repr(transparent)]
46 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
47 #[doc(hidden)]
48 pub struct IPreviewBuildsState(::windows::runtime::IInspectable);
49 unsafe impl ::windows::runtime::Interface for IPreviewBuildsState {
50     type Vtable = IPreviewBuildsState_abi;
51     const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2733805630, 45603, 24419, [117, 70, 62, 142, 172, 7, 10, 46]);
52 }
53 #[repr(C)]
54 #[doc(hidden)]
55 pub struct IPreviewBuildsState_abi(
56     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
57     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
58     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32,
59     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, count: *mut u32, values: *mut *mut ::windows::runtime::GUID) -> ::windows::runtime::HRESULT,
60     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
61     pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: *mut i32) -> ::windows::runtime::HRESULT,
62     #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, result__: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT,
63     #[cfg(not(feature = "Foundation_Collections"))] usize,
64 );
65 #[repr(transparent)]
66 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
67 pub struct PreviewBuildsManager(::windows::runtime::IInspectable);
68 impl PreviewBuildsManager {
ArePreviewBuildsAllowed(&self) -> ::windows::runtime::Result<bool>69     pub fn ArePreviewBuildsAllowed(&self) -> ::windows::runtime::Result<bool> {
70         let this = self;
71         unsafe {
72             let mut result__: bool = ::std::mem::zeroed();
73             (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__)
74         }
75     }
SetArePreviewBuildsAllowed(&self, value: bool) -> ::windows::runtime::Result<()>76     pub fn SetArePreviewBuildsAllowed(&self, value: bool) -> ::windows::runtime::Result<()> {
77         let this = self;
78         unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() }
79     }
GetCurrentState(&self) -> ::windows::runtime::Result<PreviewBuildsState>80     pub fn GetCurrentState(&self) -> ::windows::runtime::Result<PreviewBuildsState> {
81         let this = self;
82         unsafe {
83             let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed();
84             (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<PreviewBuildsState>(result__)
85         }
86     }
87     #[cfg(feature = "Foundation")]
SyncAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>>88     pub fn SyncAsync(&self) -> ::windows::runtime::Result<super::super::Foundation::IAsyncOperation<bool>> {
89         let this = self;
90         unsafe {
91             let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed();
92             (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<bool>>(result__)
93         }
94     }
GetDefault() -> ::windows::runtime::Result<PreviewBuildsManager>95     pub fn GetDefault() -> ::windows::runtime::Result<PreviewBuildsManager> {
96         Self::IPreviewBuildsManagerStatics(|this| unsafe {
97             let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed();
98             (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<PreviewBuildsManager>(result__)
99         })
100     }
IsSupported() -> ::windows::runtime::Result<bool>101     pub fn IsSupported() -> ::windows::runtime::Result<bool> {
102         Self::IPreviewBuildsManagerStatics(|this| unsafe {
103             let mut result__: bool = ::std::mem::zeroed();
104             (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__)
105         })
106     }
IPreviewBuildsManagerStatics<R, F: FnOnce(&IPreviewBuildsManagerStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>107     pub fn IPreviewBuildsManagerStatics<R, F: FnOnce(&IPreviewBuildsManagerStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> {
108         static mut SHARED: ::windows::runtime::FactoryCache<PreviewBuildsManager, IPreviewBuildsManagerStatics> = ::windows::runtime::FactoryCache::new();
109         unsafe { SHARED.call(callback) }
110     }
111 }
112 unsafe impl ::windows::runtime::RuntimeType for PreviewBuildsManager {
113     const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Management.Update.PreviewBuildsManager;{fa07dd61-7e4f-59f7-7c9f-def9051c5f62})");
114 }
115 unsafe impl ::windows::runtime::Interface for PreviewBuildsManager {
116     type Vtable = IPreviewBuildsManager_abi;
117     const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4194819425, 32335, 23031, [124, 159, 222, 249, 5, 28, 95, 98]);
118 }
119 impl ::windows::runtime::RuntimeName for PreviewBuildsManager {
120     const NAME: &'static str = "Windows.Management.Update.PreviewBuildsManager";
121 }
122 impl ::std::convert::From<PreviewBuildsManager> for ::windows::runtime::IUnknown {
from(value: PreviewBuildsManager) -> Self123     fn from(value: PreviewBuildsManager) -> Self {
124         unsafe { ::std::mem::transmute(value) }
125     }
126 }
127 impl ::std::convert::From<&PreviewBuildsManager> for ::windows::runtime::IUnknown {
from(value: &PreviewBuildsManager) -> Self128     fn from(value: &PreviewBuildsManager) -> Self {
129         ::std::convert::From::from(::std::clone::Clone::clone(value))
130     }
131 }
132 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PreviewBuildsManager {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>133     fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
134         ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
135     }
136 }
137 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PreviewBuildsManager {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>138     fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
139         ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
140     }
141 }
142 impl ::std::convert::From<PreviewBuildsManager> for ::windows::runtime::IInspectable {
from(value: PreviewBuildsManager) -> Self143     fn from(value: PreviewBuildsManager) -> Self {
144         value.0
145     }
146 }
147 impl ::std::convert::From<&PreviewBuildsManager> for ::windows::runtime::IInspectable {
from(value: &PreviewBuildsManager) -> Self148     fn from(value: &PreviewBuildsManager) -> Self {
149         value.0.clone()
150     }
151 }
152 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PreviewBuildsManager {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>153     fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> {
154         ::windows::runtime::Param::Owned(self.0)
155     }
156 }
157 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PreviewBuildsManager {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>158     fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> {
159         ::windows::runtime::Param::Borrowed(&self.0)
160     }
161 }
162 unsafe impl ::std::marker::Send for PreviewBuildsManager {}
163 unsafe impl ::std::marker::Sync for PreviewBuildsManager {}
164 #[repr(transparent)]
165 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)]
166 pub struct PreviewBuildsState(::windows::runtime::IInspectable);
167 impl PreviewBuildsState {
168     #[cfg(feature = "Foundation_Collections")]
Properties(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::ValueSet>169     pub fn Properties(&self) -> ::windows::runtime::Result<super::super::Foundation::Collections::ValueSet> {
170         let this = self;
171         unsafe {
172             let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed();
173             (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Collections::ValueSet>(result__)
174         }
175     }
176 }
177 unsafe impl ::windows::runtime::RuntimeType for PreviewBuildsState {
178     const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.Management.Update.PreviewBuildsState;{a2f2903e-b223-5f63-7546-3e8eac070a2e})");
179 }
180 unsafe impl ::windows::runtime::Interface for PreviewBuildsState {
181     type Vtable = IPreviewBuildsState_abi;
182     const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2733805630, 45603, 24419, [117, 70, 62, 142, 172, 7, 10, 46]);
183 }
184 impl ::windows::runtime::RuntimeName for PreviewBuildsState {
185     const NAME: &'static str = "Windows.Management.Update.PreviewBuildsState";
186 }
187 impl ::std::convert::From<PreviewBuildsState> for ::windows::runtime::IUnknown {
from(value: PreviewBuildsState) -> Self188     fn from(value: PreviewBuildsState) -> Self {
189         unsafe { ::std::mem::transmute(value) }
190     }
191 }
192 impl ::std::convert::From<&PreviewBuildsState> for ::windows::runtime::IUnknown {
from(value: &PreviewBuildsState) -> Self193     fn from(value: &PreviewBuildsState) -> Self {
194         ::std::convert::From::from(::std::clone::Clone::clone(value))
195     }
196 }
197 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for PreviewBuildsState {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>198     fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
199         ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self))
200     }
201 }
202 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &PreviewBuildsState {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>203     fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> {
204         ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self)))
205     }
206 }
207 impl ::std::convert::From<PreviewBuildsState> for ::windows::runtime::IInspectable {
from(value: PreviewBuildsState) -> Self208     fn from(value: PreviewBuildsState) -> Self {
209         value.0
210     }
211 }
212 impl ::std::convert::From<&PreviewBuildsState> for ::windows::runtime::IInspectable {
from(value: &PreviewBuildsState) -> Self213     fn from(value: &PreviewBuildsState) -> Self {
214         value.0.clone()
215     }
216 }
217 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for PreviewBuildsState {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>218     fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> {
219         ::windows::runtime::Param::Owned(self.0)
220     }
221 }
222 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a PreviewBuildsState {
into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>223     fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> {
224         ::windows::runtime::Param::Borrowed(&self.0)
225     }
226 }
227 unsafe impl ::std::marker::Send for PreviewBuildsState {}
228 unsafe impl ::std::marker::Sync for PreviewBuildsState {}
229