1 #![allow(unused_variables, non_upper_case_globals, non_snake_case, unused_unsafe, non_camel_case_types, dead_code, clippy::all)]
2 pub const ACCESSIBILITY_SETTING: u32 = 3u32;
3 pub const APPLICATION_RUN: u32 = 5u32;
4 pub const BACKUP: u32 = 15u32;
5 pub const BACKUP_RECOVERY: u32 = 14u32;
6 pub const BEGIN_NESTED_SYSTEM_CHANGE_NORP: u32 = 104u32;
7 pub const CHECKPOINT: u32 = 7u32;
8 pub const CRITICAL_UPDATE: u32 = 18u32;
9 pub const DESKTOP_SETTING: u32 = 2u32;
10 pub const FIRSTRUN: u32 = 11u32;
11 pub const MANUAL_CHECKPOINT: u32 = 16u32;
12 pub const MAX_DESC: u32 = 64u32;
13 pub const MAX_DESC_W: u32 = 256u32;
14 pub const MAX_EVENT: u32 = 104u32;
15 pub const MAX_RPT: u32 = 18u32;
16 pub const MIN_EVENT: u32 = 100u32;
17 pub const MIN_RPT: u32 = 0u32;
18 pub const OE_SETTING: u32 = 4u32;
19 pub const RESTORE: u32 = 6u32;
20 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)]
21 #[repr(C, packed(1))]
22 #[cfg(feature = "Win32_Foundation")]
23 pub struct RESTOREPOINTINFOA {
24     pub dwEventType: RESTOREPOINTINFO_EVENT_TYPE,
25     pub dwRestorePtType: RESTOREPOINTINFO_TYPE,
margin(r: Rect, margin: u16) -> Rect26     pub llSequenceNumber: i64,
27     pub szDescription: [super::super::Foundation::CHAR; 64],
28 }
29 #[cfg(feature = "Win32_Foundation")]
30 impl RESTOREPOINTINFOA {}
31 #[cfg(feature = "Win32_Foundation")]
32 impl ::std::default::Default for RESTOREPOINTINFOA {
33     fn default() -> Self {
34         unsafe { ::std::mem::zeroed() }
35     }
process_events(&mut self, key: Key)36 }
37 #[cfg(feature = "Win32_Foundation")]
38 impl ::std::cmp::PartialEq for RESTOREPOINTINFOA {
39     fn eq(&self, _other: &Self) -> bool {
40         unimplemented!()
41     }
42 }
43 #[cfg(feature = "Win32_Foundation")]
44 impl ::std::cmp::Eq for RESTOREPOINTINFOA {}
45 #[cfg(feature = "Win32_Foundation")]
46 unsafe impl ::windows::runtime::Abi for RESTOREPOINTINFOA {
scroll_help(&mut self, direction: CursorDirection)47     type Abi = Self;
48     type DefaultType = Self;
49 }
50 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)]
render(&mut self, props: impl Borrow<HelpPaneProps>, area: Rect, buf: &mut Buffer)51 #[repr(C, packed(1))]
52 pub struct RESTOREPOINTINFOW {
53     pub dwEventType: RESTOREPOINTINFO_EVENT_TYPE,
54     pub dwRestorePtType: RESTOREPOINTINFO_TYPE,
55     pub llSequenceNumber: i64,
56     pub szDescription: [u16; 256],
57 }
58 impl RESTOREPOINTINFOW {}
59 impl ::std::default::Default for RESTOREPOINTINFOW {
60     fn default() -> Self {
61         unsafe { ::std::mem::zeroed() }
62     }
63 }
64 impl ::std::cmp::PartialEq for RESTOREPOINTINFOW {
65     fn eq(&self, _other: &Self) -> bool {
66         unimplemented!()
67     }
68 }
69 impl ::std::cmp::Eq for RESTOREPOINTINFOW {}
70 unsafe impl ::windows::runtime::Abi for RESTOREPOINTINFOW {
71     type Abi = Self;
72     type DefaultType = Self;
73 }
74 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)]
75 #[repr(transparent)]
76 pub struct RESTOREPOINTINFO_EVENT_TYPE(pub u32);
77 pub const BEGIN_NESTED_SYSTEM_CHANGE: RESTOREPOINTINFO_EVENT_TYPE = RESTOREPOINTINFO_EVENT_TYPE(102u32);
78 pub const BEGIN_SYSTEM_CHANGE: RESTOREPOINTINFO_EVENT_TYPE = RESTOREPOINTINFO_EVENT_TYPE(100u32);
79 pub const END_NESTED_SYSTEM_CHANGE: RESTOREPOINTINFO_EVENT_TYPE = RESTOREPOINTINFO_EVENT_TYPE(103u32);
80 pub const END_SYSTEM_CHANGE: RESTOREPOINTINFO_EVENT_TYPE = RESTOREPOINTINFO_EVENT_TYPE(101u32);
81 impl ::std::convert::From<u32> for RESTOREPOINTINFO_EVENT_TYPE {
82     fn from(value: u32) -> Self {
83         Self(value)
84     }
85 }
86 unsafe impl ::windows::runtime::Abi for RESTOREPOINTINFO_EVENT_TYPE {
87     type Abi = Self;
88     type DefaultType = Self;
89 }
90 impl ::std::ops::BitOr for RESTOREPOINTINFO_EVENT_TYPE {
91     type Output = Self;
92     fn bitor(self, rhs: Self) -> Self {
93         Self(self.0 | rhs.0)
94     }
95 }
96 impl ::std::ops::BitAnd for RESTOREPOINTINFO_EVENT_TYPE {
97     type Output = Self;
98     fn bitand(self, rhs: Self) -> Self {
99         Self(self.0 & rhs.0)
100     }
101 }
102 impl ::std::ops::BitOrAssign for RESTOREPOINTINFO_EVENT_TYPE {
103     fn bitor_assign(&mut self, rhs: Self) {
104         self.0.bitor_assign(rhs.0)
105     }
106 }
107 impl ::std::ops::BitAndAssign for RESTOREPOINTINFO_EVENT_TYPE {
108     fn bitand_assign(&mut self, rhs: Self) {
109         self.0.bitand_assign(rhs.0)
110     }
111 }
112 impl ::std::ops::Not for RESTOREPOINTINFO_EVENT_TYPE {
113     type Output = Self;
114     fn not(self) -> Self {
115         Self(self.0.not())
116     }
117 }
118 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy, :: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug)]
119 #[repr(transparent)]
120 pub struct RESTOREPOINTINFO_TYPE(pub u32);
121 pub const APPLICATION_INSTALL: RESTOREPOINTINFO_TYPE = RESTOREPOINTINFO_TYPE(0u32);
122 pub const APPLICATION_UNINSTALL: RESTOREPOINTINFO_TYPE = RESTOREPOINTINFO_TYPE(1u32);
123 pub const DEVICE_DRIVER_INSTALL: RESTOREPOINTINFO_TYPE = RESTOREPOINTINFO_TYPE(10u32);
124 pub const MODIFY_SETTINGS: RESTOREPOINTINFO_TYPE = RESTOREPOINTINFO_TYPE(12u32);
125 pub const CANCELLED_OPERATION: RESTOREPOINTINFO_TYPE = RESTOREPOINTINFO_TYPE(13u32);
126 impl ::std::convert::From<u32> for RESTOREPOINTINFO_TYPE {
127     fn from(value: u32) -> Self {
128         Self(value)
129     }
130 }
131 unsafe impl ::windows::runtime::Abi for RESTOREPOINTINFO_TYPE {
132     type Abi = Self;
133     type DefaultType = Self;
134 }
135 impl ::std::ops::BitOr for RESTOREPOINTINFO_TYPE {
136     type Output = Self;
137     fn bitor(self, rhs: Self) -> Self {
138         Self(self.0 | rhs.0)
139     }
140 }
141 impl ::std::ops::BitAnd for RESTOREPOINTINFO_TYPE {
142     type Output = Self;
143     fn bitand(self, rhs: Self) -> Self {
144         Self(self.0 & rhs.0)
145     }
146 }
147 impl ::std::ops::BitOrAssign for RESTOREPOINTINFO_TYPE {
148     fn bitor_assign(&mut self, rhs: Self) {
149         self.0.bitor_assign(rhs.0)
150     }
151 }
152 impl ::std::ops::BitAndAssign for RESTOREPOINTINFO_TYPE {
153     fn bitand_assign(&mut self, rhs: Self) {
154         self.0.bitand_assign(rhs.0)
155     }
156 }
157 impl ::std::ops::Not for RESTOREPOINTINFO_TYPE {
158     type Output = Self;
159     fn not(self) -> Self {
160         Self(self.0.not())
161     }
162 }
163 #[cfg(feature = "Win32_Foundation")]
164 #[inline]
165 pub unsafe fn SRSetRestorePointA(prestoreptspec: *const RESTOREPOINTINFOA, psmgrstatus: *mut STATEMGRSTATUS) -> super::super::Foundation::BOOL {
166     #[cfg(windows)]
167     {
168         #[link(name = "windows")]
169         extern "system" {
170             fn SRSetRestorePointA(prestoreptspec: *const RESTOREPOINTINFOA, psmgrstatus: *mut STATEMGRSTATUS) -> super::super::Foundation::BOOL;
171         }
172         ::std::mem::transmute(SRSetRestorePointA(::std::mem::transmute(prestoreptspec), ::std::mem::transmute(psmgrstatus)))
173     }
174     #[cfg(not(windows))]
175     unimplemented!("Unsupported target OS");
176 }
177 #[cfg(feature = "Win32_Foundation")]
178 #[inline]
179 pub unsafe fn SRSetRestorePointW(prestoreptspec: *const RESTOREPOINTINFOW, psmgrstatus: *mut STATEMGRSTATUS) -> super::super::Foundation::BOOL {
180     #[cfg(windows)]
181     {
182         #[link(name = "windows")]
183         extern "system" {
184             fn SRSetRestorePointW(prestoreptspec: *const RESTOREPOINTINFOW, psmgrstatus: *mut STATEMGRSTATUS) -> super::super::Foundation::BOOL;
185         }
186         ::std::mem::transmute(SRSetRestorePointW(::std::mem::transmute(prestoreptspec), ::std::mem::transmute(psmgrstatus)))
187     }
188     #[cfg(not(windows))]
189     unimplemented!("Unsupported target OS");
190 }
191 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)]
192 #[repr(C, packed(1))]
193 pub struct STATEMGRSTATUS {
194     pub nStatus: u32,
195     pub llSequenceNumber: i64,
196 }
197 impl STATEMGRSTATUS {}
198 impl ::std::default::Default for STATEMGRSTATUS {
199     fn default() -> Self {
200         unsafe { ::std::mem::zeroed() }
201     }
202 }
203 impl ::std::cmp::PartialEq for STATEMGRSTATUS {
204     fn eq(&self, _other: &Self) -> bool {
205         unimplemented!()
206     }
207 }
208 impl ::std::cmp::Eq for STATEMGRSTATUS {}
209 unsafe impl ::windows::runtime::Abi for STATEMGRSTATUS {
210     type Abi = Self;
211     type DefaultType = Self;
212 }
213 pub const WINDOWS_BOOT: u32 = 9u32;
214 pub const WINDOWS_SHUTDOWN: u32 = 8u32;
215 pub const WINDOWS_UPDATE: u32 = 17u32;
216 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)]
217 #[repr(C, packed(1))]
218 #[cfg(feature = "Win32_Foundation")]
219 pub struct _RESTOREPTINFOEX {
220     pub ftCreation: super::super::Foundation::FILETIME,
221     pub dwEventType: u32,
222     pub dwRestorePtType: u32,
223     pub dwRPNum: u32,
224     pub szDescription: [u16; 256],
225 }
226 #[cfg(feature = "Win32_Foundation")]
227 impl _RESTOREPTINFOEX {}
228 #[cfg(feature = "Win32_Foundation")]
229 impl ::std::default::Default for _RESTOREPTINFOEX {
230     fn default() -> Self {
231         unsafe { ::std::mem::zeroed() }
232     }
233 }
234 #[cfg(feature = "Win32_Foundation")]
235 impl ::std::cmp::PartialEq for _RESTOREPTINFOEX {
236     fn eq(&self, _other: &Self) -> bool {
237         unimplemented!()
238     }
239 }
240 #[cfg(feature = "Win32_Foundation")]
241 impl ::std::cmp::Eq for _RESTOREPTINFOEX {}
242 #[cfg(feature = "Win32_Foundation")]
243 unsafe impl ::windows::runtime::Abi for _RESTOREPTINFOEX {
244     type Abi = Self;
245     type DefaultType = Self;
246 }
247