]> git.proxmox.com Git - rustc.git/blame - vendor/windows/src/Windows/ApplicationModel/Email/mod.rs
New upstream version 1.70.0+dfsg1
[rustc.git] / vendor / windows / src / Windows / ApplicationModel / Email / mod.rs
CommitLineData
353b0b11
FG
1#[cfg(feature = "ApplicationModel_Email_DataProvider")]
2pub mod DataProvider;
3#[doc(hidden)]
4#[repr(transparent)]
5pub struct IEmailAttachment(::windows::core::IUnknown);
6unsafe impl ::windows::core::Interface for IEmailAttachment {
7 type Vtable = IEmailAttachment_Vtbl;
8}
9impl ::core::clone::Clone for IEmailAttachment {
10 fn clone(&self) -> Self {
11 Self(self.0.clone())
12 }
13}
14unsafe impl ::windows::core::ComInterface for IEmailAttachment {
15 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf353caf9_57c8_4adb_b992_60fceb584f54);
16}
17#[repr(C)]
18#[doc(hidden)]
19pub struct IEmailAttachment_Vtbl {
20 pub base__: ::windows::core::IInspectable_Vtbl,
21 pub FileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
22 pub SetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
23 #[cfg(feature = "Storage_Streams")]
24 pub Data: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
25 #[cfg(not(feature = "Storage_Streams"))]
26 Data: usize,
27 #[cfg(feature = "Storage_Streams")]
28 pub SetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
29 #[cfg(not(feature = "Storage_Streams"))]
30 SetData: usize,
31}
32#[doc(hidden)]
33#[repr(transparent)]
34pub struct IEmailAttachment2(::windows::core::IUnknown);
35unsafe impl ::windows::core::Interface for IEmailAttachment2 {
36 type Vtable = IEmailAttachment2_Vtbl;
37}
38impl ::core::clone::Clone for IEmailAttachment2 {
39 fn clone(&self) -> Self {
40 Self(self.0.clone())
41 }
42}
43unsafe impl ::windows::core::ComInterface for IEmailAttachment2 {
44 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x225f1070_b0ff_4571_9d54_a706c48d55c6);
45}
46#[repr(C)]
47#[doc(hidden)]
48pub struct IEmailAttachment2_Vtbl {
49 pub base__: ::windows::core::IInspectable_Vtbl,
50 pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
51 pub ContentId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
52 pub SetContentId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
53 pub ContentLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
54 pub SetContentLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
55 pub DownloadState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailAttachmentDownloadState) -> ::windows::core::HRESULT,
56 pub SetDownloadState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: EmailAttachmentDownloadState) -> ::windows::core::HRESULT,
57 pub EstimatedDownloadSizeInBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows::core::HRESULT,
58 pub SetEstimatedDownloadSizeInBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u64) -> ::windows::core::HRESULT,
59 pub IsFromBaseMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
60 pub IsInline: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
61 pub SetIsInline: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
62 pub MimeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
63 pub SetMimeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
64}
65#[doc(hidden)]
66#[repr(transparent)]
67pub struct IEmailAttachmentFactory(::windows::core::IUnknown);
68unsafe impl ::windows::core::Interface for IEmailAttachmentFactory {
69 type Vtable = IEmailAttachmentFactory_Vtbl;
70}
71impl ::core::clone::Clone for IEmailAttachmentFactory {
72 fn clone(&self) -> Self {
73 Self(self.0.clone())
74 }
75}
76unsafe impl ::windows::core::ComInterface for IEmailAttachmentFactory {
77 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x796eac46_ed56_4979_8708_abb8bc854b7d);
78}
79#[repr(C)]
80#[doc(hidden)]
81pub struct IEmailAttachmentFactory_Vtbl {
82 pub base__: ::windows::core::IInspectable_Vtbl,
83 #[cfg(feature = "Storage_Streams")]
84 pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::std::mem::MaybeUninit<::windows::core::HSTRING>, data: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
85 #[cfg(not(feature = "Storage_Streams"))]
86 Create: usize,
87}
88#[doc(hidden)]
89#[repr(transparent)]
90pub struct IEmailAttachmentFactory2(::windows::core::IUnknown);
91unsafe impl ::windows::core::Interface for IEmailAttachmentFactory2 {
92 type Vtable = IEmailAttachmentFactory2_Vtbl;
93}
94impl ::core::clone::Clone for IEmailAttachmentFactory2 {
95 fn clone(&self) -> Self {
96 Self(self.0.clone())
97 }
98}
99unsafe impl ::windows::core::ComInterface for IEmailAttachmentFactory2 {
100 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x23259435_51f9_427d_adcd_241023c8cfb7);
101}
102#[repr(C)]
103#[doc(hidden)]
104pub struct IEmailAttachmentFactory2_Vtbl {
105 pub base__: ::windows::core::IInspectable_Vtbl,
106 #[cfg(feature = "Storage_Streams")]
107 pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::std::mem::MaybeUninit<::windows::core::HSTRING>, data: *mut ::core::ffi::c_void, mimetype: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
108 #[cfg(not(feature = "Storage_Streams"))]
109 Create: usize,
110}
111#[doc(hidden)]
112#[repr(transparent)]
113pub struct IEmailConversation(::windows::core::IUnknown);
114unsafe impl ::windows::core::Interface for IEmailConversation {
115 type Vtable = IEmailConversation_Vtbl;
116}
117impl ::core::clone::Clone for IEmailConversation {
118 fn clone(&self) -> Self {
119 Self(self.0.clone())
120 }
121}
122unsafe impl ::windows::core::ComInterface for IEmailConversation {
123 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xda18c248_a0bc_4349_902d_90f66389f51b);
124}
125#[repr(C)]
126#[doc(hidden)]
127pub struct IEmailConversation_Vtbl {
128 pub base__: ::windows::core::IInspectable_Vtbl,
129 pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
130 pub MailboxId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
131 pub FlagState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailFlagState) -> ::windows::core::HRESULT,
132 pub HasAttachment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
133 pub Importance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailImportance) -> ::windows::core::HRESULT,
134 pub LastEmailResponseKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailMessageResponseKind) -> ::windows::core::HRESULT,
135 pub MessageCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT,
136 pub MostRecentMessageId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
137 #[cfg(feature = "Foundation")]
138 pub MostRecentMessageTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows::core::HRESULT,
139 #[cfg(not(feature = "Foundation"))]
140 MostRecentMessageTime: usize,
141 pub Preview: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
142 pub LatestSender: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
143 pub Subject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
144 pub UnreadMessageCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT,
145 #[cfg(feature = "Foundation_Collections")]
146 pub FindMessagesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
147 #[cfg(not(feature = "Foundation_Collections"))]
148 FindMessagesAsync: usize,
149 #[cfg(feature = "Foundation_Collections")]
150 pub FindMessagesWithCountAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
151 #[cfg(not(feature = "Foundation_Collections"))]
152 FindMessagesWithCountAsync: usize,
153}
154#[doc(hidden)]
155#[repr(transparent)]
156pub struct IEmailConversationBatch(::windows::core::IUnknown);
157unsafe impl ::windows::core::Interface for IEmailConversationBatch {
158 type Vtable = IEmailConversationBatch_Vtbl;
159}
160impl ::core::clone::Clone for IEmailConversationBatch {
161 fn clone(&self) -> Self {
162 Self(self.0.clone())
163 }
164}
165unsafe impl ::windows::core::ComInterface for IEmailConversationBatch {
166 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb8c1ab81_01c5_432a_9df1_fe85d98a279a);
167}
168#[repr(C)]
169#[doc(hidden)]
170pub struct IEmailConversationBatch_Vtbl {
171 pub base__: ::windows::core::IInspectable_Vtbl,
172 #[cfg(feature = "Foundation_Collections")]
173 pub Conversations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
174 #[cfg(not(feature = "Foundation_Collections"))]
175 Conversations: usize,
176 pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailBatchStatus) -> ::windows::core::HRESULT,
177}
178#[doc(hidden)]
179#[repr(transparent)]
180pub struct IEmailConversationReader(::windows::core::IUnknown);
181unsafe impl ::windows::core::Interface for IEmailConversationReader {
182 type Vtable = IEmailConversationReader_Vtbl;
183}
184impl ::core::clone::Clone for IEmailConversationReader {
185 fn clone(&self) -> Self {
186 Self(self.0.clone())
187 }
188}
189unsafe impl ::windows::core::ComInterface for IEmailConversationReader {
190 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb4630f82_2875_44c8_9b8c_85beb3a3c653);
191}
192#[repr(C)]
193#[doc(hidden)]
194pub struct IEmailConversationReader_Vtbl {
195 pub base__: ::windows::core::IInspectable_Vtbl,
196 #[cfg(feature = "Foundation")]
197 pub ReadBatchAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
198 #[cfg(not(feature = "Foundation"))]
199 ReadBatchAsync: usize,
200}
201#[doc(hidden)]
202#[repr(transparent)]
203pub struct IEmailFolder(::windows::core::IUnknown);
204unsafe impl ::windows::core::Interface for IEmailFolder {
205 type Vtable = IEmailFolder_Vtbl;
206}
207impl ::core::clone::Clone for IEmailFolder {
208 fn clone(&self) -> Self {
209 Self(self.0.clone())
210 }
211}
212unsafe impl ::windows::core::ComInterface for IEmailFolder {
213 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa24f7771_996c_4864_b1ba_ed1240e57d11);
214}
215#[repr(C)]
216#[doc(hidden)]
217pub struct IEmailFolder_Vtbl {
218 pub base__: ::windows::core::IInspectable_Vtbl,
219 pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
220 pub RemoteId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
221 pub SetRemoteId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
222 pub MailboxId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
223 pub ParentFolderId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
224 pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
225 pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
226 pub IsSyncEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
227 pub SetIsSyncEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
228 #[cfg(feature = "Foundation")]
229 pub LastSuccessfulSyncTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows::core::HRESULT,
230 #[cfg(not(feature = "Foundation"))]
231 LastSuccessfulSyncTime: usize,
232 #[cfg(feature = "Foundation")]
233 pub SetLastSuccessfulSyncTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::DateTime) -> ::windows::core::HRESULT,
234 #[cfg(not(feature = "Foundation"))]
235 SetLastSuccessfulSyncTime: usize,
236 pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailSpecialFolderKind) -> ::windows::core::HRESULT,
237 #[cfg(feature = "Foundation")]
238 pub CreateFolderAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
239 #[cfg(not(feature = "Foundation"))]
240 CreateFolderAsync: usize,
241 #[cfg(feature = "Foundation")]
242 pub DeleteAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
243 #[cfg(not(feature = "Foundation"))]
244 DeleteAsync: usize,
245 #[cfg(feature = "Foundation_Collections")]
246 pub FindChildFoldersAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
247 #[cfg(not(feature = "Foundation_Collections"))]
248 FindChildFoldersAsync: usize,
249 pub GetConversationReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
250 pub GetConversationReaderWithOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
251 #[cfg(feature = "Foundation")]
252 pub GetMessageAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
253 #[cfg(not(feature = "Foundation"))]
254 GetMessageAsync: usize,
255 pub GetMessageReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
256 pub GetMessageReaderWithOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
257 #[cfg(feature = "Foundation")]
258 pub GetMessageCountsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
259 #[cfg(not(feature = "Foundation"))]
260 GetMessageCountsAsync: usize,
261 #[cfg(feature = "Foundation")]
262 pub TryMoveAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newparentfolder: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
263 #[cfg(not(feature = "Foundation"))]
264 TryMoveAsync: usize,
265 #[cfg(feature = "Foundation")]
266 pub TryMoveWithNewNameAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newparentfolder: *mut ::core::ffi::c_void, newfoldername: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
267 #[cfg(not(feature = "Foundation"))]
268 TryMoveWithNewNameAsync: usize,
269 #[cfg(feature = "Foundation")]
270 pub TrySaveAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
271 #[cfg(not(feature = "Foundation"))]
272 TrySaveAsync: usize,
273 #[cfg(feature = "Foundation")]
274 pub SaveMessageAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, message: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
275 #[cfg(not(feature = "Foundation"))]
276 SaveMessageAsync: usize,
277}
278#[doc(hidden)]
279#[repr(transparent)]
280pub struct IEmailIrmInfo(::windows::core::IUnknown);
281unsafe impl ::windows::core::Interface for IEmailIrmInfo {
282 type Vtable = IEmailIrmInfo_Vtbl;
283}
284impl ::core::clone::Clone for IEmailIrmInfo {
285 fn clone(&self) -> Self {
286 Self(self.0.clone())
287 }
288}
289unsafe impl ::windows::core::ComInterface for IEmailIrmInfo {
290 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x90f52193_b1a0_4ebd_a6b6_ddca55606e0e);
291}
292#[repr(C)]
293#[doc(hidden)]
294pub struct IEmailIrmInfo_Vtbl {
295 pub base__: ::windows::core::IInspectable_Vtbl,
296 pub CanEdit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
297 pub SetCanEdit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
298 pub CanExtractData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
299 pub SetCanExtractData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
300 pub CanForward: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
301 pub SetCanForward: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
302 pub CanModifyRecipientsOnResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
303 pub SetCanModifyRecipientsOnResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
304 pub CanPrintData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
305 pub SetCanPrintData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
306 pub CanRemoveIrmOnResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
307 pub SetCanRemoveIrmOnResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
308 pub CanReply: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
309 pub SetCanReply: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
310 pub CanReplyAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
311 pub SetCanReplyAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
312 #[cfg(feature = "Foundation")]
313 pub ExpirationDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows::core::HRESULT,
314 #[cfg(not(feature = "Foundation"))]
315 ExpirationDate: usize,
316 #[cfg(feature = "Foundation")]
317 pub SetExpirationDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::DateTime) -> ::windows::core::HRESULT,
318 #[cfg(not(feature = "Foundation"))]
319 SetExpirationDate: usize,
320 pub IsIrmOriginator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
321 pub SetIsIrmOriginator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
322 pub IsProgramaticAccessAllowed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
323 pub SetIsProgramaticAccessAllowed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
324 pub Template: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
325 pub SetTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
326}
327#[doc(hidden)]
328#[repr(transparent)]
329pub struct IEmailIrmInfoFactory(::windows::core::IUnknown);
330unsafe impl ::windows::core::Interface for IEmailIrmInfoFactory {
331 type Vtable = IEmailIrmInfoFactory_Vtbl;
332}
333impl ::core::clone::Clone for IEmailIrmInfoFactory {
334 fn clone(&self) -> Self {
335 Self(self.0.clone())
336 }
337}
338unsafe impl ::windows::core::ComInterface for IEmailIrmInfoFactory {
339 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x314bb18c_e3e6_4d7b_be8d_91a96311b01b);
340}
341#[repr(C)]
342#[doc(hidden)]
343pub struct IEmailIrmInfoFactory_Vtbl {
344 pub base__: ::windows::core::IInspectable_Vtbl,
345 #[cfg(feature = "Foundation")]
346 pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, expiration: super::super::Foundation::DateTime, irmtemplate: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
347 #[cfg(not(feature = "Foundation"))]
348 Create: usize,
349}
350#[doc(hidden)]
351#[repr(transparent)]
352pub struct IEmailIrmTemplate(::windows::core::IUnknown);
353unsafe impl ::windows::core::Interface for IEmailIrmTemplate {
354 type Vtable = IEmailIrmTemplate_Vtbl;
355}
356impl ::core::clone::Clone for IEmailIrmTemplate {
357 fn clone(&self) -> Self {
358 Self(self.0.clone())
359 }
360}
361unsafe impl ::windows::core::ComInterface for IEmailIrmTemplate {
362 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf327758d_546d_4bea_a963_54a38b2cc016);
363}
364#[repr(C)]
365#[doc(hidden)]
366pub struct IEmailIrmTemplate_Vtbl {
367 pub base__: ::windows::core::IInspectable_Vtbl,
368 pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
369 pub SetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
370 pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
371 pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
372 pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
373 pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
374}
375#[doc(hidden)]
376#[repr(transparent)]
377pub struct IEmailIrmTemplateFactory(::windows::core::IUnknown);
378unsafe impl ::windows::core::Interface for IEmailIrmTemplateFactory {
379 type Vtable = IEmailIrmTemplateFactory_Vtbl;
380}
381impl ::core::clone::Clone for IEmailIrmTemplateFactory {
382 fn clone(&self) -> Self {
383 Self(self.0.clone())
384 }
385}
386unsafe impl ::windows::core::ComInterface for IEmailIrmTemplateFactory {
387 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3da31876_8738_4418_b9cb_471b936fe71e);
388}
389#[repr(C)]
390#[doc(hidden)]
391pub struct IEmailIrmTemplateFactory_Vtbl {
392 pub base__: ::windows::core::IInspectable_Vtbl,
393 pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows::core::HSTRING>, name: ::std::mem::MaybeUninit<::windows::core::HSTRING>, description: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
394}
395#[doc(hidden)]
396#[repr(transparent)]
397pub struct IEmailItemCounts(::windows::core::IUnknown);
398unsafe impl ::windows::core::Interface for IEmailItemCounts {
399 type Vtable = IEmailItemCounts_Vtbl;
400}
401impl ::core::clone::Clone for IEmailItemCounts {
402 fn clone(&self) -> Self {
403 Self(self.0.clone())
404 }
405}
406unsafe impl ::windows::core::ComInterface for IEmailItemCounts {
407 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5bd13321_fec8_4bab_83ba_0baf3c1f6cbd);
408}
409#[repr(C)]
410#[doc(hidden)]
411pub struct IEmailItemCounts_Vtbl {
412 pub base__: ::windows::core::IInspectable_Vtbl,
413 pub Flagged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT,
414 pub Important: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT,
415 pub Total: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT,
416 pub Unread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT,
417}
418#[doc(hidden)]
419#[repr(transparent)]
420pub struct IEmailMailbox(::windows::core::IUnknown);
421unsafe impl ::windows::core::Interface for IEmailMailbox {
422 type Vtable = IEmailMailbox_Vtbl;
423}
424impl ::core::clone::Clone for IEmailMailbox {
425 fn clone(&self) -> Self {
426 Self(self.0.clone())
427 }
428}
429unsafe impl ::windows::core::ComInterface for IEmailMailbox {
430 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa8790649_cf5b_411b_80b1_4a6a1484ce25);
431}
432#[repr(C)]
433#[doc(hidden)]
434pub struct IEmailMailbox_Vtbl {
435 pub base__: ::windows::core::IInspectable_Vtbl,
436 pub Capabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
437 pub ChangeTracker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
438 pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
439 pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
440 pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
441 pub IsOwnedByCurrentApp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
442 pub IsDataEncryptedUnderLock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
443 pub MailAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
444 pub SetMailAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
445 #[cfg(feature = "Foundation_Collections")]
446 pub MailAddressAliases: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
447 #[cfg(not(feature = "Foundation_Collections"))]
448 MailAddressAliases: usize,
449 pub OtherAppReadAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailMailboxOtherAppReadAccess) -> ::windows::core::HRESULT,
450 pub SetOtherAppReadAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: EmailMailboxOtherAppReadAccess) -> ::windows::core::HRESULT,
451 pub OtherAppWriteAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailMailboxOtherAppWriteAccess) -> ::windows::core::HRESULT,
452 pub SetOtherAppWriteAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: EmailMailboxOtherAppWriteAccess) -> ::windows::core::HRESULT,
453 pub Policies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
454 pub SourceDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
455 pub SyncManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
456 pub UserDataAccountId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
457 pub GetConversationReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
458 pub GetConversationReaderWithOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
459 pub GetMessageReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
460 pub GetMessageReaderWithOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
461 #[cfg(feature = "Foundation")]
462 pub DeleteAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
463 #[cfg(not(feature = "Foundation"))]
464 DeleteAsync: usize,
465 #[cfg(feature = "Foundation")]
466 pub GetConversationAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
467 #[cfg(not(feature = "Foundation"))]
468 GetConversationAsync: usize,
469 #[cfg(feature = "Foundation")]
470 pub GetFolderAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
471 #[cfg(not(feature = "Foundation"))]
472 GetFolderAsync: usize,
473 #[cfg(feature = "Foundation")]
474 pub GetMessageAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
475 #[cfg(not(feature = "Foundation"))]
476 GetMessageAsync: usize,
477 #[cfg(feature = "Foundation")]
478 pub GetSpecialFolderAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, foldertype: EmailSpecialFolderKind, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
479 #[cfg(not(feature = "Foundation"))]
480 GetSpecialFolderAsync: usize,
481 #[cfg(feature = "Foundation")]
482 pub SaveAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
483 #[cfg(not(feature = "Foundation"))]
484 SaveAsync: usize,
485 #[cfg(feature = "Foundation")]
486 pub MarkMessageAsSeenAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messageid: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
487 #[cfg(not(feature = "Foundation"))]
488 MarkMessageAsSeenAsync: usize,
489 #[cfg(feature = "Foundation")]
490 pub MarkFolderAsSeenAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folderid: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
491 #[cfg(not(feature = "Foundation"))]
492 MarkFolderAsSeenAsync: usize,
493 #[cfg(feature = "Foundation")]
494 pub MarkMessageReadAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messageid: ::std::mem::MaybeUninit<::windows::core::HSTRING>, isread: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
495 #[cfg(not(feature = "Foundation"))]
496 MarkMessageReadAsync: usize,
497 #[cfg(feature = "Foundation")]
498 pub ChangeMessageFlagStateAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messageid: ::std::mem::MaybeUninit<::windows::core::HSTRING>, flagstate: EmailFlagState, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
499 #[cfg(not(feature = "Foundation"))]
500 ChangeMessageFlagStateAsync: usize,
501 #[cfg(feature = "Foundation")]
502 pub TryMoveMessageAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messageid: ::std::mem::MaybeUninit<::windows::core::HSTRING>, newparentfolderid: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
503 #[cfg(not(feature = "Foundation"))]
504 TryMoveMessageAsync: usize,
505 #[cfg(feature = "Foundation")]
506 pub TryMoveFolderAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folderid: ::std::mem::MaybeUninit<::windows::core::HSTRING>, newparentfolderid: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
507 #[cfg(not(feature = "Foundation"))]
508 TryMoveFolderAsync: usize,
509 #[cfg(feature = "Foundation")]
510 pub TryMoveFolderWithNewNameAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folderid: ::std::mem::MaybeUninit<::windows::core::HSTRING>, newparentfolderid: ::std::mem::MaybeUninit<::windows::core::HSTRING>, newfoldername: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
511 #[cfg(not(feature = "Foundation"))]
512 TryMoveFolderWithNewNameAsync: usize,
513 #[cfg(feature = "Foundation")]
514 pub DeleteMessageAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messageid: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
515 #[cfg(not(feature = "Foundation"))]
516 DeleteMessageAsync: usize,
517 #[cfg(feature = "Foundation")]
518 pub MarkFolderSyncEnabledAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folderid: ::std::mem::MaybeUninit<::windows::core::HSTRING>, issyncenabled: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
519 #[cfg(not(feature = "Foundation"))]
520 MarkFolderSyncEnabledAsync: usize,
521 #[cfg(feature = "Foundation")]
522 pub SendMessageAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, message: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
523 #[cfg(not(feature = "Foundation"))]
524 SendMessageAsync: usize,
525 #[cfg(feature = "Foundation")]
526 pub SaveDraftAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, message: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
527 #[cfg(not(feature = "Foundation"))]
528 SaveDraftAsync: usize,
529 #[cfg(feature = "Foundation")]
530 pub DownloadMessageAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messageid: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
531 #[cfg(not(feature = "Foundation"))]
532 DownloadMessageAsync: usize,
533 #[cfg(feature = "Foundation")]
534 pub DownloadAttachmentAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attachmentid: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
535 #[cfg(not(feature = "Foundation"))]
536 DownloadAttachmentAsync: usize,
537 #[cfg(feature = "Foundation")]
538 pub CreateResponseMessageAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messageid: ::std::mem::MaybeUninit<::windows::core::HSTRING>, responsetype: EmailMessageResponseKind, subject: ::std::mem::MaybeUninit<::windows::core::HSTRING>, responseheadertype: EmailMessageBodyKind, responseheader: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
539 #[cfg(not(feature = "Foundation"))]
540 CreateResponseMessageAsync: usize,
541 #[cfg(feature = "Foundation")]
542 pub TryUpdateMeetingResponseAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, meeting: *mut ::core::ffi::c_void, response: EmailMeetingResponseType, subject: ::std::mem::MaybeUninit<::windows::core::HSTRING>, comment: ::std::mem::MaybeUninit<::windows::core::HSTRING>, sendupdate: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
543 #[cfg(not(feature = "Foundation"))]
544 TryUpdateMeetingResponseAsync: usize,
545 #[cfg(feature = "Foundation_Collections")]
546 pub TryForwardMeetingAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, meeting: *mut ::core::ffi::c_void, recipients: *mut ::core::ffi::c_void, subject: ::std::mem::MaybeUninit<::windows::core::HSTRING>, forwardheadertype: EmailMessageBodyKind, forwardheader: ::std::mem::MaybeUninit<::windows::core::HSTRING>, comment: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
547 #[cfg(not(feature = "Foundation_Collections"))]
548 TryForwardMeetingAsync: usize,
549 #[cfg(feature = "Foundation")]
550 pub TryProposeNewTimeForMeetingAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, meeting: *mut ::core::ffi::c_void, newstarttime: super::super::Foundation::DateTime, newduration: super::super::Foundation::TimeSpan, subject: ::std::mem::MaybeUninit<::windows::core::HSTRING>, comment: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
551 #[cfg(not(feature = "Foundation"))]
552 TryProposeNewTimeForMeetingAsync: usize,
553 #[cfg(feature = "Foundation")]
554 pub MailboxChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phandler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT,
555 #[cfg(not(feature = "Foundation"))]
556 MailboxChanged: usize,
557 #[cfg(feature = "Foundation")]
558 pub RemoveMailboxChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT,
559 #[cfg(not(feature = "Foundation"))]
560 RemoveMailboxChanged: usize,
561 #[cfg(feature = "Foundation")]
562 pub SmartSendMessageAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, message: *mut ::core::ffi::c_void, smartsend: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
563 #[cfg(not(feature = "Foundation"))]
564 SmartSendMessageAsync: usize,
565 #[cfg(feature = "Foundation")]
566 pub TrySetAutoReplySettingsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, autoreplysettings: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
567 #[cfg(not(feature = "Foundation"))]
568 TrySetAutoReplySettingsAsync: usize,
569 #[cfg(feature = "Foundation")]
570 pub TryGetAutoReplySettingsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requestedformat: EmailMailboxAutoReplyMessageResponseKind, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
571 #[cfg(not(feature = "Foundation"))]
572 TryGetAutoReplySettingsAsync: usize,
573}
574#[doc(hidden)]
575#[repr(transparent)]
576pub struct IEmailMailbox2(::windows::core::IUnknown);
577unsafe impl ::windows::core::Interface for IEmailMailbox2 {
578 type Vtable = IEmailMailbox2_Vtbl;
579}
580impl ::core::clone::Clone for IEmailMailbox2 {
581 fn clone(&self) -> Self {
582 Self(self.0.clone())
583 }
584}
585unsafe impl ::windows::core::ComInterface for IEmailMailbox2 {
586 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x14f8e404_6ca2_4ab2_9241_79cd7bf46346);
587}
588#[repr(C)]
589#[doc(hidden)]
590pub struct IEmailMailbox2_Vtbl {
591 pub base__: ::windows::core::IInspectable_Vtbl,
592 pub LinkedMailboxId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
593 pub NetworkAccountId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
594 pub NetworkId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
595}
596#[doc(hidden)]
597#[repr(transparent)]
598pub struct IEmailMailbox3(::windows::core::IUnknown);
599unsafe impl ::windows::core::Interface for IEmailMailbox3 {
600 type Vtable = IEmailMailbox3_Vtbl;
601}
602impl ::core::clone::Clone for IEmailMailbox3 {
603 fn clone(&self) -> Self {
604 Self(self.0.clone())
605 }
606}
607unsafe impl ::windows::core::ComInterface for IEmailMailbox3 {
608 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3da5897b_458b_408a_8e37_ac8b05d8af56);
609}
610#[repr(C)]
611#[doc(hidden)]
612pub struct IEmailMailbox3_Vtbl {
613 pub base__: ::windows::core::IInspectable_Vtbl,
614 #[cfg(feature = "Foundation_Collections")]
615 pub ResolveRecipientsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, recipients: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
616 #[cfg(not(feature = "Foundation_Collections"))]
617 ResolveRecipientsAsync: usize,
618 #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))]
619 pub ValidateCertificatesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, certificates: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
620 #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))]
621 ValidateCertificatesAsync: usize,
622 #[cfg(feature = "Foundation")]
623 pub TryEmptyFolderAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folderid: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
624 #[cfg(not(feature = "Foundation"))]
625 TryEmptyFolderAsync: usize,
626 #[cfg(feature = "Foundation")]
627 pub TryCreateFolderAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parentfolderid: ::std::mem::MaybeUninit<::windows::core::HSTRING>, name: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
628 #[cfg(not(feature = "Foundation"))]
629 TryCreateFolderAsync: usize,
630 #[cfg(feature = "Foundation")]
631 pub TryDeleteFolderAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folderid: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
632 #[cfg(not(feature = "Foundation"))]
633 TryDeleteFolderAsync: usize,
634}
635#[doc(hidden)]
636#[repr(transparent)]
637pub struct IEmailMailbox4(::windows::core::IUnknown);
638unsafe impl ::windows::core::Interface for IEmailMailbox4 {
639 type Vtable = IEmailMailbox4_Vtbl;
640}
641impl ::core::clone::Clone for IEmailMailbox4 {
642 fn clone(&self) -> Self {
643 Self(self.0.clone())
644 }
645}
646unsafe impl ::windows::core::ComInterface for IEmailMailbox4 {
647 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5d1f301b_f222_48a7_b7b6_716356cd26a1);
648}
649#[repr(C)]
650#[doc(hidden)]
651pub struct IEmailMailbox4_Vtbl {
652 pub base__: ::windows::core::IInspectable_Vtbl,
653 #[cfg(feature = "Foundation")]
654 pub RegisterSyncManagerAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
655 #[cfg(not(feature = "Foundation"))]
656 RegisterSyncManagerAsync: usize,
657}
658#[doc(hidden)]
659#[repr(transparent)]
660pub struct IEmailMailbox5(::windows::core::IUnknown);
661unsafe impl ::windows::core::Interface for IEmailMailbox5 {
662 type Vtable = IEmailMailbox5_Vtbl;
663}
664impl ::core::clone::Clone for IEmailMailbox5 {
665 fn clone(&self) -> Self {
666 Self(self.0.clone())
667 }
668}
669unsafe impl ::windows::core::ComInterface for IEmailMailbox5 {
670 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x39967087_0092_49be_bd0e_5d4dc9d96d90);
671}
672#[repr(C)]
673#[doc(hidden)]
674pub struct IEmailMailbox5_Vtbl {
675 pub base__: ::windows::core::IInspectable_Vtbl,
676 pub GetChangeTracker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, identity: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
677}
678#[doc(hidden)]
679#[repr(transparent)]
680pub struct IEmailMailboxAction(::windows::core::IUnknown);
681unsafe impl ::windows::core::Interface for IEmailMailboxAction {
682 type Vtable = IEmailMailboxAction_Vtbl;
683}
684impl ::core::clone::Clone for IEmailMailboxAction {
685 fn clone(&self) -> Self {
686 Self(self.0.clone())
687 }
688}
689unsafe impl ::windows::core::ComInterface for IEmailMailboxAction {
690 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xac9889fa_21fa_4927_9210_d410582fdf3e);
691}
692#[repr(C)]
693#[doc(hidden)]
694pub struct IEmailMailboxAction_Vtbl {
695 pub base__: ::windows::core::IInspectable_Vtbl,
696 pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailMailboxActionKind) -> ::windows::core::HRESULT,
697 pub ChangeNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows::core::HRESULT,
698}
699#[doc(hidden)]
700#[repr(transparent)]
701pub struct IEmailMailboxAutoReply(::windows::core::IUnknown);
702unsafe impl ::windows::core::Interface for IEmailMailboxAutoReply {
703 type Vtable = IEmailMailboxAutoReply_Vtbl;
704}
705impl ::core::clone::Clone for IEmailMailboxAutoReply {
706 fn clone(&self) -> Self {
707 Self(self.0.clone())
708 }
709}
710unsafe impl ::windows::core::ComInterface for IEmailMailboxAutoReply {
711 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe223254c_8ab4_485b_b31f_04d15476bd59);
712}
713#[repr(C)]
714#[doc(hidden)]
715pub struct IEmailMailboxAutoReply_Vtbl {
716 pub base__: ::windows::core::IInspectable_Vtbl,
717 pub IsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
718 pub SetIsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
719 pub Response: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
720 pub SetResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
721}
722#[doc(hidden)]
723#[repr(transparent)]
724pub struct IEmailMailboxAutoReplySettings(::windows::core::IUnknown);
725unsafe impl ::windows::core::Interface for IEmailMailboxAutoReplySettings {
726 type Vtable = IEmailMailboxAutoReplySettings_Vtbl;
727}
728impl ::core::clone::Clone for IEmailMailboxAutoReplySettings {
729 fn clone(&self) -> Self {
730 Self(self.0.clone())
731 }
732}
733unsafe impl ::windows::core::ComInterface for IEmailMailboxAutoReplySettings {
734 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa87a9fa8_0ac6_4b77_ba77_a6b99e9a27b8);
735}
736#[repr(C)]
737#[doc(hidden)]
738pub struct IEmailMailboxAutoReplySettings_Vtbl {
739 pub base__: ::windows::core::IInspectable_Vtbl,
740 pub IsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
741 pub SetIsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
742 pub ResponseKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailMailboxAutoReplyMessageResponseKind) -> ::windows::core::HRESULT,
743 pub SetResponseKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: EmailMailboxAutoReplyMessageResponseKind) -> ::windows::core::HRESULT,
744 #[cfg(feature = "Foundation")]
745 pub StartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
746 #[cfg(not(feature = "Foundation"))]
747 StartTime: usize,
748 #[cfg(feature = "Foundation")]
749 pub SetStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
750 #[cfg(not(feature = "Foundation"))]
751 SetStartTime: usize,
752 #[cfg(feature = "Foundation")]
753 pub EndTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
754 #[cfg(not(feature = "Foundation"))]
755 EndTime: usize,
756 #[cfg(feature = "Foundation")]
757 pub SetEndTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
758 #[cfg(not(feature = "Foundation"))]
759 SetEndTime: usize,
760 pub InternalReply: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
761 pub KnownExternalReply: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
762 pub UnknownExternalReply: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
763}
764#[doc(hidden)]
765#[repr(transparent)]
766pub struct IEmailMailboxCapabilities(::windows::core::IUnknown);
767unsafe impl ::windows::core::Interface for IEmailMailboxCapabilities {
768 type Vtable = IEmailMailboxCapabilities_Vtbl;
769}
770impl ::core::clone::Clone for IEmailMailboxCapabilities {
771 fn clone(&self) -> Self {
772 Self(self.0.clone())
773 }
774}
775unsafe impl ::windows::core::ComInterface for IEmailMailboxCapabilities {
776 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xeedec3a6_89db_4305_82c4_439e0a33da11);
777}
778#[repr(C)]
779#[doc(hidden)]
780pub struct IEmailMailboxCapabilities_Vtbl {
781 pub base__: ::windows::core::IInspectable_Vtbl,
782 pub CanForwardMeetings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
783 pub CanGetAndSetExternalAutoReplies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
784 pub CanGetAndSetInternalAutoReplies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
785 pub CanUpdateMeetingResponses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
786 pub CanServerSearchFolders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
787 pub CanServerSearchMailbox: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
788 pub CanProposeNewTimeForMeetings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
789 pub CanSmartSend: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
790}
791#[doc(hidden)]
792#[repr(transparent)]
793pub struct IEmailMailboxCapabilities2(::windows::core::IUnknown);
794unsafe impl ::windows::core::Interface for IEmailMailboxCapabilities2 {
795 type Vtable = IEmailMailboxCapabilities2_Vtbl;
796}
797impl ::core::clone::Clone for IEmailMailboxCapabilities2 {
798 fn clone(&self) -> Self {
799 Self(self.0.clone())
800 }
801}
802unsafe impl ::windows::core::ComInterface for IEmailMailboxCapabilities2 {
803 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x69723ee4_2f21_4cbc_88ab_2e7602a4806b);
804}
805#[repr(C)]
806#[doc(hidden)]
807pub struct IEmailMailboxCapabilities2_Vtbl {
808 pub base__: ::windows::core::IInspectable_Vtbl,
809 pub CanResolveRecipients: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
810 pub CanValidateCertificates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
811 pub CanEmptyFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
812 pub CanCreateFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
813 pub CanDeleteFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
814 pub CanMoveFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
815}
816#[doc(hidden)]
817#[repr(transparent)]
818pub struct IEmailMailboxCapabilities3(::windows::core::IUnknown);
819unsafe impl ::windows::core::Interface for IEmailMailboxCapabilities3 {
820 type Vtable = IEmailMailboxCapabilities3_Vtbl;
821}
822impl ::core::clone::Clone for IEmailMailboxCapabilities3 {
823 fn clone(&self) -> Self {
824 Self(self.0.clone())
825 }
826}
827unsafe impl ::windows::core::ComInterface for IEmailMailboxCapabilities3 {
828 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf690e944_56f2_45aa_872c_0ce9f3db0b5c);
829}
830#[repr(C)]
831#[doc(hidden)]
832pub struct IEmailMailboxCapabilities3_Vtbl {
833 pub base__: ::windows::core::IInspectable_Vtbl,
834 pub SetCanForwardMeetings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
835 pub SetCanGetAndSetExternalAutoReplies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
836 pub SetCanGetAndSetInternalAutoReplies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
837 pub SetCanUpdateMeetingResponses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
838 pub SetCanServerSearchFolders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
839 pub SetCanServerSearchMailbox: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
840 pub SetCanProposeNewTimeForMeetings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
841 pub SetCanSmartSend: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
842 pub SetCanResolveRecipients: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
843 pub SetCanValidateCertificates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
844 pub SetCanEmptyFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
845 pub SetCanCreateFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
846 pub SetCanDeleteFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
847 pub SetCanMoveFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
848}
849#[doc(hidden)]
850#[repr(transparent)]
851pub struct IEmailMailboxChange(::windows::core::IUnknown);
852unsafe impl ::windows::core::Interface for IEmailMailboxChange {
853 type Vtable = IEmailMailboxChange_Vtbl;
854}
855impl ::core::clone::Clone for IEmailMailboxChange {
856 fn clone(&self) -> Self {
857 Self(self.0.clone())
858 }
859}
860unsafe impl ::windows::core::ComInterface for IEmailMailboxChange {
861 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x61edf54b_11ef_400c_adde_8cde65c85e66);
862}
863#[repr(C)]
864#[doc(hidden)]
865pub struct IEmailMailboxChange_Vtbl {
866 pub base__: ::windows::core::IInspectable_Vtbl,
867 pub ChangeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailMailboxChangeType) -> ::windows::core::HRESULT,
868 #[cfg(feature = "Foundation_Collections")]
869 pub MailboxActions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
870 #[cfg(not(feature = "Foundation_Collections"))]
871 MailboxActions: usize,
872 pub Message: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
873 pub Folder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
874}
875#[doc(hidden)]
876#[repr(transparent)]
877pub struct IEmailMailboxChangeReader(::windows::core::IUnknown);
878unsafe impl ::windows::core::Interface for IEmailMailboxChangeReader {
879 type Vtable = IEmailMailboxChangeReader_Vtbl;
880}
881impl ::core::clone::Clone for IEmailMailboxChangeReader {
882 fn clone(&self) -> Self {
883 Self(self.0.clone())
884 }
885}
886unsafe impl ::windows::core::ComInterface for IEmailMailboxChangeReader {
887 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbdbd0ebb_c53d_4331_97be_be75a2146a75);
888}
889#[repr(C)]
890#[doc(hidden)]
891pub struct IEmailMailboxChangeReader_Vtbl {
892 pub base__: ::windows::core::IInspectable_Vtbl,
893 pub AcceptChanges: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
894 pub AcceptChangesThrough: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lastchangetoacknowledge: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
895 #[cfg(feature = "Foundation_Collections")]
896 pub ReadBatchAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
897 #[cfg(not(feature = "Foundation_Collections"))]
898 ReadBatchAsync: usize,
899}
900#[doc(hidden)]
901#[repr(transparent)]
902pub struct IEmailMailboxChangeTracker(::windows::core::IUnknown);
903unsafe impl ::windows::core::Interface for IEmailMailboxChangeTracker {
904 type Vtable = IEmailMailboxChangeTracker_Vtbl;
905}
906impl ::core::clone::Clone for IEmailMailboxChangeTracker {
907 fn clone(&self) -> Self {
908 Self(self.0.clone())
909 }
910}
911unsafe impl ::windows::core::ComInterface for IEmailMailboxChangeTracker {
912 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7ae48638_5166_42b7_8882_fd21c92bdd4b);
913}
914#[repr(C)]
915#[doc(hidden)]
916pub struct IEmailMailboxChangeTracker_Vtbl {
917 pub base__: ::windows::core::IInspectable_Vtbl,
918 pub IsTracking: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
919 pub Enable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
920 pub GetChangeReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
921 pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
922}
923#[doc(hidden)]
924#[repr(transparent)]
925pub struct IEmailMailboxChangedDeferral(::windows::core::IUnknown);
926unsafe impl ::windows::core::Interface for IEmailMailboxChangedDeferral {
927 type Vtable = IEmailMailboxChangedDeferral_Vtbl;
928}
929impl ::core::clone::Clone for IEmailMailboxChangedDeferral {
930 fn clone(&self) -> Self {
931 Self(self.0.clone())
932 }
933}
934unsafe impl ::windows::core::ComInterface for IEmailMailboxChangedDeferral {
935 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x779a74c1_97c5_4b54_b30d_306232623e6d);
936}
937#[repr(C)]
938#[doc(hidden)]
939pub struct IEmailMailboxChangedDeferral_Vtbl {
940 pub base__: ::windows::core::IInspectable_Vtbl,
941 pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
942}
943#[doc(hidden)]
944#[repr(transparent)]
945pub struct IEmailMailboxChangedEventArgs(::windows::core::IUnknown);
946unsafe impl ::windows::core::Interface for IEmailMailboxChangedEventArgs {
947 type Vtable = IEmailMailboxChangedEventArgs_Vtbl;
948}
949impl ::core::clone::Clone for IEmailMailboxChangedEventArgs {
950 fn clone(&self) -> Self {
951 Self(self.0.clone())
952 }
953}
954unsafe impl ::windows::core::ComInterface for IEmailMailboxChangedEventArgs {
955 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3cfd5f6e_01d4_4e4a_a44c_b22dd42ec207);
956}
957#[repr(C)]
958#[doc(hidden)]
959pub struct IEmailMailboxChangedEventArgs_Vtbl {
960 pub base__: ::windows::core::IInspectable_Vtbl,
961 pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
962}
963#[doc(hidden)]
964#[repr(transparent)]
965pub struct IEmailMailboxCreateFolderResult(::windows::core::IUnknown);
966unsafe impl ::windows::core::Interface for IEmailMailboxCreateFolderResult {
967 type Vtable = IEmailMailboxCreateFolderResult_Vtbl;
968}
969impl ::core::clone::Clone for IEmailMailboxCreateFolderResult {
970 fn clone(&self) -> Self {
971 Self(self.0.clone())
972 }
973}
974unsafe impl ::windows::core::ComInterface for IEmailMailboxCreateFolderResult {
975 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb228557f_2885_4998_b595_8a2d374ce950);
976}
977#[repr(C)]
978#[doc(hidden)]
979pub struct IEmailMailboxCreateFolderResult_Vtbl {
980 pub base__: ::windows::core::IInspectable_Vtbl,
981 pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailMailboxCreateFolderStatus) -> ::windows::core::HRESULT,
982 pub Folder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
983}
984#[doc(hidden)]
985#[repr(transparent)]
986pub struct IEmailMailboxPolicies(::windows::core::IUnknown);
987unsafe impl ::windows::core::Interface for IEmailMailboxPolicies {
988 type Vtable = IEmailMailboxPolicies_Vtbl;
989}
990impl ::core::clone::Clone for IEmailMailboxPolicies {
991 fn clone(&self) -> Self {
992 Self(self.0.clone())
993 }
994}
995unsafe impl ::windows::core::ComInterface for IEmailMailboxPolicies {
996 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1f3345c5_1c3b_4dc7_b410_6373783e545d);
997}
998#[repr(C)]
999#[doc(hidden)]
1000pub struct IEmailMailboxPolicies_Vtbl {
1001 pub base__: ::windows::core::IInspectable_Vtbl,
1002 pub AllowedSmimeEncryptionAlgorithmNegotiation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation) -> ::windows::core::HRESULT,
1003 pub AllowSmimeSoftCertificates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
1004 #[cfg(feature = "Foundation")]
1005 pub RequiredSmimeEncryptionAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1006 #[cfg(not(feature = "Foundation"))]
1007 RequiredSmimeEncryptionAlgorithm: usize,
1008 #[cfg(feature = "Foundation")]
1009 pub RequiredSmimeSigningAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1010 #[cfg(not(feature = "Foundation"))]
1011 RequiredSmimeSigningAlgorithm: usize,
1012}
1013#[doc(hidden)]
1014#[repr(transparent)]
1015pub struct IEmailMailboxPolicies2(::windows::core::IUnknown);
1016unsafe impl ::windows::core::Interface for IEmailMailboxPolicies2 {
1017 type Vtable = IEmailMailboxPolicies2_Vtbl;
1018}
1019impl ::core::clone::Clone for IEmailMailboxPolicies2 {
1020 fn clone(&self) -> Self {
1021 Self(self.0.clone())
1022 }
1023}
1024unsafe impl ::windows::core::ComInterface for IEmailMailboxPolicies2 {
1025 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbab58afb_a14b_497c_a8e2_55eac29cc4b5);
1026}
1027#[repr(C)]
1028#[doc(hidden)]
1029pub struct IEmailMailboxPolicies2_Vtbl {
1030 pub base__: ::windows::core::IInspectable_Vtbl,
1031 pub MustEncryptSmimeMessages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
1032 pub MustSignSmimeMessages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
1033}
1034#[doc(hidden)]
1035#[repr(transparent)]
1036pub struct IEmailMailboxPolicies3(::windows::core::IUnknown);
1037unsafe impl ::windows::core::Interface for IEmailMailboxPolicies3 {
1038 type Vtable = IEmailMailboxPolicies3_Vtbl;
1039}
1040impl ::core::clone::Clone for IEmailMailboxPolicies3 {
1041 fn clone(&self) -> Self {
1042 Self(self.0.clone())
1043 }
1044}
1045unsafe impl ::windows::core::ComInterface for IEmailMailboxPolicies3 {
1046 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbdd4a01f_4867_414a_81a2_803919c44191);
1047}
1048#[repr(C)]
1049#[doc(hidden)]
1050pub struct IEmailMailboxPolicies3_Vtbl {
1051 pub base__: ::windows::core::IInspectable_Vtbl,
1052 pub SetAllowedSmimeEncryptionAlgorithmNegotiation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation) -> ::windows::core::HRESULT,
1053 pub SetAllowSmimeSoftCertificates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
1054 #[cfg(feature = "Foundation")]
1055 pub SetRequiredSmimeEncryptionAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1056 #[cfg(not(feature = "Foundation"))]
1057 SetRequiredSmimeEncryptionAlgorithm: usize,
1058 #[cfg(feature = "Foundation")]
1059 pub SetRequiredSmimeSigningAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1060 #[cfg(not(feature = "Foundation"))]
1061 SetRequiredSmimeSigningAlgorithm: usize,
1062 pub SetMustEncryptSmimeMessages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
1063 pub SetMustSignSmimeMessages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
1064}
1065#[doc(hidden)]
1066#[repr(transparent)]
1067pub struct IEmailMailboxSyncManager(::windows::core::IUnknown);
1068unsafe impl ::windows::core::Interface for IEmailMailboxSyncManager {
1069 type Vtable = IEmailMailboxSyncManager_Vtbl;
1070}
1071impl ::core::clone::Clone for IEmailMailboxSyncManager {
1072 fn clone(&self) -> Self {
1073 Self(self.0.clone())
1074 }
1075}
1076unsafe impl ::windows::core::ComInterface for IEmailMailboxSyncManager {
1077 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x517ac55a_3591_4b5d_85bc_c71dde862263);
1078}
1079#[repr(C)]
1080#[doc(hidden)]
1081pub struct IEmailMailboxSyncManager_Vtbl {
1082 pub base__: ::windows::core::IInspectable_Vtbl,
1083 pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailMailboxSyncStatus) -> ::windows::core::HRESULT,
1084 #[cfg(feature = "Foundation")]
1085 pub LastSuccessfulSyncTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows::core::HRESULT,
1086 #[cfg(not(feature = "Foundation"))]
1087 LastSuccessfulSyncTime: usize,
1088 #[cfg(feature = "Foundation")]
1089 pub LastAttemptedSyncTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows::core::HRESULT,
1090 #[cfg(not(feature = "Foundation"))]
1091 LastAttemptedSyncTime: usize,
1092 #[cfg(feature = "Foundation")]
1093 pub SyncAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1094 #[cfg(not(feature = "Foundation"))]
1095 SyncAsync: usize,
1096 #[cfg(feature = "Foundation")]
1097 pub SyncStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT,
1098 #[cfg(not(feature = "Foundation"))]
1099 SyncStatusChanged: usize,
1100 #[cfg(feature = "Foundation")]
1101 pub RemoveSyncStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT,
1102 #[cfg(not(feature = "Foundation"))]
1103 RemoveSyncStatusChanged: usize,
1104}
1105#[doc(hidden)]
1106#[repr(transparent)]
1107pub struct IEmailMailboxSyncManager2(::windows::core::IUnknown);
1108unsafe impl ::windows::core::Interface for IEmailMailboxSyncManager2 {
1109 type Vtable = IEmailMailboxSyncManager2_Vtbl;
1110}
1111impl ::core::clone::Clone for IEmailMailboxSyncManager2 {
1112 fn clone(&self) -> Self {
1113 Self(self.0.clone())
1114 }
1115}
1116unsafe impl ::windows::core::ComInterface for IEmailMailboxSyncManager2 {
1117 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcd8dc97e_95c1_4f89_81b7_e6aecb6695fc);
1118}
1119#[repr(C)]
1120#[doc(hidden)]
1121pub struct IEmailMailboxSyncManager2_Vtbl {
1122 pub base__: ::windows::core::IInspectable_Vtbl,
1123 pub SetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: EmailMailboxSyncStatus) -> ::windows::core::HRESULT,
1124 #[cfg(feature = "Foundation")]
1125 pub SetLastSuccessfulSyncTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::DateTime) -> ::windows::core::HRESULT,
1126 #[cfg(not(feature = "Foundation"))]
1127 SetLastSuccessfulSyncTime: usize,
1128 #[cfg(feature = "Foundation")]
1129 pub SetLastAttemptedSyncTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::DateTime) -> ::windows::core::HRESULT,
1130 #[cfg(not(feature = "Foundation"))]
1131 SetLastAttemptedSyncTime: usize,
1132}
1133#[doc(hidden)]
1134#[repr(transparent)]
1135pub struct IEmailManagerForUser(::windows::core::IUnknown);
1136unsafe impl ::windows::core::Interface for IEmailManagerForUser {
1137 type Vtable = IEmailManagerForUser_Vtbl;
1138}
1139impl ::core::clone::Clone for IEmailManagerForUser {
1140 fn clone(&self) -> Self {
1141 Self(self.0.clone())
1142 }
1143}
1144unsafe impl ::windows::core::ComInterface for IEmailManagerForUser {
1145 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf773de9f_3ca5_4b0f_90c1_156e40174ce5);
1146}
1147#[repr(C)]
1148#[doc(hidden)]
1149pub struct IEmailManagerForUser_Vtbl {
1150 pub base__: ::windows::core::IInspectable_Vtbl,
1151 #[cfg(feature = "Foundation")]
1152 pub ShowComposeNewEmailAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, message: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1153 #[cfg(not(feature = "Foundation"))]
1154 ShowComposeNewEmailAsync: usize,
1155 #[cfg(feature = "Foundation")]
1156 pub RequestStoreAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, accesstype: EmailStoreAccessType, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1157 #[cfg(not(feature = "Foundation"))]
1158 RequestStoreAsync: usize,
1159 #[cfg(feature = "System")]
1160 pub User: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1161 #[cfg(not(feature = "System"))]
1162 User: usize,
1163}
1164#[doc(hidden)]
1165#[repr(transparent)]
1166pub struct IEmailManagerStatics(::windows::core::IUnknown);
1167unsafe impl ::windows::core::Interface for IEmailManagerStatics {
1168 type Vtable = IEmailManagerStatics_Vtbl;
1169}
1170impl ::core::clone::Clone for IEmailManagerStatics {
1171 fn clone(&self) -> Self {
1172 Self(self.0.clone())
1173 }
1174}
1175unsafe impl ::windows::core::ComInterface for IEmailManagerStatics {
1176 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf5128654_55c5_4890_a824_216c2618ce7f);
1177}
1178#[repr(C)]
1179#[doc(hidden)]
1180pub struct IEmailManagerStatics_Vtbl {
1181 pub base__: ::windows::core::IInspectable_Vtbl,
1182 #[cfg(feature = "Foundation")]
1183 pub ShowComposeNewEmailAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, message: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1184 #[cfg(not(feature = "Foundation"))]
1185 ShowComposeNewEmailAsync: usize,
1186}
1187#[doc(hidden)]
1188#[repr(transparent)]
1189pub struct IEmailManagerStatics2(::windows::core::IUnknown);
1190unsafe impl ::windows::core::Interface for IEmailManagerStatics2 {
1191 type Vtable = IEmailManagerStatics2_Vtbl;
1192}
1193impl ::core::clone::Clone for IEmailManagerStatics2 {
1194 fn clone(&self) -> Self {
1195 Self(self.0.clone())
1196 }
1197}
1198unsafe impl ::windows::core::ComInterface for IEmailManagerStatics2 {
1199 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xac052da3_b194_425d_b6d9_d0f04135eda2);
1200}
1201#[repr(C)]
1202#[doc(hidden)]
1203pub struct IEmailManagerStatics2_Vtbl {
1204 pub base__: ::windows::core::IInspectable_Vtbl,
1205 #[cfg(feature = "Foundation")]
1206 pub RequestStoreAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, accesstype: EmailStoreAccessType, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1207 #[cfg(not(feature = "Foundation"))]
1208 RequestStoreAsync: usize,
1209}
1210#[doc(hidden)]
1211#[repr(transparent)]
1212pub struct IEmailManagerStatics3(::windows::core::IUnknown);
1213unsafe impl ::windows::core::Interface for IEmailManagerStatics3 {
1214 type Vtable = IEmailManagerStatics3_Vtbl;
1215}
1216impl ::core::clone::Clone for IEmailManagerStatics3 {
1217 fn clone(&self) -> Self {
1218 Self(self.0.clone())
1219 }
1220}
1221unsafe impl ::windows::core::ComInterface for IEmailManagerStatics3 {
1222 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4a722395_843e_4945_b3aa_349e07a362c5);
1223}
1224#[repr(C)]
1225#[doc(hidden)]
1226pub struct IEmailManagerStatics3_Vtbl {
1227 pub base__: ::windows::core::IInspectable_Vtbl,
1228 #[cfg(feature = "System")]
1229 pub GetForUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1230 #[cfg(not(feature = "System"))]
1231 GetForUser: usize,
1232}
1233#[doc(hidden)]
1234#[repr(transparent)]
1235pub struct IEmailMeetingInfo(::windows::core::IUnknown);
1236unsafe impl ::windows::core::Interface for IEmailMeetingInfo {
1237 type Vtable = IEmailMeetingInfo_Vtbl;
1238}
1239impl ::core::clone::Clone for IEmailMeetingInfo {
1240 fn clone(&self) -> Self {
1241 Self(self.0.clone())
1242 }
1243}
1244unsafe impl ::windows::core::ComInterface for IEmailMeetingInfo {
1245 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x31c03fa9_7933_415f_a275_d165ba07026b);
1246}
1247#[repr(C)]
1248#[doc(hidden)]
1249pub struct IEmailMeetingInfo_Vtbl {
1250 pub base__: ::windows::core::IInspectable_Vtbl,
1251 pub AllowNewTimeProposal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
1252 pub SetAllowNewTimeProposal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
1253 pub AppointmentRoamingId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1254 pub SetAppointmentRoamingId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1255 #[cfg(feature = "Foundation")]
1256 pub AppointmentOriginalStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1257 #[cfg(not(feature = "Foundation"))]
1258 AppointmentOriginalStartTime: usize,
1259 #[cfg(feature = "Foundation")]
1260 pub SetAppointmentOriginalStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1261 #[cfg(not(feature = "Foundation"))]
1262 SetAppointmentOriginalStartTime: usize,
1263 #[cfg(feature = "Foundation")]
1264 pub Duration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows::core::HRESULT,
1265 #[cfg(not(feature = "Foundation"))]
1266 Duration: usize,
1267 #[cfg(feature = "Foundation")]
1268 pub SetDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::TimeSpan) -> ::windows::core::HRESULT,
1269 #[cfg(not(feature = "Foundation"))]
1270 SetDuration: usize,
1271 pub IsAllDay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
1272 pub SetIsAllDay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
1273 pub IsResponseRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
1274 pub SetIsResponseRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
1275 pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1276 pub SetLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1277 #[cfg(feature = "Foundation")]
1278 pub ProposedStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1279 #[cfg(not(feature = "Foundation"))]
1280 ProposedStartTime: usize,
1281 #[cfg(feature = "Foundation")]
1282 pub SetProposedStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, proposedstarttime: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1283 #[cfg(not(feature = "Foundation"))]
1284 SetProposedStartTime: usize,
1285 #[cfg(feature = "Foundation")]
1286 pub ProposedDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1287 #[cfg(not(feature = "Foundation"))]
1288 ProposedDuration: usize,
1289 #[cfg(feature = "Foundation")]
1290 pub SetProposedDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, duration: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1291 #[cfg(not(feature = "Foundation"))]
1292 SetProposedDuration: usize,
1293 #[cfg(feature = "Foundation")]
1294 pub RecurrenceStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1295 #[cfg(not(feature = "Foundation"))]
1296 RecurrenceStartTime: usize,
1297 #[cfg(feature = "Foundation")]
1298 pub SetRecurrenceStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1299 #[cfg(not(feature = "Foundation"))]
1300 SetRecurrenceStartTime: usize,
1301 #[cfg(feature = "ApplicationModel_Appointments")]
1302 pub Recurrence: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1303 #[cfg(not(feature = "ApplicationModel_Appointments"))]
1304 Recurrence: usize,
1305 #[cfg(feature = "ApplicationModel_Appointments")]
1306 pub SetRecurrence: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1307 #[cfg(not(feature = "ApplicationModel_Appointments"))]
1308 SetRecurrence: usize,
1309 pub RemoteChangeNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows::core::HRESULT,
1310 pub SetRemoteChangeNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u64) -> ::windows::core::HRESULT,
1311 #[cfg(feature = "Foundation")]
1312 pub StartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows::core::HRESULT,
1313 #[cfg(not(feature = "Foundation"))]
1314 StartTime: usize,
1315 #[cfg(feature = "Foundation")]
1316 pub SetStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::DateTime) -> ::windows::core::HRESULT,
1317 #[cfg(not(feature = "Foundation"))]
1318 SetStartTime: usize,
1319}
1320#[doc(hidden)]
1321#[repr(transparent)]
1322pub struct IEmailMeetingInfo2(::windows::core::IUnknown);
1323unsafe impl ::windows::core::Interface for IEmailMeetingInfo2 {
1324 type Vtable = IEmailMeetingInfo2_Vtbl;
1325}
1326impl ::core::clone::Clone for IEmailMeetingInfo2 {
1327 fn clone(&self) -> Self {
1328 Self(self.0.clone())
1329 }
1330}
1331unsafe impl ::windows::core::ComInterface for IEmailMeetingInfo2 {
1332 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7e59386d_b0d9_4fe5_867c_e31ed2b588b8);
1333}
1334#[repr(C)]
1335#[doc(hidden)]
1336pub struct IEmailMeetingInfo2_Vtbl {
1337 pub base__: ::windows::core::IInspectable_Vtbl,
1338 pub IsReportedOutOfDateByServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
1339}
1340#[doc(hidden)]
1341#[repr(transparent)]
1342pub struct IEmailMessage(::windows::core::IUnknown);
1343unsafe impl ::windows::core::Interface for IEmailMessage {
1344 type Vtable = IEmailMessage_Vtbl;
1345}
1346impl ::core::clone::Clone for IEmailMessage {
1347 fn clone(&self) -> Self {
1348 Self(self.0.clone())
1349 }
1350}
1351unsafe impl ::windows::core::ComInterface for IEmailMessage {
1352 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6c6d948d_80b5_48f8_b0b1_e04e430f44e5);
1353}
1354#[repr(C)]
1355#[doc(hidden)]
1356pub struct IEmailMessage_Vtbl {
1357 pub base__: ::windows::core::IInspectable_Vtbl,
1358 pub Subject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1359 pub SetSubject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1360 pub Body: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1361 pub SetBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1362 #[cfg(feature = "Foundation_Collections")]
1363 pub To: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1364 #[cfg(not(feature = "Foundation_Collections"))]
1365 To: usize,
1366 #[cfg(feature = "Foundation_Collections")]
1367 pub CC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1368 #[cfg(not(feature = "Foundation_Collections"))]
1369 CC: usize,
1370 #[cfg(feature = "Foundation_Collections")]
1371 pub Bcc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1372 #[cfg(not(feature = "Foundation_Collections"))]
1373 Bcc: usize,
1374 #[cfg(feature = "Foundation_Collections")]
1375 pub Attachments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1376 #[cfg(not(feature = "Foundation_Collections"))]
1377 Attachments: usize,
1378}
1379#[doc(hidden)]
1380#[repr(transparent)]
1381pub struct IEmailMessage2(::windows::core::IUnknown);
1382unsafe impl ::windows::core::Interface for IEmailMessage2 {
1383 type Vtable = IEmailMessage2_Vtbl;
1384}
1385impl ::core::clone::Clone for IEmailMessage2 {
1386 fn clone(&self) -> Self {
1387 Self(self.0.clone())
1388 }
1389}
1390unsafe impl ::windows::core::ComInterface for IEmailMessage2 {
1391 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfdc8248b_9f1a_44db_bd3c_65c384770f86);
1392}
1393#[repr(C)]
1394#[doc(hidden)]
1395pub struct IEmailMessage2_Vtbl {
1396 pub base__: ::windows::core::IInspectable_Vtbl,
1397 pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1398 pub RemoteId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1399 pub SetRemoteId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1400 pub MailboxId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1401 pub ConversationId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1402 pub FolderId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1403 pub AllowInternetImages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
1404 pub SetAllowInternetImages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
1405 pub ChangeNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows::core::HRESULT,
1406 pub DownloadState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailMessageDownloadState) -> ::windows::core::HRESULT,
1407 pub SetDownloadState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: EmailMessageDownloadState) -> ::windows::core::HRESULT,
1408 pub EstimatedDownloadSizeInBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT,
1409 pub SetEstimatedDownloadSizeInBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows::core::HRESULT,
1410 pub FlagState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailFlagState) -> ::windows::core::HRESULT,
1411 pub SetFlagState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: EmailFlagState) -> ::windows::core::HRESULT,
1412 pub HasPartialBodies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
1413 pub Importance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailImportance) -> ::windows::core::HRESULT,
1414 pub SetImportance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: EmailImportance) -> ::windows::core::HRESULT,
1415 pub InResponseToMessageId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1416 pub IrmInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1417 pub SetIrmInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1418 pub IsDraftMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
1419 pub IsRead: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
1420 pub SetIsRead: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
1421 pub IsSeen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
1422 pub SetIsSeen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
1423 pub IsServerSearchMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
1424 pub IsSmartSendable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
1425 pub MessageClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1426 pub SetMessageClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1427 pub NormalizedSubject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1428 pub OriginalCodePage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT,
1429 pub SetOriginalCodePage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT,
1430 pub Preview: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1431 pub SetPreview: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1432 pub LastResponseKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailMessageResponseKind) -> ::windows::core::HRESULT,
1433 pub SetLastResponseKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: EmailMessageResponseKind) -> ::windows::core::HRESULT,
1434 pub Sender: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1435 pub SetSender: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1436 #[cfg(feature = "Foundation")]
1437 pub SentTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1438 #[cfg(not(feature = "Foundation"))]
1439 SentTime: usize,
1440 #[cfg(feature = "Foundation")]
1441 pub SetSentTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1442 #[cfg(not(feature = "Foundation"))]
1443 SetSentTime: usize,
1444 pub MeetingInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1445 pub SetMeetingInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1446 #[cfg(feature = "Storage_Streams")]
1447 pub GetBodyStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: EmailMessageBodyKind, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1448 #[cfg(not(feature = "Storage_Streams"))]
1449 GetBodyStream: usize,
1450 #[cfg(feature = "Storage_Streams")]
1451 pub SetBodyStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: EmailMessageBodyKind, stream: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1452 #[cfg(not(feature = "Storage_Streams"))]
1453 SetBodyStream: usize,
1454}
1455#[doc(hidden)]
1456#[repr(transparent)]
1457pub struct IEmailMessage3(::windows::core::IUnknown);
1458unsafe impl ::windows::core::Interface for IEmailMessage3 {
1459 type Vtable = IEmailMessage3_Vtbl;
1460}
1461impl ::core::clone::Clone for IEmailMessage3 {
1462 fn clone(&self) -> Self {
1463 Self(self.0.clone())
1464 }
1465}
1466unsafe impl ::windows::core::ComInterface for IEmailMessage3 {
1467 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa1ea675c_e598_4d29_a018_fc7b7eece0a1);
1468}
1469#[repr(C)]
1470#[doc(hidden)]
1471pub struct IEmailMessage3_Vtbl {
1472 pub base__: ::windows::core::IInspectable_Vtbl,
1473 #[cfg(feature = "Storage_Streams")]
1474 pub SmimeData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1475 #[cfg(not(feature = "Storage_Streams"))]
1476 SmimeData: usize,
1477 #[cfg(feature = "Storage_Streams")]
1478 pub SetSmimeData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1479 #[cfg(not(feature = "Storage_Streams"))]
1480 SetSmimeData: usize,
1481 pub SmimeKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailMessageSmimeKind) -> ::windows::core::HRESULT,
1482 pub SetSmimeKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: EmailMessageSmimeKind) -> ::windows::core::HRESULT,
1483}
1484#[doc(hidden)]
1485#[repr(transparent)]
1486pub struct IEmailMessage4(::windows::core::IUnknown);
1487unsafe impl ::windows::core::Interface for IEmailMessage4 {
1488 type Vtable = IEmailMessage4_Vtbl;
1489}
1490impl ::core::clone::Clone for IEmailMessage4 {
1491 fn clone(&self) -> Self {
1492 Self(self.0.clone())
1493 }
1494}
1495unsafe impl ::windows::core::ComInterface for IEmailMessage4 {
1496 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x317cf181_3e7f_4a05_8394_3e10336dd435);
1497}
1498#[repr(C)]
1499#[doc(hidden)]
1500pub struct IEmailMessage4_Vtbl {
1501 pub base__: ::windows::core::IInspectable_Vtbl,
1502 #[cfg(feature = "Foundation_Collections")]
1503 pub ReplyTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1504 #[cfg(not(feature = "Foundation_Collections"))]
1505 ReplyTo: usize,
1506 pub SentRepresenting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1507 pub SetSentRepresenting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1508}
1509#[doc(hidden)]
1510#[repr(transparent)]
1511pub struct IEmailMessageBatch(::windows::core::IUnknown);
1512unsafe impl ::windows::core::Interface for IEmailMessageBatch {
1513 type Vtable = IEmailMessageBatch_Vtbl;
1514}
1515impl ::core::clone::Clone for IEmailMessageBatch {
1516 fn clone(&self) -> Self {
1517 Self(self.0.clone())
1518 }
1519}
1520unsafe impl ::windows::core::ComInterface for IEmailMessageBatch {
1521 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x605cd08f_25d9_4f1b_9e51_0514c0149653);
1522}
1523#[repr(C)]
1524#[doc(hidden)]
1525pub struct IEmailMessageBatch_Vtbl {
1526 pub base__: ::windows::core::IInspectable_Vtbl,
1527 #[cfg(feature = "Foundation_Collections")]
1528 pub Messages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1529 #[cfg(not(feature = "Foundation_Collections"))]
1530 Messages: usize,
1531 pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailBatchStatus) -> ::windows::core::HRESULT,
1532}
1533#[doc(hidden)]
1534#[repr(transparent)]
1535pub struct IEmailMessageReader(::windows::core::IUnknown);
1536unsafe impl ::windows::core::Interface for IEmailMessageReader {
1537 type Vtable = IEmailMessageReader_Vtbl;
1538}
1539impl ::core::clone::Clone for IEmailMessageReader {
1540 fn clone(&self) -> Self {
1541 Self(self.0.clone())
1542 }
1543}
1544unsafe impl ::windows::core::ComInterface for IEmailMessageReader {
1545 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2f4abe9f_6213_4a85_a3b0_f92d1a839d19);
1546}
1547#[repr(C)]
1548#[doc(hidden)]
1549pub struct IEmailMessageReader_Vtbl {
1550 pub base__: ::windows::core::IInspectable_Vtbl,
1551 #[cfg(feature = "Foundation")]
1552 pub ReadBatchAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1553 #[cfg(not(feature = "Foundation"))]
1554 ReadBatchAsync: usize,
1555}
1556#[doc(hidden)]
1557#[repr(transparent)]
1558pub struct IEmailQueryOptions(::windows::core::IUnknown);
1559unsafe impl ::windows::core::Interface for IEmailQueryOptions {
1560 type Vtable = IEmailQueryOptions_Vtbl;
1561}
1562impl ::core::clone::Clone for IEmailQueryOptions {
1563 fn clone(&self) -> Self {
1564 Self(self.0.clone())
1565 }
1566}
1567unsafe impl ::windows::core::ComInterface for IEmailQueryOptions {
1568 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x45504b9b_3e7f_4d52_b6dd_d6fd4e1fbd9a);
1569}
1570#[repr(C)]
1571#[doc(hidden)]
1572pub struct IEmailQueryOptions_Vtbl {
1573 pub base__: ::windows::core::IInspectable_Vtbl,
1574 pub TextSearch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1575 pub SortDirection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailQuerySortDirection) -> ::windows::core::HRESULT,
1576 pub SetSortDirection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: EmailQuerySortDirection) -> ::windows::core::HRESULT,
1577 pub SortProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailQuerySortProperty) -> ::windows::core::HRESULT,
1578 pub SetSortProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: EmailQuerySortProperty) -> ::windows::core::HRESULT,
1579 pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailQueryKind) -> ::windows::core::HRESULT,
1580 pub SetKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: EmailQueryKind) -> ::windows::core::HRESULT,
1581 #[cfg(feature = "Foundation_Collections")]
1582 pub FolderIds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1583 #[cfg(not(feature = "Foundation_Collections"))]
1584 FolderIds: usize,
1585}
1586#[doc(hidden)]
1587#[repr(transparent)]
1588pub struct IEmailQueryOptionsFactory(::windows::core::IUnknown);
1589unsafe impl ::windows::core::Interface for IEmailQueryOptionsFactory {
1590 type Vtable = IEmailQueryOptionsFactory_Vtbl;
1591}
1592impl ::core::clone::Clone for IEmailQueryOptionsFactory {
1593 fn clone(&self) -> Self {
1594 Self(self.0.clone())
1595 }
1596}
1597unsafe impl ::windows::core::ComInterface for IEmailQueryOptionsFactory {
1598 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x88f1a1b8_78ab_4ee8_b4e3_046d6e2fe5e2);
1599}
1600#[repr(C)]
1601#[doc(hidden)]
1602pub struct IEmailQueryOptionsFactory_Vtbl {
1603 pub base__: ::windows::core::IInspectable_Vtbl,
1604 pub CreateWithText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1605 pub CreateWithTextAndFields: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::std::mem::MaybeUninit<::windows::core::HSTRING>, fields: EmailQuerySearchFields, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1606}
1607#[doc(hidden)]
1608#[repr(transparent)]
1609pub struct IEmailQueryTextSearch(::windows::core::IUnknown);
1610unsafe impl ::windows::core::Interface for IEmailQueryTextSearch {
1611 type Vtable = IEmailQueryTextSearch_Vtbl;
1612}
1613impl ::core::clone::Clone for IEmailQueryTextSearch {
1614 fn clone(&self) -> Self {
1615 Self(self.0.clone())
1616 }
1617}
1618unsafe impl ::windows::core::ComInterface for IEmailQueryTextSearch {
1619 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9fa0a288_3c5d_46a5_a6e2_31d6fd17e540);
1620}
1621#[repr(C)]
1622#[doc(hidden)]
1623pub struct IEmailQueryTextSearch_Vtbl {
1624 pub base__: ::windows::core::IInspectable_Vtbl,
1625 pub Fields: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailQuerySearchFields) -> ::windows::core::HRESULT,
1626 pub SetFields: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: EmailQuerySearchFields) -> ::windows::core::HRESULT,
1627 pub SearchScope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailQuerySearchScope) -> ::windows::core::HRESULT,
1628 pub SetSearchScope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: EmailQuerySearchScope) -> ::windows::core::HRESULT,
1629 pub Text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1630 pub SetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1631}
1632#[doc(hidden)]
1633#[repr(transparent)]
1634pub struct IEmailRecipient(::windows::core::IUnknown);
1635unsafe impl ::windows::core::Interface for IEmailRecipient {
1636 type Vtable = IEmailRecipient_Vtbl;
1637}
1638impl ::core::clone::Clone for IEmailRecipient {
1639 fn clone(&self) -> Self {
1640 Self(self.0.clone())
1641 }
1642}
1643unsafe impl ::windows::core::ComInterface for IEmailRecipient {
1644 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcae825b3_4478_4814_b900_c902b5e19b53);
1645}
1646#[repr(C)]
1647#[doc(hidden)]
1648pub struct IEmailRecipient_Vtbl {
1649 pub base__: ::windows::core::IInspectable_Vtbl,
1650 pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1651 pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1652 pub Address: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1653 pub SetAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
1654}
1655#[doc(hidden)]
1656#[repr(transparent)]
1657pub struct IEmailRecipientFactory(::windows::core::IUnknown);
1658unsafe impl ::windows::core::Interface for IEmailRecipientFactory {
1659 type Vtable = IEmailRecipientFactory_Vtbl;
1660}
1661impl ::core::clone::Clone for IEmailRecipientFactory {
1662 fn clone(&self) -> Self {
1663 Self(self.0.clone())
1664 }
1665}
1666unsafe impl ::windows::core::ComInterface for IEmailRecipientFactory {
1667 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5500b84d_c79a_4ef8_b909_722e18e3935d);
1668}
1669#[repr(C)]
1670#[doc(hidden)]
1671pub struct IEmailRecipientFactory_Vtbl {
1672 pub base__: ::windows::core::IInspectable_Vtbl,
1673 pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, address: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1674 pub CreateWithName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, address: ::std::mem::MaybeUninit<::windows::core::HSTRING>, name: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1675}
1676#[doc(hidden)]
1677#[repr(transparent)]
1678pub struct IEmailRecipientResolutionResult(::windows::core::IUnknown);
1679unsafe impl ::windows::core::Interface for IEmailRecipientResolutionResult {
1680 type Vtable = IEmailRecipientResolutionResult_Vtbl;
1681}
1682impl ::core::clone::Clone for IEmailRecipientResolutionResult {
1683 fn clone(&self) -> Self {
1684 Self(self.0.clone())
1685 }
1686}
1687unsafe impl ::windows::core::ComInterface for IEmailRecipientResolutionResult {
1688 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x918338fa_8d8d_4573_80d1_07172a34b98d);
1689}
1690#[repr(C)]
1691#[doc(hidden)]
1692pub struct IEmailRecipientResolutionResult_Vtbl {
1693 pub base__: ::windows::core::IInspectable_Vtbl,
1694 pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailRecipientResolutionStatus) -> ::windows::core::HRESULT,
1695 #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))]
1696 pub PublicKeys: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1697 #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))]
1698 PublicKeys: usize,
1699}
1700#[doc(hidden)]
1701#[repr(transparent)]
1702pub struct IEmailRecipientResolutionResult2(::windows::core::IUnknown);
1703unsafe impl ::windows::core::Interface for IEmailRecipientResolutionResult2 {
1704 type Vtable = IEmailRecipientResolutionResult2_Vtbl;
1705}
1706impl ::core::clone::Clone for IEmailRecipientResolutionResult2 {
1707 fn clone(&self) -> Self {
1708 Self(self.0.clone())
1709 }
1710}
1711unsafe impl ::windows::core::ComInterface for IEmailRecipientResolutionResult2 {
1712 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5e420bb6_ce5b_4bde_b9d4_e16da0b09fca);
1713}
1714#[repr(C)]
1715#[doc(hidden)]
1716pub struct IEmailRecipientResolutionResult2_Vtbl {
1717 pub base__: ::windows::core::IInspectable_Vtbl,
1718 pub SetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: EmailRecipientResolutionStatus) -> ::windows::core::HRESULT,
1719 #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))]
1720 pub SetPublicKeys: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1721 #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))]
1722 SetPublicKeys: usize,
1723}
1724#[doc(hidden)]
1725#[repr(transparent)]
1726pub struct IEmailStore(::windows::core::IUnknown);
1727unsafe impl ::windows::core::Interface for IEmailStore {
1728 type Vtable = IEmailStore_Vtbl;
1729}
1730impl ::core::clone::Clone for IEmailStore {
1731 fn clone(&self) -> Self {
1732 Self(self.0.clone())
1733 }
1734}
1735unsafe impl ::windows::core::ComInterface for IEmailStore {
1736 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf803226e_9137_4f8b_a470_279ac3058eb6);
1737}
1738#[repr(C)]
1739#[doc(hidden)]
1740pub struct IEmailStore_Vtbl {
1741 pub base__: ::windows::core::IInspectable_Vtbl,
1742 #[cfg(feature = "Foundation_Collections")]
1743 pub FindMailboxesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1744 #[cfg(not(feature = "Foundation_Collections"))]
1745 FindMailboxesAsync: usize,
1746 pub GetConversationReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1747 pub GetConversationReaderWithOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1748 pub GetMessageReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1749 pub GetMessageReaderWithOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1750 #[cfg(feature = "Foundation")]
1751 pub GetMailboxAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1752 #[cfg(not(feature = "Foundation"))]
1753 GetMailboxAsync: usize,
1754 #[cfg(feature = "Foundation")]
1755 pub GetConversationAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1756 #[cfg(not(feature = "Foundation"))]
1757 GetConversationAsync: usize,
1758 #[cfg(feature = "Foundation")]
1759 pub GetFolderAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1760 #[cfg(not(feature = "Foundation"))]
1761 GetFolderAsync: usize,
1762 #[cfg(feature = "Foundation")]
1763 pub GetMessageAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1764 #[cfg(not(feature = "Foundation"))]
1765 GetMessageAsync: usize,
1766 #[cfg(feature = "Foundation")]
1767 pub CreateMailboxAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, accountname: ::std::mem::MaybeUninit<::windows::core::HSTRING>, accountaddress: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1768 #[cfg(not(feature = "Foundation"))]
1769 CreateMailboxAsync: usize,
1770 #[cfg(feature = "Foundation")]
1771 pub CreateMailboxInAccountAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, accountname: ::std::mem::MaybeUninit<::windows::core::HSTRING>, accountaddress: ::std::mem::MaybeUninit<::windows::core::HSTRING>, userdataaccountid: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
1772 #[cfg(not(feature = "Foundation"))]
1773 CreateMailboxInAccountAsync: usize,
1774}
1775#[doc(hidden)]
1776#[repr(transparent)]
1777pub struct IEmailStoreNotificationTriggerDetails(::windows::core::IUnknown);
1778unsafe impl ::windows::core::Interface for IEmailStoreNotificationTriggerDetails {
1779 type Vtable = IEmailStoreNotificationTriggerDetails_Vtbl;
1780}
1781impl ::core::clone::Clone for IEmailStoreNotificationTriggerDetails {
1782 fn clone(&self) -> Self {
1783 Self(self.0.clone())
1784 }
1785}
1786unsafe impl ::windows::core::ComInterface for IEmailStoreNotificationTriggerDetails {
1787 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xce17563c_46e6_43c9_96f7_facf7dd710cb);
1788}
1789#[repr(C)]
1790#[doc(hidden)]
1791pub struct IEmailStoreNotificationTriggerDetails_Vtbl {
1792 pub base__: ::windows::core::IInspectable_Vtbl,
1793}
1794#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
1795#[repr(transparent)]
1796pub struct EmailAttachment(::windows::core::IUnknown);
1797impl EmailAttachment {
1798 pub fn new() -> ::windows::core::Result<Self> {
1799 Self::IActivationFactory(|f| f.ActivateInstance::<Self>())
1800 }
1801 fn IActivationFactory<R, F: FnOnce(&::windows::imp::IGenericFactory) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
1802 static SHARED: ::windows::imp::FactoryCache<EmailAttachment, ::windows::imp::IGenericFactory> = ::windows::imp::FactoryCache::new();
1803 SHARED.call(callback)
1804 }
1805 pub fn FileName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1806 let this = self;
1807 unsafe {
1808 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1809 (::windows::core::Interface::vtable(this).FileName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1810 }
1811 }
1812 pub fn SetFileName(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
1813 let this = self;
1814 unsafe { (::windows::core::Interface::vtable(this).SetFileName)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
1815 }
1816 #[doc = "*Required features: `\"Storage_Streams\"`*"]
1817 #[cfg(feature = "Storage_Streams")]
1818 pub fn Data(&self) -> ::windows::core::Result<super::super::Storage::Streams::IRandomAccessStreamReference> {
1819 let this = self;
1820 unsafe {
1821 let mut result__ = ::windows::core::zeroed::<super::super::Storage::Streams::IRandomAccessStreamReference>();
1822 (::windows::core::Interface::vtable(this).Data)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1823 }
1824 }
1825 #[doc = "*Required features: `\"Storage_Streams\"`*"]
1826 #[cfg(feature = "Storage_Streams")]
1827 pub fn SetData<P0>(&self, value: P0) -> ::windows::core::Result<()>
1828 where
1829 P0: ::windows::core::TryIntoParam<super::super::Storage::Streams::IRandomAccessStreamReference>,
1830 {
1831 let this = self;
1832 unsafe { (::windows::core::Interface::vtable(this).SetData)(::windows::core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() }
1833 }
1834 pub fn Id(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1835 let this = &::windows::core::ComInterface::cast::<IEmailAttachment2>(self)?;
1836 unsafe {
1837 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1838 (::windows::core::Interface::vtable(this).Id)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1839 }
1840 }
1841 pub fn ContentId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1842 let this = &::windows::core::ComInterface::cast::<IEmailAttachment2>(self)?;
1843 unsafe {
1844 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1845 (::windows::core::Interface::vtable(this).ContentId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1846 }
1847 }
1848 pub fn SetContentId(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
1849 let this = &::windows::core::ComInterface::cast::<IEmailAttachment2>(self)?;
1850 unsafe { (::windows::core::Interface::vtable(this).SetContentId)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
1851 }
1852 pub fn ContentLocation(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1853 let this = &::windows::core::ComInterface::cast::<IEmailAttachment2>(self)?;
1854 unsafe {
1855 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1856 (::windows::core::Interface::vtable(this).ContentLocation)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1857 }
1858 }
1859 pub fn SetContentLocation(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
1860 let this = &::windows::core::ComInterface::cast::<IEmailAttachment2>(self)?;
1861 unsafe { (::windows::core::Interface::vtable(this).SetContentLocation)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
1862 }
1863 pub fn DownloadState(&self) -> ::windows::core::Result<EmailAttachmentDownloadState> {
1864 let this = &::windows::core::ComInterface::cast::<IEmailAttachment2>(self)?;
1865 unsafe {
1866 let mut result__ = ::windows::core::zeroed::<EmailAttachmentDownloadState>();
1867 (::windows::core::Interface::vtable(this).DownloadState)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1868 }
1869 }
1870 pub fn SetDownloadState(&self, value: EmailAttachmentDownloadState) -> ::windows::core::Result<()> {
1871 let this = &::windows::core::ComInterface::cast::<IEmailAttachment2>(self)?;
1872 unsafe { (::windows::core::Interface::vtable(this).SetDownloadState)(::windows::core::Interface::as_raw(this), value).ok() }
1873 }
1874 pub fn EstimatedDownloadSizeInBytes(&self) -> ::windows::core::Result<u64> {
1875 let this = &::windows::core::ComInterface::cast::<IEmailAttachment2>(self)?;
1876 unsafe {
1877 let mut result__ = ::windows::core::zeroed::<u64>();
1878 (::windows::core::Interface::vtable(this).EstimatedDownloadSizeInBytes)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1879 }
1880 }
1881 pub fn SetEstimatedDownloadSizeInBytes(&self, value: u64) -> ::windows::core::Result<()> {
1882 let this = &::windows::core::ComInterface::cast::<IEmailAttachment2>(self)?;
1883 unsafe { (::windows::core::Interface::vtable(this).SetEstimatedDownloadSizeInBytes)(::windows::core::Interface::as_raw(this), value).ok() }
1884 }
1885 pub fn IsFromBaseMessage(&self) -> ::windows::core::Result<bool> {
1886 let this = &::windows::core::ComInterface::cast::<IEmailAttachment2>(self)?;
1887 unsafe {
1888 let mut result__ = ::windows::core::zeroed::<bool>();
1889 (::windows::core::Interface::vtable(this).IsFromBaseMessage)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1890 }
1891 }
1892 pub fn IsInline(&self) -> ::windows::core::Result<bool> {
1893 let this = &::windows::core::ComInterface::cast::<IEmailAttachment2>(self)?;
1894 unsafe {
1895 let mut result__ = ::windows::core::zeroed::<bool>();
1896 (::windows::core::Interface::vtable(this).IsInline)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1897 }
1898 }
1899 pub fn SetIsInline(&self, value: bool) -> ::windows::core::Result<()> {
1900 let this = &::windows::core::ComInterface::cast::<IEmailAttachment2>(self)?;
1901 unsafe { (::windows::core::Interface::vtable(this).SetIsInline)(::windows::core::Interface::as_raw(this), value).ok() }
1902 }
1903 pub fn MimeType(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1904 let this = &::windows::core::ComInterface::cast::<IEmailAttachment2>(self)?;
1905 unsafe {
1906 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1907 (::windows::core::Interface::vtable(this).MimeType)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1908 }
1909 }
1910 pub fn SetMimeType(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
1911 let this = &::windows::core::ComInterface::cast::<IEmailAttachment2>(self)?;
1912 unsafe { (::windows::core::Interface::vtable(this).SetMimeType)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
1913 }
1914 #[doc = "*Required features: `\"Storage_Streams\"`*"]
1915 #[cfg(feature = "Storage_Streams")]
1916 pub fn Create<P0>(filename: &::windows::core::HSTRING, data: P0) -> ::windows::core::Result<EmailAttachment>
1917 where
1918 P0: ::windows::core::TryIntoParam<super::super::Storage::Streams::IRandomAccessStreamReference>,
1919 {
1920 Self::IEmailAttachmentFactory(|this| unsafe {
1921 let mut result__ = ::windows::core::zeroed::<EmailAttachment>();
1922 (::windows::core::Interface::vtable(this).Create)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(filename), data.try_into_param()?.abi(), &mut result__).from_abi(result__)
1923 })
1924 }
1925 #[doc = "*Required features: `\"Storage_Streams\"`*"]
1926 #[cfg(feature = "Storage_Streams")]
1927 pub fn Create2<P0>(filename: &::windows::core::HSTRING, data: P0, mimetype: &::windows::core::HSTRING) -> ::windows::core::Result<EmailAttachment>
1928 where
1929 P0: ::windows::core::TryIntoParam<super::super::Storage::Streams::IRandomAccessStreamReference>,
1930 {
1931 Self::IEmailAttachmentFactory2(|this| unsafe {
1932 let mut result__ = ::windows::core::zeroed::<EmailAttachment>();
1933 (::windows::core::Interface::vtable(this).Create)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(filename), data.try_into_param()?.abi(), ::core::mem::transmute_copy(mimetype), &mut result__).from_abi(result__)
1934 })
1935 }
1936 #[doc(hidden)]
1937 pub fn IEmailAttachmentFactory<R, F: FnOnce(&IEmailAttachmentFactory) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
1938 static SHARED: ::windows::imp::FactoryCache<EmailAttachment, IEmailAttachmentFactory> = ::windows::imp::FactoryCache::new();
1939 SHARED.call(callback)
1940 }
1941 #[doc(hidden)]
1942 pub fn IEmailAttachmentFactory2<R, F: FnOnce(&IEmailAttachmentFactory2) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
1943 static SHARED: ::windows::imp::FactoryCache<EmailAttachment, IEmailAttachmentFactory2> = ::windows::imp::FactoryCache::new();
1944 SHARED.call(callback)
1945 }
1946}
1947impl ::core::cmp::PartialEq for EmailAttachment {
1948 fn eq(&self, other: &Self) -> bool {
1949 self.0 == other.0
1950 }
1951}
1952impl ::core::cmp::Eq for EmailAttachment {}
1953impl ::core::fmt::Debug for EmailAttachment {
1954 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
1955 f.debug_tuple("EmailAttachment").field(&self.0).finish()
1956 }
1957}
1958impl ::windows::core::RuntimeType for EmailAttachment {
1959 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailAttachment;{f353caf9-57c8-4adb-b992-60fceb584f54})");
1960}
1961impl ::core::clone::Clone for EmailAttachment {
1962 fn clone(&self) -> Self {
1963 Self(self.0.clone())
1964 }
1965}
1966unsafe impl ::windows::core::Interface for EmailAttachment {
1967 type Vtable = IEmailAttachment_Vtbl;
1968}
1969unsafe impl ::windows::core::ComInterface for EmailAttachment {
1970 const IID: ::windows::core::GUID = <IEmailAttachment as ::windows::core::ComInterface>::IID;
1971}
1972impl ::windows::core::RuntimeName for EmailAttachment {
1973 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailAttachment";
1974}
1975::windows::imp::interface_hierarchy!(EmailAttachment, ::windows::core::IUnknown, ::windows::core::IInspectable);
1976unsafe impl ::core::marker::Send for EmailAttachment {}
1977unsafe impl ::core::marker::Sync for EmailAttachment {}
1978#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
1979#[repr(transparent)]
1980pub struct EmailConversation(::windows::core::IUnknown);
1981impl EmailConversation {
1982 pub fn Id(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1983 let this = self;
1984 unsafe {
1985 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1986 (::windows::core::Interface::vtable(this).Id)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1987 }
1988 }
1989 pub fn MailboxId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1990 let this = self;
1991 unsafe {
1992 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1993 (::windows::core::Interface::vtable(this).MailboxId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1994 }
1995 }
1996 pub fn FlagState(&self) -> ::windows::core::Result<EmailFlagState> {
1997 let this = self;
1998 unsafe {
1999 let mut result__ = ::windows::core::zeroed::<EmailFlagState>();
2000 (::windows::core::Interface::vtable(this).FlagState)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2001 }
2002 }
2003 pub fn HasAttachment(&self) -> ::windows::core::Result<bool> {
2004 let this = self;
2005 unsafe {
2006 let mut result__ = ::windows::core::zeroed::<bool>();
2007 (::windows::core::Interface::vtable(this).HasAttachment)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2008 }
2009 }
2010 pub fn Importance(&self) -> ::windows::core::Result<EmailImportance> {
2011 let this = self;
2012 unsafe {
2013 let mut result__ = ::windows::core::zeroed::<EmailImportance>();
2014 (::windows::core::Interface::vtable(this).Importance)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2015 }
2016 }
2017 pub fn LastEmailResponseKind(&self) -> ::windows::core::Result<EmailMessageResponseKind> {
2018 let this = self;
2019 unsafe {
2020 let mut result__ = ::windows::core::zeroed::<EmailMessageResponseKind>();
2021 (::windows::core::Interface::vtable(this).LastEmailResponseKind)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2022 }
2023 }
2024 pub fn MessageCount(&self) -> ::windows::core::Result<u32> {
2025 let this = self;
2026 unsafe {
2027 let mut result__ = ::windows::core::zeroed::<u32>();
2028 (::windows::core::Interface::vtable(this).MessageCount)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2029 }
2030 }
2031 pub fn MostRecentMessageId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2032 let this = self;
2033 unsafe {
2034 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2035 (::windows::core::Interface::vtable(this).MostRecentMessageId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2036 }
2037 }
2038 #[doc = "*Required features: `\"Foundation\"`*"]
2039 #[cfg(feature = "Foundation")]
2040 pub fn MostRecentMessageTime(&self) -> ::windows::core::Result<super::super::Foundation::DateTime> {
2041 let this = self;
2042 unsafe {
2043 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::DateTime>();
2044 (::windows::core::Interface::vtable(this).MostRecentMessageTime)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2045 }
2046 }
2047 pub fn Preview(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2048 let this = self;
2049 unsafe {
2050 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2051 (::windows::core::Interface::vtable(this).Preview)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2052 }
2053 }
2054 pub fn LatestSender(&self) -> ::windows::core::Result<EmailRecipient> {
2055 let this = self;
2056 unsafe {
2057 let mut result__ = ::windows::core::zeroed::<EmailRecipient>();
2058 (::windows::core::Interface::vtable(this).LatestSender)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2059 }
2060 }
2061 pub fn Subject(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2062 let this = self;
2063 unsafe {
2064 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2065 (::windows::core::Interface::vtable(this).Subject)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2066 }
2067 }
2068 pub fn UnreadMessageCount(&self) -> ::windows::core::Result<u32> {
2069 let this = self;
2070 unsafe {
2071 let mut result__ = ::windows::core::zeroed::<u32>();
2072 (::windows::core::Interface::vtable(this).UnreadMessageCount)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2073 }
2074 }
2075 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
2076 #[cfg(feature = "Foundation_Collections")]
2077 pub fn FindMessagesAsync(&self) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<EmailMessage>>> {
2078 let this = self;
2079 unsafe {
2080 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<EmailMessage>>>();
2081 (::windows::core::Interface::vtable(this).FindMessagesAsync)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2082 }
2083 }
2084 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
2085 #[cfg(feature = "Foundation_Collections")]
2086 pub fn FindMessagesWithCountAsync(&self, count: u32) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<EmailMessage>>> {
2087 let this = self;
2088 unsafe {
2089 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<EmailMessage>>>();
2090 (::windows::core::Interface::vtable(this).FindMessagesWithCountAsync)(::windows::core::Interface::as_raw(this), count, &mut result__).from_abi(result__)
2091 }
2092 }
2093}
2094impl ::core::cmp::PartialEq for EmailConversation {
2095 fn eq(&self, other: &Self) -> bool {
2096 self.0 == other.0
2097 }
2098}
2099impl ::core::cmp::Eq for EmailConversation {}
2100impl ::core::fmt::Debug for EmailConversation {
2101 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2102 f.debug_tuple("EmailConversation").field(&self.0).finish()
2103 }
2104}
2105impl ::windows::core::RuntimeType for EmailConversation {
2106 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailConversation;{da18c248-a0bc-4349-902d-90f66389f51b})");
2107}
2108impl ::core::clone::Clone for EmailConversation {
2109 fn clone(&self) -> Self {
2110 Self(self.0.clone())
2111 }
2112}
2113unsafe impl ::windows::core::Interface for EmailConversation {
2114 type Vtable = IEmailConversation_Vtbl;
2115}
2116unsafe impl ::windows::core::ComInterface for EmailConversation {
2117 const IID: ::windows::core::GUID = <IEmailConversation as ::windows::core::ComInterface>::IID;
2118}
2119impl ::windows::core::RuntimeName for EmailConversation {
2120 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailConversation";
2121}
2122::windows::imp::interface_hierarchy!(EmailConversation, ::windows::core::IUnknown, ::windows::core::IInspectable);
2123unsafe impl ::core::marker::Send for EmailConversation {}
2124unsafe impl ::core::marker::Sync for EmailConversation {}
2125#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
2126#[repr(transparent)]
2127pub struct EmailConversationBatch(::windows::core::IUnknown);
2128impl EmailConversationBatch {
2129 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
2130 #[cfg(feature = "Foundation_Collections")]
2131 pub fn Conversations(&self) -> ::windows::core::Result<super::super::Foundation::Collections::IVectorView<EmailConversation>> {
2132 let this = self;
2133 unsafe {
2134 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::Collections::IVectorView<EmailConversation>>();
2135 (::windows::core::Interface::vtable(this).Conversations)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2136 }
2137 }
2138 pub fn Status(&self) -> ::windows::core::Result<EmailBatchStatus> {
2139 let this = self;
2140 unsafe {
2141 let mut result__ = ::windows::core::zeroed::<EmailBatchStatus>();
2142 (::windows::core::Interface::vtable(this).Status)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2143 }
2144 }
2145}
2146impl ::core::cmp::PartialEq for EmailConversationBatch {
2147 fn eq(&self, other: &Self) -> bool {
2148 self.0 == other.0
2149 }
2150}
2151impl ::core::cmp::Eq for EmailConversationBatch {}
2152impl ::core::fmt::Debug for EmailConversationBatch {
2153 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2154 f.debug_tuple("EmailConversationBatch").field(&self.0).finish()
2155 }
2156}
2157impl ::windows::core::RuntimeType for EmailConversationBatch {
2158 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailConversationBatch;{b8c1ab81-01c5-432a-9df1-fe85d98a279a})");
2159}
2160impl ::core::clone::Clone for EmailConversationBatch {
2161 fn clone(&self) -> Self {
2162 Self(self.0.clone())
2163 }
2164}
2165unsafe impl ::windows::core::Interface for EmailConversationBatch {
2166 type Vtable = IEmailConversationBatch_Vtbl;
2167}
2168unsafe impl ::windows::core::ComInterface for EmailConversationBatch {
2169 const IID: ::windows::core::GUID = <IEmailConversationBatch as ::windows::core::ComInterface>::IID;
2170}
2171impl ::windows::core::RuntimeName for EmailConversationBatch {
2172 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailConversationBatch";
2173}
2174::windows::imp::interface_hierarchy!(EmailConversationBatch, ::windows::core::IUnknown, ::windows::core::IInspectable);
2175unsafe impl ::core::marker::Send for EmailConversationBatch {}
2176unsafe impl ::core::marker::Sync for EmailConversationBatch {}
2177#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
2178#[repr(transparent)]
2179pub struct EmailConversationReader(::windows::core::IUnknown);
2180impl EmailConversationReader {
2181 #[doc = "*Required features: `\"Foundation\"`*"]
2182 #[cfg(feature = "Foundation")]
2183 pub fn ReadBatchAsync(&self) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<EmailConversationBatch>> {
2184 let this = self;
2185 unsafe {
2186 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<EmailConversationBatch>>();
2187 (::windows::core::Interface::vtable(this).ReadBatchAsync)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2188 }
2189 }
2190}
2191impl ::core::cmp::PartialEq for EmailConversationReader {
2192 fn eq(&self, other: &Self) -> bool {
2193 self.0 == other.0
2194 }
2195}
2196impl ::core::cmp::Eq for EmailConversationReader {}
2197impl ::core::fmt::Debug for EmailConversationReader {
2198 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2199 f.debug_tuple("EmailConversationReader").field(&self.0).finish()
2200 }
2201}
2202impl ::windows::core::RuntimeType for EmailConversationReader {
2203 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailConversationReader;{b4630f82-2875-44c8-9b8c-85beb3a3c653})");
2204}
2205impl ::core::clone::Clone for EmailConversationReader {
2206 fn clone(&self) -> Self {
2207 Self(self.0.clone())
2208 }
2209}
2210unsafe impl ::windows::core::Interface for EmailConversationReader {
2211 type Vtable = IEmailConversationReader_Vtbl;
2212}
2213unsafe impl ::windows::core::ComInterface for EmailConversationReader {
2214 const IID: ::windows::core::GUID = <IEmailConversationReader as ::windows::core::ComInterface>::IID;
2215}
2216impl ::windows::core::RuntimeName for EmailConversationReader {
2217 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailConversationReader";
2218}
2219::windows::imp::interface_hierarchy!(EmailConversationReader, ::windows::core::IUnknown, ::windows::core::IInspectable);
2220unsafe impl ::core::marker::Send for EmailConversationReader {}
2221unsafe impl ::core::marker::Sync for EmailConversationReader {}
2222#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
2223#[repr(transparent)]
2224pub struct EmailFolder(::windows::core::IUnknown);
2225impl EmailFolder {
2226 pub fn Id(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2227 let this = self;
2228 unsafe {
2229 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2230 (::windows::core::Interface::vtable(this).Id)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2231 }
2232 }
2233 pub fn RemoteId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2234 let this = self;
2235 unsafe {
2236 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2237 (::windows::core::Interface::vtable(this).RemoteId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2238 }
2239 }
2240 pub fn SetRemoteId(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
2241 let this = self;
2242 unsafe { (::windows::core::Interface::vtable(this).SetRemoteId)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
2243 }
2244 pub fn MailboxId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2245 let this = self;
2246 unsafe {
2247 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2248 (::windows::core::Interface::vtable(this).MailboxId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2249 }
2250 }
2251 pub fn ParentFolderId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2252 let this = self;
2253 unsafe {
2254 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2255 (::windows::core::Interface::vtable(this).ParentFolderId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2256 }
2257 }
2258 pub fn DisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2259 let this = self;
2260 unsafe {
2261 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2262 (::windows::core::Interface::vtable(this).DisplayName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2263 }
2264 }
2265 pub fn SetDisplayName(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
2266 let this = self;
2267 unsafe { (::windows::core::Interface::vtable(this).SetDisplayName)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
2268 }
2269 pub fn IsSyncEnabled(&self) -> ::windows::core::Result<bool> {
2270 let this = self;
2271 unsafe {
2272 let mut result__ = ::windows::core::zeroed::<bool>();
2273 (::windows::core::Interface::vtable(this).IsSyncEnabled)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2274 }
2275 }
2276 pub fn SetIsSyncEnabled(&self, value: bool) -> ::windows::core::Result<()> {
2277 let this = self;
2278 unsafe { (::windows::core::Interface::vtable(this).SetIsSyncEnabled)(::windows::core::Interface::as_raw(this), value).ok() }
2279 }
2280 #[doc = "*Required features: `\"Foundation\"`*"]
2281 #[cfg(feature = "Foundation")]
2282 pub fn LastSuccessfulSyncTime(&self) -> ::windows::core::Result<super::super::Foundation::DateTime> {
2283 let this = self;
2284 unsafe {
2285 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::DateTime>();
2286 (::windows::core::Interface::vtable(this).LastSuccessfulSyncTime)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2287 }
2288 }
2289 #[doc = "*Required features: `\"Foundation\"`*"]
2290 #[cfg(feature = "Foundation")]
2291 pub fn SetLastSuccessfulSyncTime(&self, value: super::super::Foundation::DateTime) -> ::windows::core::Result<()> {
2292 let this = self;
2293 unsafe { (::windows::core::Interface::vtable(this).SetLastSuccessfulSyncTime)(::windows::core::Interface::as_raw(this), value).ok() }
2294 }
2295 pub fn Kind(&self) -> ::windows::core::Result<EmailSpecialFolderKind> {
2296 let this = self;
2297 unsafe {
2298 let mut result__ = ::windows::core::zeroed::<EmailSpecialFolderKind>();
2299 (::windows::core::Interface::vtable(this).Kind)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2300 }
2301 }
2302 #[doc = "*Required features: `\"Foundation\"`*"]
2303 #[cfg(feature = "Foundation")]
2304 pub fn CreateFolderAsync(&self, name: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<EmailFolder>> {
2305 let this = self;
2306 unsafe {
2307 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<EmailFolder>>();
2308 (::windows::core::Interface::vtable(this).CreateFolderAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(name), &mut result__).from_abi(result__)
2309 }
2310 }
2311 #[doc = "*Required features: `\"Foundation\"`*"]
2312 #[cfg(feature = "Foundation")]
2313 pub fn DeleteAsync(&self) -> ::windows::core::Result<super::super::Foundation::IAsyncAction> {
2314 let this = self;
2315 unsafe {
2316 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncAction>();
2317 (::windows::core::Interface::vtable(this).DeleteAsync)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2318 }
2319 }
2320 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
2321 #[cfg(feature = "Foundation_Collections")]
2322 pub fn FindChildFoldersAsync(&self) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<EmailFolder>>> {
2323 let this = self;
2324 unsafe {
2325 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<EmailFolder>>>();
2326 (::windows::core::Interface::vtable(this).FindChildFoldersAsync)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2327 }
2328 }
2329 pub fn GetConversationReader(&self) -> ::windows::core::Result<EmailConversationReader> {
2330 let this = self;
2331 unsafe {
2332 let mut result__ = ::windows::core::zeroed::<EmailConversationReader>();
2333 (::windows::core::Interface::vtable(this).GetConversationReader)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2334 }
2335 }
2336 pub fn GetConversationReaderWithOptions(&self, options: &EmailQueryOptions) -> ::windows::core::Result<EmailConversationReader> {
2337 let this = self;
2338 unsafe {
2339 let mut result__ = ::windows::core::zeroed::<EmailConversationReader>();
2340 (::windows::core::Interface::vtable(this).GetConversationReaderWithOptions)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(options), &mut result__).from_abi(result__)
2341 }
2342 }
2343 #[doc = "*Required features: `\"Foundation\"`*"]
2344 #[cfg(feature = "Foundation")]
2345 pub fn GetMessageAsync(&self, id: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<EmailMessage>> {
2346 let this = self;
2347 unsafe {
2348 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<EmailMessage>>();
2349 (::windows::core::Interface::vtable(this).GetMessageAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(id), &mut result__).from_abi(result__)
2350 }
2351 }
2352 pub fn GetMessageReader(&self) -> ::windows::core::Result<EmailMessageReader> {
2353 let this = self;
2354 unsafe {
2355 let mut result__ = ::windows::core::zeroed::<EmailMessageReader>();
2356 (::windows::core::Interface::vtable(this).GetMessageReader)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2357 }
2358 }
2359 pub fn GetMessageReaderWithOptions(&self, options: &EmailQueryOptions) -> ::windows::core::Result<EmailMessageReader> {
2360 let this = self;
2361 unsafe {
2362 let mut result__ = ::windows::core::zeroed::<EmailMessageReader>();
2363 (::windows::core::Interface::vtable(this).GetMessageReaderWithOptions)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(options), &mut result__).from_abi(result__)
2364 }
2365 }
2366 #[doc = "*Required features: `\"Foundation\"`*"]
2367 #[cfg(feature = "Foundation")]
2368 pub fn GetMessageCountsAsync(&self) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<EmailItemCounts>> {
2369 let this = self;
2370 unsafe {
2371 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<EmailItemCounts>>();
2372 (::windows::core::Interface::vtable(this).GetMessageCountsAsync)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2373 }
2374 }
2375 #[doc = "*Required features: `\"Foundation\"`*"]
2376 #[cfg(feature = "Foundation")]
2377 pub fn TryMoveAsync(&self, newparentfolder: &EmailFolder) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<bool>> {
2378 let this = self;
2379 unsafe {
2380 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<bool>>();
2381 (::windows::core::Interface::vtable(this).TryMoveAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(newparentfolder), &mut result__).from_abi(result__)
2382 }
2383 }
2384 #[doc = "*Required features: `\"Foundation\"`*"]
2385 #[cfg(feature = "Foundation")]
2386 pub fn TryMoveWithNewNameAsync(&self, newparentfolder: &EmailFolder, newfoldername: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<bool>> {
2387 let this = self;
2388 unsafe {
2389 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<bool>>();
2390 (::windows::core::Interface::vtable(this).TryMoveWithNewNameAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(newparentfolder), ::core::mem::transmute_copy(newfoldername), &mut result__).from_abi(result__)
2391 }
2392 }
2393 #[doc = "*Required features: `\"Foundation\"`*"]
2394 #[cfg(feature = "Foundation")]
2395 pub fn TrySaveAsync(&self) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<bool>> {
2396 let this = self;
2397 unsafe {
2398 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<bool>>();
2399 (::windows::core::Interface::vtable(this).TrySaveAsync)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2400 }
2401 }
2402 #[doc = "*Required features: `\"Foundation\"`*"]
2403 #[cfg(feature = "Foundation")]
2404 pub fn SaveMessageAsync(&self, message: &EmailMessage) -> ::windows::core::Result<super::super::Foundation::IAsyncAction> {
2405 let this = self;
2406 unsafe {
2407 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncAction>();
2408 (::windows::core::Interface::vtable(this).SaveMessageAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(message), &mut result__).from_abi(result__)
2409 }
2410 }
2411}
2412impl ::core::cmp::PartialEq for EmailFolder {
2413 fn eq(&self, other: &Self) -> bool {
2414 self.0 == other.0
2415 }
2416}
2417impl ::core::cmp::Eq for EmailFolder {}
2418impl ::core::fmt::Debug for EmailFolder {
2419 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2420 f.debug_tuple("EmailFolder").field(&self.0).finish()
2421 }
2422}
2423impl ::windows::core::RuntimeType for EmailFolder {
2424 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailFolder;{a24f7771-996c-4864-b1ba-ed1240e57d11})");
2425}
2426impl ::core::clone::Clone for EmailFolder {
2427 fn clone(&self) -> Self {
2428 Self(self.0.clone())
2429 }
2430}
2431unsafe impl ::windows::core::Interface for EmailFolder {
2432 type Vtable = IEmailFolder_Vtbl;
2433}
2434unsafe impl ::windows::core::ComInterface for EmailFolder {
2435 const IID: ::windows::core::GUID = <IEmailFolder as ::windows::core::ComInterface>::IID;
2436}
2437impl ::windows::core::RuntimeName for EmailFolder {
2438 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailFolder";
2439}
2440::windows::imp::interface_hierarchy!(EmailFolder, ::windows::core::IUnknown, ::windows::core::IInspectable);
2441unsafe impl ::core::marker::Send for EmailFolder {}
2442unsafe impl ::core::marker::Sync for EmailFolder {}
2443#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
2444#[repr(transparent)]
2445pub struct EmailIrmInfo(::windows::core::IUnknown);
2446impl EmailIrmInfo {
2447 pub fn new() -> ::windows::core::Result<Self> {
2448 Self::IActivationFactory(|f| f.ActivateInstance::<Self>())
2449 }
2450 fn IActivationFactory<R, F: FnOnce(&::windows::imp::IGenericFactory) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
2451 static SHARED: ::windows::imp::FactoryCache<EmailIrmInfo, ::windows::imp::IGenericFactory> = ::windows::imp::FactoryCache::new();
2452 SHARED.call(callback)
2453 }
2454 pub fn CanEdit(&self) -> ::windows::core::Result<bool> {
2455 let this = self;
2456 unsafe {
2457 let mut result__ = ::windows::core::zeroed::<bool>();
2458 (::windows::core::Interface::vtable(this).CanEdit)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2459 }
2460 }
2461 pub fn SetCanEdit(&self, value: bool) -> ::windows::core::Result<()> {
2462 let this = self;
2463 unsafe { (::windows::core::Interface::vtable(this).SetCanEdit)(::windows::core::Interface::as_raw(this), value).ok() }
2464 }
2465 pub fn CanExtractData(&self) -> ::windows::core::Result<bool> {
2466 let this = self;
2467 unsafe {
2468 let mut result__ = ::windows::core::zeroed::<bool>();
2469 (::windows::core::Interface::vtable(this).CanExtractData)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2470 }
2471 }
2472 pub fn SetCanExtractData(&self, value: bool) -> ::windows::core::Result<()> {
2473 let this = self;
2474 unsafe { (::windows::core::Interface::vtable(this).SetCanExtractData)(::windows::core::Interface::as_raw(this), value).ok() }
2475 }
2476 pub fn CanForward(&self) -> ::windows::core::Result<bool> {
2477 let this = self;
2478 unsafe {
2479 let mut result__ = ::windows::core::zeroed::<bool>();
2480 (::windows::core::Interface::vtable(this).CanForward)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2481 }
2482 }
2483 pub fn SetCanForward(&self, value: bool) -> ::windows::core::Result<()> {
2484 let this = self;
2485 unsafe { (::windows::core::Interface::vtable(this).SetCanForward)(::windows::core::Interface::as_raw(this), value).ok() }
2486 }
2487 pub fn CanModifyRecipientsOnResponse(&self) -> ::windows::core::Result<bool> {
2488 let this = self;
2489 unsafe {
2490 let mut result__ = ::windows::core::zeroed::<bool>();
2491 (::windows::core::Interface::vtable(this).CanModifyRecipientsOnResponse)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2492 }
2493 }
2494 pub fn SetCanModifyRecipientsOnResponse(&self, value: bool) -> ::windows::core::Result<()> {
2495 let this = self;
2496 unsafe { (::windows::core::Interface::vtable(this).SetCanModifyRecipientsOnResponse)(::windows::core::Interface::as_raw(this), value).ok() }
2497 }
2498 pub fn CanPrintData(&self) -> ::windows::core::Result<bool> {
2499 let this = self;
2500 unsafe {
2501 let mut result__ = ::windows::core::zeroed::<bool>();
2502 (::windows::core::Interface::vtable(this).CanPrintData)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2503 }
2504 }
2505 pub fn SetCanPrintData(&self, value: bool) -> ::windows::core::Result<()> {
2506 let this = self;
2507 unsafe { (::windows::core::Interface::vtable(this).SetCanPrintData)(::windows::core::Interface::as_raw(this), value).ok() }
2508 }
2509 pub fn CanRemoveIrmOnResponse(&self) -> ::windows::core::Result<bool> {
2510 let this = self;
2511 unsafe {
2512 let mut result__ = ::windows::core::zeroed::<bool>();
2513 (::windows::core::Interface::vtable(this).CanRemoveIrmOnResponse)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2514 }
2515 }
2516 pub fn SetCanRemoveIrmOnResponse(&self, value: bool) -> ::windows::core::Result<()> {
2517 let this = self;
2518 unsafe { (::windows::core::Interface::vtable(this).SetCanRemoveIrmOnResponse)(::windows::core::Interface::as_raw(this), value).ok() }
2519 }
2520 pub fn CanReply(&self) -> ::windows::core::Result<bool> {
2521 let this = self;
2522 unsafe {
2523 let mut result__ = ::windows::core::zeroed::<bool>();
2524 (::windows::core::Interface::vtable(this).CanReply)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2525 }
2526 }
2527 pub fn SetCanReply(&self, value: bool) -> ::windows::core::Result<()> {
2528 let this = self;
2529 unsafe { (::windows::core::Interface::vtable(this).SetCanReply)(::windows::core::Interface::as_raw(this), value).ok() }
2530 }
2531 pub fn CanReplyAll(&self) -> ::windows::core::Result<bool> {
2532 let this = self;
2533 unsafe {
2534 let mut result__ = ::windows::core::zeroed::<bool>();
2535 (::windows::core::Interface::vtable(this).CanReplyAll)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2536 }
2537 }
2538 pub fn SetCanReplyAll(&self, value: bool) -> ::windows::core::Result<()> {
2539 let this = self;
2540 unsafe { (::windows::core::Interface::vtable(this).SetCanReplyAll)(::windows::core::Interface::as_raw(this), value).ok() }
2541 }
2542 #[doc = "*Required features: `\"Foundation\"`*"]
2543 #[cfg(feature = "Foundation")]
2544 pub fn ExpirationDate(&self) -> ::windows::core::Result<super::super::Foundation::DateTime> {
2545 let this = self;
2546 unsafe {
2547 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::DateTime>();
2548 (::windows::core::Interface::vtable(this).ExpirationDate)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2549 }
2550 }
2551 #[doc = "*Required features: `\"Foundation\"`*"]
2552 #[cfg(feature = "Foundation")]
2553 pub fn SetExpirationDate(&self, value: super::super::Foundation::DateTime) -> ::windows::core::Result<()> {
2554 let this = self;
2555 unsafe { (::windows::core::Interface::vtable(this).SetExpirationDate)(::windows::core::Interface::as_raw(this), value).ok() }
2556 }
2557 pub fn IsIrmOriginator(&self) -> ::windows::core::Result<bool> {
2558 let this = self;
2559 unsafe {
2560 let mut result__ = ::windows::core::zeroed::<bool>();
2561 (::windows::core::Interface::vtable(this).IsIrmOriginator)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2562 }
2563 }
2564 pub fn SetIsIrmOriginator(&self, value: bool) -> ::windows::core::Result<()> {
2565 let this = self;
2566 unsafe { (::windows::core::Interface::vtable(this).SetIsIrmOriginator)(::windows::core::Interface::as_raw(this), value).ok() }
2567 }
2568 pub fn IsProgramaticAccessAllowed(&self) -> ::windows::core::Result<bool> {
2569 let this = self;
2570 unsafe {
2571 let mut result__ = ::windows::core::zeroed::<bool>();
2572 (::windows::core::Interface::vtable(this).IsProgramaticAccessAllowed)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2573 }
2574 }
2575 pub fn SetIsProgramaticAccessAllowed(&self, value: bool) -> ::windows::core::Result<()> {
2576 let this = self;
2577 unsafe { (::windows::core::Interface::vtable(this).SetIsProgramaticAccessAllowed)(::windows::core::Interface::as_raw(this), value).ok() }
2578 }
2579 pub fn Template(&self) -> ::windows::core::Result<EmailIrmTemplate> {
2580 let this = self;
2581 unsafe {
2582 let mut result__ = ::windows::core::zeroed::<EmailIrmTemplate>();
2583 (::windows::core::Interface::vtable(this).Template)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2584 }
2585 }
2586 pub fn SetTemplate(&self, value: &EmailIrmTemplate) -> ::windows::core::Result<()> {
2587 let this = self;
2588 unsafe { (::windows::core::Interface::vtable(this).SetTemplate)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
2589 }
2590 #[doc = "*Required features: `\"Foundation\"`*"]
2591 #[cfg(feature = "Foundation")]
2592 pub fn Create(expiration: super::super::Foundation::DateTime, irmtemplate: &EmailIrmTemplate) -> ::windows::core::Result<EmailIrmInfo> {
2593 Self::IEmailIrmInfoFactory(|this| unsafe {
2594 let mut result__ = ::windows::core::zeroed::<EmailIrmInfo>();
2595 (::windows::core::Interface::vtable(this).Create)(::windows::core::Interface::as_raw(this), expiration, ::core::mem::transmute_copy(irmtemplate), &mut result__).from_abi(result__)
2596 })
2597 }
2598 #[doc(hidden)]
2599 pub fn IEmailIrmInfoFactory<R, F: FnOnce(&IEmailIrmInfoFactory) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
2600 static SHARED: ::windows::imp::FactoryCache<EmailIrmInfo, IEmailIrmInfoFactory> = ::windows::imp::FactoryCache::new();
2601 SHARED.call(callback)
2602 }
2603}
2604impl ::core::cmp::PartialEq for EmailIrmInfo {
2605 fn eq(&self, other: &Self) -> bool {
2606 self.0 == other.0
2607 }
2608}
2609impl ::core::cmp::Eq for EmailIrmInfo {}
2610impl ::core::fmt::Debug for EmailIrmInfo {
2611 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2612 f.debug_tuple("EmailIrmInfo").field(&self.0).finish()
2613 }
2614}
2615impl ::windows::core::RuntimeType for EmailIrmInfo {
2616 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailIrmInfo;{90f52193-b1a0-4ebd-a6b6-ddca55606e0e})");
2617}
2618impl ::core::clone::Clone for EmailIrmInfo {
2619 fn clone(&self) -> Self {
2620 Self(self.0.clone())
2621 }
2622}
2623unsafe impl ::windows::core::Interface for EmailIrmInfo {
2624 type Vtable = IEmailIrmInfo_Vtbl;
2625}
2626unsafe impl ::windows::core::ComInterface for EmailIrmInfo {
2627 const IID: ::windows::core::GUID = <IEmailIrmInfo as ::windows::core::ComInterface>::IID;
2628}
2629impl ::windows::core::RuntimeName for EmailIrmInfo {
2630 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailIrmInfo";
2631}
2632::windows::imp::interface_hierarchy!(EmailIrmInfo, ::windows::core::IUnknown, ::windows::core::IInspectable);
2633unsafe impl ::core::marker::Send for EmailIrmInfo {}
2634unsafe impl ::core::marker::Sync for EmailIrmInfo {}
2635#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
2636#[repr(transparent)]
2637pub struct EmailIrmTemplate(::windows::core::IUnknown);
2638impl EmailIrmTemplate {
2639 pub fn new() -> ::windows::core::Result<Self> {
2640 Self::IActivationFactory(|f| f.ActivateInstance::<Self>())
2641 }
2642 fn IActivationFactory<R, F: FnOnce(&::windows::imp::IGenericFactory) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
2643 static SHARED: ::windows::imp::FactoryCache<EmailIrmTemplate, ::windows::imp::IGenericFactory> = ::windows::imp::FactoryCache::new();
2644 SHARED.call(callback)
2645 }
2646 pub fn Id(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2647 let this = self;
2648 unsafe {
2649 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2650 (::windows::core::Interface::vtable(this).Id)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2651 }
2652 }
2653 pub fn SetId(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
2654 let this = self;
2655 unsafe { (::windows::core::Interface::vtable(this).SetId)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
2656 }
2657 pub fn Description(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2658 let this = self;
2659 unsafe {
2660 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2661 (::windows::core::Interface::vtable(this).Description)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2662 }
2663 }
2664 pub fn SetDescription(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
2665 let this = self;
2666 unsafe { (::windows::core::Interface::vtable(this).SetDescription)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
2667 }
2668 pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2669 let this = self;
2670 unsafe {
2671 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2672 (::windows::core::Interface::vtable(this).Name)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2673 }
2674 }
2675 pub fn SetName(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
2676 let this = self;
2677 unsafe { (::windows::core::Interface::vtable(this).SetName)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
2678 }
2679 pub fn Create(id: &::windows::core::HSTRING, name: &::windows::core::HSTRING, description: &::windows::core::HSTRING) -> ::windows::core::Result<EmailIrmTemplate> {
2680 Self::IEmailIrmTemplateFactory(|this| unsafe {
2681 let mut result__ = ::windows::core::zeroed::<EmailIrmTemplate>();
2682 (::windows::core::Interface::vtable(this).Create)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(id), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(description), &mut result__).from_abi(result__)
2683 })
2684 }
2685 #[doc(hidden)]
2686 pub fn IEmailIrmTemplateFactory<R, F: FnOnce(&IEmailIrmTemplateFactory) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
2687 static SHARED: ::windows::imp::FactoryCache<EmailIrmTemplate, IEmailIrmTemplateFactory> = ::windows::imp::FactoryCache::new();
2688 SHARED.call(callback)
2689 }
2690}
2691impl ::core::cmp::PartialEq for EmailIrmTemplate {
2692 fn eq(&self, other: &Self) -> bool {
2693 self.0 == other.0
2694 }
2695}
2696impl ::core::cmp::Eq for EmailIrmTemplate {}
2697impl ::core::fmt::Debug for EmailIrmTemplate {
2698 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2699 f.debug_tuple("EmailIrmTemplate").field(&self.0).finish()
2700 }
2701}
2702impl ::windows::core::RuntimeType for EmailIrmTemplate {
2703 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailIrmTemplate;{f327758d-546d-4bea-a963-54a38b2cc016})");
2704}
2705impl ::core::clone::Clone for EmailIrmTemplate {
2706 fn clone(&self) -> Self {
2707 Self(self.0.clone())
2708 }
2709}
2710unsafe impl ::windows::core::Interface for EmailIrmTemplate {
2711 type Vtable = IEmailIrmTemplate_Vtbl;
2712}
2713unsafe impl ::windows::core::ComInterface for EmailIrmTemplate {
2714 const IID: ::windows::core::GUID = <IEmailIrmTemplate as ::windows::core::ComInterface>::IID;
2715}
2716impl ::windows::core::RuntimeName for EmailIrmTemplate {
2717 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailIrmTemplate";
2718}
2719::windows::imp::interface_hierarchy!(EmailIrmTemplate, ::windows::core::IUnknown, ::windows::core::IInspectable);
2720unsafe impl ::core::marker::Send for EmailIrmTemplate {}
2721unsafe impl ::core::marker::Sync for EmailIrmTemplate {}
2722#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
2723#[repr(transparent)]
2724pub struct EmailItemCounts(::windows::core::IUnknown);
2725impl EmailItemCounts {
2726 pub fn Flagged(&self) -> ::windows::core::Result<u32> {
2727 let this = self;
2728 unsafe {
2729 let mut result__ = ::windows::core::zeroed::<u32>();
2730 (::windows::core::Interface::vtable(this).Flagged)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2731 }
2732 }
2733 pub fn Important(&self) -> ::windows::core::Result<u32> {
2734 let this = self;
2735 unsafe {
2736 let mut result__ = ::windows::core::zeroed::<u32>();
2737 (::windows::core::Interface::vtable(this).Important)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2738 }
2739 }
2740 pub fn Total(&self) -> ::windows::core::Result<u32> {
2741 let this = self;
2742 unsafe {
2743 let mut result__ = ::windows::core::zeroed::<u32>();
2744 (::windows::core::Interface::vtable(this).Total)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2745 }
2746 }
2747 pub fn Unread(&self) -> ::windows::core::Result<u32> {
2748 let this = self;
2749 unsafe {
2750 let mut result__ = ::windows::core::zeroed::<u32>();
2751 (::windows::core::Interface::vtable(this).Unread)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2752 }
2753 }
2754}
2755impl ::core::cmp::PartialEq for EmailItemCounts {
2756 fn eq(&self, other: &Self) -> bool {
2757 self.0 == other.0
2758 }
2759}
2760impl ::core::cmp::Eq for EmailItemCounts {}
2761impl ::core::fmt::Debug for EmailItemCounts {
2762 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2763 f.debug_tuple("EmailItemCounts").field(&self.0).finish()
2764 }
2765}
2766impl ::windows::core::RuntimeType for EmailItemCounts {
2767 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailItemCounts;{5bd13321-fec8-4bab-83ba-0baf3c1f6cbd})");
2768}
2769impl ::core::clone::Clone for EmailItemCounts {
2770 fn clone(&self) -> Self {
2771 Self(self.0.clone())
2772 }
2773}
2774unsafe impl ::windows::core::Interface for EmailItemCounts {
2775 type Vtable = IEmailItemCounts_Vtbl;
2776}
2777unsafe impl ::windows::core::ComInterface for EmailItemCounts {
2778 const IID: ::windows::core::GUID = <IEmailItemCounts as ::windows::core::ComInterface>::IID;
2779}
2780impl ::windows::core::RuntimeName for EmailItemCounts {
2781 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailItemCounts";
2782}
2783::windows::imp::interface_hierarchy!(EmailItemCounts, ::windows::core::IUnknown, ::windows::core::IInspectable);
2784unsafe impl ::core::marker::Send for EmailItemCounts {}
2785unsafe impl ::core::marker::Sync for EmailItemCounts {}
2786#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
2787#[repr(transparent)]
2788pub struct EmailMailbox(::windows::core::IUnknown);
2789impl EmailMailbox {
2790 pub fn Capabilities(&self) -> ::windows::core::Result<EmailMailboxCapabilities> {
2791 let this = self;
2792 unsafe {
2793 let mut result__ = ::windows::core::zeroed::<EmailMailboxCapabilities>();
2794 (::windows::core::Interface::vtable(this).Capabilities)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2795 }
2796 }
2797 pub fn ChangeTracker(&self) -> ::windows::core::Result<EmailMailboxChangeTracker> {
2798 let this = self;
2799 unsafe {
2800 let mut result__ = ::windows::core::zeroed::<EmailMailboxChangeTracker>();
2801 (::windows::core::Interface::vtable(this).ChangeTracker)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2802 }
2803 }
2804 pub fn DisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2805 let this = self;
2806 unsafe {
2807 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2808 (::windows::core::Interface::vtable(this).DisplayName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2809 }
2810 }
2811 pub fn SetDisplayName(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
2812 let this = self;
2813 unsafe { (::windows::core::Interface::vtable(this).SetDisplayName)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
2814 }
2815 pub fn Id(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2816 let this = self;
2817 unsafe {
2818 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2819 (::windows::core::Interface::vtable(this).Id)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2820 }
2821 }
2822 pub fn IsOwnedByCurrentApp(&self) -> ::windows::core::Result<bool> {
2823 let this = self;
2824 unsafe {
2825 let mut result__ = ::windows::core::zeroed::<bool>();
2826 (::windows::core::Interface::vtable(this).IsOwnedByCurrentApp)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2827 }
2828 }
2829 pub fn IsDataEncryptedUnderLock(&self) -> ::windows::core::Result<bool> {
2830 let this = self;
2831 unsafe {
2832 let mut result__ = ::windows::core::zeroed::<bool>();
2833 (::windows::core::Interface::vtable(this).IsDataEncryptedUnderLock)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2834 }
2835 }
2836 pub fn MailAddress(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2837 let this = self;
2838 unsafe {
2839 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2840 (::windows::core::Interface::vtable(this).MailAddress)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2841 }
2842 }
2843 pub fn SetMailAddress(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
2844 let this = self;
2845 unsafe { (::windows::core::Interface::vtable(this).SetMailAddress)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
2846 }
2847 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
2848 #[cfg(feature = "Foundation_Collections")]
2849 pub fn MailAddressAliases(&self) -> ::windows::core::Result<super::super::Foundation::Collections::IVector<::windows::core::HSTRING>> {
2850 let this = self;
2851 unsafe {
2852 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::Collections::IVector<::windows::core::HSTRING>>();
2853 (::windows::core::Interface::vtable(this).MailAddressAliases)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2854 }
2855 }
2856 pub fn OtherAppReadAccess(&self) -> ::windows::core::Result<EmailMailboxOtherAppReadAccess> {
2857 let this = self;
2858 unsafe {
2859 let mut result__ = ::windows::core::zeroed::<EmailMailboxOtherAppReadAccess>();
2860 (::windows::core::Interface::vtable(this).OtherAppReadAccess)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2861 }
2862 }
2863 pub fn SetOtherAppReadAccess(&self, value: EmailMailboxOtherAppReadAccess) -> ::windows::core::Result<()> {
2864 let this = self;
2865 unsafe { (::windows::core::Interface::vtable(this).SetOtherAppReadAccess)(::windows::core::Interface::as_raw(this), value).ok() }
2866 }
2867 pub fn OtherAppWriteAccess(&self) -> ::windows::core::Result<EmailMailboxOtherAppWriteAccess> {
2868 let this = self;
2869 unsafe {
2870 let mut result__ = ::windows::core::zeroed::<EmailMailboxOtherAppWriteAccess>();
2871 (::windows::core::Interface::vtable(this).OtherAppWriteAccess)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2872 }
2873 }
2874 pub fn SetOtherAppWriteAccess(&self, value: EmailMailboxOtherAppWriteAccess) -> ::windows::core::Result<()> {
2875 let this = self;
2876 unsafe { (::windows::core::Interface::vtable(this).SetOtherAppWriteAccess)(::windows::core::Interface::as_raw(this), value).ok() }
2877 }
2878 pub fn Policies(&self) -> ::windows::core::Result<EmailMailboxPolicies> {
2879 let this = self;
2880 unsafe {
2881 let mut result__ = ::windows::core::zeroed::<EmailMailboxPolicies>();
2882 (::windows::core::Interface::vtable(this).Policies)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2883 }
2884 }
2885 pub fn SourceDisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2886 let this = self;
2887 unsafe {
2888 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2889 (::windows::core::Interface::vtable(this).SourceDisplayName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2890 }
2891 }
2892 pub fn SyncManager(&self) -> ::windows::core::Result<EmailMailboxSyncManager> {
2893 let this = self;
2894 unsafe {
2895 let mut result__ = ::windows::core::zeroed::<EmailMailboxSyncManager>();
2896 (::windows::core::Interface::vtable(this).SyncManager)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2897 }
2898 }
2899 pub fn UserDataAccountId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2900 let this = self;
2901 unsafe {
2902 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2903 (::windows::core::Interface::vtable(this).UserDataAccountId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2904 }
2905 }
2906 pub fn GetConversationReader(&self) -> ::windows::core::Result<EmailConversationReader> {
2907 let this = self;
2908 unsafe {
2909 let mut result__ = ::windows::core::zeroed::<EmailConversationReader>();
2910 (::windows::core::Interface::vtable(this).GetConversationReader)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2911 }
2912 }
2913 pub fn GetConversationReaderWithOptions(&self, options: &EmailQueryOptions) -> ::windows::core::Result<EmailConversationReader> {
2914 let this = self;
2915 unsafe {
2916 let mut result__ = ::windows::core::zeroed::<EmailConversationReader>();
2917 (::windows::core::Interface::vtable(this).GetConversationReaderWithOptions)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(options), &mut result__).from_abi(result__)
2918 }
2919 }
2920 pub fn GetMessageReader(&self) -> ::windows::core::Result<EmailMessageReader> {
2921 let this = self;
2922 unsafe {
2923 let mut result__ = ::windows::core::zeroed::<EmailMessageReader>();
2924 (::windows::core::Interface::vtable(this).GetMessageReader)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2925 }
2926 }
2927 pub fn GetMessageReaderWithOptions(&self, options: &EmailQueryOptions) -> ::windows::core::Result<EmailMessageReader> {
2928 let this = self;
2929 unsafe {
2930 let mut result__ = ::windows::core::zeroed::<EmailMessageReader>();
2931 (::windows::core::Interface::vtable(this).GetMessageReaderWithOptions)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(options), &mut result__).from_abi(result__)
2932 }
2933 }
2934 #[doc = "*Required features: `\"Foundation\"`*"]
2935 #[cfg(feature = "Foundation")]
2936 pub fn DeleteAsync(&self) -> ::windows::core::Result<super::super::Foundation::IAsyncAction> {
2937 let this = self;
2938 unsafe {
2939 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncAction>();
2940 (::windows::core::Interface::vtable(this).DeleteAsync)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2941 }
2942 }
2943 #[doc = "*Required features: `\"Foundation\"`*"]
2944 #[cfg(feature = "Foundation")]
2945 pub fn GetConversationAsync(&self, id: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<EmailConversation>> {
2946 let this = self;
2947 unsafe {
2948 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<EmailConversation>>();
2949 (::windows::core::Interface::vtable(this).GetConversationAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(id), &mut result__).from_abi(result__)
2950 }
2951 }
2952 #[doc = "*Required features: `\"Foundation\"`*"]
2953 #[cfg(feature = "Foundation")]
2954 pub fn GetFolderAsync(&self, id: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<EmailFolder>> {
2955 let this = self;
2956 unsafe {
2957 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<EmailFolder>>();
2958 (::windows::core::Interface::vtable(this).GetFolderAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(id), &mut result__).from_abi(result__)
2959 }
2960 }
2961 #[doc = "*Required features: `\"Foundation\"`*"]
2962 #[cfg(feature = "Foundation")]
2963 pub fn GetMessageAsync(&self, id: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<EmailMessage>> {
2964 let this = self;
2965 unsafe {
2966 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<EmailMessage>>();
2967 (::windows::core::Interface::vtable(this).GetMessageAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(id), &mut result__).from_abi(result__)
2968 }
2969 }
2970 #[doc = "*Required features: `\"Foundation\"`*"]
2971 #[cfg(feature = "Foundation")]
2972 pub fn GetSpecialFolderAsync(&self, foldertype: EmailSpecialFolderKind) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<EmailFolder>> {
2973 let this = self;
2974 unsafe {
2975 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<EmailFolder>>();
2976 (::windows::core::Interface::vtable(this).GetSpecialFolderAsync)(::windows::core::Interface::as_raw(this), foldertype, &mut result__).from_abi(result__)
2977 }
2978 }
2979 #[doc = "*Required features: `\"Foundation\"`*"]
2980 #[cfg(feature = "Foundation")]
2981 pub fn SaveAsync(&self) -> ::windows::core::Result<super::super::Foundation::IAsyncAction> {
2982 let this = self;
2983 unsafe {
2984 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncAction>();
2985 (::windows::core::Interface::vtable(this).SaveAsync)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2986 }
2987 }
2988 #[doc = "*Required features: `\"Foundation\"`*"]
2989 #[cfg(feature = "Foundation")]
2990 pub fn MarkMessageAsSeenAsync(&self, messageid: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncAction> {
2991 let this = self;
2992 unsafe {
2993 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncAction>();
2994 (::windows::core::Interface::vtable(this).MarkMessageAsSeenAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(messageid), &mut result__).from_abi(result__)
2995 }
2996 }
2997 #[doc = "*Required features: `\"Foundation\"`*"]
2998 #[cfg(feature = "Foundation")]
2999 pub fn MarkFolderAsSeenAsync(&self, folderid: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncAction> {
3000 let this = self;
3001 unsafe {
3002 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncAction>();
3003 (::windows::core::Interface::vtable(this).MarkFolderAsSeenAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(folderid), &mut result__).from_abi(result__)
3004 }
3005 }
3006 #[doc = "*Required features: `\"Foundation\"`*"]
3007 #[cfg(feature = "Foundation")]
3008 pub fn MarkMessageReadAsync(&self, messageid: &::windows::core::HSTRING, isread: bool) -> ::windows::core::Result<super::super::Foundation::IAsyncAction> {
3009 let this = self;
3010 unsafe {
3011 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncAction>();
3012 (::windows::core::Interface::vtable(this).MarkMessageReadAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(messageid), isread, &mut result__).from_abi(result__)
3013 }
3014 }
3015 #[doc = "*Required features: `\"Foundation\"`*"]
3016 #[cfg(feature = "Foundation")]
3017 pub fn ChangeMessageFlagStateAsync(&self, messageid: &::windows::core::HSTRING, flagstate: EmailFlagState) -> ::windows::core::Result<super::super::Foundation::IAsyncAction> {
3018 let this = self;
3019 unsafe {
3020 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncAction>();
3021 (::windows::core::Interface::vtable(this).ChangeMessageFlagStateAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(messageid), flagstate, &mut result__).from_abi(result__)
3022 }
3023 }
3024 #[doc = "*Required features: `\"Foundation\"`*"]
3025 #[cfg(feature = "Foundation")]
3026 pub fn TryMoveMessageAsync(&self, messageid: &::windows::core::HSTRING, newparentfolderid: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<bool>> {
3027 let this = self;
3028 unsafe {
3029 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<bool>>();
3030 (::windows::core::Interface::vtable(this).TryMoveMessageAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(messageid), ::core::mem::transmute_copy(newparentfolderid), &mut result__).from_abi(result__)
3031 }
3032 }
3033 #[doc = "*Required features: `\"Foundation\"`*"]
3034 #[cfg(feature = "Foundation")]
3035 pub fn TryMoveFolderAsync(&self, folderid: &::windows::core::HSTRING, newparentfolderid: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<bool>> {
3036 let this = self;
3037 unsafe {
3038 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<bool>>();
3039 (::windows::core::Interface::vtable(this).TryMoveFolderAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(folderid), ::core::mem::transmute_copy(newparentfolderid), &mut result__).from_abi(result__)
3040 }
3041 }
3042 #[doc = "*Required features: `\"Foundation\"`*"]
3043 #[cfg(feature = "Foundation")]
3044 pub fn TryMoveFolderWithNewNameAsync(&self, folderid: &::windows::core::HSTRING, newparentfolderid: &::windows::core::HSTRING, newfoldername: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<bool>> {
3045 let this = self;
3046 unsafe {
3047 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<bool>>();
3048 (::windows::core::Interface::vtable(this).TryMoveFolderWithNewNameAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(folderid), ::core::mem::transmute_copy(newparentfolderid), ::core::mem::transmute_copy(newfoldername), &mut result__).from_abi(result__)
3049 }
3050 }
3051 #[doc = "*Required features: `\"Foundation\"`*"]
3052 #[cfg(feature = "Foundation")]
3053 pub fn DeleteMessageAsync(&self, messageid: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncAction> {
3054 let this = self;
3055 unsafe {
3056 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncAction>();
3057 (::windows::core::Interface::vtable(this).DeleteMessageAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(messageid), &mut result__).from_abi(result__)
3058 }
3059 }
3060 #[doc = "*Required features: `\"Foundation\"`*"]
3061 #[cfg(feature = "Foundation")]
3062 pub fn MarkFolderSyncEnabledAsync(&self, folderid: &::windows::core::HSTRING, issyncenabled: bool) -> ::windows::core::Result<super::super::Foundation::IAsyncAction> {
3063 let this = self;
3064 unsafe {
3065 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncAction>();
3066 (::windows::core::Interface::vtable(this).MarkFolderSyncEnabledAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(folderid), issyncenabled, &mut result__).from_abi(result__)
3067 }
3068 }
3069 #[doc = "*Required features: `\"Foundation\"`*"]
3070 #[cfg(feature = "Foundation")]
3071 pub fn SendMessageAsync(&self, message: &EmailMessage) -> ::windows::core::Result<super::super::Foundation::IAsyncAction> {
3072 let this = self;
3073 unsafe {
3074 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncAction>();
3075 (::windows::core::Interface::vtable(this).SendMessageAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(message), &mut result__).from_abi(result__)
3076 }
3077 }
3078 #[doc = "*Required features: `\"Foundation\"`*"]
3079 #[cfg(feature = "Foundation")]
3080 pub fn SaveDraftAsync(&self, message: &EmailMessage) -> ::windows::core::Result<super::super::Foundation::IAsyncAction> {
3081 let this = self;
3082 unsafe {
3083 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncAction>();
3084 (::windows::core::Interface::vtable(this).SaveDraftAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(message), &mut result__).from_abi(result__)
3085 }
3086 }
3087 #[doc = "*Required features: `\"Foundation\"`*"]
3088 #[cfg(feature = "Foundation")]
3089 pub fn DownloadMessageAsync(&self, messageid: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncAction> {
3090 let this = self;
3091 unsafe {
3092 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncAction>();
3093 (::windows::core::Interface::vtable(this).DownloadMessageAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(messageid), &mut result__).from_abi(result__)
3094 }
3095 }
3096 #[doc = "*Required features: `\"Foundation\"`*"]
3097 #[cfg(feature = "Foundation")]
3098 pub fn DownloadAttachmentAsync(&self, attachmentid: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncAction> {
3099 let this = self;
3100 unsafe {
3101 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncAction>();
3102 (::windows::core::Interface::vtable(this).DownloadAttachmentAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(attachmentid), &mut result__).from_abi(result__)
3103 }
3104 }
3105 #[doc = "*Required features: `\"Foundation\"`*"]
3106 #[cfg(feature = "Foundation")]
3107 pub fn CreateResponseMessageAsync(&self, messageid: &::windows::core::HSTRING, responsetype: EmailMessageResponseKind, subject: &::windows::core::HSTRING, responseheadertype: EmailMessageBodyKind, responseheader: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<EmailMessage>> {
3108 let this = self;
3109 unsafe {
3110 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<EmailMessage>>();
3111 (::windows::core::Interface::vtable(this).CreateResponseMessageAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(messageid), responsetype, ::core::mem::transmute_copy(subject), responseheadertype, ::core::mem::transmute_copy(responseheader), &mut result__).from_abi(result__)
3112 }
3113 }
3114 #[doc = "*Required features: `\"Foundation\"`*"]
3115 #[cfg(feature = "Foundation")]
3116 pub fn TryUpdateMeetingResponseAsync(&self, meeting: &EmailMessage, response: EmailMeetingResponseType, subject: &::windows::core::HSTRING, comment: &::windows::core::HSTRING, sendupdate: bool) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<bool>> {
3117 let this = self;
3118 unsafe {
3119 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<bool>>();
3120 (::windows::core::Interface::vtable(this).TryUpdateMeetingResponseAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(meeting), response, ::core::mem::transmute_copy(subject), ::core::mem::transmute_copy(comment), sendupdate, &mut result__).from_abi(result__)
3121 }
3122 }
3123 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
3124 #[cfg(feature = "Foundation_Collections")]
3125 pub fn TryForwardMeetingAsync<P0>(&self, meeting: &EmailMessage, recipients: P0, subject: &::windows::core::HSTRING, forwardheadertype: EmailMessageBodyKind, forwardheader: &::windows::core::HSTRING, comment: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<bool>>
3126 where
3127 P0: ::windows::core::TryIntoParam<super::super::Foundation::Collections::IIterable<EmailRecipient>>,
3128 {
3129 let this = self;
3130 unsafe {
3131 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<bool>>();
3132 (::windows::core::Interface::vtable(this).TryForwardMeetingAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(meeting), recipients.try_into_param()?.abi(), ::core::mem::transmute_copy(subject), forwardheadertype, ::core::mem::transmute_copy(forwardheader), ::core::mem::transmute_copy(comment), &mut result__).from_abi(result__)
3133 }
3134 }
3135 #[doc = "*Required features: `\"Foundation\"`*"]
3136 #[cfg(feature = "Foundation")]
3137 pub fn TryProposeNewTimeForMeetingAsync(&self, meeting: &EmailMessage, newstarttime: super::super::Foundation::DateTime, newduration: super::super::Foundation::TimeSpan, subject: &::windows::core::HSTRING, comment: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<bool>> {
3138 let this = self;
3139 unsafe {
3140 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<bool>>();
3141 (::windows::core::Interface::vtable(this).TryProposeNewTimeForMeetingAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(meeting), newstarttime, newduration, ::core::mem::transmute_copy(subject), ::core::mem::transmute_copy(comment), &mut result__).from_abi(result__)
3142 }
3143 }
3144 #[doc = "*Required features: `\"Foundation\"`*"]
3145 #[cfg(feature = "Foundation")]
3146 pub fn MailboxChanged(&self, phandler: &super::super::Foundation::TypedEventHandler<EmailMailbox, EmailMailboxChangedEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> {
3147 let this = self;
3148 unsafe {
3149 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::EventRegistrationToken>();
3150 (::windows::core::Interface::vtable(this).MailboxChanged)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(phandler), &mut result__).from_abi(result__)
3151 }
3152 }
3153 #[doc = "*Required features: `\"Foundation\"`*"]
3154 #[cfg(feature = "Foundation")]
3155 pub fn RemoveMailboxChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> {
3156 let this = self;
3157 unsafe { (::windows::core::Interface::vtable(this).RemoveMailboxChanged)(::windows::core::Interface::as_raw(this), token).ok() }
3158 }
3159 #[doc = "*Required features: `\"Foundation\"`*"]
3160 #[cfg(feature = "Foundation")]
3161 pub fn SmartSendMessageAsync(&self, message: &EmailMessage, smartsend: bool) -> ::windows::core::Result<super::super::Foundation::IAsyncAction> {
3162 let this = self;
3163 unsafe {
3164 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncAction>();
3165 (::windows::core::Interface::vtable(this).SmartSendMessageAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(message), smartsend, &mut result__).from_abi(result__)
3166 }
3167 }
3168 #[doc = "*Required features: `\"Foundation\"`*"]
3169 #[cfg(feature = "Foundation")]
3170 pub fn TrySetAutoReplySettingsAsync(&self, autoreplysettings: &EmailMailboxAutoReplySettings) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<bool>> {
3171 let this = self;
3172 unsafe {
3173 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<bool>>();
3174 (::windows::core::Interface::vtable(this).TrySetAutoReplySettingsAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(autoreplysettings), &mut result__).from_abi(result__)
3175 }
3176 }
3177 #[doc = "*Required features: `\"Foundation\"`*"]
3178 #[cfg(feature = "Foundation")]
3179 pub fn TryGetAutoReplySettingsAsync(&self, requestedformat: EmailMailboxAutoReplyMessageResponseKind) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<EmailMailboxAutoReplySettings>> {
3180 let this = self;
3181 unsafe {
3182 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<EmailMailboxAutoReplySettings>>();
3183 (::windows::core::Interface::vtable(this).TryGetAutoReplySettingsAsync)(::windows::core::Interface::as_raw(this), requestedformat, &mut result__).from_abi(result__)
3184 }
3185 }
3186 pub fn LinkedMailboxId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
3187 let this = &::windows::core::ComInterface::cast::<IEmailMailbox2>(self)?;
3188 unsafe {
3189 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
3190 (::windows::core::Interface::vtable(this).LinkedMailboxId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3191 }
3192 }
3193 pub fn NetworkAccountId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
3194 let this = &::windows::core::ComInterface::cast::<IEmailMailbox2>(self)?;
3195 unsafe {
3196 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
3197 (::windows::core::Interface::vtable(this).NetworkAccountId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3198 }
3199 }
3200 pub fn NetworkId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
3201 let this = &::windows::core::ComInterface::cast::<IEmailMailbox2>(self)?;
3202 unsafe {
3203 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
3204 (::windows::core::Interface::vtable(this).NetworkId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3205 }
3206 }
3207 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
3208 #[cfg(feature = "Foundation_Collections")]
3209 pub fn ResolveRecipientsAsync<P0>(&self, recipients: P0) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<EmailRecipientResolutionResult>>>
3210 where
3211 P0: ::windows::core::TryIntoParam<super::super::Foundation::Collections::IIterable<::windows::core::HSTRING>>,
3212 {
3213 let this = &::windows::core::ComInterface::cast::<IEmailMailbox3>(self)?;
3214 unsafe {
3215 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<EmailRecipientResolutionResult>>>();
3216 (::windows::core::Interface::vtable(this).ResolveRecipientsAsync)(::windows::core::Interface::as_raw(this), recipients.try_into_param()?.abi(), &mut result__).from_abi(result__)
3217 }
3218 }
3219 #[doc = "*Required features: `\"Foundation_Collections\"`, `\"Security_Cryptography_Certificates\"`*"]
3220 #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))]
3221 pub fn ValidateCertificatesAsync<P0>(&self, certificates: P0) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<EmailCertificateValidationStatus>>>
3222 where
3223 P0: ::windows::core::TryIntoParam<super::super::Foundation::Collections::IIterable<super::super::Security::Cryptography::Certificates::Certificate>>,
3224 {
3225 let this = &::windows::core::ComInterface::cast::<IEmailMailbox3>(self)?;
3226 unsafe {
3227 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<EmailCertificateValidationStatus>>>();
3228 (::windows::core::Interface::vtable(this).ValidateCertificatesAsync)(::windows::core::Interface::as_raw(this), certificates.try_into_param()?.abi(), &mut result__).from_abi(result__)
3229 }
3230 }
3231 #[doc = "*Required features: `\"Foundation\"`*"]
3232 #[cfg(feature = "Foundation")]
3233 pub fn TryEmptyFolderAsync(&self, folderid: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<EmailMailboxEmptyFolderStatus>> {
3234 let this = &::windows::core::ComInterface::cast::<IEmailMailbox3>(self)?;
3235 unsafe {
3236 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<EmailMailboxEmptyFolderStatus>>();
3237 (::windows::core::Interface::vtable(this).TryEmptyFolderAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(folderid), &mut result__).from_abi(result__)
3238 }
3239 }
3240 #[doc = "*Required features: `\"Foundation\"`*"]
3241 #[cfg(feature = "Foundation")]
3242 pub fn TryCreateFolderAsync(&self, parentfolderid: &::windows::core::HSTRING, name: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<EmailMailboxCreateFolderResult>> {
3243 let this = &::windows::core::ComInterface::cast::<IEmailMailbox3>(self)?;
3244 unsafe {
3245 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<EmailMailboxCreateFolderResult>>();
3246 (::windows::core::Interface::vtable(this).TryCreateFolderAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(parentfolderid), ::core::mem::transmute_copy(name), &mut result__).from_abi(result__)
3247 }
3248 }
3249 #[doc = "*Required features: `\"Foundation\"`*"]
3250 #[cfg(feature = "Foundation")]
3251 pub fn TryDeleteFolderAsync(&self, folderid: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<EmailMailboxDeleteFolderStatus>> {
3252 let this = &::windows::core::ComInterface::cast::<IEmailMailbox3>(self)?;
3253 unsafe {
3254 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<EmailMailboxDeleteFolderStatus>>();
3255 (::windows::core::Interface::vtable(this).TryDeleteFolderAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(folderid), &mut result__).from_abi(result__)
3256 }
3257 }
3258 #[doc = "*Required features: `\"Foundation\"`*"]
3259 #[cfg(feature = "Foundation")]
3260 pub fn RegisterSyncManagerAsync(&self) -> ::windows::core::Result<super::super::Foundation::IAsyncAction> {
3261 let this = &::windows::core::ComInterface::cast::<IEmailMailbox4>(self)?;
3262 unsafe {
3263 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncAction>();
3264 (::windows::core::Interface::vtable(this).RegisterSyncManagerAsync)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3265 }
3266 }
3267 pub fn GetChangeTracker(&self, identity: &::windows::core::HSTRING) -> ::windows::core::Result<EmailMailboxChangeTracker> {
3268 let this = &::windows::core::ComInterface::cast::<IEmailMailbox5>(self)?;
3269 unsafe {
3270 let mut result__ = ::windows::core::zeroed::<EmailMailboxChangeTracker>();
3271 (::windows::core::Interface::vtable(this).GetChangeTracker)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(identity), &mut result__).from_abi(result__)
3272 }
3273 }
3274}
3275impl ::core::cmp::PartialEq for EmailMailbox {
3276 fn eq(&self, other: &Self) -> bool {
3277 self.0 == other.0
3278 }
3279}
3280impl ::core::cmp::Eq for EmailMailbox {}
3281impl ::core::fmt::Debug for EmailMailbox {
3282 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
3283 f.debug_tuple("EmailMailbox").field(&self.0).finish()
3284 }
3285}
3286impl ::windows::core::RuntimeType for EmailMailbox {
3287 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailMailbox;{a8790649-cf5b-411b-80b1-4a6a1484ce25})");
3288}
3289impl ::core::clone::Clone for EmailMailbox {
3290 fn clone(&self) -> Self {
3291 Self(self.0.clone())
3292 }
3293}
3294unsafe impl ::windows::core::Interface for EmailMailbox {
3295 type Vtable = IEmailMailbox_Vtbl;
3296}
3297unsafe impl ::windows::core::ComInterface for EmailMailbox {
3298 const IID: ::windows::core::GUID = <IEmailMailbox as ::windows::core::ComInterface>::IID;
3299}
3300impl ::windows::core::RuntimeName for EmailMailbox {
3301 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailbox";
3302}
3303::windows::imp::interface_hierarchy!(EmailMailbox, ::windows::core::IUnknown, ::windows::core::IInspectable);
3304unsafe impl ::core::marker::Send for EmailMailbox {}
3305unsafe impl ::core::marker::Sync for EmailMailbox {}
3306#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
3307#[repr(transparent)]
3308pub struct EmailMailboxAction(::windows::core::IUnknown);
3309impl EmailMailboxAction {
3310 pub fn Kind(&self) -> ::windows::core::Result<EmailMailboxActionKind> {
3311 let this = self;
3312 unsafe {
3313 let mut result__ = ::windows::core::zeroed::<EmailMailboxActionKind>();
3314 (::windows::core::Interface::vtable(this).Kind)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3315 }
3316 }
3317 pub fn ChangeNumber(&self) -> ::windows::core::Result<u64> {
3318 let this = self;
3319 unsafe {
3320 let mut result__ = ::windows::core::zeroed::<u64>();
3321 (::windows::core::Interface::vtable(this).ChangeNumber)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3322 }
3323 }
3324}
3325impl ::core::cmp::PartialEq for EmailMailboxAction {
3326 fn eq(&self, other: &Self) -> bool {
3327 self.0 == other.0
3328 }
3329}
3330impl ::core::cmp::Eq for EmailMailboxAction {}
3331impl ::core::fmt::Debug for EmailMailboxAction {
3332 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
3333 f.debug_tuple("EmailMailboxAction").field(&self.0).finish()
3334 }
3335}
3336impl ::windows::core::RuntimeType for EmailMailboxAction {
3337 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailMailboxAction;{ac9889fa-21fa-4927-9210-d410582fdf3e})");
3338}
3339impl ::core::clone::Clone for EmailMailboxAction {
3340 fn clone(&self) -> Self {
3341 Self(self.0.clone())
3342 }
3343}
3344unsafe impl ::windows::core::Interface for EmailMailboxAction {
3345 type Vtable = IEmailMailboxAction_Vtbl;
3346}
3347unsafe impl ::windows::core::ComInterface for EmailMailboxAction {
3348 const IID: ::windows::core::GUID = <IEmailMailboxAction as ::windows::core::ComInterface>::IID;
3349}
3350impl ::windows::core::RuntimeName for EmailMailboxAction {
3351 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxAction";
3352}
3353::windows::imp::interface_hierarchy!(EmailMailboxAction, ::windows::core::IUnknown, ::windows::core::IInspectable);
3354unsafe impl ::core::marker::Send for EmailMailboxAction {}
3355unsafe impl ::core::marker::Sync for EmailMailboxAction {}
3356#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
3357#[repr(transparent)]
3358pub struct EmailMailboxAutoReply(::windows::core::IUnknown);
3359impl EmailMailboxAutoReply {
3360 pub fn IsEnabled(&self) -> ::windows::core::Result<bool> {
3361 let this = self;
3362 unsafe {
3363 let mut result__ = ::windows::core::zeroed::<bool>();
3364 (::windows::core::Interface::vtable(this).IsEnabled)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3365 }
3366 }
3367 pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> {
3368 let this = self;
3369 unsafe { (::windows::core::Interface::vtable(this).SetIsEnabled)(::windows::core::Interface::as_raw(this), value).ok() }
3370 }
3371 pub fn Response(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
3372 let this = self;
3373 unsafe {
3374 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
3375 (::windows::core::Interface::vtable(this).Response)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3376 }
3377 }
3378 pub fn SetResponse(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
3379 let this = self;
3380 unsafe { (::windows::core::Interface::vtable(this).SetResponse)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
3381 }
3382}
3383impl ::core::cmp::PartialEq for EmailMailboxAutoReply {
3384 fn eq(&self, other: &Self) -> bool {
3385 self.0 == other.0
3386 }
3387}
3388impl ::core::cmp::Eq for EmailMailboxAutoReply {}
3389impl ::core::fmt::Debug for EmailMailboxAutoReply {
3390 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
3391 f.debug_tuple("EmailMailboxAutoReply").field(&self.0).finish()
3392 }
3393}
3394impl ::windows::core::RuntimeType for EmailMailboxAutoReply {
3395 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailMailboxAutoReply;{e223254c-8ab4-485b-b31f-04d15476bd59})");
3396}
3397impl ::core::clone::Clone for EmailMailboxAutoReply {
3398 fn clone(&self) -> Self {
3399 Self(self.0.clone())
3400 }
3401}
3402unsafe impl ::windows::core::Interface for EmailMailboxAutoReply {
3403 type Vtable = IEmailMailboxAutoReply_Vtbl;
3404}
3405unsafe impl ::windows::core::ComInterface for EmailMailboxAutoReply {
3406 const IID: ::windows::core::GUID = <IEmailMailboxAutoReply as ::windows::core::ComInterface>::IID;
3407}
3408impl ::windows::core::RuntimeName for EmailMailboxAutoReply {
3409 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxAutoReply";
3410}
3411::windows::imp::interface_hierarchy!(EmailMailboxAutoReply, ::windows::core::IUnknown, ::windows::core::IInspectable);
3412unsafe impl ::core::marker::Send for EmailMailboxAutoReply {}
3413unsafe impl ::core::marker::Sync for EmailMailboxAutoReply {}
3414#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
3415#[repr(transparent)]
3416pub struct EmailMailboxAutoReplySettings(::windows::core::IUnknown);
3417impl EmailMailboxAutoReplySettings {
3418 pub fn new() -> ::windows::core::Result<Self> {
3419 Self::IActivationFactory(|f| f.ActivateInstance::<Self>())
3420 }
3421 fn IActivationFactory<R, F: FnOnce(&::windows::imp::IGenericFactory) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
3422 static SHARED: ::windows::imp::FactoryCache<EmailMailboxAutoReplySettings, ::windows::imp::IGenericFactory> = ::windows::imp::FactoryCache::new();
3423 SHARED.call(callback)
3424 }
3425 pub fn IsEnabled(&self) -> ::windows::core::Result<bool> {
3426 let this = self;
3427 unsafe {
3428 let mut result__ = ::windows::core::zeroed::<bool>();
3429 (::windows::core::Interface::vtable(this).IsEnabled)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3430 }
3431 }
3432 pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> {
3433 let this = self;
3434 unsafe { (::windows::core::Interface::vtable(this).SetIsEnabled)(::windows::core::Interface::as_raw(this), value).ok() }
3435 }
3436 pub fn ResponseKind(&self) -> ::windows::core::Result<EmailMailboxAutoReplyMessageResponseKind> {
3437 let this = self;
3438 unsafe {
3439 let mut result__ = ::windows::core::zeroed::<EmailMailboxAutoReplyMessageResponseKind>();
3440 (::windows::core::Interface::vtable(this).ResponseKind)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3441 }
3442 }
3443 pub fn SetResponseKind(&self, value: EmailMailboxAutoReplyMessageResponseKind) -> ::windows::core::Result<()> {
3444 let this = self;
3445 unsafe { (::windows::core::Interface::vtable(this).SetResponseKind)(::windows::core::Interface::as_raw(this), value).ok() }
3446 }
3447 #[doc = "*Required features: `\"Foundation\"`*"]
3448 #[cfg(feature = "Foundation")]
3449 pub fn StartTime(&self) -> ::windows::core::Result<super::super::Foundation::IReference<super::super::Foundation::DateTime>> {
3450 let this = self;
3451 unsafe {
3452 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IReference<super::super::Foundation::DateTime>>();
3453 (::windows::core::Interface::vtable(this).StartTime)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3454 }
3455 }
3456 #[doc = "*Required features: `\"Foundation\"`*"]
3457 #[cfg(feature = "Foundation")]
3458 pub fn SetStartTime<P0>(&self, value: P0) -> ::windows::core::Result<()>
3459 where
3460 P0: ::windows::core::TryIntoParam<super::super::Foundation::IReference<super::super::Foundation::DateTime>>,
3461 {
3462 let this = self;
3463 unsafe { (::windows::core::Interface::vtable(this).SetStartTime)(::windows::core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() }
3464 }
3465 #[doc = "*Required features: `\"Foundation\"`*"]
3466 #[cfg(feature = "Foundation")]
3467 pub fn EndTime(&self) -> ::windows::core::Result<super::super::Foundation::IReference<super::super::Foundation::DateTime>> {
3468 let this = self;
3469 unsafe {
3470 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IReference<super::super::Foundation::DateTime>>();
3471 (::windows::core::Interface::vtable(this).EndTime)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3472 }
3473 }
3474 #[doc = "*Required features: `\"Foundation\"`*"]
3475 #[cfg(feature = "Foundation")]
3476 pub fn SetEndTime<P0>(&self, value: P0) -> ::windows::core::Result<()>
3477 where
3478 P0: ::windows::core::TryIntoParam<super::super::Foundation::IReference<super::super::Foundation::DateTime>>,
3479 {
3480 let this = self;
3481 unsafe { (::windows::core::Interface::vtable(this).SetEndTime)(::windows::core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() }
3482 }
3483 pub fn InternalReply(&self) -> ::windows::core::Result<EmailMailboxAutoReply> {
3484 let this = self;
3485 unsafe {
3486 let mut result__ = ::windows::core::zeroed::<EmailMailboxAutoReply>();
3487 (::windows::core::Interface::vtable(this).InternalReply)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3488 }
3489 }
3490 pub fn KnownExternalReply(&self) -> ::windows::core::Result<EmailMailboxAutoReply> {
3491 let this = self;
3492 unsafe {
3493 let mut result__ = ::windows::core::zeroed::<EmailMailboxAutoReply>();
3494 (::windows::core::Interface::vtable(this).KnownExternalReply)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3495 }
3496 }
3497 pub fn UnknownExternalReply(&self) -> ::windows::core::Result<EmailMailboxAutoReply> {
3498 let this = self;
3499 unsafe {
3500 let mut result__ = ::windows::core::zeroed::<EmailMailboxAutoReply>();
3501 (::windows::core::Interface::vtable(this).UnknownExternalReply)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3502 }
3503 }
3504}
3505impl ::core::cmp::PartialEq for EmailMailboxAutoReplySettings {
3506 fn eq(&self, other: &Self) -> bool {
3507 self.0 == other.0
3508 }
3509}
3510impl ::core::cmp::Eq for EmailMailboxAutoReplySettings {}
3511impl ::core::fmt::Debug for EmailMailboxAutoReplySettings {
3512 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
3513 f.debug_tuple("EmailMailboxAutoReplySettings").field(&self.0).finish()
3514 }
3515}
3516impl ::windows::core::RuntimeType for EmailMailboxAutoReplySettings {
3517 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailMailboxAutoReplySettings;{a87a9fa8-0ac6-4b77-ba77-a6b99e9a27b8})");
3518}
3519impl ::core::clone::Clone for EmailMailboxAutoReplySettings {
3520 fn clone(&self) -> Self {
3521 Self(self.0.clone())
3522 }
3523}
3524unsafe impl ::windows::core::Interface for EmailMailboxAutoReplySettings {
3525 type Vtable = IEmailMailboxAutoReplySettings_Vtbl;
3526}
3527unsafe impl ::windows::core::ComInterface for EmailMailboxAutoReplySettings {
3528 const IID: ::windows::core::GUID = <IEmailMailboxAutoReplySettings as ::windows::core::ComInterface>::IID;
3529}
3530impl ::windows::core::RuntimeName for EmailMailboxAutoReplySettings {
3531 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxAutoReplySettings";
3532}
3533::windows::imp::interface_hierarchy!(EmailMailboxAutoReplySettings, ::windows::core::IUnknown, ::windows::core::IInspectable);
3534unsafe impl ::core::marker::Send for EmailMailboxAutoReplySettings {}
3535unsafe impl ::core::marker::Sync for EmailMailboxAutoReplySettings {}
3536#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
3537#[repr(transparent)]
3538pub struct EmailMailboxCapabilities(::windows::core::IUnknown);
3539impl EmailMailboxCapabilities {
3540 pub fn CanForwardMeetings(&self) -> ::windows::core::Result<bool> {
3541 let this = self;
3542 unsafe {
3543 let mut result__ = ::windows::core::zeroed::<bool>();
3544 (::windows::core::Interface::vtable(this).CanForwardMeetings)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3545 }
3546 }
3547 pub fn CanGetAndSetExternalAutoReplies(&self) -> ::windows::core::Result<bool> {
3548 let this = self;
3549 unsafe {
3550 let mut result__ = ::windows::core::zeroed::<bool>();
3551 (::windows::core::Interface::vtable(this).CanGetAndSetExternalAutoReplies)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3552 }
3553 }
3554 pub fn CanGetAndSetInternalAutoReplies(&self) -> ::windows::core::Result<bool> {
3555 let this = self;
3556 unsafe {
3557 let mut result__ = ::windows::core::zeroed::<bool>();
3558 (::windows::core::Interface::vtable(this).CanGetAndSetInternalAutoReplies)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3559 }
3560 }
3561 pub fn CanUpdateMeetingResponses(&self) -> ::windows::core::Result<bool> {
3562 let this = self;
3563 unsafe {
3564 let mut result__ = ::windows::core::zeroed::<bool>();
3565 (::windows::core::Interface::vtable(this).CanUpdateMeetingResponses)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3566 }
3567 }
3568 pub fn CanServerSearchFolders(&self) -> ::windows::core::Result<bool> {
3569 let this = self;
3570 unsafe {
3571 let mut result__ = ::windows::core::zeroed::<bool>();
3572 (::windows::core::Interface::vtable(this).CanServerSearchFolders)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3573 }
3574 }
3575 pub fn CanServerSearchMailbox(&self) -> ::windows::core::Result<bool> {
3576 let this = self;
3577 unsafe {
3578 let mut result__ = ::windows::core::zeroed::<bool>();
3579 (::windows::core::Interface::vtable(this).CanServerSearchMailbox)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3580 }
3581 }
3582 pub fn CanProposeNewTimeForMeetings(&self) -> ::windows::core::Result<bool> {
3583 let this = self;
3584 unsafe {
3585 let mut result__ = ::windows::core::zeroed::<bool>();
3586 (::windows::core::Interface::vtable(this).CanProposeNewTimeForMeetings)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3587 }
3588 }
3589 pub fn CanSmartSend(&self) -> ::windows::core::Result<bool> {
3590 let this = self;
3591 unsafe {
3592 let mut result__ = ::windows::core::zeroed::<bool>();
3593 (::windows::core::Interface::vtable(this).CanSmartSend)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3594 }
3595 }
3596 pub fn CanResolveRecipients(&self) -> ::windows::core::Result<bool> {
3597 let this = &::windows::core::ComInterface::cast::<IEmailMailboxCapabilities2>(self)?;
3598 unsafe {
3599 let mut result__ = ::windows::core::zeroed::<bool>();
3600 (::windows::core::Interface::vtable(this).CanResolveRecipients)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3601 }
3602 }
3603 pub fn CanValidateCertificates(&self) -> ::windows::core::Result<bool> {
3604 let this = &::windows::core::ComInterface::cast::<IEmailMailboxCapabilities2>(self)?;
3605 unsafe {
3606 let mut result__ = ::windows::core::zeroed::<bool>();
3607 (::windows::core::Interface::vtable(this).CanValidateCertificates)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3608 }
3609 }
3610 pub fn CanEmptyFolder(&self) -> ::windows::core::Result<bool> {
3611 let this = &::windows::core::ComInterface::cast::<IEmailMailboxCapabilities2>(self)?;
3612 unsafe {
3613 let mut result__ = ::windows::core::zeroed::<bool>();
3614 (::windows::core::Interface::vtable(this).CanEmptyFolder)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3615 }
3616 }
3617 pub fn CanCreateFolder(&self) -> ::windows::core::Result<bool> {
3618 let this = &::windows::core::ComInterface::cast::<IEmailMailboxCapabilities2>(self)?;
3619 unsafe {
3620 let mut result__ = ::windows::core::zeroed::<bool>();
3621 (::windows::core::Interface::vtable(this).CanCreateFolder)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3622 }
3623 }
3624 pub fn CanDeleteFolder(&self) -> ::windows::core::Result<bool> {
3625 let this = &::windows::core::ComInterface::cast::<IEmailMailboxCapabilities2>(self)?;
3626 unsafe {
3627 let mut result__ = ::windows::core::zeroed::<bool>();
3628 (::windows::core::Interface::vtable(this).CanDeleteFolder)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3629 }
3630 }
3631 pub fn CanMoveFolder(&self) -> ::windows::core::Result<bool> {
3632 let this = &::windows::core::ComInterface::cast::<IEmailMailboxCapabilities2>(self)?;
3633 unsafe {
3634 let mut result__ = ::windows::core::zeroed::<bool>();
3635 (::windows::core::Interface::vtable(this).CanMoveFolder)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3636 }
3637 }
3638 pub fn SetCanForwardMeetings(&self, value: bool) -> ::windows::core::Result<()> {
3639 let this = &::windows::core::ComInterface::cast::<IEmailMailboxCapabilities3>(self)?;
3640 unsafe { (::windows::core::Interface::vtable(this).SetCanForwardMeetings)(::windows::core::Interface::as_raw(this), value).ok() }
3641 }
3642 pub fn SetCanGetAndSetExternalAutoReplies(&self, value: bool) -> ::windows::core::Result<()> {
3643 let this = &::windows::core::ComInterface::cast::<IEmailMailboxCapabilities3>(self)?;
3644 unsafe { (::windows::core::Interface::vtable(this).SetCanGetAndSetExternalAutoReplies)(::windows::core::Interface::as_raw(this), value).ok() }
3645 }
3646 pub fn SetCanGetAndSetInternalAutoReplies(&self, value: bool) -> ::windows::core::Result<()> {
3647 let this = &::windows::core::ComInterface::cast::<IEmailMailboxCapabilities3>(self)?;
3648 unsafe { (::windows::core::Interface::vtable(this).SetCanGetAndSetInternalAutoReplies)(::windows::core::Interface::as_raw(this), value).ok() }
3649 }
3650 pub fn SetCanUpdateMeetingResponses(&self, value: bool) -> ::windows::core::Result<()> {
3651 let this = &::windows::core::ComInterface::cast::<IEmailMailboxCapabilities3>(self)?;
3652 unsafe { (::windows::core::Interface::vtable(this).SetCanUpdateMeetingResponses)(::windows::core::Interface::as_raw(this), value).ok() }
3653 }
3654 pub fn SetCanServerSearchFolders(&self, value: bool) -> ::windows::core::Result<()> {
3655 let this = &::windows::core::ComInterface::cast::<IEmailMailboxCapabilities3>(self)?;
3656 unsafe { (::windows::core::Interface::vtable(this).SetCanServerSearchFolders)(::windows::core::Interface::as_raw(this), value).ok() }
3657 }
3658 pub fn SetCanServerSearchMailbox(&self, value: bool) -> ::windows::core::Result<()> {
3659 let this = &::windows::core::ComInterface::cast::<IEmailMailboxCapabilities3>(self)?;
3660 unsafe { (::windows::core::Interface::vtable(this).SetCanServerSearchMailbox)(::windows::core::Interface::as_raw(this), value).ok() }
3661 }
3662 pub fn SetCanProposeNewTimeForMeetings(&self, value: bool) -> ::windows::core::Result<()> {
3663 let this = &::windows::core::ComInterface::cast::<IEmailMailboxCapabilities3>(self)?;
3664 unsafe { (::windows::core::Interface::vtable(this).SetCanProposeNewTimeForMeetings)(::windows::core::Interface::as_raw(this), value).ok() }
3665 }
3666 pub fn SetCanSmartSend(&self, value: bool) -> ::windows::core::Result<()> {
3667 let this = &::windows::core::ComInterface::cast::<IEmailMailboxCapabilities3>(self)?;
3668 unsafe { (::windows::core::Interface::vtable(this).SetCanSmartSend)(::windows::core::Interface::as_raw(this), value).ok() }
3669 }
3670 pub fn SetCanResolveRecipients(&self, value: bool) -> ::windows::core::Result<()> {
3671 let this = &::windows::core::ComInterface::cast::<IEmailMailboxCapabilities3>(self)?;
3672 unsafe { (::windows::core::Interface::vtable(this).SetCanResolveRecipients)(::windows::core::Interface::as_raw(this), value).ok() }
3673 }
3674 pub fn SetCanValidateCertificates(&self, value: bool) -> ::windows::core::Result<()> {
3675 let this = &::windows::core::ComInterface::cast::<IEmailMailboxCapabilities3>(self)?;
3676 unsafe { (::windows::core::Interface::vtable(this).SetCanValidateCertificates)(::windows::core::Interface::as_raw(this), value).ok() }
3677 }
3678 pub fn SetCanEmptyFolder(&self, value: bool) -> ::windows::core::Result<()> {
3679 let this = &::windows::core::ComInterface::cast::<IEmailMailboxCapabilities3>(self)?;
3680 unsafe { (::windows::core::Interface::vtable(this).SetCanEmptyFolder)(::windows::core::Interface::as_raw(this), value).ok() }
3681 }
3682 pub fn SetCanCreateFolder(&self, value: bool) -> ::windows::core::Result<()> {
3683 let this = &::windows::core::ComInterface::cast::<IEmailMailboxCapabilities3>(self)?;
3684 unsafe { (::windows::core::Interface::vtable(this).SetCanCreateFolder)(::windows::core::Interface::as_raw(this), value).ok() }
3685 }
3686 pub fn SetCanDeleteFolder(&self, value: bool) -> ::windows::core::Result<()> {
3687 let this = &::windows::core::ComInterface::cast::<IEmailMailboxCapabilities3>(self)?;
3688 unsafe { (::windows::core::Interface::vtable(this).SetCanDeleteFolder)(::windows::core::Interface::as_raw(this), value).ok() }
3689 }
3690 pub fn SetCanMoveFolder(&self, value: bool) -> ::windows::core::Result<()> {
3691 let this = &::windows::core::ComInterface::cast::<IEmailMailboxCapabilities3>(self)?;
3692 unsafe { (::windows::core::Interface::vtable(this).SetCanMoveFolder)(::windows::core::Interface::as_raw(this), value).ok() }
3693 }
3694}
3695impl ::core::cmp::PartialEq for EmailMailboxCapabilities {
3696 fn eq(&self, other: &Self) -> bool {
3697 self.0 == other.0
3698 }
3699}
3700impl ::core::cmp::Eq for EmailMailboxCapabilities {}
3701impl ::core::fmt::Debug for EmailMailboxCapabilities {
3702 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
3703 f.debug_tuple("EmailMailboxCapabilities").field(&self.0).finish()
3704 }
3705}
3706impl ::windows::core::RuntimeType for EmailMailboxCapabilities {
3707 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailMailboxCapabilities;{eedec3a6-89db-4305-82c4-439e0a33da11})");
3708}
3709impl ::core::clone::Clone for EmailMailboxCapabilities {
3710 fn clone(&self) -> Self {
3711 Self(self.0.clone())
3712 }
3713}
3714unsafe impl ::windows::core::Interface for EmailMailboxCapabilities {
3715 type Vtable = IEmailMailboxCapabilities_Vtbl;
3716}
3717unsafe impl ::windows::core::ComInterface for EmailMailboxCapabilities {
3718 const IID: ::windows::core::GUID = <IEmailMailboxCapabilities as ::windows::core::ComInterface>::IID;
3719}
3720impl ::windows::core::RuntimeName for EmailMailboxCapabilities {
3721 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxCapabilities";
3722}
3723::windows::imp::interface_hierarchy!(EmailMailboxCapabilities, ::windows::core::IUnknown, ::windows::core::IInspectable);
3724unsafe impl ::core::marker::Send for EmailMailboxCapabilities {}
3725unsafe impl ::core::marker::Sync for EmailMailboxCapabilities {}
3726#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
3727#[repr(transparent)]
3728pub struct EmailMailboxChange(::windows::core::IUnknown);
3729impl EmailMailboxChange {
3730 pub fn ChangeType(&self) -> ::windows::core::Result<EmailMailboxChangeType> {
3731 let this = self;
3732 unsafe {
3733 let mut result__ = ::windows::core::zeroed::<EmailMailboxChangeType>();
3734 (::windows::core::Interface::vtable(this).ChangeType)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3735 }
3736 }
3737 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
3738 #[cfg(feature = "Foundation_Collections")]
3739 pub fn MailboxActions(&self) -> ::windows::core::Result<super::super::Foundation::Collections::IVector<EmailMailboxAction>> {
3740 let this = self;
3741 unsafe {
3742 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::Collections::IVector<EmailMailboxAction>>();
3743 (::windows::core::Interface::vtable(this).MailboxActions)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3744 }
3745 }
3746 pub fn Message(&self) -> ::windows::core::Result<EmailMessage> {
3747 let this = self;
3748 unsafe {
3749 let mut result__ = ::windows::core::zeroed::<EmailMessage>();
3750 (::windows::core::Interface::vtable(this).Message)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3751 }
3752 }
3753 pub fn Folder(&self) -> ::windows::core::Result<EmailFolder> {
3754 let this = self;
3755 unsafe {
3756 let mut result__ = ::windows::core::zeroed::<EmailFolder>();
3757 (::windows::core::Interface::vtable(this).Folder)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3758 }
3759 }
3760}
3761impl ::core::cmp::PartialEq for EmailMailboxChange {
3762 fn eq(&self, other: &Self) -> bool {
3763 self.0 == other.0
3764 }
3765}
3766impl ::core::cmp::Eq for EmailMailboxChange {}
3767impl ::core::fmt::Debug for EmailMailboxChange {
3768 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
3769 f.debug_tuple("EmailMailboxChange").field(&self.0).finish()
3770 }
3771}
3772impl ::windows::core::RuntimeType for EmailMailboxChange {
3773 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailMailboxChange;{61edf54b-11ef-400c-adde-8cde65c85e66})");
3774}
3775impl ::core::clone::Clone for EmailMailboxChange {
3776 fn clone(&self) -> Self {
3777 Self(self.0.clone())
3778 }
3779}
3780unsafe impl ::windows::core::Interface for EmailMailboxChange {
3781 type Vtable = IEmailMailboxChange_Vtbl;
3782}
3783unsafe impl ::windows::core::ComInterface for EmailMailboxChange {
3784 const IID: ::windows::core::GUID = <IEmailMailboxChange as ::windows::core::ComInterface>::IID;
3785}
3786impl ::windows::core::RuntimeName for EmailMailboxChange {
3787 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxChange";
3788}
3789::windows::imp::interface_hierarchy!(EmailMailboxChange, ::windows::core::IUnknown, ::windows::core::IInspectable);
3790unsafe impl ::core::marker::Send for EmailMailboxChange {}
3791unsafe impl ::core::marker::Sync for EmailMailboxChange {}
3792#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
3793#[repr(transparent)]
3794pub struct EmailMailboxChangeReader(::windows::core::IUnknown);
3795impl EmailMailboxChangeReader {
3796 pub fn AcceptChanges(&self) -> ::windows::core::Result<()> {
3797 let this = self;
3798 unsafe { (::windows::core::Interface::vtable(this).AcceptChanges)(::windows::core::Interface::as_raw(this)).ok() }
3799 }
3800 pub fn AcceptChangesThrough(&self, lastchangetoacknowledge: &EmailMailboxChange) -> ::windows::core::Result<()> {
3801 let this = self;
3802 unsafe { (::windows::core::Interface::vtable(this).AcceptChangesThrough)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(lastchangetoacknowledge)).ok() }
3803 }
3804 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
3805 #[cfg(feature = "Foundation_Collections")]
3806 pub fn ReadBatchAsync(&self) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<EmailMailboxChange>>> {
3807 let this = self;
3808 unsafe {
3809 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<EmailMailboxChange>>>();
3810 (::windows::core::Interface::vtable(this).ReadBatchAsync)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3811 }
3812 }
3813}
3814impl ::core::cmp::PartialEq for EmailMailboxChangeReader {
3815 fn eq(&self, other: &Self) -> bool {
3816 self.0 == other.0
3817 }
3818}
3819impl ::core::cmp::Eq for EmailMailboxChangeReader {}
3820impl ::core::fmt::Debug for EmailMailboxChangeReader {
3821 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
3822 f.debug_tuple("EmailMailboxChangeReader").field(&self.0).finish()
3823 }
3824}
3825impl ::windows::core::RuntimeType for EmailMailboxChangeReader {
3826 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailMailboxChangeReader;{bdbd0ebb-c53d-4331-97be-be75a2146a75})");
3827}
3828impl ::core::clone::Clone for EmailMailboxChangeReader {
3829 fn clone(&self) -> Self {
3830 Self(self.0.clone())
3831 }
3832}
3833unsafe impl ::windows::core::Interface for EmailMailboxChangeReader {
3834 type Vtable = IEmailMailboxChangeReader_Vtbl;
3835}
3836unsafe impl ::windows::core::ComInterface for EmailMailboxChangeReader {
3837 const IID: ::windows::core::GUID = <IEmailMailboxChangeReader as ::windows::core::ComInterface>::IID;
3838}
3839impl ::windows::core::RuntimeName for EmailMailboxChangeReader {
3840 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxChangeReader";
3841}
3842::windows::imp::interface_hierarchy!(EmailMailboxChangeReader, ::windows::core::IUnknown, ::windows::core::IInspectable);
3843unsafe impl ::core::marker::Send for EmailMailboxChangeReader {}
3844unsafe impl ::core::marker::Sync for EmailMailboxChangeReader {}
3845#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
3846#[repr(transparent)]
3847pub struct EmailMailboxChangeTracker(::windows::core::IUnknown);
3848impl EmailMailboxChangeTracker {
3849 pub fn IsTracking(&self) -> ::windows::core::Result<bool> {
3850 let this = self;
3851 unsafe {
3852 let mut result__ = ::windows::core::zeroed::<bool>();
3853 (::windows::core::Interface::vtable(this).IsTracking)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3854 }
3855 }
3856 pub fn Enable(&self) -> ::windows::core::Result<()> {
3857 let this = self;
3858 unsafe { (::windows::core::Interface::vtable(this).Enable)(::windows::core::Interface::as_raw(this)).ok() }
3859 }
3860 pub fn GetChangeReader(&self) -> ::windows::core::Result<EmailMailboxChangeReader> {
3861 let this = self;
3862 unsafe {
3863 let mut result__ = ::windows::core::zeroed::<EmailMailboxChangeReader>();
3864 (::windows::core::Interface::vtable(this).GetChangeReader)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3865 }
3866 }
3867 pub fn Reset(&self) -> ::windows::core::Result<()> {
3868 let this = self;
3869 unsafe { (::windows::core::Interface::vtable(this).Reset)(::windows::core::Interface::as_raw(this)).ok() }
3870 }
3871}
3872impl ::core::cmp::PartialEq for EmailMailboxChangeTracker {
3873 fn eq(&self, other: &Self) -> bool {
3874 self.0 == other.0
3875 }
3876}
3877impl ::core::cmp::Eq for EmailMailboxChangeTracker {}
3878impl ::core::fmt::Debug for EmailMailboxChangeTracker {
3879 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
3880 f.debug_tuple("EmailMailboxChangeTracker").field(&self.0).finish()
3881 }
3882}
3883impl ::windows::core::RuntimeType for EmailMailboxChangeTracker {
3884 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailMailboxChangeTracker;{7ae48638-5166-42b7-8882-fd21c92bdd4b})");
3885}
3886impl ::core::clone::Clone for EmailMailboxChangeTracker {
3887 fn clone(&self) -> Self {
3888 Self(self.0.clone())
3889 }
3890}
3891unsafe impl ::windows::core::Interface for EmailMailboxChangeTracker {
3892 type Vtable = IEmailMailboxChangeTracker_Vtbl;
3893}
3894unsafe impl ::windows::core::ComInterface for EmailMailboxChangeTracker {
3895 const IID: ::windows::core::GUID = <IEmailMailboxChangeTracker as ::windows::core::ComInterface>::IID;
3896}
3897impl ::windows::core::RuntimeName for EmailMailboxChangeTracker {
3898 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxChangeTracker";
3899}
3900::windows::imp::interface_hierarchy!(EmailMailboxChangeTracker, ::windows::core::IUnknown, ::windows::core::IInspectable);
3901unsafe impl ::core::marker::Send for EmailMailboxChangeTracker {}
3902unsafe impl ::core::marker::Sync for EmailMailboxChangeTracker {}
3903#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
3904#[repr(transparent)]
3905pub struct EmailMailboxChangedDeferral(::windows::core::IUnknown);
3906impl EmailMailboxChangedDeferral {
3907 pub fn Complete(&self) -> ::windows::core::Result<()> {
3908 let this = self;
3909 unsafe { (::windows::core::Interface::vtable(this).Complete)(::windows::core::Interface::as_raw(this)).ok() }
3910 }
3911}
3912impl ::core::cmp::PartialEq for EmailMailboxChangedDeferral {
3913 fn eq(&self, other: &Self) -> bool {
3914 self.0 == other.0
3915 }
3916}
3917impl ::core::cmp::Eq for EmailMailboxChangedDeferral {}
3918impl ::core::fmt::Debug for EmailMailboxChangedDeferral {
3919 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
3920 f.debug_tuple("EmailMailboxChangedDeferral").field(&self.0).finish()
3921 }
3922}
3923impl ::windows::core::RuntimeType for EmailMailboxChangedDeferral {
3924 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailMailboxChangedDeferral;{779a74c1-97c5-4b54-b30d-306232623e6d})");
3925}
3926impl ::core::clone::Clone for EmailMailboxChangedDeferral {
3927 fn clone(&self) -> Self {
3928 Self(self.0.clone())
3929 }
3930}
3931unsafe impl ::windows::core::Interface for EmailMailboxChangedDeferral {
3932 type Vtable = IEmailMailboxChangedDeferral_Vtbl;
3933}
3934unsafe impl ::windows::core::ComInterface for EmailMailboxChangedDeferral {
3935 const IID: ::windows::core::GUID = <IEmailMailboxChangedDeferral as ::windows::core::ComInterface>::IID;
3936}
3937impl ::windows::core::RuntimeName for EmailMailboxChangedDeferral {
3938 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxChangedDeferral";
3939}
3940::windows::imp::interface_hierarchy!(EmailMailboxChangedDeferral, ::windows::core::IUnknown, ::windows::core::IInspectable);
3941unsafe impl ::core::marker::Send for EmailMailboxChangedDeferral {}
3942unsafe impl ::core::marker::Sync for EmailMailboxChangedDeferral {}
3943#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
3944#[repr(transparent)]
3945pub struct EmailMailboxChangedEventArgs(::windows::core::IUnknown);
3946impl EmailMailboxChangedEventArgs {
3947 pub fn GetDeferral(&self) -> ::windows::core::Result<EmailMailboxChangedDeferral> {
3948 let this = self;
3949 unsafe {
3950 let mut result__ = ::windows::core::zeroed::<EmailMailboxChangedDeferral>();
3951 (::windows::core::Interface::vtable(this).GetDeferral)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3952 }
3953 }
3954}
3955impl ::core::cmp::PartialEq for EmailMailboxChangedEventArgs {
3956 fn eq(&self, other: &Self) -> bool {
3957 self.0 == other.0
3958 }
3959}
3960impl ::core::cmp::Eq for EmailMailboxChangedEventArgs {}
3961impl ::core::fmt::Debug for EmailMailboxChangedEventArgs {
3962 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
3963 f.debug_tuple("EmailMailboxChangedEventArgs").field(&self.0).finish()
3964 }
3965}
3966impl ::windows::core::RuntimeType for EmailMailboxChangedEventArgs {
3967 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailMailboxChangedEventArgs;{3cfd5f6e-01d4-4e4a-a44c-b22dd42ec207})");
3968}
3969impl ::core::clone::Clone for EmailMailboxChangedEventArgs {
3970 fn clone(&self) -> Self {
3971 Self(self.0.clone())
3972 }
3973}
3974unsafe impl ::windows::core::Interface for EmailMailboxChangedEventArgs {
3975 type Vtable = IEmailMailboxChangedEventArgs_Vtbl;
3976}
3977unsafe impl ::windows::core::ComInterface for EmailMailboxChangedEventArgs {
3978 const IID: ::windows::core::GUID = <IEmailMailboxChangedEventArgs as ::windows::core::ComInterface>::IID;
3979}
3980impl ::windows::core::RuntimeName for EmailMailboxChangedEventArgs {
3981 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxChangedEventArgs";
3982}
3983::windows::imp::interface_hierarchy!(EmailMailboxChangedEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable);
3984unsafe impl ::core::marker::Send for EmailMailboxChangedEventArgs {}
3985unsafe impl ::core::marker::Sync for EmailMailboxChangedEventArgs {}
3986#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
3987#[repr(transparent)]
3988pub struct EmailMailboxCreateFolderResult(::windows::core::IUnknown);
3989impl EmailMailboxCreateFolderResult {
3990 pub fn Status(&self) -> ::windows::core::Result<EmailMailboxCreateFolderStatus> {
3991 let this = self;
3992 unsafe {
3993 let mut result__ = ::windows::core::zeroed::<EmailMailboxCreateFolderStatus>();
3994 (::windows::core::Interface::vtable(this).Status)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
3995 }
3996 }
3997 pub fn Folder(&self) -> ::windows::core::Result<EmailFolder> {
3998 let this = self;
3999 unsafe {
4000 let mut result__ = ::windows::core::zeroed::<EmailFolder>();
4001 (::windows::core::Interface::vtable(this).Folder)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4002 }
4003 }
4004}
4005impl ::core::cmp::PartialEq for EmailMailboxCreateFolderResult {
4006 fn eq(&self, other: &Self) -> bool {
4007 self.0 == other.0
4008 }
4009}
4010impl ::core::cmp::Eq for EmailMailboxCreateFolderResult {}
4011impl ::core::fmt::Debug for EmailMailboxCreateFolderResult {
4012 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
4013 f.debug_tuple("EmailMailboxCreateFolderResult").field(&self.0).finish()
4014 }
4015}
4016impl ::windows::core::RuntimeType for EmailMailboxCreateFolderResult {
4017 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailMailboxCreateFolderResult;{b228557f-2885-4998-b595-8a2d374ce950})");
4018}
4019impl ::core::clone::Clone for EmailMailboxCreateFolderResult {
4020 fn clone(&self) -> Self {
4021 Self(self.0.clone())
4022 }
4023}
4024unsafe impl ::windows::core::Interface for EmailMailboxCreateFolderResult {
4025 type Vtable = IEmailMailboxCreateFolderResult_Vtbl;
4026}
4027unsafe impl ::windows::core::ComInterface for EmailMailboxCreateFolderResult {
4028 const IID: ::windows::core::GUID = <IEmailMailboxCreateFolderResult as ::windows::core::ComInterface>::IID;
4029}
4030impl ::windows::core::RuntimeName for EmailMailboxCreateFolderResult {
4031 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxCreateFolderResult";
4032}
4033::windows::imp::interface_hierarchy!(EmailMailboxCreateFolderResult, ::windows::core::IUnknown, ::windows::core::IInspectable);
4034unsafe impl ::core::marker::Send for EmailMailboxCreateFolderResult {}
4035unsafe impl ::core::marker::Sync for EmailMailboxCreateFolderResult {}
4036#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
4037#[repr(transparent)]
4038pub struct EmailMailboxPolicies(::windows::core::IUnknown);
4039impl EmailMailboxPolicies {
4040 pub fn AllowedSmimeEncryptionAlgorithmNegotiation(&self) -> ::windows::core::Result<EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation> {
4041 let this = self;
4042 unsafe {
4043 let mut result__ = ::windows::core::zeroed::<EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation>();
4044 (::windows::core::Interface::vtable(this).AllowedSmimeEncryptionAlgorithmNegotiation)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4045 }
4046 }
4047 pub fn AllowSmimeSoftCertificates(&self) -> ::windows::core::Result<bool> {
4048 let this = self;
4049 unsafe {
4050 let mut result__ = ::windows::core::zeroed::<bool>();
4051 (::windows::core::Interface::vtable(this).AllowSmimeSoftCertificates)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4052 }
4053 }
4054 #[doc = "*Required features: `\"Foundation\"`*"]
4055 #[cfg(feature = "Foundation")]
4056 pub fn RequiredSmimeEncryptionAlgorithm(&self) -> ::windows::core::Result<super::super::Foundation::IReference<EmailMailboxSmimeEncryptionAlgorithm>> {
4057 let this = self;
4058 unsafe {
4059 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IReference<EmailMailboxSmimeEncryptionAlgorithm>>();
4060 (::windows::core::Interface::vtable(this).RequiredSmimeEncryptionAlgorithm)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4061 }
4062 }
4063 #[doc = "*Required features: `\"Foundation\"`*"]
4064 #[cfg(feature = "Foundation")]
4065 pub fn RequiredSmimeSigningAlgorithm(&self) -> ::windows::core::Result<super::super::Foundation::IReference<EmailMailboxSmimeSigningAlgorithm>> {
4066 let this = self;
4067 unsafe {
4068 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IReference<EmailMailboxSmimeSigningAlgorithm>>();
4069 (::windows::core::Interface::vtable(this).RequiredSmimeSigningAlgorithm)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4070 }
4071 }
4072 pub fn MustEncryptSmimeMessages(&self) -> ::windows::core::Result<bool> {
4073 let this = &::windows::core::ComInterface::cast::<IEmailMailboxPolicies2>(self)?;
4074 unsafe {
4075 let mut result__ = ::windows::core::zeroed::<bool>();
4076 (::windows::core::Interface::vtable(this).MustEncryptSmimeMessages)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4077 }
4078 }
4079 pub fn MustSignSmimeMessages(&self) -> ::windows::core::Result<bool> {
4080 let this = &::windows::core::ComInterface::cast::<IEmailMailboxPolicies2>(self)?;
4081 unsafe {
4082 let mut result__ = ::windows::core::zeroed::<bool>();
4083 (::windows::core::Interface::vtable(this).MustSignSmimeMessages)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4084 }
4085 }
4086 pub fn SetAllowedSmimeEncryptionAlgorithmNegotiation(&self, value: EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation) -> ::windows::core::Result<()> {
4087 let this = &::windows::core::ComInterface::cast::<IEmailMailboxPolicies3>(self)?;
4088 unsafe { (::windows::core::Interface::vtable(this).SetAllowedSmimeEncryptionAlgorithmNegotiation)(::windows::core::Interface::as_raw(this), value).ok() }
4089 }
4090 pub fn SetAllowSmimeSoftCertificates(&self, value: bool) -> ::windows::core::Result<()> {
4091 let this = &::windows::core::ComInterface::cast::<IEmailMailboxPolicies3>(self)?;
4092 unsafe { (::windows::core::Interface::vtable(this).SetAllowSmimeSoftCertificates)(::windows::core::Interface::as_raw(this), value).ok() }
4093 }
4094 #[doc = "*Required features: `\"Foundation\"`*"]
4095 #[cfg(feature = "Foundation")]
4096 pub fn SetRequiredSmimeEncryptionAlgorithm<P0>(&self, value: P0) -> ::windows::core::Result<()>
4097 where
4098 P0: ::windows::core::TryIntoParam<super::super::Foundation::IReference<EmailMailboxSmimeEncryptionAlgorithm>>,
4099 {
4100 let this = &::windows::core::ComInterface::cast::<IEmailMailboxPolicies3>(self)?;
4101 unsafe { (::windows::core::Interface::vtable(this).SetRequiredSmimeEncryptionAlgorithm)(::windows::core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() }
4102 }
4103 #[doc = "*Required features: `\"Foundation\"`*"]
4104 #[cfg(feature = "Foundation")]
4105 pub fn SetRequiredSmimeSigningAlgorithm<P0>(&self, value: P0) -> ::windows::core::Result<()>
4106 where
4107 P0: ::windows::core::TryIntoParam<super::super::Foundation::IReference<EmailMailboxSmimeSigningAlgorithm>>,
4108 {
4109 let this = &::windows::core::ComInterface::cast::<IEmailMailboxPolicies3>(self)?;
4110 unsafe { (::windows::core::Interface::vtable(this).SetRequiredSmimeSigningAlgorithm)(::windows::core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() }
4111 }
4112 pub fn SetMustEncryptSmimeMessages(&self, value: bool) -> ::windows::core::Result<()> {
4113 let this = &::windows::core::ComInterface::cast::<IEmailMailboxPolicies3>(self)?;
4114 unsafe { (::windows::core::Interface::vtable(this).SetMustEncryptSmimeMessages)(::windows::core::Interface::as_raw(this), value).ok() }
4115 }
4116 pub fn SetMustSignSmimeMessages(&self, value: bool) -> ::windows::core::Result<()> {
4117 let this = &::windows::core::ComInterface::cast::<IEmailMailboxPolicies3>(self)?;
4118 unsafe { (::windows::core::Interface::vtable(this).SetMustSignSmimeMessages)(::windows::core::Interface::as_raw(this), value).ok() }
4119 }
4120}
4121impl ::core::cmp::PartialEq for EmailMailboxPolicies {
4122 fn eq(&self, other: &Self) -> bool {
4123 self.0 == other.0
4124 }
4125}
4126impl ::core::cmp::Eq for EmailMailboxPolicies {}
4127impl ::core::fmt::Debug for EmailMailboxPolicies {
4128 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
4129 f.debug_tuple("EmailMailboxPolicies").field(&self.0).finish()
4130 }
4131}
4132impl ::windows::core::RuntimeType for EmailMailboxPolicies {
4133 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailMailboxPolicies;{1f3345c5-1c3b-4dc7-b410-6373783e545d})");
4134}
4135impl ::core::clone::Clone for EmailMailboxPolicies {
4136 fn clone(&self) -> Self {
4137 Self(self.0.clone())
4138 }
4139}
4140unsafe impl ::windows::core::Interface for EmailMailboxPolicies {
4141 type Vtable = IEmailMailboxPolicies_Vtbl;
4142}
4143unsafe impl ::windows::core::ComInterface for EmailMailboxPolicies {
4144 const IID: ::windows::core::GUID = <IEmailMailboxPolicies as ::windows::core::ComInterface>::IID;
4145}
4146impl ::windows::core::RuntimeName for EmailMailboxPolicies {
4147 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxPolicies";
4148}
4149::windows::imp::interface_hierarchy!(EmailMailboxPolicies, ::windows::core::IUnknown, ::windows::core::IInspectable);
4150unsafe impl ::core::marker::Send for EmailMailboxPolicies {}
4151unsafe impl ::core::marker::Sync for EmailMailboxPolicies {}
4152#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
4153#[repr(transparent)]
4154pub struct EmailMailboxSyncManager(::windows::core::IUnknown);
4155impl EmailMailboxSyncManager {
4156 pub fn Status(&self) -> ::windows::core::Result<EmailMailboxSyncStatus> {
4157 let this = self;
4158 unsafe {
4159 let mut result__ = ::windows::core::zeroed::<EmailMailboxSyncStatus>();
4160 (::windows::core::Interface::vtable(this).Status)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4161 }
4162 }
4163 #[doc = "*Required features: `\"Foundation\"`*"]
4164 #[cfg(feature = "Foundation")]
4165 pub fn LastSuccessfulSyncTime(&self) -> ::windows::core::Result<super::super::Foundation::DateTime> {
4166 let this = self;
4167 unsafe {
4168 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::DateTime>();
4169 (::windows::core::Interface::vtable(this).LastSuccessfulSyncTime)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4170 }
4171 }
4172 #[doc = "*Required features: `\"Foundation\"`*"]
4173 #[cfg(feature = "Foundation")]
4174 pub fn LastAttemptedSyncTime(&self) -> ::windows::core::Result<super::super::Foundation::DateTime> {
4175 let this = self;
4176 unsafe {
4177 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::DateTime>();
4178 (::windows::core::Interface::vtable(this).LastAttemptedSyncTime)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4179 }
4180 }
4181 #[doc = "*Required features: `\"Foundation\"`*"]
4182 #[cfg(feature = "Foundation")]
4183 pub fn SyncAsync(&self) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<bool>> {
4184 let this = self;
4185 unsafe {
4186 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<bool>>();
4187 (::windows::core::Interface::vtable(this).SyncAsync)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4188 }
4189 }
4190 #[doc = "*Required features: `\"Foundation\"`*"]
4191 #[cfg(feature = "Foundation")]
4192 pub fn SyncStatusChanged(&self, handler: &super::super::Foundation::TypedEventHandler<EmailMailboxSyncManager, ::windows::core::IInspectable>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> {
4193 let this = self;
4194 unsafe {
4195 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::EventRegistrationToken>();
4196 (::windows::core::Interface::vtable(this).SyncStatusChanged)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(handler), &mut result__).from_abi(result__)
4197 }
4198 }
4199 #[doc = "*Required features: `\"Foundation\"`*"]
4200 #[cfg(feature = "Foundation")]
4201 pub fn RemoveSyncStatusChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> {
4202 let this = self;
4203 unsafe { (::windows::core::Interface::vtable(this).RemoveSyncStatusChanged)(::windows::core::Interface::as_raw(this), token).ok() }
4204 }
4205 pub fn SetStatus(&self, value: EmailMailboxSyncStatus) -> ::windows::core::Result<()> {
4206 let this = &::windows::core::ComInterface::cast::<IEmailMailboxSyncManager2>(self)?;
4207 unsafe { (::windows::core::Interface::vtable(this).SetStatus)(::windows::core::Interface::as_raw(this), value).ok() }
4208 }
4209 #[doc = "*Required features: `\"Foundation\"`*"]
4210 #[cfg(feature = "Foundation")]
4211 pub fn SetLastSuccessfulSyncTime(&self, value: super::super::Foundation::DateTime) -> ::windows::core::Result<()> {
4212 let this = &::windows::core::ComInterface::cast::<IEmailMailboxSyncManager2>(self)?;
4213 unsafe { (::windows::core::Interface::vtable(this).SetLastSuccessfulSyncTime)(::windows::core::Interface::as_raw(this), value).ok() }
4214 }
4215 #[doc = "*Required features: `\"Foundation\"`*"]
4216 #[cfg(feature = "Foundation")]
4217 pub fn SetLastAttemptedSyncTime(&self, value: super::super::Foundation::DateTime) -> ::windows::core::Result<()> {
4218 let this = &::windows::core::ComInterface::cast::<IEmailMailboxSyncManager2>(self)?;
4219 unsafe { (::windows::core::Interface::vtable(this).SetLastAttemptedSyncTime)(::windows::core::Interface::as_raw(this), value).ok() }
4220 }
4221}
4222impl ::core::cmp::PartialEq for EmailMailboxSyncManager {
4223 fn eq(&self, other: &Self) -> bool {
4224 self.0 == other.0
4225 }
4226}
4227impl ::core::cmp::Eq for EmailMailboxSyncManager {}
4228impl ::core::fmt::Debug for EmailMailboxSyncManager {
4229 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
4230 f.debug_tuple("EmailMailboxSyncManager").field(&self.0).finish()
4231 }
4232}
4233impl ::windows::core::RuntimeType for EmailMailboxSyncManager {
4234 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailMailboxSyncManager;{517ac55a-3591-4b5d-85bc-c71dde862263})");
4235}
4236impl ::core::clone::Clone for EmailMailboxSyncManager {
4237 fn clone(&self) -> Self {
4238 Self(self.0.clone())
4239 }
4240}
4241unsafe impl ::windows::core::Interface for EmailMailboxSyncManager {
4242 type Vtable = IEmailMailboxSyncManager_Vtbl;
4243}
4244unsafe impl ::windows::core::ComInterface for EmailMailboxSyncManager {
4245 const IID: ::windows::core::GUID = <IEmailMailboxSyncManager as ::windows::core::ComInterface>::IID;
4246}
4247impl ::windows::core::RuntimeName for EmailMailboxSyncManager {
4248 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxSyncManager";
4249}
4250::windows::imp::interface_hierarchy!(EmailMailboxSyncManager, ::windows::core::IUnknown, ::windows::core::IInspectable);
4251unsafe impl ::core::marker::Send for EmailMailboxSyncManager {}
4252unsafe impl ::core::marker::Sync for EmailMailboxSyncManager {}
4253#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
4254pub struct EmailManager;
4255impl EmailManager {
4256 #[doc = "*Required features: `\"Foundation\"`*"]
4257 #[cfg(feature = "Foundation")]
4258 pub fn ShowComposeNewEmailAsync(message: &EmailMessage) -> ::windows::core::Result<super::super::Foundation::IAsyncAction> {
4259 Self::IEmailManagerStatics(|this| unsafe {
4260 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncAction>();
4261 (::windows::core::Interface::vtable(this).ShowComposeNewEmailAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(message), &mut result__).from_abi(result__)
4262 })
4263 }
4264 #[doc = "*Required features: `\"Foundation\"`*"]
4265 #[cfg(feature = "Foundation")]
4266 pub fn RequestStoreAsync(accesstype: EmailStoreAccessType) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<EmailStore>> {
4267 Self::IEmailManagerStatics2(|this| unsafe {
4268 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<EmailStore>>();
4269 (::windows::core::Interface::vtable(this).RequestStoreAsync)(::windows::core::Interface::as_raw(this), accesstype, &mut result__).from_abi(result__)
4270 })
4271 }
4272 #[doc = "*Required features: `\"System\"`*"]
4273 #[cfg(feature = "System")]
4274 pub fn GetForUser(user: &super::super::System::User) -> ::windows::core::Result<EmailManagerForUser> {
4275 Self::IEmailManagerStatics3(|this| unsafe {
4276 let mut result__ = ::windows::core::zeroed::<EmailManagerForUser>();
4277 (::windows::core::Interface::vtable(this).GetForUser)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(user), &mut result__).from_abi(result__)
4278 })
4279 }
4280 #[doc(hidden)]
4281 pub fn IEmailManagerStatics<R, F: FnOnce(&IEmailManagerStatics) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
4282 static SHARED: ::windows::imp::FactoryCache<EmailManager, IEmailManagerStatics> = ::windows::imp::FactoryCache::new();
4283 SHARED.call(callback)
4284 }
4285 #[doc(hidden)]
4286 pub fn IEmailManagerStatics2<R, F: FnOnce(&IEmailManagerStatics2) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
4287 static SHARED: ::windows::imp::FactoryCache<EmailManager, IEmailManagerStatics2> = ::windows::imp::FactoryCache::new();
4288 SHARED.call(callback)
4289 }
4290 #[doc(hidden)]
4291 pub fn IEmailManagerStatics3<R, F: FnOnce(&IEmailManagerStatics3) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
4292 static SHARED: ::windows::imp::FactoryCache<EmailManager, IEmailManagerStatics3> = ::windows::imp::FactoryCache::new();
4293 SHARED.call(callback)
4294 }
4295}
4296impl ::windows::core::RuntimeName for EmailManager {
4297 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailManager";
4298}
4299#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
4300#[repr(transparent)]
4301pub struct EmailManagerForUser(::windows::core::IUnknown);
4302impl EmailManagerForUser {
4303 #[doc = "*Required features: `\"Foundation\"`*"]
4304 #[cfg(feature = "Foundation")]
4305 pub fn ShowComposeNewEmailAsync(&self, message: &EmailMessage) -> ::windows::core::Result<super::super::Foundation::IAsyncAction> {
4306 let this = self;
4307 unsafe {
4308 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncAction>();
4309 (::windows::core::Interface::vtable(this).ShowComposeNewEmailAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(message), &mut result__).from_abi(result__)
4310 }
4311 }
4312 #[doc = "*Required features: `\"Foundation\"`*"]
4313 #[cfg(feature = "Foundation")]
4314 pub fn RequestStoreAsync(&self, accesstype: EmailStoreAccessType) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<EmailStore>> {
4315 let this = self;
4316 unsafe {
4317 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<EmailStore>>();
4318 (::windows::core::Interface::vtable(this).RequestStoreAsync)(::windows::core::Interface::as_raw(this), accesstype, &mut result__).from_abi(result__)
4319 }
4320 }
4321 #[doc = "*Required features: `\"System\"`*"]
4322 #[cfg(feature = "System")]
4323 pub fn User(&self) -> ::windows::core::Result<super::super::System::User> {
4324 let this = self;
4325 unsafe {
4326 let mut result__ = ::windows::core::zeroed::<super::super::System::User>();
4327 (::windows::core::Interface::vtable(this).User)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4328 }
4329 }
4330}
4331impl ::core::cmp::PartialEq for EmailManagerForUser {
4332 fn eq(&self, other: &Self) -> bool {
4333 self.0 == other.0
4334 }
4335}
4336impl ::core::cmp::Eq for EmailManagerForUser {}
4337impl ::core::fmt::Debug for EmailManagerForUser {
4338 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
4339 f.debug_tuple("EmailManagerForUser").field(&self.0).finish()
4340 }
4341}
4342impl ::windows::core::RuntimeType for EmailManagerForUser {
4343 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailManagerForUser;{f773de9f-3ca5-4b0f-90c1-156e40174ce5})");
4344}
4345impl ::core::clone::Clone for EmailManagerForUser {
4346 fn clone(&self) -> Self {
4347 Self(self.0.clone())
4348 }
4349}
4350unsafe impl ::windows::core::Interface for EmailManagerForUser {
4351 type Vtable = IEmailManagerForUser_Vtbl;
4352}
4353unsafe impl ::windows::core::ComInterface for EmailManagerForUser {
4354 const IID: ::windows::core::GUID = <IEmailManagerForUser as ::windows::core::ComInterface>::IID;
4355}
4356impl ::windows::core::RuntimeName for EmailManagerForUser {
4357 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailManagerForUser";
4358}
4359::windows::imp::interface_hierarchy!(EmailManagerForUser, ::windows::core::IUnknown, ::windows::core::IInspectable);
4360unsafe impl ::core::marker::Send for EmailManagerForUser {}
4361unsafe impl ::core::marker::Sync for EmailManagerForUser {}
4362#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
4363#[repr(transparent)]
4364pub struct EmailMeetingInfo(::windows::core::IUnknown);
4365impl EmailMeetingInfo {
4366 pub fn new() -> ::windows::core::Result<Self> {
4367 Self::IActivationFactory(|f| f.ActivateInstance::<Self>())
4368 }
4369 fn IActivationFactory<R, F: FnOnce(&::windows::imp::IGenericFactory) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
4370 static SHARED: ::windows::imp::FactoryCache<EmailMeetingInfo, ::windows::imp::IGenericFactory> = ::windows::imp::FactoryCache::new();
4371 SHARED.call(callback)
4372 }
4373 pub fn AllowNewTimeProposal(&self) -> ::windows::core::Result<bool> {
4374 let this = self;
4375 unsafe {
4376 let mut result__ = ::windows::core::zeroed::<bool>();
4377 (::windows::core::Interface::vtable(this).AllowNewTimeProposal)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4378 }
4379 }
4380 pub fn SetAllowNewTimeProposal(&self, value: bool) -> ::windows::core::Result<()> {
4381 let this = self;
4382 unsafe { (::windows::core::Interface::vtable(this).SetAllowNewTimeProposal)(::windows::core::Interface::as_raw(this), value).ok() }
4383 }
4384 pub fn AppointmentRoamingId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
4385 let this = self;
4386 unsafe {
4387 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
4388 (::windows::core::Interface::vtable(this).AppointmentRoamingId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4389 }
4390 }
4391 pub fn SetAppointmentRoamingId(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
4392 let this = self;
4393 unsafe { (::windows::core::Interface::vtable(this).SetAppointmentRoamingId)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
4394 }
4395 #[doc = "*Required features: `\"Foundation\"`*"]
4396 #[cfg(feature = "Foundation")]
4397 pub fn AppointmentOriginalStartTime(&self) -> ::windows::core::Result<super::super::Foundation::IReference<super::super::Foundation::DateTime>> {
4398 let this = self;
4399 unsafe {
4400 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IReference<super::super::Foundation::DateTime>>();
4401 (::windows::core::Interface::vtable(this).AppointmentOriginalStartTime)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4402 }
4403 }
4404 #[doc = "*Required features: `\"Foundation\"`*"]
4405 #[cfg(feature = "Foundation")]
4406 pub fn SetAppointmentOriginalStartTime<P0>(&self, value: P0) -> ::windows::core::Result<()>
4407 where
4408 P0: ::windows::core::TryIntoParam<super::super::Foundation::IReference<super::super::Foundation::DateTime>>,
4409 {
4410 let this = self;
4411 unsafe { (::windows::core::Interface::vtable(this).SetAppointmentOriginalStartTime)(::windows::core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() }
4412 }
4413 #[doc = "*Required features: `\"Foundation\"`*"]
4414 #[cfg(feature = "Foundation")]
4415 pub fn Duration(&self) -> ::windows::core::Result<super::super::Foundation::TimeSpan> {
4416 let this = self;
4417 unsafe {
4418 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::TimeSpan>();
4419 (::windows::core::Interface::vtable(this).Duration)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4420 }
4421 }
4422 #[doc = "*Required features: `\"Foundation\"`*"]
4423 #[cfg(feature = "Foundation")]
4424 pub fn SetDuration(&self, value: super::super::Foundation::TimeSpan) -> ::windows::core::Result<()> {
4425 let this = self;
4426 unsafe { (::windows::core::Interface::vtable(this).SetDuration)(::windows::core::Interface::as_raw(this), value).ok() }
4427 }
4428 pub fn IsAllDay(&self) -> ::windows::core::Result<bool> {
4429 let this = self;
4430 unsafe {
4431 let mut result__ = ::windows::core::zeroed::<bool>();
4432 (::windows::core::Interface::vtable(this).IsAllDay)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4433 }
4434 }
4435 pub fn SetIsAllDay(&self, value: bool) -> ::windows::core::Result<()> {
4436 let this = self;
4437 unsafe { (::windows::core::Interface::vtable(this).SetIsAllDay)(::windows::core::Interface::as_raw(this), value).ok() }
4438 }
4439 pub fn IsResponseRequested(&self) -> ::windows::core::Result<bool> {
4440 let this = self;
4441 unsafe {
4442 let mut result__ = ::windows::core::zeroed::<bool>();
4443 (::windows::core::Interface::vtable(this).IsResponseRequested)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4444 }
4445 }
4446 pub fn SetIsResponseRequested(&self, value: bool) -> ::windows::core::Result<()> {
4447 let this = self;
4448 unsafe { (::windows::core::Interface::vtable(this).SetIsResponseRequested)(::windows::core::Interface::as_raw(this), value).ok() }
4449 }
4450 pub fn Location(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
4451 let this = self;
4452 unsafe {
4453 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
4454 (::windows::core::Interface::vtable(this).Location)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4455 }
4456 }
4457 pub fn SetLocation(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
4458 let this = self;
4459 unsafe { (::windows::core::Interface::vtable(this).SetLocation)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
4460 }
4461 #[doc = "*Required features: `\"Foundation\"`*"]
4462 #[cfg(feature = "Foundation")]
4463 pub fn ProposedStartTime(&self) -> ::windows::core::Result<super::super::Foundation::IReference<super::super::Foundation::DateTime>> {
4464 let this = self;
4465 unsafe {
4466 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IReference<super::super::Foundation::DateTime>>();
4467 (::windows::core::Interface::vtable(this).ProposedStartTime)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4468 }
4469 }
4470 #[doc = "*Required features: `\"Foundation\"`*"]
4471 #[cfg(feature = "Foundation")]
4472 pub fn SetProposedStartTime<P0>(&self, proposedstarttime: P0) -> ::windows::core::Result<()>
4473 where
4474 P0: ::windows::core::TryIntoParam<super::super::Foundation::IReference<super::super::Foundation::DateTime>>,
4475 {
4476 let this = self;
4477 unsafe { (::windows::core::Interface::vtable(this).SetProposedStartTime)(::windows::core::Interface::as_raw(this), proposedstarttime.try_into_param()?.abi()).ok() }
4478 }
4479 #[doc = "*Required features: `\"Foundation\"`*"]
4480 #[cfg(feature = "Foundation")]
4481 pub fn ProposedDuration(&self) -> ::windows::core::Result<super::super::Foundation::IReference<super::super::Foundation::TimeSpan>> {
4482 let this = self;
4483 unsafe {
4484 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IReference<super::super::Foundation::TimeSpan>>();
4485 (::windows::core::Interface::vtable(this).ProposedDuration)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4486 }
4487 }
4488 #[doc = "*Required features: `\"Foundation\"`*"]
4489 #[cfg(feature = "Foundation")]
4490 pub fn SetProposedDuration<P0>(&self, duration: P0) -> ::windows::core::Result<()>
4491 where
4492 P0: ::windows::core::TryIntoParam<super::super::Foundation::IReference<super::super::Foundation::TimeSpan>>,
4493 {
4494 let this = self;
4495 unsafe { (::windows::core::Interface::vtable(this).SetProposedDuration)(::windows::core::Interface::as_raw(this), duration.try_into_param()?.abi()).ok() }
4496 }
4497 #[doc = "*Required features: `\"Foundation\"`*"]
4498 #[cfg(feature = "Foundation")]
4499 pub fn RecurrenceStartTime(&self) -> ::windows::core::Result<super::super::Foundation::IReference<super::super::Foundation::DateTime>> {
4500 let this = self;
4501 unsafe {
4502 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IReference<super::super::Foundation::DateTime>>();
4503 (::windows::core::Interface::vtable(this).RecurrenceStartTime)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4504 }
4505 }
4506 #[doc = "*Required features: `\"Foundation\"`*"]
4507 #[cfg(feature = "Foundation")]
4508 pub fn SetRecurrenceStartTime<P0>(&self, value: P0) -> ::windows::core::Result<()>
4509 where
4510 P0: ::windows::core::TryIntoParam<super::super::Foundation::IReference<super::super::Foundation::DateTime>>,
4511 {
4512 let this = self;
4513 unsafe { (::windows::core::Interface::vtable(this).SetRecurrenceStartTime)(::windows::core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() }
4514 }
4515 #[doc = "*Required features: `\"ApplicationModel_Appointments\"`*"]
4516 #[cfg(feature = "ApplicationModel_Appointments")]
4517 pub fn Recurrence(&self) -> ::windows::core::Result<super::Appointments::AppointmentRecurrence> {
4518 let this = self;
4519 unsafe {
4520 let mut result__ = ::windows::core::zeroed::<super::Appointments::AppointmentRecurrence>();
4521 (::windows::core::Interface::vtable(this).Recurrence)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4522 }
4523 }
4524 #[doc = "*Required features: `\"ApplicationModel_Appointments\"`*"]
4525 #[cfg(feature = "ApplicationModel_Appointments")]
4526 pub fn SetRecurrence(&self, value: &super::Appointments::AppointmentRecurrence) -> ::windows::core::Result<()> {
4527 let this = self;
4528 unsafe { (::windows::core::Interface::vtable(this).SetRecurrence)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
4529 }
4530 pub fn RemoteChangeNumber(&self) -> ::windows::core::Result<u64> {
4531 let this = self;
4532 unsafe {
4533 let mut result__ = ::windows::core::zeroed::<u64>();
4534 (::windows::core::Interface::vtable(this).RemoteChangeNumber)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4535 }
4536 }
4537 pub fn SetRemoteChangeNumber(&self, value: u64) -> ::windows::core::Result<()> {
4538 let this = self;
4539 unsafe { (::windows::core::Interface::vtable(this).SetRemoteChangeNumber)(::windows::core::Interface::as_raw(this), value).ok() }
4540 }
4541 #[doc = "*Required features: `\"Foundation\"`*"]
4542 #[cfg(feature = "Foundation")]
4543 pub fn StartTime(&self) -> ::windows::core::Result<super::super::Foundation::DateTime> {
4544 let this = self;
4545 unsafe {
4546 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::DateTime>();
4547 (::windows::core::Interface::vtable(this).StartTime)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4548 }
4549 }
4550 #[doc = "*Required features: `\"Foundation\"`*"]
4551 #[cfg(feature = "Foundation")]
4552 pub fn SetStartTime(&self, value: super::super::Foundation::DateTime) -> ::windows::core::Result<()> {
4553 let this = self;
4554 unsafe { (::windows::core::Interface::vtable(this).SetStartTime)(::windows::core::Interface::as_raw(this), value).ok() }
4555 }
4556 pub fn IsReportedOutOfDateByServer(&self) -> ::windows::core::Result<bool> {
4557 let this = &::windows::core::ComInterface::cast::<IEmailMeetingInfo2>(self)?;
4558 unsafe {
4559 let mut result__ = ::windows::core::zeroed::<bool>();
4560 (::windows::core::Interface::vtable(this).IsReportedOutOfDateByServer)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4561 }
4562 }
4563}
4564impl ::core::cmp::PartialEq for EmailMeetingInfo {
4565 fn eq(&self, other: &Self) -> bool {
4566 self.0 == other.0
4567 }
4568}
4569impl ::core::cmp::Eq for EmailMeetingInfo {}
4570impl ::core::fmt::Debug for EmailMeetingInfo {
4571 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
4572 f.debug_tuple("EmailMeetingInfo").field(&self.0).finish()
4573 }
4574}
4575impl ::windows::core::RuntimeType for EmailMeetingInfo {
4576 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailMeetingInfo;{31c03fa9-7933-415f-a275-d165ba07026b})");
4577}
4578impl ::core::clone::Clone for EmailMeetingInfo {
4579 fn clone(&self) -> Self {
4580 Self(self.0.clone())
4581 }
4582}
4583unsafe impl ::windows::core::Interface for EmailMeetingInfo {
4584 type Vtable = IEmailMeetingInfo_Vtbl;
4585}
4586unsafe impl ::windows::core::ComInterface for EmailMeetingInfo {
4587 const IID: ::windows::core::GUID = <IEmailMeetingInfo as ::windows::core::ComInterface>::IID;
4588}
4589impl ::windows::core::RuntimeName for EmailMeetingInfo {
4590 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMeetingInfo";
4591}
4592::windows::imp::interface_hierarchy!(EmailMeetingInfo, ::windows::core::IUnknown, ::windows::core::IInspectable);
4593unsafe impl ::core::marker::Send for EmailMeetingInfo {}
4594unsafe impl ::core::marker::Sync for EmailMeetingInfo {}
4595#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
4596#[repr(transparent)]
4597pub struct EmailMessage(::windows::core::IUnknown);
4598impl EmailMessage {
4599 pub fn new() -> ::windows::core::Result<Self> {
4600 Self::IActivationFactory(|f| f.ActivateInstance::<Self>())
4601 }
4602 fn IActivationFactory<R, F: FnOnce(&::windows::imp::IGenericFactory) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
4603 static SHARED: ::windows::imp::FactoryCache<EmailMessage, ::windows::imp::IGenericFactory> = ::windows::imp::FactoryCache::new();
4604 SHARED.call(callback)
4605 }
4606 pub fn Subject(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
4607 let this = self;
4608 unsafe {
4609 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
4610 (::windows::core::Interface::vtable(this).Subject)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4611 }
4612 }
4613 pub fn SetSubject(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
4614 let this = self;
4615 unsafe { (::windows::core::Interface::vtable(this).SetSubject)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
4616 }
4617 pub fn Body(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
4618 let this = self;
4619 unsafe {
4620 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
4621 (::windows::core::Interface::vtable(this).Body)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4622 }
4623 }
4624 pub fn SetBody(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
4625 let this = self;
4626 unsafe { (::windows::core::Interface::vtable(this).SetBody)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
4627 }
4628 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
4629 #[cfg(feature = "Foundation_Collections")]
4630 pub fn To(&self) -> ::windows::core::Result<super::super::Foundation::Collections::IVector<EmailRecipient>> {
4631 let this = self;
4632 unsafe {
4633 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::Collections::IVector<EmailRecipient>>();
4634 (::windows::core::Interface::vtable(this).To)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4635 }
4636 }
4637 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
4638 #[cfg(feature = "Foundation_Collections")]
4639 pub fn CC(&self) -> ::windows::core::Result<super::super::Foundation::Collections::IVector<EmailRecipient>> {
4640 let this = self;
4641 unsafe {
4642 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::Collections::IVector<EmailRecipient>>();
4643 (::windows::core::Interface::vtable(this).CC)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4644 }
4645 }
4646 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
4647 #[cfg(feature = "Foundation_Collections")]
4648 pub fn Bcc(&self) -> ::windows::core::Result<super::super::Foundation::Collections::IVector<EmailRecipient>> {
4649 let this = self;
4650 unsafe {
4651 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::Collections::IVector<EmailRecipient>>();
4652 (::windows::core::Interface::vtable(this).Bcc)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4653 }
4654 }
4655 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
4656 #[cfg(feature = "Foundation_Collections")]
4657 pub fn Attachments(&self) -> ::windows::core::Result<super::super::Foundation::Collections::IVector<EmailAttachment>> {
4658 let this = self;
4659 unsafe {
4660 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::Collections::IVector<EmailAttachment>>();
4661 (::windows::core::Interface::vtable(this).Attachments)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4662 }
4663 }
4664 pub fn Id(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
4665 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4666 unsafe {
4667 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
4668 (::windows::core::Interface::vtable(this).Id)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4669 }
4670 }
4671 pub fn RemoteId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
4672 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4673 unsafe {
4674 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
4675 (::windows::core::Interface::vtable(this).RemoteId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4676 }
4677 }
4678 pub fn SetRemoteId(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
4679 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4680 unsafe { (::windows::core::Interface::vtable(this).SetRemoteId)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
4681 }
4682 pub fn MailboxId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
4683 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4684 unsafe {
4685 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
4686 (::windows::core::Interface::vtable(this).MailboxId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4687 }
4688 }
4689 pub fn ConversationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
4690 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4691 unsafe {
4692 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
4693 (::windows::core::Interface::vtable(this).ConversationId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4694 }
4695 }
4696 pub fn FolderId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
4697 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4698 unsafe {
4699 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
4700 (::windows::core::Interface::vtable(this).FolderId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4701 }
4702 }
4703 pub fn AllowInternetImages(&self) -> ::windows::core::Result<bool> {
4704 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4705 unsafe {
4706 let mut result__ = ::windows::core::zeroed::<bool>();
4707 (::windows::core::Interface::vtable(this).AllowInternetImages)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4708 }
4709 }
4710 pub fn SetAllowInternetImages(&self, value: bool) -> ::windows::core::Result<()> {
4711 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4712 unsafe { (::windows::core::Interface::vtable(this).SetAllowInternetImages)(::windows::core::Interface::as_raw(this), value).ok() }
4713 }
4714 pub fn ChangeNumber(&self) -> ::windows::core::Result<u64> {
4715 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4716 unsafe {
4717 let mut result__ = ::windows::core::zeroed::<u64>();
4718 (::windows::core::Interface::vtable(this).ChangeNumber)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4719 }
4720 }
4721 pub fn DownloadState(&self) -> ::windows::core::Result<EmailMessageDownloadState> {
4722 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4723 unsafe {
4724 let mut result__ = ::windows::core::zeroed::<EmailMessageDownloadState>();
4725 (::windows::core::Interface::vtable(this).DownloadState)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4726 }
4727 }
4728 pub fn SetDownloadState(&self, value: EmailMessageDownloadState) -> ::windows::core::Result<()> {
4729 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4730 unsafe { (::windows::core::Interface::vtable(this).SetDownloadState)(::windows::core::Interface::as_raw(this), value).ok() }
4731 }
4732 pub fn EstimatedDownloadSizeInBytes(&self) -> ::windows::core::Result<u32> {
4733 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4734 unsafe {
4735 let mut result__ = ::windows::core::zeroed::<u32>();
4736 (::windows::core::Interface::vtable(this).EstimatedDownloadSizeInBytes)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4737 }
4738 }
4739 pub fn SetEstimatedDownloadSizeInBytes(&self, value: u32) -> ::windows::core::Result<()> {
4740 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4741 unsafe { (::windows::core::Interface::vtable(this).SetEstimatedDownloadSizeInBytes)(::windows::core::Interface::as_raw(this), value).ok() }
4742 }
4743 pub fn FlagState(&self) -> ::windows::core::Result<EmailFlagState> {
4744 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4745 unsafe {
4746 let mut result__ = ::windows::core::zeroed::<EmailFlagState>();
4747 (::windows::core::Interface::vtable(this).FlagState)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4748 }
4749 }
4750 pub fn SetFlagState(&self, value: EmailFlagState) -> ::windows::core::Result<()> {
4751 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4752 unsafe { (::windows::core::Interface::vtable(this).SetFlagState)(::windows::core::Interface::as_raw(this), value).ok() }
4753 }
4754 pub fn HasPartialBodies(&self) -> ::windows::core::Result<bool> {
4755 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4756 unsafe {
4757 let mut result__ = ::windows::core::zeroed::<bool>();
4758 (::windows::core::Interface::vtable(this).HasPartialBodies)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4759 }
4760 }
4761 pub fn Importance(&self) -> ::windows::core::Result<EmailImportance> {
4762 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4763 unsafe {
4764 let mut result__ = ::windows::core::zeroed::<EmailImportance>();
4765 (::windows::core::Interface::vtable(this).Importance)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4766 }
4767 }
4768 pub fn SetImportance(&self, value: EmailImportance) -> ::windows::core::Result<()> {
4769 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4770 unsafe { (::windows::core::Interface::vtable(this).SetImportance)(::windows::core::Interface::as_raw(this), value).ok() }
4771 }
4772 pub fn InResponseToMessageId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
4773 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4774 unsafe {
4775 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
4776 (::windows::core::Interface::vtable(this).InResponseToMessageId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4777 }
4778 }
4779 pub fn IrmInfo(&self) -> ::windows::core::Result<EmailIrmInfo> {
4780 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4781 unsafe {
4782 let mut result__ = ::windows::core::zeroed::<EmailIrmInfo>();
4783 (::windows::core::Interface::vtable(this).IrmInfo)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4784 }
4785 }
4786 pub fn SetIrmInfo(&self, value: &EmailIrmInfo) -> ::windows::core::Result<()> {
4787 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4788 unsafe { (::windows::core::Interface::vtable(this).SetIrmInfo)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
4789 }
4790 pub fn IsDraftMessage(&self) -> ::windows::core::Result<bool> {
4791 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4792 unsafe {
4793 let mut result__ = ::windows::core::zeroed::<bool>();
4794 (::windows::core::Interface::vtable(this).IsDraftMessage)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4795 }
4796 }
4797 pub fn IsRead(&self) -> ::windows::core::Result<bool> {
4798 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4799 unsafe {
4800 let mut result__ = ::windows::core::zeroed::<bool>();
4801 (::windows::core::Interface::vtable(this).IsRead)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4802 }
4803 }
4804 pub fn SetIsRead(&self, value: bool) -> ::windows::core::Result<()> {
4805 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4806 unsafe { (::windows::core::Interface::vtable(this).SetIsRead)(::windows::core::Interface::as_raw(this), value).ok() }
4807 }
4808 pub fn IsSeen(&self) -> ::windows::core::Result<bool> {
4809 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4810 unsafe {
4811 let mut result__ = ::windows::core::zeroed::<bool>();
4812 (::windows::core::Interface::vtable(this).IsSeen)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4813 }
4814 }
4815 pub fn SetIsSeen(&self, value: bool) -> ::windows::core::Result<()> {
4816 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4817 unsafe { (::windows::core::Interface::vtable(this).SetIsSeen)(::windows::core::Interface::as_raw(this), value).ok() }
4818 }
4819 pub fn IsServerSearchMessage(&self) -> ::windows::core::Result<bool> {
4820 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4821 unsafe {
4822 let mut result__ = ::windows::core::zeroed::<bool>();
4823 (::windows::core::Interface::vtable(this).IsServerSearchMessage)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4824 }
4825 }
4826 pub fn IsSmartSendable(&self) -> ::windows::core::Result<bool> {
4827 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4828 unsafe {
4829 let mut result__ = ::windows::core::zeroed::<bool>();
4830 (::windows::core::Interface::vtable(this).IsSmartSendable)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4831 }
4832 }
4833 pub fn MessageClass(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
4834 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4835 unsafe {
4836 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
4837 (::windows::core::Interface::vtable(this).MessageClass)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4838 }
4839 }
4840 pub fn SetMessageClass(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
4841 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4842 unsafe { (::windows::core::Interface::vtable(this).SetMessageClass)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
4843 }
4844 pub fn NormalizedSubject(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
4845 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4846 unsafe {
4847 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
4848 (::windows::core::Interface::vtable(this).NormalizedSubject)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4849 }
4850 }
4851 pub fn OriginalCodePage(&self) -> ::windows::core::Result<i32> {
4852 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4853 unsafe {
4854 let mut result__ = ::windows::core::zeroed::<i32>();
4855 (::windows::core::Interface::vtable(this).OriginalCodePage)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4856 }
4857 }
4858 pub fn SetOriginalCodePage(&self, value: i32) -> ::windows::core::Result<()> {
4859 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4860 unsafe { (::windows::core::Interface::vtable(this).SetOriginalCodePage)(::windows::core::Interface::as_raw(this), value).ok() }
4861 }
4862 pub fn Preview(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
4863 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4864 unsafe {
4865 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
4866 (::windows::core::Interface::vtable(this).Preview)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4867 }
4868 }
4869 pub fn SetPreview(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
4870 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4871 unsafe { (::windows::core::Interface::vtable(this).SetPreview)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
4872 }
4873 pub fn LastResponseKind(&self) -> ::windows::core::Result<EmailMessageResponseKind> {
4874 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4875 unsafe {
4876 let mut result__ = ::windows::core::zeroed::<EmailMessageResponseKind>();
4877 (::windows::core::Interface::vtable(this).LastResponseKind)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4878 }
4879 }
4880 pub fn SetLastResponseKind(&self, value: EmailMessageResponseKind) -> ::windows::core::Result<()> {
4881 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4882 unsafe { (::windows::core::Interface::vtable(this).SetLastResponseKind)(::windows::core::Interface::as_raw(this), value).ok() }
4883 }
4884 pub fn Sender(&self) -> ::windows::core::Result<EmailRecipient> {
4885 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4886 unsafe {
4887 let mut result__ = ::windows::core::zeroed::<EmailRecipient>();
4888 (::windows::core::Interface::vtable(this).Sender)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4889 }
4890 }
4891 pub fn SetSender(&self, value: &EmailRecipient) -> ::windows::core::Result<()> {
4892 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4893 unsafe { (::windows::core::Interface::vtable(this).SetSender)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
4894 }
4895 #[doc = "*Required features: `\"Foundation\"`*"]
4896 #[cfg(feature = "Foundation")]
4897 pub fn SentTime(&self) -> ::windows::core::Result<super::super::Foundation::IReference<super::super::Foundation::DateTime>> {
4898 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4899 unsafe {
4900 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IReference<super::super::Foundation::DateTime>>();
4901 (::windows::core::Interface::vtable(this).SentTime)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4902 }
4903 }
4904 #[doc = "*Required features: `\"Foundation\"`*"]
4905 #[cfg(feature = "Foundation")]
4906 pub fn SetSentTime<P0>(&self, value: P0) -> ::windows::core::Result<()>
4907 where
4908 P0: ::windows::core::TryIntoParam<super::super::Foundation::IReference<super::super::Foundation::DateTime>>,
4909 {
4910 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4911 unsafe { (::windows::core::Interface::vtable(this).SetSentTime)(::windows::core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() }
4912 }
4913 pub fn MeetingInfo(&self) -> ::windows::core::Result<EmailMeetingInfo> {
4914 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4915 unsafe {
4916 let mut result__ = ::windows::core::zeroed::<EmailMeetingInfo>();
4917 (::windows::core::Interface::vtable(this).MeetingInfo)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4918 }
4919 }
4920 pub fn SetMeetingInfo(&self, value: &EmailMeetingInfo) -> ::windows::core::Result<()> {
4921 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4922 unsafe { (::windows::core::Interface::vtable(this).SetMeetingInfo)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
4923 }
4924 #[doc = "*Required features: `\"Storage_Streams\"`*"]
4925 #[cfg(feature = "Storage_Streams")]
4926 pub fn GetBodyStream(&self, r#type: EmailMessageBodyKind) -> ::windows::core::Result<super::super::Storage::Streams::IRandomAccessStreamReference> {
4927 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4928 unsafe {
4929 let mut result__ = ::windows::core::zeroed::<super::super::Storage::Streams::IRandomAccessStreamReference>();
4930 (::windows::core::Interface::vtable(this).GetBodyStream)(::windows::core::Interface::as_raw(this), r#type, &mut result__).from_abi(result__)
4931 }
4932 }
4933 #[doc = "*Required features: `\"Storage_Streams\"`*"]
4934 #[cfg(feature = "Storage_Streams")]
4935 pub fn SetBodyStream<P0>(&self, r#type: EmailMessageBodyKind, stream: P0) -> ::windows::core::Result<()>
4936 where
4937 P0: ::windows::core::TryIntoParam<super::super::Storage::Streams::IRandomAccessStreamReference>,
4938 {
4939 let this = &::windows::core::ComInterface::cast::<IEmailMessage2>(self)?;
4940 unsafe { (::windows::core::Interface::vtable(this).SetBodyStream)(::windows::core::Interface::as_raw(this), r#type, stream.try_into_param()?.abi()).ok() }
4941 }
4942 #[doc = "*Required features: `\"Storage_Streams\"`*"]
4943 #[cfg(feature = "Storage_Streams")]
4944 pub fn SmimeData(&self) -> ::windows::core::Result<super::super::Storage::Streams::IRandomAccessStreamReference> {
4945 let this = &::windows::core::ComInterface::cast::<IEmailMessage3>(self)?;
4946 unsafe {
4947 let mut result__ = ::windows::core::zeroed::<super::super::Storage::Streams::IRandomAccessStreamReference>();
4948 (::windows::core::Interface::vtable(this).SmimeData)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4949 }
4950 }
4951 #[doc = "*Required features: `\"Storage_Streams\"`*"]
4952 #[cfg(feature = "Storage_Streams")]
4953 pub fn SetSmimeData<P0>(&self, value: P0) -> ::windows::core::Result<()>
4954 where
4955 P0: ::windows::core::TryIntoParam<super::super::Storage::Streams::IRandomAccessStreamReference>,
4956 {
4957 let this = &::windows::core::ComInterface::cast::<IEmailMessage3>(self)?;
4958 unsafe { (::windows::core::Interface::vtable(this).SetSmimeData)(::windows::core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() }
4959 }
4960 pub fn SmimeKind(&self) -> ::windows::core::Result<EmailMessageSmimeKind> {
4961 let this = &::windows::core::ComInterface::cast::<IEmailMessage3>(self)?;
4962 unsafe {
4963 let mut result__ = ::windows::core::zeroed::<EmailMessageSmimeKind>();
4964 (::windows::core::Interface::vtable(this).SmimeKind)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4965 }
4966 }
4967 pub fn SetSmimeKind(&self, value: EmailMessageSmimeKind) -> ::windows::core::Result<()> {
4968 let this = &::windows::core::ComInterface::cast::<IEmailMessage3>(self)?;
4969 unsafe { (::windows::core::Interface::vtable(this).SetSmimeKind)(::windows::core::Interface::as_raw(this), value).ok() }
4970 }
4971 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
4972 #[cfg(feature = "Foundation_Collections")]
4973 pub fn ReplyTo(&self) -> ::windows::core::Result<super::super::Foundation::Collections::IVector<EmailRecipient>> {
4974 let this = &::windows::core::ComInterface::cast::<IEmailMessage4>(self)?;
4975 unsafe {
4976 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::Collections::IVector<EmailRecipient>>();
4977 (::windows::core::Interface::vtable(this).ReplyTo)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4978 }
4979 }
4980 pub fn SentRepresenting(&self) -> ::windows::core::Result<EmailRecipient> {
4981 let this = &::windows::core::ComInterface::cast::<IEmailMessage4>(self)?;
4982 unsafe {
4983 let mut result__ = ::windows::core::zeroed::<EmailRecipient>();
4984 (::windows::core::Interface::vtable(this).SentRepresenting)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
4985 }
4986 }
4987 pub fn SetSentRepresenting(&self, value: &EmailRecipient) -> ::windows::core::Result<()> {
4988 let this = &::windows::core::ComInterface::cast::<IEmailMessage4>(self)?;
4989 unsafe { (::windows::core::Interface::vtable(this).SetSentRepresenting)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
4990 }
4991}
4992impl ::core::cmp::PartialEq for EmailMessage {
4993 fn eq(&self, other: &Self) -> bool {
4994 self.0 == other.0
4995 }
4996}
4997impl ::core::cmp::Eq for EmailMessage {}
4998impl ::core::fmt::Debug for EmailMessage {
4999 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
5000 f.debug_tuple("EmailMessage").field(&self.0).finish()
5001 }
5002}
5003impl ::windows::core::RuntimeType for EmailMessage {
5004 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailMessage;{6c6d948d-80b5-48f8-b0b1-e04e430f44e5})");
5005}
5006impl ::core::clone::Clone for EmailMessage {
5007 fn clone(&self) -> Self {
5008 Self(self.0.clone())
5009 }
5010}
5011unsafe impl ::windows::core::Interface for EmailMessage {
5012 type Vtable = IEmailMessage_Vtbl;
5013}
5014unsafe impl ::windows::core::ComInterface for EmailMessage {
5015 const IID: ::windows::core::GUID = <IEmailMessage as ::windows::core::ComInterface>::IID;
5016}
5017impl ::windows::core::RuntimeName for EmailMessage {
5018 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMessage";
5019}
5020::windows::imp::interface_hierarchy!(EmailMessage, ::windows::core::IUnknown, ::windows::core::IInspectable);
5021unsafe impl ::core::marker::Send for EmailMessage {}
5022unsafe impl ::core::marker::Sync for EmailMessage {}
5023#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
5024#[repr(transparent)]
5025pub struct EmailMessageBatch(::windows::core::IUnknown);
5026impl EmailMessageBatch {
5027 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
5028 #[cfg(feature = "Foundation_Collections")]
5029 pub fn Messages(&self) -> ::windows::core::Result<super::super::Foundation::Collections::IVectorView<EmailMessage>> {
5030 let this = self;
5031 unsafe {
5032 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::Collections::IVectorView<EmailMessage>>();
5033 (::windows::core::Interface::vtable(this).Messages)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
5034 }
5035 }
5036 pub fn Status(&self) -> ::windows::core::Result<EmailBatchStatus> {
5037 let this = self;
5038 unsafe {
5039 let mut result__ = ::windows::core::zeroed::<EmailBatchStatus>();
5040 (::windows::core::Interface::vtable(this).Status)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
5041 }
5042 }
5043}
5044impl ::core::cmp::PartialEq for EmailMessageBatch {
5045 fn eq(&self, other: &Self) -> bool {
5046 self.0 == other.0
5047 }
5048}
5049impl ::core::cmp::Eq for EmailMessageBatch {}
5050impl ::core::fmt::Debug for EmailMessageBatch {
5051 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
5052 f.debug_tuple("EmailMessageBatch").field(&self.0).finish()
5053 }
5054}
5055impl ::windows::core::RuntimeType for EmailMessageBatch {
5056 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailMessageBatch;{605cd08f-25d9-4f1b-9e51-0514c0149653})");
5057}
5058impl ::core::clone::Clone for EmailMessageBatch {
5059 fn clone(&self) -> Self {
5060 Self(self.0.clone())
5061 }
5062}
5063unsafe impl ::windows::core::Interface for EmailMessageBatch {
5064 type Vtable = IEmailMessageBatch_Vtbl;
5065}
5066unsafe impl ::windows::core::ComInterface for EmailMessageBatch {
5067 const IID: ::windows::core::GUID = <IEmailMessageBatch as ::windows::core::ComInterface>::IID;
5068}
5069impl ::windows::core::RuntimeName for EmailMessageBatch {
5070 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMessageBatch";
5071}
5072::windows::imp::interface_hierarchy!(EmailMessageBatch, ::windows::core::IUnknown, ::windows::core::IInspectable);
5073unsafe impl ::core::marker::Send for EmailMessageBatch {}
5074unsafe impl ::core::marker::Sync for EmailMessageBatch {}
5075#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
5076#[repr(transparent)]
5077pub struct EmailMessageReader(::windows::core::IUnknown);
5078impl EmailMessageReader {
5079 #[doc = "*Required features: `\"Foundation\"`*"]
5080 #[cfg(feature = "Foundation")]
5081 pub fn ReadBatchAsync(&self) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<EmailMessageBatch>> {
5082 let this = self;
5083 unsafe {
5084 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<EmailMessageBatch>>();
5085 (::windows::core::Interface::vtable(this).ReadBatchAsync)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
5086 }
5087 }
5088}
5089impl ::core::cmp::PartialEq for EmailMessageReader {
5090 fn eq(&self, other: &Self) -> bool {
5091 self.0 == other.0
5092 }
5093}
5094impl ::core::cmp::Eq for EmailMessageReader {}
5095impl ::core::fmt::Debug for EmailMessageReader {
5096 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
5097 f.debug_tuple("EmailMessageReader").field(&self.0).finish()
5098 }
5099}
5100impl ::windows::core::RuntimeType for EmailMessageReader {
5101 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailMessageReader;{2f4abe9f-6213-4a85-a3b0-f92d1a839d19})");
5102}
5103impl ::core::clone::Clone for EmailMessageReader {
5104 fn clone(&self) -> Self {
5105 Self(self.0.clone())
5106 }
5107}
5108unsafe impl ::windows::core::Interface for EmailMessageReader {
5109 type Vtable = IEmailMessageReader_Vtbl;
5110}
5111unsafe impl ::windows::core::ComInterface for EmailMessageReader {
5112 const IID: ::windows::core::GUID = <IEmailMessageReader as ::windows::core::ComInterface>::IID;
5113}
5114impl ::windows::core::RuntimeName for EmailMessageReader {
5115 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMessageReader";
5116}
5117::windows::imp::interface_hierarchy!(EmailMessageReader, ::windows::core::IUnknown, ::windows::core::IInspectable);
5118unsafe impl ::core::marker::Send for EmailMessageReader {}
5119unsafe impl ::core::marker::Sync for EmailMessageReader {}
5120#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
5121#[repr(transparent)]
5122pub struct EmailQueryOptions(::windows::core::IUnknown);
5123impl EmailQueryOptions {
5124 pub fn new() -> ::windows::core::Result<Self> {
5125 Self::IActivationFactory(|f| f.ActivateInstance::<Self>())
5126 }
5127 fn IActivationFactory<R, F: FnOnce(&::windows::imp::IGenericFactory) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
5128 static SHARED: ::windows::imp::FactoryCache<EmailQueryOptions, ::windows::imp::IGenericFactory> = ::windows::imp::FactoryCache::new();
5129 SHARED.call(callback)
5130 }
5131 pub fn TextSearch(&self) -> ::windows::core::Result<EmailQueryTextSearch> {
5132 let this = self;
5133 unsafe {
5134 let mut result__ = ::windows::core::zeroed::<EmailQueryTextSearch>();
5135 (::windows::core::Interface::vtable(this).TextSearch)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
5136 }
5137 }
5138 pub fn SortDirection(&self) -> ::windows::core::Result<EmailQuerySortDirection> {
5139 let this = self;
5140 unsafe {
5141 let mut result__ = ::windows::core::zeroed::<EmailQuerySortDirection>();
5142 (::windows::core::Interface::vtable(this).SortDirection)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
5143 }
5144 }
5145 pub fn SetSortDirection(&self, value: EmailQuerySortDirection) -> ::windows::core::Result<()> {
5146 let this = self;
5147 unsafe { (::windows::core::Interface::vtable(this).SetSortDirection)(::windows::core::Interface::as_raw(this), value).ok() }
5148 }
5149 pub fn SortProperty(&self) -> ::windows::core::Result<EmailQuerySortProperty> {
5150 let this = self;
5151 unsafe {
5152 let mut result__ = ::windows::core::zeroed::<EmailQuerySortProperty>();
5153 (::windows::core::Interface::vtable(this).SortProperty)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
5154 }
5155 }
5156 pub fn SetSortProperty(&self, value: EmailQuerySortProperty) -> ::windows::core::Result<()> {
5157 let this = self;
5158 unsafe { (::windows::core::Interface::vtable(this).SetSortProperty)(::windows::core::Interface::as_raw(this), value).ok() }
5159 }
5160 pub fn Kind(&self) -> ::windows::core::Result<EmailQueryKind> {
5161 let this = self;
5162 unsafe {
5163 let mut result__ = ::windows::core::zeroed::<EmailQueryKind>();
5164 (::windows::core::Interface::vtable(this).Kind)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
5165 }
5166 }
5167 pub fn SetKind(&self, value: EmailQueryKind) -> ::windows::core::Result<()> {
5168 let this = self;
5169 unsafe { (::windows::core::Interface::vtable(this).SetKind)(::windows::core::Interface::as_raw(this), value).ok() }
5170 }
5171 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
5172 #[cfg(feature = "Foundation_Collections")]
5173 pub fn FolderIds(&self) -> ::windows::core::Result<super::super::Foundation::Collections::IVector<::windows::core::HSTRING>> {
5174 let this = self;
5175 unsafe {
5176 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::Collections::IVector<::windows::core::HSTRING>>();
5177 (::windows::core::Interface::vtable(this).FolderIds)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
5178 }
5179 }
5180 pub fn CreateWithText(text: &::windows::core::HSTRING) -> ::windows::core::Result<EmailQueryOptions> {
5181 Self::IEmailQueryOptionsFactory(|this| unsafe {
5182 let mut result__ = ::windows::core::zeroed::<EmailQueryOptions>();
5183 (::windows::core::Interface::vtable(this).CreateWithText)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(text), &mut result__).from_abi(result__)
5184 })
5185 }
5186 pub fn CreateWithTextAndFields(text: &::windows::core::HSTRING, fields: EmailQuerySearchFields) -> ::windows::core::Result<EmailQueryOptions> {
5187 Self::IEmailQueryOptionsFactory(|this| unsafe {
5188 let mut result__ = ::windows::core::zeroed::<EmailQueryOptions>();
5189 (::windows::core::Interface::vtable(this).CreateWithTextAndFields)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(text), fields, &mut result__).from_abi(result__)
5190 })
5191 }
5192 #[doc(hidden)]
5193 pub fn IEmailQueryOptionsFactory<R, F: FnOnce(&IEmailQueryOptionsFactory) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
5194 static SHARED: ::windows::imp::FactoryCache<EmailQueryOptions, IEmailQueryOptionsFactory> = ::windows::imp::FactoryCache::new();
5195 SHARED.call(callback)
5196 }
5197}
5198impl ::core::cmp::PartialEq for EmailQueryOptions {
5199 fn eq(&self, other: &Self) -> bool {
5200 self.0 == other.0
5201 }
5202}
5203impl ::core::cmp::Eq for EmailQueryOptions {}
5204impl ::core::fmt::Debug for EmailQueryOptions {
5205 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
5206 f.debug_tuple("EmailQueryOptions").field(&self.0).finish()
5207 }
5208}
5209impl ::windows::core::RuntimeType for EmailQueryOptions {
5210 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailQueryOptions;{45504b9b-3e7f-4d52-b6dd-d6fd4e1fbd9a})");
5211}
5212impl ::core::clone::Clone for EmailQueryOptions {
5213 fn clone(&self) -> Self {
5214 Self(self.0.clone())
5215 }
5216}
5217unsafe impl ::windows::core::Interface for EmailQueryOptions {
5218 type Vtable = IEmailQueryOptions_Vtbl;
5219}
5220unsafe impl ::windows::core::ComInterface for EmailQueryOptions {
5221 const IID: ::windows::core::GUID = <IEmailQueryOptions as ::windows::core::ComInterface>::IID;
5222}
5223impl ::windows::core::RuntimeName for EmailQueryOptions {
5224 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailQueryOptions";
5225}
5226::windows::imp::interface_hierarchy!(EmailQueryOptions, ::windows::core::IUnknown, ::windows::core::IInspectable);
5227unsafe impl ::core::marker::Send for EmailQueryOptions {}
5228unsafe impl ::core::marker::Sync for EmailQueryOptions {}
5229#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
5230#[repr(transparent)]
5231pub struct EmailQueryTextSearch(::windows::core::IUnknown);
5232impl EmailQueryTextSearch {
5233 pub fn Fields(&self) -> ::windows::core::Result<EmailQuerySearchFields> {
5234 let this = self;
5235 unsafe {
5236 let mut result__ = ::windows::core::zeroed::<EmailQuerySearchFields>();
5237 (::windows::core::Interface::vtable(this).Fields)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
5238 }
5239 }
5240 pub fn SetFields(&self, value: EmailQuerySearchFields) -> ::windows::core::Result<()> {
5241 let this = self;
5242 unsafe { (::windows::core::Interface::vtable(this).SetFields)(::windows::core::Interface::as_raw(this), value).ok() }
5243 }
5244 pub fn SearchScope(&self) -> ::windows::core::Result<EmailQuerySearchScope> {
5245 let this = self;
5246 unsafe {
5247 let mut result__ = ::windows::core::zeroed::<EmailQuerySearchScope>();
5248 (::windows::core::Interface::vtable(this).SearchScope)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
5249 }
5250 }
5251 pub fn SetSearchScope(&self, value: EmailQuerySearchScope) -> ::windows::core::Result<()> {
5252 let this = self;
5253 unsafe { (::windows::core::Interface::vtable(this).SetSearchScope)(::windows::core::Interface::as_raw(this), value).ok() }
5254 }
5255 pub fn Text(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
5256 let this = self;
5257 unsafe {
5258 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
5259 (::windows::core::Interface::vtable(this).Text)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
5260 }
5261 }
5262 pub fn SetText(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
5263 let this = self;
5264 unsafe { (::windows::core::Interface::vtable(this).SetText)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
5265 }
5266}
5267impl ::core::cmp::PartialEq for EmailQueryTextSearch {
5268 fn eq(&self, other: &Self) -> bool {
5269 self.0 == other.0
5270 }
5271}
5272impl ::core::cmp::Eq for EmailQueryTextSearch {}
5273impl ::core::fmt::Debug for EmailQueryTextSearch {
5274 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
5275 f.debug_tuple("EmailQueryTextSearch").field(&self.0).finish()
5276 }
5277}
5278impl ::windows::core::RuntimeType for EmailQueryTextSearch {
5279 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailQueryTextSearch;{9fa0a288-3c5d-46a5-a6e2-31d6fd17e540})");
5280}
5281impl ::core::clone::Clone for EmailQueryTextSearch {
5282 fn clone(&self) -> Self {
5283 Self(self.0.clone())
5284 }
5285}
5286unsafe impl ::windows::core::Interface for EmailQueryTextSearch {
5287 type Vtable = IEmailQueryTextSearch_Vtbl;
5288}
5289unsafe impl ::windows::core::ComInterface for EmailQueryTextSearch {
5290 const IID: ::windows::core::GUID = <IEmailQueryTextSearch as ::windows::core::ComInterface>::IID;
5291}
5292impl ::windows::core::RuntimeName for EmailQueryTextSearch {
5293 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailQueryTextSearch";
5294}
5295::windows::imp::interface_hierarchy!(EmailQueryTextSearch, ::windows::core::IUnknown, ::windows::core::IInspectable);
5296unsafe impl ::core::marker::Send for EmailQueryTextSearch {}
5297unsafe impl ::core::marker::Sync for EmailQueryTextSearch {}
5298#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
5299#[repr(transparent)]
5300pub struct EmailRecipient(::windows::core::IUnknown);
5301impl EmailRecipient {
5302 pub fn new() -> ::windows::core::Result<Self> {
5303 Self::IActivationFactory(|f| f.ActivateInstance::<Self>())
5304 }
5305 fn IActivationFactory<R, F: FnOnce(&::windows::imp::IGenericFactory) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
5306 static SHARED: ::windows::imp::FactoryCache<EmailRecipient, ::windows::imp::IGenericFactory> = ::windows::imp::FactoryCache::new();
5307 SHARED.call(callback)
5308 }
5309 pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
5310 let this = self;
5311 unsafe {
5312 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
5313 (::windows::core::Interface::vtable(this).Name)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
5314 }
5315 }
5316 pub fn SetName(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
5317 let this = self;
5318 unsafe { (::windows::core::Interface::vtable(this).SetName)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
5319 }
5320 pub fn Address(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
5321 let this = self;
5322 unsafe {
5323 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
5324 (::windows::core::Interface::vtable(this).Address)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
5325 }
5326 }
5327 pub fn SetAddress(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
5328 let this = self;
5329 unsafe { (::windows::core::Interface::vtable(this).SetAddress)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() }
5330 }
5331 pub fn Create(address: &::windows::core::HSTRING) -> ::windows::core::Result<EmailRecipient> {
5332 Self::IEmailRecipientFactory(|this| unsafe {
5333 let mut result__ = ::windows::core::zeroed::<EmailRecipient>();
5334 (::windows::core::Interface::vtable(this).Create)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(address), &mut result__).from_abi(result__)
5335 })
5336 }
5337 pub fn CreateWithName(address: &::windows::core::HSTRING, name: &::windows::core::HSTRING) -> ::windows::core::Result<EmailRecipient> {
5338 Self::IEmailRecipientFactory(|this| unsafe {
5339 let mut result__ = ::windows::core::zeroed::<EmailRecipient>();
5340 (::windows::core::Interface::vtable(this).CreateWithName)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(address), ::core::mem::transmute_copy(name), &mut result__).from_abi(result__)
5341 })
5342 }
5343 #[doc(hidden)]
5344 pub fn IEmailRecipientFactory<R, F: FnOnce(&IEmailRecipientFactory) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
5345 static SHARED: ::windows::imp::FactoryCache<EmailRecipient, IEmailRecipientFactory> = ::windows::imp::FactoryCache::new();
5346 SHARED.call(callback)
5347 }
5348}
5349impl ::core::cmp::PartialEq for EmailRecipient {
5350 fn eq(&self, other: &Self) -> bool {
5351 self.0 == other.0
5352 }
5353}
5354impl ::core::cmp::Eq for EmailRecipient {}
5355impl ::core::fmt::Debug for EmailRecipient {
5356 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
5357 f.debug_tuple("EmailRecipient").field(&self.0).finish()
5358 }
5359}
5360impl ::windows::core::RuntimeType for EmailRecipient {
5361 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailRecipient;{cae825b3-4478-4814-b900-c902b5e19b53})");
5362}
5363impl ::core::clone::Clone for EmailRecipient {
5364 fn clone(&self) -> Self {
5365 Self(self.0.clone())
5366 }
5367}
5368unsafe impl ::windows::core::Interface for EmailRecipient {
5369 type Vtable = IEmailRecipient_Vtbl;
5370}
5371unsafe impl ::windows::core::ComInterface for EmailRecipient {
5372 const IID: ::windows::core::GUID = <IEmailRecipient as ::windows::core::ComInterface>::IID;
5373}
5374impl ::windows::core::RuntimeName for EmailRecipient {
5375 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailRecipient";
5376}
5377::windows::imp::interface_hierarchy!(EmailRecipient, ::windows::core::IUnknown, ::windows::core::IInspectable);
5378unsafe impl ::core::marker::Send for EmailRecipient {}
5379unsafe impl ::core::marker::Sync for EmailRecipient {}
5380#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
5381#[repr(transparent)]
5382pub struct EmailRecipientResolutionResult(::windows::core::IUnknown);
5383impl EmailRecipientResolutionResult {
5384 pub fn new() -> ::windows::core::Result<Self> {
5385 Self::IActivationFactory(|f| f.ActivateInstance::<Self>())
5386 }
5387 fn IActivationFactory<R, F: FnOnce(&::windows::imp::IGenericFactory) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
5388 static SHARED: ::windows::imp::FactoryCache<EmailRecipientResolutionResult, ::windows::imp::IGenericFactory> = ::windows::imp::FactoryCache::new();
5389 SHARED.call(callback)
5390 }
5391 pub fn Status(&self) -> ::windows::core::Result<EmailRecipientResolutionStatus> {
5392 let this = self;
5393 unsafe {
5394 let mut result__ = ::windows::core::zeroed::<EmailRecipientResolutionStatus>();
5395 (::windows::core::Interface::vtable(this).Status)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
5396 }
5397 }
5398 #[doc = "*Required features: `\"Foundation_Collections\"`, `\"Security_Cryptography_Certificates\"`*"]
5399 #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))]
5400 pub fn PublicKeys(&self) -> ::windows::core::Result<super::super::Foundation::Collections::IVectorView<super::super::Security::Cryptography::Certificates::Certificate>> {
5401 let this = self;
5402 unsafe {
5403 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::Collections::IVectorView<super::super::Security::Cryptography::Certificates::Certificate>>();
5404 (::windows::core::Interface::vtable(this).PublicKeys)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
5405 }
5406 }
5407 pub fn SetStatus(&self, value: EmailRecipientResolutionStatus) -> ::windows::core::Result<()> {
5408 let this = &::windows::core::ComInterface::cast::<IEmailRecipientResolutionResult2>(self)?;
5409 unsafe { (::windows::core::Interface::vtable(this).SetStatus)(::windows::core::Interface::as_raw(this), value).ok() }
5410 }
5411 #[doc = "*Required features: `\"Foundation_Collections\"`, `\"Security_Cryptography_Certificates\"`*"]
5412 #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))]
5413 pub fn SetPublicKeys<P0>(&self, value: P0) -> ::windows::core::Result<()>
5414 where
5415 P0: ::windows::core::TryIntoParam<super::super::Foundation::Collections::IIterable<super::super::Security::Cryptography::Certificates::Certificate>>,
5416 {
5417 let this = &::windows::core::ComInterface::cast::<IEmailRecipientResolutionResult2>(self)?;
5418 unsafe { (::windows::core::Interface::vtable(this).SetPublicKeys)(::windows::core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() }
5419 }
5420}
5421impl ::core::cmp::PartialEq for EmailRecipientResolutionResult {
5422 fn eq(&self, other: &Self) -> bool {
5423 self.0 == other.0
5424 }
5425}
5426impl ::core::cmp::Eq for EmailRecipientResolutionResult {}
5427impl ::core::fmt::Debug for EmailRecipientResolutionResult {
5428 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
5429 f.debug_tuple("EmailRecipientResolutionResult").field(&self.0).finish()
5430 }
5431}
5432impl ::windows::core::RuntimeType for EmailRecipientResolutionResult {
5433 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailRecipientResolutionResult;{918338fa-8d8d-4573-80d1-07172a34b98d})");
5434}
5435impl ::core::clone::Clone for EmailRecipientResolutionResult {
5436 fn clone(&self) -> Self {
5437 Self(self.0.clone())
5438 }
5439}
5440unsafe impl ::windows::core::Interface for EmailRecipientResolutionResult {
5441 type Vtable = IEmailRecipientResolutionResult_Vtbl;
5442}
5443unsafe impl ::windows::core::ComInterface for EmailRecipientResolutionResult {
5444 const IID: ::windows::core::GUID = <IEmailRecipientResolutionResult as ::windows::core::ComInterface>::IID;
5445}
5446impl ::windows::core::RuntimeName for EmailRecipientResolutionResult {
5447 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailRecipientResolutionResult";
5448}
5449::windows::imp::interface_hierarchy!(EmailRecipientResolutionResult, ::windows::core::IUnknown, ::windows::core::IInspectable);
5450unsafe impl ::core::marker::Send for EmailRecipientResolutionResult {}
5451unsafe impl ::core::marker::Sync for EmailRecipientResolutionResult {}
5452#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
5453#[repr(transparent)]
5454pub struct EmailStore(::windows::core::IUnknown);
5455impl EmailStore {
5456 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
5457 #[cfg(feature = "Foundation_Collections")]
5458 pub fn FindMailboxesAsync(&self) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<EmailMailbox>>> {
5459 let this = self;
5460 unsafe {
5461 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<EmailMailbox>>>();
5462 (::windows::core::Interface::vtable(this).FindMailboxesAsync)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
5463 }
5464 }
5465 pub fn GetConversationReader(&self) -> ::windows::core::Result<EmailConversationReader> {
5466 let this = self;
5467 unsafe {
5468 let mut result__ = ::windows::core::zeroed::<EmailConversationReader>();
5469 (::windows::core::Interface::vtable(this).GetConversationReader)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
5470 }
5471 }
5472 pub fn GetConversationReaderWithOptions(&self, options: &EmailQueryOptions) -> ::windows::core::Result<EmailConversationReader> {
5473 let this = self;
5474 unsafe {
5475 let mut result__ = ::windows::core::zeroed::<EmailConversationReader>();
5476 (::windows::core::Interface::vtable(this).GetConversationReaderWithOptions)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(options), &mut result__).from_abi(result__)
5477 }
5478 }
5479 pub fn GetMessageReader(&self) -> ::windows::core::Result<EmailMessageReader> {
5480 let this = self;
5481 unsafe {
5482 let mut result__ = ::windows::core::zeroed::<EmailMessageReader>();
5483 (::windows::core::Interface::vtable(this).GetMessageReader)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
5484 }
5485 }
5486 pub fn GetMessageReaderWithOptions(&self, options: &EmailQueryOptions) -> ::windows::core::Result<EmailMessageReader> {
5487 let this = self;
5488 unsafe {
5489 let mut result__ = ::windows::core::zeroed::<EmailMessageReader>();
5490 (::windows::core::Interface::vtable(this).GetMessageReaderWithOptions)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(options), &mut result__).from_abi(result__)
5491 }
5492 }
5493 #[doc = "*Required features: `\"Foundation\"`*"]
5494 #[cfg(feature = "Foundation")]
5495 pub fn GetMailboxAsync(&self, id: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<EmailMailbox>> {
5496 let this = self;
5497 unsafe {
5498 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<EmailMailbox>>();
5499 (::windows::core::Interface::vtable(this).GetMailboxAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(id), &mut result__).from_abi(result__)
5500 }
5501 }
5502 #[doc = "*Required features: `\"Foundation\"`*"]
5503 #[cfg(feature = "Foundation")]
5504 pub fn GetConversationAsync(&self, id: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<EmailConversation>> {
5505 let this = self;
5506 unsafe {
5507 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<EmailConversation>>();
5508 (::windows::core::Interface::vtable(this).GetConversationAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(id), &mut result__).from_abi(result__)
5509 }
5510 }
5511 #[doc = "*Required features: `\"Foundation\"`*"]
5512 #[cfg(feature = "Foundation")]
5513 pub fn GetFolderAsync(&self, id: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<EmailFolder>> {
5514 let this = self;
5515 unsafe {
5516 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<EmailFolder>>();
5517 (::windows::core::Interface::vtable(this).GetFolderAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(id), &mut result__).from_abi(result__)
5518 }
5519 }
5520 #[doc = "*Required features: `\"Foundation\"`*"]
5521 #[cfg(feature = "Foundation")]
5522 pub fn GetMessageAsync(&self, id: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<EmailMessage>> {
5523 let this = self;
5524 unsafe {
5525 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<EmailMessage>>();
5526 (::windows::core::Interface::vtable(this).GetMessageAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(id), &mut result__).from_abi(result__)
5527 }
5528 }
5529 #[doc = "*Required features: `\"Foundation\"`*"]
5530 #[cfg(feature = "Foundation")]
5531 pub fn CreateMailboxAsync(&self, accountname: &::windows::core::HSTRING, accountaddress: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<EmailMailbox>> {
5532 let this = self;
5533 unsafe {
5534 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<EmailMailbox>>();
5535 (::windows::core::Interface::vtable(this).CreateMailboxAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(accountname), ::core::mem::transmute_copy(accountaddress), &mut result__).from_abi(result__)
5536 }
5537 }
5538 #[doc = "*Required features: `\"Foundation\"`*"]
5539 #[cfg(feature = "Foundation")]
5540 pub fn CreateMailboxInAccountAsync(&self, accountname: &::windows::core::HSTRING, accountaddress: &::windows::core::HSTRING, userdataaccountid: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<EmailMailbox>> {
5541 let this = self;
5542 unsafe {
5543 let mut result__ = ::windows::core::zeroed::<super::super::Foundation::IAsyncOperation<EmailMailbox>>();
5544 (::windows::core::Interface::vtable(this).CreateMailboxInAccountAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(accountname), ::core::mem::transmute_copy(accountaddress), ::core::mem::transmute_copy(userdataaccountid), &mut result__).from_abi(result__)
5545 }
5546 }
5547}
5548impl ::core::cmp::PartialEq for EmailStore {
5549 fn eq(&self, other: &Self) -> bool {
5550 self.0 == other.0
5551 }
5552}
5553impl ::core::cmp::Eq for EmailStore {}
5554impl ::core::fmt::Debug for EmailStore {
5555 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
5556 f.debug_tuple("EmailStore").field(&self.0).finish()
5557 }
5558}
5559impl ::windows::core::RuntimeType for EmailStore {
5560 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailStore;{f803226e-9137-4f8b-a470-279ac3058eb6})");
5561}
5562impl ::core::clone::Clone for EmailStore {
5563 fn clone(&self) -> Self {
5564 Self(self.0.clone())
5565 }
5566}
5567unsafe impl ::windows::core::Interface for EmailStore {
5568 type Vtable = IEmailStore_Vtbl;
5569}
5570unsafe impl ::windows::core::ComInterface for EmailStore {
5571 const IID: ::windows::core::GUID = <IEmailStore as ::windows::core::ComInterface>::IID;
5572}
5573impl ::windows::core::RuntimeName for EmailStore {
5574 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailStore";
5575}
5576::windows::imp::interface_hierarchy!(EmailStore, ::windows::core::IUnknown, ::windows::core::IInspectable);
5577unsafe impl ::core::marker::Send for EmailStore {}
5578unsafe impl ::core::marker::Sync for EmailStore {}
5579#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
5580#[repr(transparent)]
5581pub struct EmailStoreNotificationTriggerDetails(::windows::core::IUnknown);
5582impl EmailStoreNotificationTriggerDetails {}
5583impl ::core::cmp::PartialEq for EmailStoreNotificationTriggerDetails {
5584 fn eq(&self, other: &Self) -> bool {
5585 self.0 == other.0
5586 }
5587}
5588impl ::core::cmp::Eq for EmailStoreNotificationTriggerDetails {}
5589impl ::core::fmt::Debug for EmailStoreNotificationTriggerDetails {
5590 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
5591 f.debug_tuple("EmailStoreNotificationTriggerDetails").field(&self.0).finish()
5592 }
5593}
5594impl ::windows::core::RuntimeType for EmailStoreNotificationTriggerDetails {
5595 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.ApplicationModel.Email.EmailStoreNotificationTriggerDetails;{ce17563c-46e6-43c9-96f7-facf7dd710cb})");
5596}
5597impl ::core::clone::Clone for EmailStoreNotificationTriggerDetails {
5598 fn clone(&self) -> Self {
5599 Self(self.0.clone())
5600 }
5601}
5602unsafe impl ::windows::core::Interface for EmailStoreNotificationTriggerDetails {
5603 type Vtable = IEmailStoreNotificationTriggerDetails_Vtbl;
5604}
5605unsafe impl ::windows::core::ComInterface for EmailStoreNotificationTriggerDetails {
5606 const IID: ::windows::core::GUID = <IEmailStoreNotificationTriggerDetails as ::windows::core::ComInterface>::IID;
5607}
5608impl ::windows::core::RuntimeName for EmailStoreNotificationTriggerDetails {
5609 const NAME: &'static str = "Windows.ApplicationModel.Email.EmailStoreNotificationTriggerDetails";
5610}
5611::windows::imp::interface_hierarchy!(EmailStoreNotificationTriggerDetails, ::windows::core::IUnknown, ::windows::core::IInspectable);
5612unsafe impl ::core::marker::Send for EmailStoreNotificationTriggerDetails {}
5613unsafe impl ::core::marker::Sync for EmailStoreNotificationTriggerDetails {}
5614#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
5615#[repr(transparent)]
5616#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
5617pub struct EmailAttachmentDownloadState(pub i32);
5618impl EmailAttachmentDownloadState {
5619 pub const NotDownloaded: Self = Self(0i32);
5620 pub const Downloading: Self = Self(1i32);
5621 pub const Downloaded: Self = Self(2i32);
5622 pub const Failed: Self = Self(3i32);
5623}
5624impl ::core::marker::Copy for EmailAttachmentDownloadState {}
5625impl ::core::clone::Clone for EmailAttachmentDownloadState {
5626 fn clone(&self) -> Self {
5627 *self
5628 }
5629}
5630impl ::core::default::Default for EmailAttachmentDownloadState {
5631 fn default() -> Self {
5632 Self(0)
5633 }
5634}
5635impl ::windows::core::TypeKind for EmailAttachmentDownloadState {
5636 type TypeKind = ::windows::core::CopyType;
5637}
5638impl ::core::fmt::Debug for EmailAttachmentDownloadState {
5639 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
5640 f.debug_tuple("EmailAttachmentDownloadState").field(&self.0).finish()
5641 }
5642}
5643impl ::windows::core::RuntimeType for EmailAttachmentDownloadState {
5644 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailAttachmentDownloadState;i4)");
5645}
5646#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
5647#[repr(transparent)]
5648#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
5649pub struct EmailBatchStatus(pub i32);
5650impl EmailBatchStatus {
5651 pub const Success: Self = Self(0i32);
5652 pub const ServerSearchSyncManagerError: Self = Self(1i32);
5653 pub const ServerSearchUnknownError: Self = Self(2i32);
5654}
5655impl ::core::marker::Copy for EmailBatchStatus {}
5656impl ::core::clone::Clone for EmailBatchStatus {
5657 fn clone(&self) -> Self {
5658 *self
5659 }
5660}
5661impl ::core::default::Default for EmailBatchStatus {
5662 fn default() -> Self {
5663 Self(0)
5664 }
5665}
5666impl ::windows::core::TypeKind for EmailBatchStatus {
5667 type TypeKind = ::windows::core::CopyType;
5668}
5669impl ::core::fmt::Debug for EmailBatchStatus {
5670 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
5671 f.debug_tuple("EmailBatchStatus").field(&self.0).finish()
5672 }
5673}
5674impl ::windows::core::RuntimeType for EmailBatchStatus {
5675 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailBatchStatus;i4)");
5676}
5677#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
5678#[repr(transparent)]
5679#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
5680pub struct EmailCertificateValidationStatus(pub i32);
5681impl EmailCertificateValidationStatus {
5682 pub const Success: Self = Self(0i32);
5683 pub const NoMatch: Self = Self(1i32);
5684 pub const InvalidUsage: Self = Self(2i32);
5685 pub const InvalidCertificate: Self = Self(3i32);
5686 pub const Revoked: Self = Self(4i32);
5687 pub const ChainRevoked: Self = Self(5i32);
5688 pub const RevocationServerFailure: Self = Self(6i32);
5689 pub const Expired: Self = Self(7i32);
5690 pub const Untrusted: Self = Self(8i32);
5691 pub const ServerError: Self = Self(9i32);
5692 pub const UnknownFailure: Self = Self(10i32);
5693}
5694impl ::core::marker::Copy for EmailCertificateValidationStatus {}
5695impl ::core::clone::Clone for EmailCertificateValidationStatus {
5696 fn clone(&self) -> Self {
5697 *self
5698 }
5699}
5700impl ::core::default::Default for EmailCertificateValidationStatus {
5701 fn default() -> Self {
5702 Self(0)
5703 }
5704}
5705impl ::windows::core::TypeKind for EmailCertificateValidationStatus {
5706 type TypeKind = ::windows::core::CopyType;
5707}
5708impl ::core::fmt::Debug for EmailCertificateValidationStatus {
5709 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
5710 f.debug_tuple("EmailCertificateValidationStatus").field(&self.0).finish()
5711 }
5712}
5713impl ::windows::core::RuntimeType for EmailCertificateValidationStatus {
5714 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailCertificateValidationStatus;i4)");
5715}
5716#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
5717#[repr(transparent)]
5718#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
5719pub struct EmailFlagState(pub i32);
5720impl EmailFlagState {
5721 pub const Unflagged: Self = Self(0i32);
5722 pub const Flagged: Self = Self(1i32);
5723 pub const Completed: Self = Self(2i32);
5724 pub const Cleared: Self = Self(3i32);
5725}
5726impl ::core::marker::Copy for EmailFlagState {}
5727impl ::core::clone::Clone for EmailFlagState {
5728 fn clone(&self) -> Self {
5729 *self
5730 }
5731}
5732impl ::core::default::Default for EmailFlagState {
5733 fn default() -> Self {
5734 Self(0)
5735 }
5736}
5737impl ::windows::core::TypeKind for EmailFlagState {
5738 type TypeKind = ::windows::core::CopyType;
5739}
5740impl ::core::fmt::Debug for EmailFlagState {
5741 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
5742 f.debug_tuple("EmailFlagState").field(&self.0).finish()
5743 }
5744}
5745impl ::windows::core::RuntimeType for EmailFlagState {
5746 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailFlagState;i4)");
5747}
5748#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
5749#[repr(transparent)]
5750#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
5751pub struct EmailImportance(pub i32);
5752impl EmailImportance {
5753 pub const Normal: Self = Self(0i32);
5754 pub const High: Self = Self(1i32);
5755 pub const Low: Self = Self(2i32);
5756}
5757impl ::core::marker::Copy for EmailImportance {}
5758impl ::core::clone::Clone for EmailImportance {
5759 fn clone(&self) -> Self {
5760 *self
5761 }
5762}
5763impl ::core::default::Default for EmailImportance {
5764 fn default() -> Self {
5765 Self(0)
5766 }
5767}
5768impl ::windows::core::TypeKind for EmailImportance {
5769 type TypeKind = ::windows::core::CopyType;
5770}
5771impl ::core::fmt::Debug for EmailImportance {
5772 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
5773 f.debug_tuple("EmailImportance").field(&self.0).finish()
5774 }
5775}
5776impl ::windows::core::RuntimeType for EmailImportance {
5777 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailImportance;i4)");
5778}
5779#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
5780#[repr(transparent)]
5781#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
5782pub struct EmailMailboxActionKind(pub i32);
5783impl EmailMailboxActionKind {
5784 pub const MarkMessageAsSeen: Self = Self(0i32);
5785 pub const MarkMessageRead: Self = Self(1i32);
5786 pub const ChangeMessageFlagState: Self = Self(2i32);
5787 pub const MoveMessage: Self = Self(3i32);
5788 pub const SaveDraft: Self = Self(4i32);
5789 pub const SendMessage: Self = Self(5i32);
5790 pub const CreateResponseReplyMessage: Self = Self(6i32);
5791 pub const CreateResponseReplyAllMessage: Self = Self(7i32);
5792 pub const CreateResponseForwardMessage: Self = Self(8i32);
5793 pub const MoveFolder: Self = Self(9i32);
5794 pub const MarkFolderForSyncEnabled: Self = Self(10i32);
5795}
5796impl ::core::marker::Copy for EmailMailboxActionKind {}
5797impl ::core::clone::Clone for EmailMailboxActionKind {
5798 fn clone(&self) -> Self {
5799 *self
5800 }
5801}
5802impl ::core::default::Default for EmailMailboxActionKind {
5803 fn default() -> Self {
5804 Self(0)
5805 }
5806}
5807impl ::windows::core::TypeKind for EmailMailboxActionKind {
5808 type TypeKind = ::windows::core::CopyType;
5809}
5810impl ::core::fmt::Debug for EmailMailboxActionKind {
5811 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
5812 f.debug_tuple("EmailMailboxActionKind").field(&self.0).finish()
5813 }
5814}
5815impl ::windows::core::RuntimeType for EmailMailboxActionKind {
5816 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailMailboxActionKind;i4)");
5817}
5818#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
5819#[repr(transparent)]
5820#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
5821pub struct EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation(pub i32);
5822impl EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation {
5823 pub const None: Self = Self(0i32);
5824 pub const StrongAlgorithm: Self = Self(1i32);
5825 pub const AnyAlgorithm: Self = Self(2i32);
5826}
5827impl ::core::marker::Copy for EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation {}
5828impl ::core::clone::Clone for EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation {
5829 fn clone(&self) -> Self {
5830 *self
5831 }
5832}
5833impl ::core::default::Default for EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation {
5834 fn default() -> Self {
5835 Self(0)
5836 }
5837}
5838impl ::windows::core::TypeKind for EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation {
5839 type TypeKind = ::windows::core::CopyType;
5840}
5841impl ::core::fmt::Debug for EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation {
5842 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
5843 f.debug_tuple("EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation").field(&self.0).finish()
5844 }
5845}
5846impl ::windows::core::RuntimeType for EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation {
5847 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation;i4)");
5848}
5849#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
5850#[repr(transparent)]
5851#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
5852pub struct EmailMailboxAutoReplyMessageResponseKind(pub i32);
5853impl EmailMailboxAutoReplyMessageResponseKind {
5854 pub const Html: Self = Self(0i32);
5855 pub const PlainText: Self = Self(1i32);
5856}
5857impl ::core::marker::Copy for EmailMailboxAutoReplyMessageResponseKind {}
5858impl ::core::clone::Clone for EmailMailboxAutoReplyMessageResponseKind {
5859 fn clone(&self) -> Self {
5860 *self
5861 }
5862}
5863impl ::core::default::Default for EmailMailboxAutoReplyMessageResponseKind {
5864 fn default() -> Self {
5865 Self(0)
5866 }
5867}
5868impl ::windows::core::TypeKind for EmailMailboxAutoReplyMessageResponseKind {
5869 type TypeKind = ::windows::core::CopyType;
5870}
5871impl ::core::fmt::Debug for EmailMailboxAutoReplyMessageResponseKind {
5872 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
5873 f.debug_tuple("EmailMailboxAutoReplyMessageResponseKind").field(&self.0).finish()
5874 }
5875}
5876impl ::windows::core::RuntimeType for EmailMailboxAutoReplyMessageResponseKind {
5877 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailMailboxAutoReplyMessageResponseKind;i4)");
5878}
5879#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
5880#[repr(transparent)]
5881#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
5882pub struct EmailMailboxChangeType(pub i32);
5883impl EmailMailboxChangeType {
5884 pub const MessageCreated: Self = Self(0i32);
5885 pub const MessageModified: Self = Self(1i32);
5886 pub const MessageDeleted: Self = Self(2i32);
5887 pub const FolderCreated: Self = Self(3i32);
5888 pub const FolderModified: Self = Self(4i32);
5889 pub const FolderDeleted: Self = Self(5i32);
5890 pub const ChangeTrackingLost: Self = Self(6i32);
5891}
5892impl ::core::marker::Copy for EmailMailboxChangeType {}
5893impl ::core::clone::Clone for EmailMailboxChangeType {
5894 fn clone(&self) -> Self {
5895 *self
5896 }
5897}
5898impl ::core::default::Default for EmailMailboxChangeType {
5899 fn default() -> Self {
5900 Self(0)
5901 }
5902}
5903impl ::windows::core::TypeKind for EmailMailboxChangeType {
5904 type TypeKind = ::windows::core::CopyType;
5905}
5906impl ::core::fmt::Debug for EmailMailboxChangeType {
5907 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
5908 f.debug_tuple("EmailMailboxChangeType").field(&self.0).finish()
5909 }
5910}
5911impl ::windows::core::RuntimeType for EmailMailboxChangeType {
5912 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailMailboxChangeType;i4)");
5913}
5914#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
5915#[repr(transparent)]
5916#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
5917pub struct EmailMailboxCreateFolderStatus(pub i32);
5918impl EmailMailboxCreateFolderStatus {
5919 pub const Success: Self = Self(0i32);
5920 pub const NetworkError: Self = Self(1i32);
5921 pub const PermissionsError: Self = Self(2i32);
5922 pub const ServerError: Self = Self(3i32);
5923 pub const UnknownFailure: Self = Self(4i32);
5924 pub const NameCollision: Self = Self(5i32);
5925 pub const ServerRejected: Self = Self(6i32);
5926}
5927impl ::core::marker::Copy for EmailMailboxCreateFolderStatus {}
5928impl ::core::clone::Clone for EmailMailboxCreateFolderStatus {
5929 fn clone(&self) -> Self {
5930 *self
5931 }
5932}
5933impl ::core::default::Default for EmailMailboxCreateFolderStatus {
5934 fn default() -> Self {
5935 Self(0)
5936 }
5937}
5938impl ::windows::core::TypeKind for EmailMailboxCreateFolderStatus {
5939 type TypeKind = ::windows::core::CopyType;
5940}
5941impl ::core::fmt::Debug for EmailMailboxCreateFolderStatus {
5942 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
5943 f.debug_tuple("EmailMailboxCreateFolderStatus").field(&self.0).finish()
5944 }
5945}
5946impl ::windows::core::RuntimeType for EmailMailboxCreateFolderStatus {
5947 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailMailboxCreateFolderStatus;i4)");
5948}
5949#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
5950#[repr(transparent)]
5951#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
5952pub struct EmailMailboxDeleteFolderStatus(pub i32);
5953impl EmailMailboxDeleteFolderStatus {
5954 pub const Success: Self = Self(0i32);
5955 pub const NetworkError: Self = Self(1i32);
5956 pub const PermissionsError: Self = Self(2i32);
5957 pub const ServerError: Self = Self(3i32);
5958 pub const UnknownFailure: Self = Self(4i32);
5959 pub const CouldNotDeleteEverything: Self = Self(5i32);
5960}
5961impl ::core::marker::Copy for EmailMailboxDeleteFolderStatus {}
5962impl ::core::clone::Clone for EmailMailboxDeleteFolderStatus {
5963 fn clone(&self) -> Self {
5964 *self
5965 }
5966}
5967impl ::core::default::Default for EmailMailboxDeleteFolderStatus {
5968 fn default() -> Self {
5969 Self(0)
5970 }
5971}
5972impl ::windows::core::TypeKind for EmailMailboxDeleteFolderStatus {
5973 type TypeKind = ::windows::core::CopyType;
5974}
5975impl ::core::fmt::Debug for EmailMailboxDeleteFolderStatus {
5976 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
5977 f.debug_tuple("EmailMailboxDeleteFolderStatus").field(&self.0).finish()
5978 }
5979}
5980impl ::windows::core::RuntimeType for EmailMailboxDeleteFolderStatus {
5981 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailMailboxDeleteFolderStatus;i4)");
5982}
5983#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
5984#[repr(transparent)]
5985#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
5986pub struct EmailMailboxEmptyFolderStatus(pub i32);
5987impl EmailMailboxEmptyFolderStatus {
5988 pub const Success: Self = Self(0i32);
5989 pub const NetworkError: Self = Self(1i32);
5990 pub const PermissionsError: Self = Self(2i32);
5991 pub const ServerError: Self = Self(3i32);
5992 pub const UnknownFailure: Self = Self(4i32);
5993 pub const CouldNotDeleteEverything: Self = Self(5i32);
5994}
5995impl ::core::marker::Copy for EmailMailboxEmptyFolderStatus {}
5996impl ::core::clone::Clone for EmailMailboxEmptyFolderStatus {
5997 fn clone(&self) -> Self {
5998 *self
5999 }
6000}
6001impl ::core::default::Default for EmailMailboxEmptyFolderStatus {
6002 fn default() -> Self {
6003 Self(0)
6004 }
6005}
6006impl ::windows::core::TypeKind for EmailMailboxEmptyFolderStatus {
6007 type TypeKind = ::windows::core::CopyType;
6008}
6009impl ::core::fmt::Debug for EmailMailboxEmptyFolderStatus {
6010 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
6011 f.debug_tuple("EmailMailboxEmptyFolderStatus").field(&self.0).finish()
6012 }
6013}
6014impl ::windows::core::RuntimeType for EmailMailboxEmptyFolderStatus {
6015 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailMailboxEmptyFolderStatus;i4)");
6016}
6017#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
6018#[repr(transparent)]
6019#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
6020pub struct EmailMailboxOtherAppReadAccess(pub i32);
6021impl EmailMailboxOtherAppReadAccess {
6022 pub const SystemOnly: Self = Self(0i32);
6023 pub const Full: Self = Self(1i32);
6024 pub const None: Self = Self(2i32);
6025}
6026impl ::core::marker::Copy for EmailMailboxOtherAppReadAccess {}
6027impl ::core::clone::Clone for EmailMailboxOtherAppReadAccess {
6028 fn clone(&self) -> Self {
6029 *self
6030 }
6031}
6032impl ::core::default::Default for EmailMailboxOtherAppReadAccess {
6033 fn default() -> Self {
6034 Self(0)
6035 }
6036}
6037impl ::windows::core::TypeKind for EmailMailboxOtherAppReadAccess {
6038 type TypeKind = ::windows::core::CopyType;
6039}
6040impl ::core::fmt::Debug for EmailMailboxOtherAppReadAccess {
6041 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
6042 f.debug_tuple("EmailMailboxOtherAppReadAccess").field(&self.0).finish()
6043 }
6044}
6045impl ::windows::core::RuntimeType for EmailMailboxOtherAppReadAccess {
6046 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailMailboxOtherAppReadAccess;i4)");
6047}
6048#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
6049#[repr(transparent)]
6050#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
6051pub struct EmailMailboxOtherAppWriteAccess(pub i32);
6052impl EmailMailboxOtherAppWriteAccess {
6053 pub const None: Self = Self(0i32);
6054 pub const Limited: Self = Self(1i32);
6055}
6056impl ::core::marker::Copy for EmailMailboxOtherAppWriteAccess {}
6057impl ::core::clone::Clone for EmailMailboxOtherAppWriteAccess {
6058 fn clone(&self) -> Self {
6059 *self
6060 }
6061}
6062impl ::core::default::Default for EmailMailboxOtherAppWriteAccess {
6063 fn default() -> Self {
6064 Self(0)
6065 }
6066}
6067impl ::windows::core::TypeKind for EmailMailboxOtherAppWriteAccess {
6068 type TypeKind = ::windows::core::CopyType;
6069}
6070impl ::core::fmt::Debug for EmailMailboxOtherAppWriteAccess {
6071 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
6072 f.debug_tuple("EmailMailboxOtherAppWriteAccess").field(&self.0).finish()
6073 }
6074}
6075impl ::windows::core::RuntimeType for EmailMailboxOtherAppWriteAccess {
6076 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailMailboxOtherAppWriteAccess;i4)");
6077}
6078#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
6079#[repr(transparent)]
6080#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
6081pub struct EmailMailboxSmimeEncryptionAlgorithm(pub i32);
6082impl EmailMailboxSmimeEncryptionAlgorithm {
6083 pub const Any: Self = Self(0i32);
6084 pub const TripleDes: Self = Self(1i32);
6085 pub const Des: Self = Self(2i32);
6086 pub const RC2128Bit: Self = Self(3i32);
6087 pub const RC264Bit: Self = Self(4i32);
6088 pub const RC240Bit: Self = Self(5i32);
6089}
6090impl ::core::marker::Copy for EmailMailboxSmimeEncryptionAlgorithm {}
6091impl ::core::clone::Clone for EmailMailboxSmimeEncryptionAlgorithm {
6092 fn clone(&self) -> Self {
6093 *self
6094 }
6095}
6096impl ::core::default::Default for EmailMailboxSmimeEncryptionAlgorithm {
6097 fn default() -> Self {
6098 Self(0)
6099 }
6100}
6101impl ::windows::core::TypeKind for EmailMailboxSmimeEncryptionAlgorithm {
6102 type TypeKind = ::windows::core::CopyType;
6103}
6104impl ::core::fmt::Debug for EmailMailboxSmimeEncryptionAlgorithm {
6105 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
6106 f.debug_tuple("EmailMailboxSmimeEncryptionAlgorithm").field(&self.0).finish()
6107 }
6108}
6109impl ::windows::core::RuntimeType for EmailMailboxSmimeEncryptionAlgorithm {
6110 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailMailboxSmimeEncryptionAlgorithm;i4)");
6111}
6112#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
6113#[repr(transparent)]
6114#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
6115pub struct EmailMailboxSmimeSigningAlgorithm(pub i32);
6116impl EmailMailboxSmimeSigningAlgorithm {
6117 pub const Any: Self = Self(0i32);
6118 pub const Sha1: Self = Self(1i32);
6119 pub const MD5: Self = Self(2i32);
6120}
6121impl ::core::marker::Copy for EmailMailboxSmimeSigningAlgorithm {}
6122impl ::core::clone::Clone for EmailMailboxSmimeSigningAlgorithm {
6123 fn clone(&self) -> Self {
6124 *self
6125 }
6126}
6127impl ::core::default::Default for EmailMailboxSmimeSigningAlgorithm {
6128 fn default() -> Self {
6129 Self(0)
6130 }
6131}
6132impl ::windows::core::TypeKind for EmailMailboxSmimeSigningAlgorithm {
6133 type TypeKind = ::windows::core::CopyType;
6134}
6135impl ::core::fmt::Debug for EmailMailboxSmimeSigningAlgorithm {
6136 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
6137 f.debug_tuple("EmailMailboxSmimeSigningAlgorithm").field(&self.0).finish()
6138 }
6139}
6140impl ::windows::core::RuntimeType for EmailMailboxSmimeSigningAlgorithm {
6141 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailMailboxSmimeSigningAlgorithm;i4)");
6142}
6143#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
6144#[repr(transparent)]
6145#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
6146pub struct EmailMailboxSyncStatus(pub i32);
6147impl EmailMailboxSyncStatus {
6148 pub const Idle: Self = Self(0i32);
6149 pub const Syncing: Self = Self(1i32);
6150 pub const UpToDate: Self = Self(2i32);
6151 pub const AuthenticationError: Self = Self(3i32);
6152 pub const PolicyError: Self = Self(4i32);
6153 pub const UnknownError: Self = Self(5i32);
6154 pub const ManualAccountRemovalRequired: Self = Self(6i32);
6155}
6156impl ::core::marker::Copy for EmailMailboxSyncStatus {}
6157impl ::core::clone::Clone for EmailMailboxSyncStatus {
6158 fn clone(&self) -> Self {
6159 *self
6160 }
6161}
6162impl ::core::default::Default for EmailMailboxSyncStatus {
6163 fn default() -> Self {
6164 Self(0)
6165 }
6166}
6167impl ::windows::core::TypeKind for EmailMailboxSyncStatus {
6168 type TypeKind = ::windows::core::CopyType;
6169}
6170impl ::core::fmt::Debug for EmailMailboxSyncStatus {
6171 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
6172 f.debug_tuple("EmailMailboxSyncStatus").field(&self.0).finish()
6173 }
6174}
6175impl ::windows::core::RuntimeType for EmailMailboxSyncStatus {
6176 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailMailboxSyncStatus;i4)");
6177}
6178#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
6179#[repr(transparent)]
6180#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
6181pub struct EmailMeetingResponseType(pub i32);
6182impl EmailMeetingResponseType {
6183 pub const Accept: Self = Self(0i32);
6184 pub const Decline: Self = Self(1i32);
6185 pub const Tentative: Self = Self(2i32);
6186}
6187impl ::core::marker::Copy for EmailMeetingResponseType {}
6188impl ::core::clone::Clone for EmailMeetingResponseType {
6189 fn clone(&self) -> Self {
6190 *self
6191 }
6192}
6193impl ::core::default::Default for EmailMeetingResponseType {
6194 fn default() -> Self {
6195 Self(0)
6196 }
6197}
6198impl ::windows::core::TypeKind for EmailMeetingResponseType {
6199 type TypeKind = ::windows::core::CopyType;
6200}
6201impl ::core::fmt::Debug for EmailMeetingResponseType {
6202 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
6203 f.debug_tuple("EmailMeetingResponseType").field(&self.0).finish()
6204 }
6205}
6206impl ::windows::core::RuntimeType for EmailMeetingResponseType {
6207 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailMeetingResponseType;i4)");
6208}
6209#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
6210#[repr(transparent)]
6211#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
6212pub struct EmailMessageBodyKind(pub i32);
6213impl EmailMessageBodyKind {
6214 pub const Html: Self = Self(0i32);
6215 pub const PlainText: Self = Self(1i32);
6216}
6217impl ::core::marker::Copy for EmailMessageBodyKind {}
6218impl ::core::clone::Clone for EmailMessageBodyKind {
6219 fn clone(&self) -> Self {
6220 *self
6221 }
6222}
6223impl ::core::default::Default for EmailMessageBodyKind {
6224 fn default() -> Self {
6225 Self(0)
6226 }
6227}
6228impl ::windows::core::TypeKind for EmailMessageBodyKind {
6229 type TypeKind = ::windows::core::CopyType;
6230}
6231impl ::core::fmt::Debug for EmailMessageBodyKind {
6232 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
6233 f.debug_tuple("EmailMessageBodyKind").field(&self.0).finish()
6234 }
6235}
6236impl ::windows::core::RuntimeType for EmailMessageBodyKind {
6237 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailMessageBodyKind;i4)");
6238}
6239#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
6240#[repr(transparent)]
6241#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
6242pub struct EmailMessageDownloadState(pub i32);
6243impl EmailMessageDownloadState {
6244 pub const PartiallyDownloaded: Self = Self(0i32);
6245 pub const Downloading: Self = Self(1i32);
6246 pub const Downloaded: Self = Self(2i32);
6247 pub const Failed: Self = Self(3i32);
6248}
6249impl ::core::marker::Copy for EmailMessageDownloadState {}
6250impl ::core::clone::Clone for EmailMessageDownloadState {
6251 fn clone(&self) -> Self {
6252 *self
6253 }
6254}
6255impl ::core::default::Default for EmailMessageDownloadState {
6256 fn default() -> Self {
6257 Self(0)
6258 }
6259}
6260impl ::windows::core::TypeKind for EmailMessageDownloadState {
6261 type TypeKind = ::windows::core::CopyType;
6262}
6263impl ::core::fmt::Debug for EmailMessageDownloadState {
6264 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
6265 f.debug_tuple("EmailMessageDownloadState").field(&self.0).finish()
6266 }
6267}
6268impl ::windows::core::RuntimeType for EmailMessageDownloadState {
6269 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailMessageDownloadState;i4)");
6270}
6271#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
6272#[repr(transparent)]
6273#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
6274pub struct EmailMessageResponseKind(pub i32);
6275impl EmailMessageResponseKind {
6276 pub const None: Self = Self(0i32);
6277 pub const Reply: Self = Self(1i32);
6278 pub const ReplyAll: Self = Self(2i32);
6279 pub const Forward: Self = Self(3i32);
6280}
6281impl ::core::marker::Copy for EmailMessageResponseKind {}
6282impl ::core::clone::Clone for EmailMessageResponseKind {
6283 fn clone(&self) -> Self {
6284 *self
6285 }
6286}
6287impl ::core::default::Default for EmailMessageResponseKind {
6288 fn default() -> Self {
6289 Self(0)
6290 }
6291}
6292impl ::windows::core::TypeKind for EmailMessageResponseKind {
6293 type TypeKind = ::windows::core::CopyType;
6294}
6295impl ::core::fmt::Debug for EmailMessageResponseKind {
6296 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
6297 f.debug_tuple("EmailMessageResponseKind").field(&self.0).finish()
6298 }
6299}
6300impl ::windows::core::RuntimeType for EmailMessageResponseKind {
6301 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailMessageResponseKind;i4)");
6302}
6303#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
6304#[repr(transparent)]
6305#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
6306pub struct EmailMessageSmimeKind(pub i32);
6307impl EmailMessageSmimeKind {
6308 pub const None: Self = Self(0i32);
6309 pub const ClearSigned: Self = Self(1i32);
6310 pub const OpaqueSigned: Self = Self(2i32);
6311 pub const Encrypted: Self = Self(3i32);
6312}
6313impl ::core::marker::Copy for EmailMessageSmimeKind {}
6314impl ::core::clone::Clone for EmailMessageSmimeKind {
6315 fn clone(&self) -> Self {
6316 *self
6317 }
6318}
6319impl ::core::default::Default for EmailMessageSmimeKind {
6320 fn default() -> Self {
6321 Self(0)
6322 }
6323}
6324impl ::windows::core::TypeKind for EmailMessageSmimeKind {
6325 type TypeKind = ::windows::core::CopyType;
6326}
6327impl ::core::fmt::Debug for EmailMessageSmimeKind {
6328 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
6329 f.debug_tuple("EmailMessageSmimeKind").field(&self.0).finish()
6330 }
6331}
6332impl ::windows::core::RuntimeType for EmailMessageSmimeKind {
6333 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailMessageSmimeKind;i4)");
6334}
6335#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
6336#[repr(transparent)]
6337#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
6338pub struct EmailQueryKind(pub i32);
6339impl EmailQueryKind {
6340 pub const All: Self = Self(0i32);
6341 pub const Important: Self = Self(1i32);
6342 pub const Flagged: Self = Self(2i32);
6343 pub const Unread: Self = Self(3i32);
6344 pub const Read: Self = Self(4i32);
6345 pub const Unseen: Self = Self(5i32);
6346}
6347impl ::core::marker::Copy for EmailQueryKind {}
6348impl ::core::clone::Clone for EmailQueryKind {
6349 fn clone(&self) -> Self {
6350 *self
6351 }
6352}
6353impl ::core::default::Default for EmailQueryKind {
6354 fn default() -> Self {
6355 Self(0)
6356 }
6357}
6358impl ::windows::core::TypeKind for EmailQueryKind {
6359 type TypeKind = ::windows::core::CopyType;
6360}
6361impl ::core::fmt::Debug for EmailQueryKind {
6362 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
6363 f.debug_tuple("EmailQueryKind").field(&self.0).finish()
6364 }
6365}
6366impl ::windows::core::RuntimeType for EmailQueryKind {
6367 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailQueryKind;i4)");
6368}
6369#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
6370#[repr(transparent)]
6371#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
6372pub struct EmailQuerySearchFields(pub u32);
6373impl EmailQuerySearchFields {
6374 pub const None: Self = Self(0u32);
6375 pub const Subject: Self = Self(1u32);
6376 pub const Sender: Self = Self(2u32);
6377 pub const Preview: Self = Self(4u32);
6378 pub const Recipients: Self = Self(8u32);
6379 pub const All: Self = Self(4294967295u32);
6380}
6381impl ::core::marker::Copy for EmailQuerySearchFields {}
6382impl ::core::clone::Clone for EmailQuerySearchFields {
6383 fn clone(&self) -> Self {
6384 *self
6385 }
6386}
6387impl ::core::default::Default for EmailQuerySearchFields {
6388 fn default() -> Self {
6389 Self(0)
6390 }
6391}
6392impl ::windows::core::TypeKind for EmailQuerySearchFields {
6393 type TypeKind = ::windows::core::CopyType;
6394}
6395impl ::core::fmt::Debug for EmailQuerySearchFields {
6396 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
6397 f.debug_tuple("EmailQuerySearchFields").field(&self.0).finish()
6398 }
6399}
6400impl EmailQuerySearchFields {
6401 pub const fn contains(&self, other: Self) -> bool {
6402 self.0 & other.0 == other.0
6403 }
6404}
6405impl ::core::ops::BitOr for EmailQuerySearchFields {
6406 type Output = Self;
6407 fn bitor(self, other: Self) -> Self {
6408 Self(self.0 | other.0)
6409 }
6410}
6411impl ::core::ops::BitAnd for EmailQuerySearchFields {
6412 type Output = Self;
6413 fn bitand(self, other: Self) -> Self {
6414 Self(self.0 & other.0)
6415 }
6416}
6417impl ::core::ops::BitOrAssign for EmailQuerySearchFields {
6418 fn bitor_assign(&mut self, other: Self) {
6419 self.0.bitor_assign(other.0)
6420 }
6421}
6422impl ::core::ops::BitAndAssign for EmailQuerySearchFields {
6423 fn bitand_assign(&mut self, other: Self) {
6424 self.0.bitand_assign(other.0)
6425 }
6426}
6427impl ::core::ops::Not for EmailQuerySearchFields {
6428 type Output = Self;
6429 fn not(self) -> Self {
6430 Self(self.0.not())
6431 }
6432}
6433impl ::windows::core::RuntimeType for EmailQuerySearchFields {
6434 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailQuerySearchFields;u4)");
6435}
6436#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
6437#[repr(transparent)]
6438#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
6439pub struct EmailQuerySearchScope(pub i32);
6440impl EmailQuerySearchScope {
6441 pub const Local: Self = Self(0i32);
6442 pub const Server: Self = Self(1i32);
6443}
6444impl ::core::marker::Copy for EmailQuerySearchScope {}
6445impl ::core::clone::Clone for EmailQuerySearchScope {
6446 fn clone(&self) -> Self {
6447 *self
6448 }
6449}
6450impl ::core::default::Default for EmailQuerySearchScope {
6451 fn default() -> Self {
6452 Self(0)
6453 }
6454}
6455impl ::windows::core::TypeKind for EmailQuerySearchScope {
6456 type TypeKind = ::windows::core::CopyType;
6457}
6458impl ::core::fmt::Debug for EmailQuerySearchScope {
6459 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
6460 f.debug_tuple("EmailQuerySearchScope").field(&self.0).finish()
6461 }
6462}
6463impl ::windows::core::RuntimeType for EmailQuerySearchScope {
6464 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailQuerySearchScope;i4)");
6465}
6466#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
6467#[repr(transparent)]
6468#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
6469pub struct EmailQuerySortDirection(pub i32);
6470impl EmailQuerySortDirection {
6471 pub const Descending: Self = Self(0i32);
6472 pub const Ascending: Self = Self(1i32);
6473}
6474impl ::core::marker::Copy for EmailQuerySortDirection {}
6475impl ::core::clone::Clone for EmailQuerySortDirection {
6476 fn clone(&self) -> Self {
6477 *self
6478 }
6479}
6480impl ::core::default::Default for EmailQuerySortDirection {
6481 fn default() -> Self {
6482 Self(0)
6483 }
6484}
6485impl ::windows::core::TypeKind for EmailQuerySortDirection {
6486 type TypeKind = ::windows::core::CopyType;
6487}
6488impl ::core::fmt::Debug for EmailQuerySortDirection {
6489 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
6490 f.debug_tuple("EmailQuerySortDirection").field(&self.0).finish()
6491 }
6492}
6493impl ::windows::core::RuntimeType for EmailQuerySortDirection {
6494 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailQuerySortDirection;i4)");
6495}
6496#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
6497#[repr(transparent)]
6498#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
6499pub struct EmailQuerySortProperty(pub i32);
6500impl EmailQuerySortProperty {
6501 pub const Date: Self = Self(0i32);
6502}
6503impl ::core::marker::Copy for EmailQuerySortProperty {}
6504impl ::core::clone::Clone for EmailQuerySortProperty {
6505 fn clone(&self) -> Self {
6506 *self
6507 }
6508}
6509impl ::core::default::Default for EmailQuerySortProperty {
6510 fn default() -> Self {
6511 Self(0)
6512 }
6513}
6514impl ::windows::core::TypeKind for EmailQuerySortProperty {
6515 type TypeKind = ::windows::core::CopyType;
6516}
6517impl ::core::fmt::Debug for EmailQuerySortProperty {
6518 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
6519 f.debug_tuple("EmailQuerySortProperty").field(&self.0).finish()
6520 }
6521}
6522impl ::windows::core::RuntimeType for EmailQuerySortProperty {
6523 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailQuerySortProperty;i4)");
6524}
6525#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
6526#[repr(transparent)]
6527#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
6528pub struct EmailRecipientResolutionStatus(pub i32);
6529impl EmailRecipientResolutionStatus {
6530 pub const Success: Self = Self(0i32);
6531 pub const RecipientNotFound: Self = Self(1i32);
6532 pub const AmbiguousRecipient: Self = Self(2i32);
6533 pub const NoCertificate: Self = Self(3i32);
6534 pub const CertificateRequestLimitReached: Self = Self(4i32);
6535 pub const CannotResolveDistributionList: Self = Self(5i32);
6536 pub const ServerError: Self = Self(6i32);
6537 pub const UnknownFailure: Self = Self(7i32);
6538}
6539impl ::core::marker::Copy for EmailRecipientResolutionStatus {}
6540impl ::core::clone::Clone for EmailRecipientResolutionStatus {
6541 fn clone(&self) -> Self {
6542 *self
6543 }
6544}
6545impl ::core::default::Default for EmailRecipientResolutionStatus {
6546 fn default() -> Self {
6547 Self(0)
6548 }
6549}
6550impl ::windows::core::TypeKind for EmailRecipientResolutionStatus {
6551 type TypeKind = ::windows::core::CopyType;
6552}
6553impl ::core::fmt::Debug for EmailRecipientResolutionStatus {
6554 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
6555 f.debug_tuple("EmailRecipientResolutionStatus").field(&self.0).finish()
6556 }
6557}
6558impl ::windows::core::RuntimeType for EmailRecipientResolutionStatus {
6559 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailRecipientResolutionStatus;i4)");
6560}
6561#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
6562#[repr(transparent)]
6563#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
6564pub struct EmailSpecialFolderKind(pub i32);
6565impl EmailSpecialFolderKind {
6566 pub const None: Self = Self(0i32);
6567 pub const Root: Self = Self(1i32);
6568 pub const Inbox: Self = Self(2i32);
6569 pub const Outbox: Self = Self(3i32);
6570 pub const Drafts: Self = Self(4i32);
6571 pub const DeletedItems: Self = Self(5i32);
6572 pub const Sent: Self = Self(6i32);
6573}
6574impl ::core::marker::Copy for EmailSpecialFolderKind {}
6575impl ::core::clone::Clone for EmailSpecialFolderKind {
6576 fn clone(&self) -> Self {
6577 *self
6578 }
6579}
6580impl ::core::default::Default for EmailSpecialFolderKind {
6581 fn default() -> Self {
6582 Self(0)
6583 }
6584}
6585impl ::windows::core::TypeKind for EmailSpecialFolderKind {
6586 type TypeKind = ::windows::core::CopyType;
6587}
6588impl ::core::fmt::Debug for EmailSpecialFolderKind {
6589 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
6590 f.debug_tuple("EmailSpecialFolderKind").field(&self.0).finish()
6591 }
6592}
6593impl ::windows::core::RuntimeType for EmailSpecialFolderKind {
6594 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailSpecialFolderKind;i4)");
6595}
6596#[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
6597#[repr(transparent)]
6598#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
6599pub struct EmailStoreAccessType(pub i32);
6600impl EmailStoreAccessType {
6601 pub const AppMailboxesReadWrite: Self = Self(0i32);
6602 pub const AllMailboxesLimitedReadWrite: Self = Self(1i32);
6603}
6604impl ::core::marker::Copy for EmailStoreAccessType {}
6605impl ::core::clone::Clone for EmailStoreAccessType {
6606 fn clone(&self) -> Self {
6607 *self
6608 }
6609}
6610impl ::core::default::Default for EmailStoreAccessType {
6611 fn default() -> Self {
6612 Self(0)
6613 }
6614}
6615impl ::windows::core::TypeKind for EmailStoreAccessType {
6616 type TypeKind = ::windows::core::CopyType;
6617}
6618impl ::core::fmt::Debug for EmailStoreAccessType {
6619 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
6620 f.debug_tuple("EmailStoreAccessType").field(&self.0).finish()
6621 }
6622}
6623impl ::windows::core::RuntimeType for EmailStoreAccessType {
6624 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Email.EmailStoreAccessType;i4)");
6625}
6626#[cfg(feature = "implement")]
6627::core::include!("impl.rs");