// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_ApplicationModel_Email_H #define WINRT_Windows_ApplicationModel_Email_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #include "winrt/Windows.ApplicationModel.h" #include "winrt/impl/Windows.ApplicationModel.Appointments.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Security.Cryptography.Certificates.2.h" #include "winrt/impl/Windows.Storage.Streams.2.h" #include "winrt/impl/Windows.System.2.h" #include "winrt/impl/Windows.ApplicationModel.Email.2.h" namespace winrt::impl { template auto consume_Windows_ApplicationModel_Email_IEmailAttachment::FileName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailAttachment)->get_FileName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailAttachment::FileName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailAttachment)->put_FileName(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailAttachment::Data() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailAttachment)->get_Data(&value)); return winrt::Windows::Storage::Streams::IRandomAccessStreamReference{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailAttachment::Data(winrt::Windows::Storage::Streams::IRandomAccessStreamReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailAttachment)->put_Data(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailAttachment2::Id() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailAttachment2)->get_Id(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailAttachment2::ContentId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailAttachment2)->get_ContentId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailAttachment2::ContentId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailAttachment2)->put_ContentId(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailAttachment2::ContentLocation() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailAttachment2)->get_ContentLocation(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailAttachment2::ContentLocation(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailAttachment2)->put_ContentLocation(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailAttachment2::DownloadState() const { winrt::Windows::ApplicationModel::Email::EmailAttachmentDownloadState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailAttachment2)->get_DownloadState(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailAttachment2::DownloadState(winrt::Windows::ApplicationModel::Email::EmailAttachmentDownloadState const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailAttachment2)->put_DownloadState(static_cast(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailAttachment2::EstimatedDownloadSizeInBytes() const { uint64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailAttachment2)->get_EstimatedDownloadSizeInBytes(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailAttachment2::EstimatedDownloadSizeInBytes(uint64_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailAttachment2)->put_EstimatedDownloadSizeInBytes(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailAttachment2::IsFromBaseMessage() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailAttachment2)->get_IsFromBaseMessage(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailAttachment2::IsInline() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailAttachment2)->get_IsInline(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailAttachment2::IsInline(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailAttachment2)->put_IsInline(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailAttachment2::MimeType() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailAttachment2)->get_MimeType(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailAttachment2::MimeType(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailAttachment2)->put_MimeType(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailAttachmentFactory::Create(param::hstring const& fileName, winrt::Windows::Storage::Streams::IRandomAccessStreamReference const& data) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailAttachmentFactory)->Create(*(void**)(&fileName), *(void**)(&data), &result)); return winrt::Windows::ApplicationModel::Email::EmailAttachment{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailAttachmentFactory2::Create(param::hstring const& fileName, winrt::Windows::Storage::Streams::IRandomAccessStreamReference const& data, param::hstring const& mimeType) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailAttachmentFactory2)->Create(*(void**)(&fileName), *(void**)(&data), *(void**)(&mimeType), &result)); return winrt::Windows::ApplicationModel::Email::EmailAttachment{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailConversation::Id() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailConversation)->get_Id(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailConversation::MailboxId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailConversation)->get_MailboxId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailConversation::FlagState() const { winrt::Windows::ApplicationModel::Email::EmailFlagState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailConversation)->get_FlagState(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailConversation::HasAttachment() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailConversation)->get_HasAttachment(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailConversation::Importance() const { winrt::Windows::ApplicationModel::Email::EmailImportance value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailConversation)->get_Importance(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailConversation::LastEmailResponseKind() const { winrt::Windows::ApplicationModel::Email::EmailMessageResponseKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailConversation)->get_LastEmailResponseKind(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailConversation::MessageCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailConversation)->get_MessageCount(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailConversation::MostRecentMessageId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailConversation)->get_MostRecentMessageId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailConversation::MostRecentMessageTime() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailConversation)->get_MostRecentMessageTime(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailConversation::Preview() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailConversation)->get_Preview(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailConversation::LatestSender() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailConversation)->get_LatestSender(&value)); return winrt::Windows::ApplicationModel::Email::EmailRecipient{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailConversation::Subject() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailConversation)->get_Subject(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailConversation::UnreadMessageCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailConversation)->get_UnreadMessageCount(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailConversation::FindMessagesAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailConversation)->FindMessagesAsync(&result)); return winrt::Windows::Foundation::IAsyncOperation>{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailConversation::FindMessagesAsync(uint32_t count) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailConversation)->FindMessagesWithCountAsync(count, &result)); return winrt::Windows::Foundation::IAsyncOperation>{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailConversationBatch::Conversations() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailConversationBatch)->get_Conversations(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailConversationBatch::Status() const { winrt::Windows::ApplicationModel::Email::EmailBatchStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailConversationBatch)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailConversationReader::ReadBatchAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailConversationReader)->ReadBatchAsync(&result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::Id() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->get_Id(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::RemoteId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->get_RemoteId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::RemoteId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->put_RemoteId(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::MailboxId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->get_MailboxId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::ParentFolderId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->get_ParentFolderId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::DisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->get_DisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::DisplayName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->put_DisplayName(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::IsSyncEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->get_IsSyncEnabled(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::IsSyncEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->put_IsSyncEnabled(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::LastSuccessfulSyncTime() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->get_LastSuccessfulSyncTime(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::LastSuccessfulSyncTime(winrt::Windows::Foundation::DateTime const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->put_LastSuccessfulSyncTime(impl::bind_in(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::Kind() const { winrt::Windows::ApplicationModel::Email::EmailSpecialFolderKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->get_Kind(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::CreateFolderAsync(param::hstring const& name) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->CreateFolderAsync(*(void**)(&name), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::DeleteAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->DeleteAsync(&result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::FindChildFoldersAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->FindChildFoldersAsync(&result)); return winrt::Windows::Foundation::IAsyncOperation>{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::GetConversationReader() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->GetConversationReader(&result)); return winrt::Windows::ApplicationModel::Email::EmailConversationReader{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::GetConversationReader(winrt::Windows::ApplicationModel::Email::EmailQueryOptions const& options) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->GetConversationReaderWithOptions(*(void**)(&options), &result)); return winrt::Windows::ApplicationModel::Email::EmailConversationReader{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::GetMessageAsync(param::hstring const& id) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->GetMessageAsync(*(void**)(&id), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::GetMessageReader() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->GetMessageReader(&result)); return winrt::Windows::ApplicationModel::Email::EmailMessageReader{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::GetMessageReader(winrt::Windows::ApplicationModel::Email::EmailQueryOptions const& options) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->GetMessageReaderWithOptions(*(void**)(&options), &result)); return winrt::Windows::ApplicationModel::Email::EmailMessageReader{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::GetMessageCountsAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->GetMessageCountsAsync(&result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::TryMoveAsync(winrt::Windows::ApplicationModel::Email::EmailFolder const& newParentFolder) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->TryMoveAsync(*(void**)(&newParentFolder), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::TryMoveAsync(winrt::Windows::ApplicationModel::Email::EmailFolder const& newParentFolder, param::hstring const& newFolderName) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->TryMoveWithNewNameAsync(*(void**)(&newParentFolder), *(void**)(&newFolderName), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::TrySaveAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->TrySaveAsync(&result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailFolder::SaveMessageAsync(winrt::Windows::ApplicationModel::Email::EmailMessage const& message) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailFolder)->SaveMessageAsync(*(void**)(&message), &result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::CanEdit() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->get_CanEdit(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::CanEdit(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->put_CanEdit(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::CanExtractData() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->get_CanExtractData(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::CanExtractData(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->put_CanExtractData(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::CanForward() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->get_CanForward(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::CanForward(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->put_CanForward(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::CanModifyRecipientsOnResponse() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->get_CanModifyRecipientsOnResponse(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::CanModifyRecipientsOnResponse(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->put_CanModifyRecipientsOnResponse(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::CanPrintData() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->get_CanPrintData(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::CanPrintData(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->put_CanPrintData(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::CanRemoveIrmOnResponse() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->get_CanRemoveIrmOnResponse(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::CanRemoveIrmOnResponse(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->put_CanRemoveIrmOnResponse(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::CanReply() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->get_CanReply(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::CanReply(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->put_CanReply(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::CanReplyAll() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->get_CanReplyAll(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::CanReplyAll(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->put_CanReplyAll(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::ExpirationDate() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->get_ExpirationDate(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::ExpirationDate(winrt::Windows::Foundation::DateTime const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->put_ExpirationDate(impl::bind_in(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::IsIrmOriginator() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->get_IsIrmOriginator(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::IsIrmOriginator(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->put_IsIrmOriginator(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::IsProgramaticAccessAllowed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->get_IsProgramaticAccessAllowed(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::IsProgramaticAccessAllowed(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->put_IsProgramaticAccessAllowed(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::Template() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->get_Template(&value)); return winrt::Windows::ApplicationModel::Email::EmailIrmTemplate{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfo::Template(winrt::Windows::ApplicationModel::Email::EmailIrmTemplate const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfo)->put_Template(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailIrmInfoFactory::Create(winrt::Windows::Foundation::DateTime const& expiration, winrt::Windows::ApplicationModel::Email::EmailIrmTemplate const& irmTemplate) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmInfoFactory)->Create(impl::bind_in(expiration), *(void**)(&irmTemplate), &result)); return winrt::Windows::ApplicationModel::Email::EmailIrmInfo{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailIrmTemplate::Id() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmTemplate)->get_Id(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailIrmTemplate::Id(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmTemplate)->put_Id(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailIrmTemplate::Description() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmTemplate)->get_Description(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailIrmTemplate::Description(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmTemplate)->put_Description(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailIrmTemplate::Name() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmTemplate)->get_Name(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailIrmTemplate::Name(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmTemplate)->put_Name(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailIrmTemplateFactory::Create(param::hstring const& id, param::hstring const& name, param::hstring const& description) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailIrmTemplateFactory)->Create(*(void**)(&id), *(void**)(&name), *(void**)(&description), &result)); return winrt::Windows::ApplicationModel::Email::EmailIrmTemplate{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailItemCounts::Flagged() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailItemCounts)->get_Flagged(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailItemCounts::Important() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailItemCounts)->get_Important(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailItemCounts::Total() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailItemCounts)->get_Total(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailItemCounts::Unread() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailItemCounts)->get_Unread(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::Capabilities() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->get_Capabilities(&value)); return winrt::Windows::ApplicationModel::Email::EmailMailboxCapabilities{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::ChangeTracker() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->get_ChangeTracker(&value)); return winrt::Windows::ApplicationModel::Email::EmailMailboxChangeTracker{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::DisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->get_DisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::DisplayName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->put_DisplayName(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::Id() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->get_Id(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::IsOwnedByCurrentApp() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->get_IsOwnedByCurrentApp(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::IsDataEncryptedUnderLock() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->get_IsDataEncryptedUnderLock(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::MailAddress() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->get_MailAddress(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::MailAddress(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->put_MailAddress(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::MailAddressAliases() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->get_MailAddressAliases(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::OtherAppReadAccess() const { winrt::Windows::ApplicationModel::Email::EmailMailboxOtherAppReadAccess value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->get_OtherAppReadAccess(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::OtherAppReadAccess(winrt::Windows::ApplicationModel::Email::EmailMailboxOtherAppReadAccess const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->put_OtherAppReadAccess(static_cast(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::OtherAppWriteAccess() const { winrt::Windows::ApplicationModel::Email::EmailMailboxOtherAppWriteAccess value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->get_OtherAppWriteAccess(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::OtherAppWriteAccess(winrt::Windows::ApplicationModel::Email::EmailMailboxOtherAppWriteAccess const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->put_OtherAppWriteAccess(static_cast(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::Policies() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->get_Policies(&value)); return winrt::Windows::ApplicationModel::Email::EmailMailboxPolicies{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::SourceDisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->get_SourceDisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::SyncManager() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->get_SyncManager(&value)); return winrt::Windows::ApplicationModel::Email::EmailMailboxSyncManager{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::UserDataAccountId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->get_UserDataAccountId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::GetConversationReader() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->GetConversationReader(&result)); return winrt::Windows::ApplicationModel::Email::EmailConversationReader{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::GetConversationReader(winrt::Windows::ApplicationModel::Email::EmailQueryOptions const& options) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->GetConversationReaderWithOptions(*(void**)(&options), &result)); return winrt::Windows::ApplicationModel::Email::EmailConversationReader{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::GetMessageReader() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->GetMessageReader(&result)); return winrt::Windows::ApplicationModel::Email::EmailMessageReader{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::GetMessageReader(winrt::Windows::ApplicationModel::Email::EmailQueryOptions const& options) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->GetMessageReaderWithOptions(*(void**)(&options), &result)); return winrt::Windows::ApplicationModel::Email::EmailMessageReader{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::DeleteAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->DeleteAsync(&result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::GetConversationAsync(param::hstring const& id) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->GetConversationAsync(*(void**)(&id), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::GetFolderAsync(param::hstring const& id) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->GetFolderAsync(*(void**)(&id), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::GetMessageAsync(param::hstring const& id) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->GetMessageAsync(*(void**)(&id), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::GetSpecialFolderAsync(winrt::Windows::ApplicationModel::Email::EmailSpecialFolderKind const& folderType) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->GetSpecialFolderAsync(static_cast(folderType), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::SaveAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->SaveAsync(&result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::MarkMessageAsSeenAsync(param::hstring const& messageId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->MarkMessageAsSeenAsync(*(void**)(&messageId), &result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::MarkFolderAsSeenAsync(param::hstring const& folderId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->MarkFolderAsSeenAsync(*(void**)(&folderId), &result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::MarkMessageReadAsync(param::hstring const& messageId, bool isRead) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->MarkMessageReadAsync(*(void**)(&messageId), isRead, &result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::ChangeMessageFlagStateAsync(param::hstring const& messageId, winrt::Windows::ApplicationModel::Email::EmailFlagState const& flagState) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->ChangeMessageFlagStateAsync(*(void**)(&messageId), static_cast(flagState), &result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::TryMoveMessageAsync(param::hstring const& messageId, param::hstring const& newParentFolderId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->TryMoveMessageAsync(*(void**)(&messageId), *(void**)(&newParentFolderId), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::TryMoveFolderAsync(param::hstring const& folderId, param::hstring const& newParentFolderId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->TryMoveFolderAsync(*(void**)(&folderId), *(void**)(&newParentFolderId), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::TryMoveFolderAsync(param::hstring const& folderId, param::hstring const& newParentFolderId, param::hstring const& newFolderName) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->TryMoveFolderWithNewNameAsync(*(void**)(&folderId), *(void**)(&newParentFolderId), *(void**)(&newFolderName), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::DeleteMessageAsync(param::hstring const& messageId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->DeleteMessageAsync(*(void**)(&messageId), &result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::MarkFolderSyncEnabledAsync(param::hstring const& folderId, bool isSyncEnabled) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->MarkFolderSyncEnabledAsync(*(void**)(&folderId), isSyncEnabled, &result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::SendMessageAsync(winrt::Windows::ApplicationModel::Email::EmailMessage const& message) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->SendMessageAsync(*(void**)(&message), &result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::SaveDraftAsync(winrt::Windows::ApplicationModel::Email::EmailMessage const& message) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->SaveDraftAsync(*(void**)(&message), &result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::DownloadMessageAsync(param::hstring const& messageId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->DownloadMessageAsync(*(void**)(&messageId), &result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::DownloadAttachmentAsync(param::hstring const& attachmentId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->DownloadAttachmentAsync(*(void**)(&attachmentId), &result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::CreateResponseMessageAsync(param::hstring const& messageId, winrt::Windows::ApplicationModel::Email::EmailMessageResponseKind const& responseType, param::hstring const& subject, winrt::Windows::ApplicationModel::Email::EmailMessageBodyKind const& responseHeaderType, param::hstring const& responseHeader) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->CreateResponseMessageAsync(*(void**)(&messageId), static_cast(responseType), *(void**)(&subject), static_cast(responseHeaderType), *(void**)(&responseHeader), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::TryUpdateMeetingResponseAsync(winrt::Windows::ApplicationModel::Email::EmailMessage const& meeting, winrt::Windows::ApplicationModel::Email::EmailMeetingResponseType const& response, param::hstring const& subject, param::hstring const& comment, bool sendUpdate) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->TryUpdateMeetingResponseAsync(*(void**)(&meeting), static_cast(response), *(void**)(&subject), *(void**)(&comment), sendUpdate, &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::TryForwardMeetingAsync(winrt::Windows::ApplicationModel::Email::EmailMessage const& meeting, param::async_iterable const& recipients, param::hstring const& subject, winrt::Windows::ApplicationModel::Email::EmailMessageBodyKind const& forwardHeaderType, param::hstring const& forwardHeader, param::hstring const& comment) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->TryForwardMeetingAsync(*(void**)(&meeting), *(void**)(&recipients), *(void**)(&subject), static_cast(forwardHeaderType), *(void**)(&forwardHeader), *(void**)(&comment), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::TryProposeNewTimeForMeetingAsync(winrt::Windows::ApplicationModel::Email::EmailMessage const& meeting, winrt::Windows::Foundation::DateTime const& newStartTime, winrt::Windows::Foundation::TimeSpan const& newDuration, param::hstring const& subject, param::hstring const& comment) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->TryProposeNewTimeForMeetingAsync(*(void**)(&meeting), impl::bind_in(newStartTime), impl::bind_in(newDuration), *(void**)(&subject), *(void**)(&comment), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::MailboxChanged(winrt::Windows::Foundation::TypedEventHandler const& pHandler) const { winrt::event_token pToken{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->add_MailboxChanged(*(void**)(&pHandler), put_abi(pToken))); return pToken; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::MailboxChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& pHandler) const { return impl::make_event_revoker(this, MailboxChanged(pHandler)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::MailboxChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->remove_MailboxChanged(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::SendMessageAsync(winrt::Windows::ApplicationModel::Email::EmailMessage const& message, bool smartSend) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->SmartSendMessageAsync(*(void**)(&message), smartSend, &result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::TrySetAutoReplySettingsAsync(winrt::Windows::ApplicationModel::Email::EmailMailboxAutoReplySettings const& autoReplySettings) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->TrySetAutoReplySettingsAsync(*(void**)(&autoReplySettings), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox::TryGetAutoReplySettingsAsync(winrt::Windows::ApplicationModel::Email::EmailMailboxAutoReplyMessageResponseKind const& requestedFormat) const { void* autoReplySettings{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox)->TryGetAutoReplySettingsAsync(static_cast(requestedFormat), &autoReplySettings)); return winrt::Windows::Foundation::IAsyncOperation{ autoReplySettings, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox2::LinkedMailboxId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox2)->get_LinkedMailboxId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox2::NetworkAccountId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox2)->get_NetworkAccountId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox2::NetworkId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox2)->get_NetworkId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox3::ResolveRecipientsAsync(param::async_iterable const& recipients) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox3)->ResolveRecipientsAsync(*(void**)(&recipients), &result)); return winrt::Windows::Foundation::IAsyncOperation>{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox3::ValidateCertificatesAsync(param::async_iterable const& certificates) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox3)->ValidateCertificatesAsync(*(void**)(&certificates), &result)); return winrt::Windows::Foundation::IAsyncOperation>{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox3::TryEmptyFolderAsync(param::hstring const& folderId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox3)->TryEmptyFolderAsync(*(void**)(&folderId), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox3::TryCreateFolderAsync(param::hstring const& parentFolderId, param::hstring const& name) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox3)->TryCreateFolderAsync(*(void**)(&parentFolderId), *(void**)(&name), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox3::TryDeleteFolderAsync(param::hstring const& folderId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox3)->TryDeleteFolderAsync(*(void**)(&folderId), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox4::RegisterSyncManagerAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox4)->RegisterSyncManagerAsync(&result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailbox5::GetChangeTracker(param::hstring const& identity) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailbox5)->GetChangeTracker(*(void**)(&identity), &result)); return winrt::Windows::ApplicationModel::Email::EmailMailboxChangeTracker{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxAction::Kind() const { winrt::Windows::ApplicationModel::Email::EmailMailboxActionKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxAction)->get_Kind(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxAction::ChangeNumber() const { uint64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxAction)->get_ChangeNumber(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxAutoReply::IsEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxAutoReply)->get_IsEnabled(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxAutoReply::IsEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxAutoReply)->put_IsEnabled(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxAutoReply::Response() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxAutoReply)->get_Response(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxAutoReply::Response(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxAutoReply)->put_Response(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxAutoReplySettings::IsEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxAutoReplySettings)->get_IsEnabled(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxAutoReplySettings::IsEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxAutoReplySettings)->put_IsEnabled(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxAutoReplySettings::ResponseKind() const { winrt::Windows::ApplicationModel::Email::EmailMailboxAutoReplyMessageResponseKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxAutoReplySettings)->get_ResponseKind(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxAutoReplySettings::ResponseKind(winrt::Windows::ApplicationModel::Email::EmailMailboxAutoReplyMessageResponseKind const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxAutoReplySettings)->put_ResponseKind(static_cast(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxAutoReplySettings::StartTime() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxAutoReplySettings)->get_StartTime(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxAutoReplySettings::StartTime(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxAutoReplySettings)->put_StartTime(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxAutoReplySettings::EndTime() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxAutoReplySettings)->get_EndTime(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxAutoReplySettings::EndTime(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxAutoReplySettings)->put_EndTime(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxAutoReplySettings::InternalReply() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxAutoReplySettings)->get_InternalReply(&value)); return winrt::Windows::ApplicationModel::Email::EmailMailboxAutoReply{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxAutoReplySettings::KnownExternalReply() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxAutoReplySettings)->get_KnownExternalReply(&value)); return winrt::Windows::ApplicationModel::Email::EmailMailboxAutoReply{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxAutoReplySettings::UnknownExternalReply() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxAutoReplySettings)->get_UnknownExternalReply(&value)); return winrt::Windows::ApplicationModel::Email::EmailMailboxAutoReply{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities::CanForwardMeetings() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities)->get_CanForwardMeetings(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities::CanGetAndSetExternalAutoReplies() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities)->get_CanGetAndSetExternalAutoReplies(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities::CanGetAndSetInternalAutoReplies() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities)->get_CanGetAndSetInternalAutoReplies(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities::CanUpdateMeetingResponses() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities)->get_CanUpdateMeetingResponses(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities::CanServerSearchFolders() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities)->get_CanServerSearchFolders(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities::CanServerSearchMailbox() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities)->get_CanServerSearchMailbox(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities::CanProposeNewTimeForMeetings() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities)->get_CanProposeNewTimeForMeetings(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities::CanSmartSend() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities)->get_CanSmartSend(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities2::CanResolveRecipients() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities2)->get_CanResolveRecipients(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities2::CanValidateCertificates() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities2)->get_CanValidateCertificates(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities2::CanEmptyFolder() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities2)->get_CanEmptyFolder(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities2::CanCreateFolder() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities2)->get_CanCreateFolder(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities2::CanDeleteFolder() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities2)->get_CanDeleteFolder(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities2::CanMoveFolder() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities2)->get_CanMoveFolder(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities3::CanForwardMeetings(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities3)->put_CanForwardMeetings(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities3::CanGetAndSetExternalAutoReplies(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities3)->put_CanGetAndSetExternalAutoReplies(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities3::CanGetAndSetInternalAutoReplies(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities3)->put_CanGetAndSetInternalAutoReplies(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities3::CanUpdateMeetingResponses(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities3)->put_CanUpdateMeetingResponses(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities3::CanServerSearchFolders(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities3)->put_CanServerSearchFolders(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities3::CanServerSearchMailbox(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities3)->put_CanServerSearchMailbox(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities3::CanProposeNewTimeForMeetings(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities3)->put_CanProposeNewTimeForMeetings(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities3::CanSmartSend(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities3)->put_CanSmartSend(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities3::CanResolveRecipients(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities3)->put_CanResolveRecipients(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities3::CanValidateCertificates(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities3)->put_CanValidateCertificates(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities3::CanEmptyFolder(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities3)->put_CanEmptyFolder(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities3::CanCreateFolder(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities3)->put_CanCreateFolder(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities3::CanDeleteFolder(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities3)->put_CanDeleteFolder(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCapabilities3::CanMoveFolder(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCapabilities3)->put_CanMoveFolder(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxChange::ChangeType() const { winrt::Windows::ApplicationModel::Email::EmailMailboxChangeType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxChange)->get_ChangeType(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxChange::MailboxActions() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxChange)->get_MailboxActions(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxChange::Message() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxChange)->get_Message(&value)); return winrt::Windows::ApplicationModel::Email::EmailMessage{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxChange::Folder() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxChange)->get_Folder(&value)); return winrt::Windows::ApplicationModel::Email::EmailFolder{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxChangeReader::AcceptChanges() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxChangeReader)->AcceptChanges()); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxChangeReader::AcceptChangesThrough(winrt::Windows::ApplicationModel::Email::EmailMailboxChange const& lastChangeToAcknowledge) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxChangeReader)->AcceptChangesThrough(*(void**)(&lastChangeToAcknowledge))); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxChangeReader::ReadBatchAsync() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxChangeReader)->ReadBatchAsync(&value)); return winrt::Windows::Foundation::IAsyncOperation>{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxChangeTracker::IsTracking() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxChangeTracker)->get_IsTracking(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxChangeTracker::Enable() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxChangeTracker)->Enable()); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxChangeTracker::GetChangeReader() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxChangeTracker)->GetChangeReader(&value)); return winrt::Windows::ApplicationModel::Email::EmailMailboxChangeReader{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxChangeTracker::Reset() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxChangeTracker)->Reset()); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxChangedDeferral::Complete() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxChangedDeferral)->Complete()); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxChangedEventArgs::GetDeferral() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxChangedEventArgs)->GetDeferral(&result)); return winrt::Windows::ApplicationModel::Email::EmailMailboxChangedDeferral{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCreateFolderResult::Status() const { winrt::Windows::ApplicationModel::Email::EmailMailboxCreateFolderStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCreateFolderResult)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxCreateFolderResult::Folder() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxCreateFolderResult)->get_Folder(&value)); return winrt::Windows::ApplicationModel::Email::EmailFolder{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxPolicies::AllowedSmimeEncryptionAlgorithmNegotiation() const { winrt::Windows::ApplicationModel::Email::EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxPolicies)->get_AllowedSmimeEncryptionAlgorithmNegotiation(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxPolicies::AllowSmimeSoftCertificates() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxPolicies)->get_AllowSmimeSoftCertificates(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxPolicies::RequiredSmimeEncryptionAlgorithm() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxPolicies)->get_RequiredSmimeEncryptionAlgorithm(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxPolicies::RequiredSmimeSigningAlgorithm() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxPolicies)->get_RequiredSmimeSigningAlgorithm(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxPolicies2::MustEncryptSmimeMessages() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxPolicies2)->get_MustEncryptSmimeMessages(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxPolicies2::MustSignSmimeMessages() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxPolicies2)->get_MustSignSmimeMessages(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxPolicies3::AllowedSmimeEncryptionAlgorithmNegotiation(winrt::Windows::ApplicationModel::Email::EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxPolicies3)->put_AllowedSmimeEncryptionAlgorithmNegotiation(static_cast(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxPolicies3::AllowSmimeSoftCertificates(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxPolicies3)->put_AllowSmimeSoftCertificates(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxPolicies3::RequiredSmimeEncryptionAlgorithm(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxPolicies3)->put_RequiredSmimeEncryptionAlgorithm(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxPolicies3::RequiredSmimeSigningAlgorithm(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxPolicies3)->put_RequiredSmimeSigningAlgorithm(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxPolicies3::MustEncryptSmimeMessages(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxPolicies3)->put_MustEncryptSmimeMessages(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxPolicies3::MustSignSmimeMessages(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxPolicies3)->put_MustSignSmimeMessages(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxSyncManager::Status() const { winrt::Windows::ApplicationModel::Email::EmailMailboxSyncStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxSyncManager)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxSyncManager::LastSuccessfulSyncTime() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxSyncManager)->get_LastSuccessfulSyncTime(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxSyncManager::LastAttemptedSyncTime() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxSyncManager)->get_LastAttemptedSyncTime(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxSyncManager::SyncAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxSyncManager)->SyncAsync(&result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxSyncManager::SyncStatusChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxSyncManager)->add_SyncStatusChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxSyncManager::SyncStatusChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, SyncStatusChanged(handler)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxSyncManager::SyncStatusChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxSyncManager)->remove_SyncStatusChanged(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxSyncManager2::Status(winrt::Windows::ApplicationModel::Email::EmailMailboxSyncStatus const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxSyncManager2)->put_Status(static_cast(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxSyncManager2::LastSuccessfulSyncTime(winrt::Windows::Foundation::DateTime const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxSyncManager2)->put_LastSuccessfulSyncTime(impl::bind_in(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMailboxSyncManager2::LastAttemptedSyncTime(winrt::Windows::Foundation::DateTime const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMailboxSyncManager2)->put_LastAttemptedSyncTime(impl::bind_in(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailManagerForUser::ShowComposeNewEmailAsync(winrt::Windows::ApplicationModel::Email::EmailMessage const& message) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailManagerForUser)->ShowComposeNewEmailAsync(*(void**)(&message), &result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailManagerForUser::RequestStoreAsync(winrt::Windows::ApplicationModel::Email::EmailStoreAccessType const& accessType) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailManagerForUser)->RequestStoreAsync(static_cast(accessType), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailManagerForUser::User() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailManagerForUser)->get_User(&value)); return winrt::Windows::System::User{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailManagerStatics::ShowComposeNewEmailAsync(winrt::Windows::ApplicationModel::Email::EmailMessage const& message) const { void* asyncAction{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailManagerStatics)->ShowComposeNewEmailAsync(*(void**)(&message), &asyncAction)); return winrt::Windows::Foundation::IAsyncAction{ asyncAction, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailManagerStatics2::RequestStoreAsync(winrt::Windows::ApplicationModel::Email::EmailStoreAccessType const& accessType) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailManagerStatics2)->RequestStoreAsync(static_cast(accessType), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailManagerStatics3::GetForUser(winrt::Windows::System::User const& user) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailManagerStatics3)->GetForUser(*(void**)(&user), &result)); return winrt::Windows::ApplicationModel::Email::EmailManagerForUser{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::AllowNewTimeProposal() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->get_AllowNewTimeProposal(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::AllowNewTimeProposal(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->put_AllowNewTimeProposal(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::AppointmentRoamingId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->get_AppointmentRoamingId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::AppointmentRoamingId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->put_AppointmentRoamingId(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::AppointmentOriginalStartTime() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->get_AppointmentOriginalStartTime(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::AppointmentOriginalStartTime(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->put_AppointmentOriginalStartTime(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::Duration() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->get_Duration(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::Duration(winrt::Windows::Foundation::TimeSpan const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->put_Duration(impl::bind_in(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::IsAllDay() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->get_IsAllDay(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::IsAllDay(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->put_IsAllDay(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::IsResponseRequested() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->get_IsResponseRequested(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::IsResponseRequested(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->put_IsResponseRequested(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::Location() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->get_Location(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::Location(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->put_Location(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::ProposedStartTime() const { void* proposedStartTime{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->get_ProposedStartTime(&proposedStartTime)); return winrt::Windows::Foundation::IReference{ proposedStartTime, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::ProposedStartTime(winrt::Windows::Foundation::IReference const& proposedStartTime) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->put_ProposedStartTime(*(void**)(&proposedStartTime))); } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::ProposedDuration() const { void* duration{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->get_ProposedDuration(&duration)); return winrt::Windows::Foundation::IReference{ duration, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::ProposedDuration(winrt::Windows::Foundation::IReference const& duration) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->put_ProposedDuration(*(void**)(&duration))); } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::RecurrenceStartTime() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->get_RecurrenceStartTime(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::RecurrenceStartTime(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->put_RecurrenceStartTime(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::Recurrence() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->get_Recurrence(&value)); return winrt::Windows::ApplicationModel::Appointments::AppointmentRecurrence{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::Recurrence(winrt::Windows::ApplicationModel::Appointments::AppointmentRecurrence const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->put_Recurrence(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::RemoteChangeNumber() const { uint64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->get_RemoteChangeNumber(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::RemoteChangeNumber(uint64_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->put_RemoteChangeNumber(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::StartTime() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->get_StartTime(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo::StartTime(winrt::Windows::Foundation::DateTime const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo)->put_StartTime(impl::bind_in(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMeetingInfo2::IsReportedOutOfDateByServer() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMeetingInfo2)->get_IsReportedOutOfDateByServer(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage::Subject() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage)->get_Subject(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage::Subject(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage)->put_Subject(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMessage::Body() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage)->get_Body(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage::Body(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage)->put_Body(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMessage::To() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage)->get_To(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage::CC() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage)->get_CC(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage::Bcc() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage)->get_Bcc(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage::Attachments() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage)->get_Attachments(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::Id() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_Id(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::RemoteId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_RemoteId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::RemoteId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->put_RemoteId(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::MailboxId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_MailboxId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::ConversationId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_ConversationId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::FolderId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_FolderId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::AllowInternetImages() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_AllowInternetImages(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::AllowInternetImages(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->put_AllowInternetImages(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::ChangeNumber() const { uint64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_ChangeNumber(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::DownloadState() const { winrt::Windows::ApplicationModel::Email::EmailMessageDownloadState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_DownloadState(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::DownloadState(winrt::Windows::ApplicationModel::Email::EmailMessageDownloadState const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->put_DownloadState(static_cast(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::EstimatedDownloadSizeInBytes() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_EstimatedDownloadSizeInBytes(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::EstimatedDownloadSizeInBytes(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->put_EstimatedDownloadSizeInBytes(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::FlagState() const { winrt::Windows::ApplicationModel::Email::EmailFlagState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_FlagState(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::FlagState(winrt::Windows::ApplicationModel::Email::EmailFlagState const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->put_FlagState(static_cast(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::HasPartialBodies() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_HasPartialBodies(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::Importance() const { winrt::Windows::ApplicationModel::Email::EmailImportance value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_Importance(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::Importance(winrt::Windows::ApplicationModel::Email::EmailImportance const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->put_Importance(static_cast(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::InResponseToMessageId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_InResponseToMessageId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::IrmInfo() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_IrmInfo(&value)); return winrt::Windows::ApplicationModel::Email::EmailIrmInfo{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::IrmInfo(winrt::Windows::ApplicationModel::Email::EmailIrmInfo const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->put_IrmInfo(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::IsDraftMessage() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_IsDraftMessage(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::IsRead() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_IsRead(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::IsRead(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->put_IsRead(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::IsSeen() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_IsSeen(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::IsSeen(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->put_IsSeen(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::IsServerSearchMessage() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_IsServerSearchMessage(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::IsSmartSendable() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_IsSmartSendable(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::MessageClass() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_MessageClass(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::MessageClass(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->put_MessageClass(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::NormalizedSubject() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_NormalizedSubject(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::OriginalCodePage() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_OriginalCodePage(&value)); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::OriginalCodePage(int32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->put_OriginalCodePage(value)); } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::Preview() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_Preview(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::Preview(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->put_Preview(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::LastResponseKind() const { winrt::Windows::ApplicationModel::Email::EmailMessageResponseKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_LastResponseKind(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::LastResponseKind(winrt::Windows::ApplicationModel::Email::EmailMessageResponseKind const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->put_LastResponseKind(static_cast(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::Sender() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_Sender(&value)); return winrt::Windows::ApplicationModel::Email::EmailRecipient{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::Sender(winrt::Windows::ApplicationModel::Email::EmailRecipient const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->put_Sender(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::SentTime() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_SentTime(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::SentTime(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->put_SentTime(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::MeetingInfo() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->get_MeetingInfo(&value)); return winrt::Windows::ApplicationModel::Email::EmailMeetingInfo{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::MeetingInfo(winrt::Windows::ApplicationModel::Email::EmailMeetingInfo const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->put_MeetingInfo(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::GetBodyStream(winrt::Windows::ApplicationModel::Email::EmailMessageBodyKind const& type) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->GetBodyStream(static_cast(type), &result)); return winrt::Windows::Storage::Streams::IRandomAccessStreamReference{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage2::SetBodyStream(winrt::Windows::ApplicationModel::Email::EmailMessageBodyKind const& type, winrt::Windows::Storage::Streams::IRandomAccessStreamReference const& stream) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage2)->SetBodyStream(static_cast(type), *(void**)(&stream))); } template auto consume_Windows_ApplicationModel_Email_IEmailMessage3::SmimeData() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage3)->get_SmimeData(&value)); return winrt::Windows::Storage::Streams::IRandomAccessStreamReference{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage3::SmimeData(winrt::Windows::Storage::Streams::IRandomAccessStreamReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage3)->put_SmimeData(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMessage3::SmimeKind() const { winrt::Windows::ApplicationModel::Email::EmailMessageSmimeKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage3)->get_SmimeKind(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage3::SmimeKind(winrt::Windows::ApplicationModel::Email::EmailMessageSmimeKind const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage3)->put_SmimeKind(static_cast(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMessage4::ReplyTo() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage4)->get_ReplyTo(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage4::SentRepresenting() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage4)->get_SentRepresenting(&value)); return winrt::Windows::ApplicationModel::Email::EmailRecipient{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessage4::SentRepresenting(winrt::Windows::ApplicationModel::Email::EmailRecipient const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessage4)->put_SentRepresenting(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailMessageBatch::Messages() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessageBatch)->get_Messages(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailMessageBatch::Status() const { winrt::Windows::ApplicationModel::Email::EmailBatchStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessageBatch)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailMessageReader::ReadBatchAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailMessageReader)->ReadBatchAsync(&result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailQueryOptions::TextSearch() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailQueryOptions)->get_TextSearch(&value)); return winrt::Windows::ApplicationModel::Email::EmailQueryTextSearch{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailQueryOptions::SortDirection() const { winrt::Windows::ApplicationModel::Email::EmailQuerySortDirection value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailQueryOptions)->get_SortDirection(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailQueryOptions::SortDirection(winrt::Windows::ApplicationModel::Email::EmailQuerySortDirection const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailQueryOptions)->put_SortDirection(static_cast(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailQueryOptions::SortProperty() const { winrt::Windows::ApplicationModel::Email::EmailQuerySortProperty value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailQueryOptions)->get_SortProperty(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailQueryOptions::SortProperty(winrt::Windows::ApplicationModel::Email::EmailQuerySortProperty const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailQueryOptions)->put_SortProperty(static_cast(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailQueryOptions::Kind() const { winrt::Windows::ApplicationModel::Email::EmailQueryKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailQueryOptions)->get_Kind(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailQueryOptions::Kind(winrt::Windows::ApplicationModel::Email::EmailQueryKind const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailQueryOptions)->put_Kind(static_cast(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailQueryOptions::FolderIds() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailQueryOptions)->get_FolderIds(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailQueryOptionsFactory::CreateWithText(param::hstring const& text) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailQueryOptionsFactory)->CreateWithText(*(void**)(&text), &result)); return winrt::Windows::ApplicationModel::Email::EmailQueryOptions{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailQueryOptionsFactory::CreateWithTextAndFields(param::hstring const& text, winrt::Windows::ApplicationModel::Email::EmailQuerySearchFields const& fields) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailQueryOptionsFactory)->CreateWithTextAndFields(*(void**)(&text), static_cast(fields), &result)); return winrt::Windows::ApplicationModel::Email::EmailQueryOptions{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailQueryTextSearch::Fields() const { winrt::Windows::ApplicationModel::Email::EmailQuerySearchFields value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailQueryTextSearch)->get_Fields(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailQueryTextSearch::Fields(winrt::Windows::ApplicationModel::Email::EmailQuerySearchFields const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailQueryTextSearch)->put_Fields(static_cast(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailQueryTextSearch::SearchScope() const { winrt::Windows::ApplicationModel::Email::EmailQuerySearchScope value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailQueryTextSearch)->get_SearchScope(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailQueryTextSearch::SearchScope(winrt::Windows::ApplicationModel::Email::EmailQuerySearchScope const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailQueryTextSearch)->put_SearchScope(static_cast(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailQueryTextSearch::Text() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailQueryTextSearch)->get_Text(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailQueryTextSearch::Text(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailQueryTextSearch)->put_Text(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailRecipient::Name() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailRecipient)->get_Name(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailRecipient::Name(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailRecipient)->put_Name(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailRecipient::Address() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailRecipient)->get_Address(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailRecipient::Address(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailRecipient)->put_Address(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailRecipientFactory::Create(param::hstring const& address) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailRecipientFactory)->Create(*(void**)(&address), &result)); return winrt::Windows::ApplicationModel::Email::EmailRecipient{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailRecipientFactory::CreateWithName(param::hstring const& address, param::hstring const& name) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailRecipientFactory)->CreateWithName(*(void**)(&address), *(void**)(&name), &result)); return winrt::Windows::ApplicationModel::Email::EmailRecipient{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailRecipientResolutionResult::Status() const { winrt::Windows::ApplicationModel::Email::EmailRecipientResolutionStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailRecipientResolutionResult)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Email_IEmailRecipientResolutionResult::PublicKeys() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailRecipientResolutionResult)->get_PublicKeys(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailRecipientResolutionResult2::Status(winrt::Windows::ApplicationModel::Email::EmailRecipientResolutionStatus const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailRecipientResolutionResult2)->put_Status(static_cast(value))); } template auto consume_Windows_ApplicationModel_Email_IEmailRecipientResolutionResult2::SetPublicKeys(param::iterable const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailRecipientResolutionResult2)->SetPublicKeys(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Email_IEmailStore::FindMailboxesAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailStore)->FindMailboxesAsync(&result)); return winrt::Windows::Foundation::IAsyncOperation>{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailStore::GetConversationReader() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailStore)->GetConversationReader(&result)); return winrt::Windows::ApplicationModel::Email::EmailConversationReader{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailStore::GetConversationReader(winrt::Windows::ApplicationModel::Email::EmailQueryOptions const& options) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailStore)->GetConversationReaderWithOptions(*(void**)(&options), &result)); return winrt::Windows::ApplicationModel::Email::EmailConversationReader{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailStore::GetMessageReader() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailStore)->GetMessageReader(&result)); return winrt::Windows::ApplicationModel::Email::EmailMessageReader{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailStore::GetMessageReader(winrt::Windows::ApplicationModel::Email::EmailQueryOptions const& options) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailStore)->GetMessageReaderWithOptions(*(void**)(&options), &result)); return winrt::Windows::ApplicationModel::Email::EmailMessageReader{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailStore::GetMailboxAsync(param::hstring const& id) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailStore)->GetMailboxAsync(*(void**)(&id), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailStore::GetConversationAsync(param::hstring const& id) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailStore)->GetConversationAsync(*(void**)(&id), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailStore::GetFolderAsync(param::hstring const& id) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailStore)->GetFolderAsync(*(void**)(&id), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailStore::GetMessageAsync(param::hstring const& id) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailStore)->GetMessageAsync(*(void**)(&id), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailStore::CreateMailboxAsync(param::hstring const& accountName, param::hstring const& accountAddress) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailStore)->CreateMailboxAsync(*(void**)(&accountName), *(void**)(&accountAddress), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Email_IEmailStore::CreateMailboxAsync(param::hstring const& accountName, param::hstring const& accountAddress, param::hstring const& userDataAccountId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Email::IEmailStore)->CreateMailboxInAccountAsync(*(void**)(&accountName), *(void**)(&accountAddress), *(void**)(&userDataAccountId), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FileName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FileName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FileName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FileName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Data(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Data()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Data(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Data(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContentId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContentId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ContentId(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ContentId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContentLocation(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContentLocation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ContentLocation(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ContentLocation(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DownloadState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DownloadState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DownloadState(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DownloadState(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_EstimatedDownloadSizeInBytes(uint64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EstimatedDownloadSizeInBytes()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_EstimatedDownloadSizeInBytes(uint64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().EstimatedDownloadSizeInBytes(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsFromBaseMessage(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsFromBaseMessage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsInline(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsInline()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsInline(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsInline(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MimeType(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MimeType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MimeType(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MimeType(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* fileName, void* data, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(*reinterpret_cast(&fileName), *reinterpret_cast(&data))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* fileName, void* data, void* mimeType, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(*reinterpret_cast(&fileName), *reinterpret_cast(&data), *reinterpret_cast(&mimeType))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MailboxId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MailboxId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FlagState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FlagState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HasAttachment(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasAttachment()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Importance(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Importance()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LastEmailResponseKind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LastEmailResponseKind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MessageCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MessageCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MostRecentMessageId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MostRecentMessageId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MostRecentMessageTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MostRecentMessageTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Preview(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Preview()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LatestSender(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LatestSender()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Subject(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Subject()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UnreadMessageCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UnreadMessageCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindMessagesAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>>(this->shim().FindMessagesAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindMessagesWithCountAsync(uint32_t count, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>>(this->shim().FindMessagesAsync(count)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Conversations(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Conversations()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Status(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Status()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ReadBatchAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().ReadBatchAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RemoteId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RemoteId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RemoteId(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RemoteId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MailboxId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MailboxId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ParentFolderId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ParentFolderId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DisplayName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DisplayName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsSyncEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSyncEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsSyncEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsSyncEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LastSuccessfulSyncTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LastSuccessfulSyncTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_LastSuccessfulSyncTime(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LastSuccessfulSyncTime(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Kind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Kind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateFolderAsync(void* name, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().CreateFolderAsync(*reinterpret_cast(&name))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DeleteAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().DeleteAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindChildFoldersAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>>(this->shim().FindChildFoldersAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetConversationReader(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetConversationReader()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetConversationReaderWithOptions(void* options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetConversationReader(*reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetMessageAsync(void* id, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetMessageAsync(*reinterpret_cast(&id))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetMessageReader(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetMessageReader()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetMessageReaderWithOptions(void* options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetMessageReader(*reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetMessageCountsAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetMessageCountsAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryMoveAsync(void* newParentFolder, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().TryMoveAsync(*reinterpret_cast(&newParentFolder))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryMoveWithNewNameAsync(void* newParentFolder, void* newFolderName, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().TryMoveAsync(*reinterpret_cast(&newParentFolder), *reinterpret_cast(&newFolderName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TrySaveAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().TrySaveAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SaveMessageAsync(void* message, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SaveMessageAsync(*reinterpret_cast(&message))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CanEdit(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanEdit()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanEdit(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanEdit(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanExtractData(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanExtractData()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanExtractData(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanExtractData(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanForward(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanForward()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanForward(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanForward(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanModifyRecipientsOnResponse(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanModifyRecipientsOnResponse()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanModifyRecipientsOnResponse(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanModifyRecipientsOnResponse(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanPrintData(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanPrintData()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanPrintData(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanPrintData(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanRemoveIrmOnResponse(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanRemoveIrmOnResponse()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanRemoveIrmOnResponse(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanRemoveIrmOnResponse(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanReply(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanReply()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanReply(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanReply(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanReplyAll(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanReplyAll()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanReplyAll(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanReplyAll(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExpirationDate(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExpirationDate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ExpirationDate(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ExpirationDate(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsIrmOriginator(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsIrmOriginator()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsIrmOriginator(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsIrmOriginator(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsProgramaticAccessAllowed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsProgramaticAccessAllowed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsProgramaticAccessAllowed(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsProgramaticAccessAllowed(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Template(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Template()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Template(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Template(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(int64_t expiration, void* irmTemplate, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(*reinterpret_cast(&expiration), *reinterpret_cast(&irmTemplate))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Id(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Id(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Description(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Description()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Description(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Description(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Name(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Name()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Name(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Name(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* id, void* name, void* description, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(*reinterpret_cast(&id), *reinterpret_cast(&name), *reinterpret_cast(&description))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Flagged(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Flagged()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Important(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Important()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Total(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Total()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Unread(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Unread()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Capabilities(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Capabilities()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ChangeTracker(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ChangeTracker()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DisplayName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DisplayName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Id(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsOwnedByCurrentApp(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsOwnedByCurrentApp()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsDataEncryptedUnderLock(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsDataEncryptedUnderLock()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MailAddress(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MailAddress()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MailAddress(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MailAddress(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MailAddressAliases(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().MailAddressAliases()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OtherAppReadAccess(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OtherAppReadAccess()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_OtherAppReadAccess(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OtherAppReadAccess(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OtherAppWriteAccess(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OtherAppWriteAccess()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_OtherAppWriteAccess(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OtherAppWriteAccess(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Policies(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Policies()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SourceDisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SourceDisplayName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SyncManager(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SyncManager()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UserDataAccountId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UserDataAccountId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetConversationReader(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetConversationReader()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetConversationReaderWithOptions(void* options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetConversationReader(*reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetMessageReader(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetMessageReader()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetMessageReaderWithOptions(void* options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetMessageReader(*reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DeleteAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().DeleteAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetConversationAsync(void* id, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetConversationAsync(*reinterpret_cast(&id))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetFolderAsync(void* id, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetFolderAsync(*reinterpret_cast(&id))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetMessageAsync(void* id, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetMessageAsync(*reinterpret_cast(&id))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetSpecialFolderAsync(int32_t folderType, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetSpecialFolderAsync(*reinterpret_cast(&folderType))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SaveAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SaveAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MarkMessageAsSeenAsync(void* messageId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().MarkMessageAsSeenAsync(*reinterpret_cast(&messageId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MarkFolderAsSeenAsync(void* folderId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().MarkFolderAsSeenAsync(*reinterpret_cast(&folderId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MarkMessageReadAsync(void* messageId, bool isRead, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().MarkMessageReadAsync(*reinterpret_cast(&messageId), isRead)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ChangeMessageFlagStateAsync(void* messageId, int32_t flagState, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ChangeMessageFlagStateAsync(*reinterpret_cast(&messageId), *reinterpret_cast(&flagState))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryMoveMessageAsync(void* messageId, void* newParentFolderId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().TryMoveMessageAsync(*reinterpret_cast(&messageId), *reinterpret_cast(&newParentFolderId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryMoveFolderAsync(void* folderId, void* newParentFolderId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().TryMoveFolderAsync(*reinterpret_cast(&folderId), *reinterpret_cast(&newParentFolderId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryMoveFolderWithNewNameAsync(void* folderId, void* newParentFolderId, void* newFolderName, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().TryMoveFolderAsync(*reinterpret_cast(&folderId), *reinterpret_cast(&newParentFolderId), *reinterpret_cast(&newFolderName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DeleteMessageAsync(void* messageId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().DeleteMessageAsync(*reinterpret_cast(&messageId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MarkFolderSyncEnabledAsync(void* folderId, bool isSyncEnabled, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().MarkFolderSyncEnabledAsync(*reinterpret_cast(&folderId), isSyncEnabled)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SendMessageAsync(void* message, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SendMessageAsync(*reinterpret_cast(&message))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SaveDraftAsync(void* message, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SaveDraftAsync(*reinterpret_cast(&message))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DownloadMessageAsync(void* messageId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().DownloadMessageAsync(*reinterpret_cast(&messageId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DownloadAttachmentAsync(void* attachmentId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().DownloadAttachmentAsync(*reinterpret_cast(&attachmentId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateResponseMessageAsync(void* messageId, int32_t responseType, void* subject, int32_t responseHeaderType, void* responseHeader, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().CreateResponseMessageAsync(*reinterpret_cast(&messageId), *reinterpret_cast(&responseType), *reinterpret_cast(&subject), *reinterpret_cast(&responseHeaderType), *reinterpret_cast(&responseHeader))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryUpdateMeetingResponseAsync(void* meeting, int32_t response, void* subject, void* comment, bool sendUpdate, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().TryUpdateMeetingResponseAsync(*reinterpret_cast(&meeting), *reinterpret_cast(&response), *reinterpret_cast(&subject), *reinterpret_cast(&comment), sendUpdate)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryForwardMeetingAsync(void* meeting, void* recipients, void* subject, int32_t forwardHeaderType, void* forwardHeader, void* comment, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().TryForwardMeetingAsync(*reinterpret_cast(&meeting), *reinterpret_cast const*>(&recipients), *reinterpret_cast(&subject), *reinterpret_cast(&forwardHeaderType), *reinterpret_cast(&forwardHeader), *reinterpret_cast(&comment))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryProposeNewTimeForMeetingAsync(void* meeting, int64_t newStartTime, int64_t newDuration, void* subject, void* comment, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().TryProposeNewTimeForMeetingAsync(*reinterpret_cast(&meeting), *reinterpret_cast(&newStartTime), *reinterpret_cast(&newDuration), *reinterpret_cast(&subject), *reinterpret_cast(&comment))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_MailboxChanged(void* pHandler, winrt::event_token* pToken) noexcept final try { zero_abi(pToken); typename D::abi_guard guard(this->shim()); *pToken = detach_from(this->shim().MailboxChanged(*reinterpret_cast const*>(&pHandler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_MailboxChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().MailboxChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall SmartSendMessageAsync(void* message, bool smartSend, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SendMessageAsync(*reinterpret_cast(&message), smartSend)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TrySetAutoReplySettingsAsync(void* autoReplySettings, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().TrySetAutoReplySettingsAsync(*reinterpret_cast(&autoReplySettings))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryGetAutoReplySettingsAsync(int32_t requestedFormat, void** autoReplySettings) noexcept final try { clear_abi(autoReplySettings); typename D::abi_guard guard(this->shim()); *autoReplySettings = detach_from>(this->shim().TryGetAutoReplySettingsAsync(*reinterpret_cast(&requestedFormat))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_LinkedMailboxId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LinkedMailboxId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NetworkAccountId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NetworkAccountId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NetworkId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NetworkId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ResolveRecipientsAsync(void* recipients, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>>(this->shim().ResolveRecipientsAsync(*reinterpret_cast const*>(&recipients))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ValidateCertificatesAsync(void* certificates, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>>(this->shim().ValidateCertificatesAsync(*reinterpret_cast const*>(&certificates))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryEmptyFolderAsync(void* folderId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().TryEmptyFolderAsync(*reinterpret_cast(&folderId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryCreateFolderAsync(void* parentFolderId, void* name, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().TryCreateFolderAsync(*reinterpret_cast(&parentFolderId), *reinterpret_cast(&name))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryDeleteFolderAsync(void* folderId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().TryDeleteFolderAsync(*reinterpret_cast(&folderId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall RegisterSyncManagerAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RegisterSyncManagerAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetChangeTracker(void* identity, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetChangeTracker(*reinterpret_cast(&identity))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Kind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Kind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ChangeNumber(uint64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ChangeNumber()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Response(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Response()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Response(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Response(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ResponseKind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ResponseKind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ResponseKind(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ResponseKind(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StartTime(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().StartTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_StartTime(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartTime(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_EndTime(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().EndTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_EndTime(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().EndTime(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InternalReply(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InternalReply()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KnownExternalReply(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KnownExternalReply()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UnknownExternalReply(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UnknownExternalReply()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CanForwardMeetings(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanForwardMeetings()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanGetAndSetExternalAutoReplies(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanGetAndSetExternalAutoReplies()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanGetAndSetInternalAutoReplies(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanGetAndSetInternalAutoReplies()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanUpdateMeetingResponses(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanUpdateMeetingResponses()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanServerSearchFolders(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanServerSearchFolders()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanServerSearchMailbox(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanServerSearchMailbox()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanProposeNewTimeForMeetings(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanProposeNewTimeForMeetings()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanSmartSend(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanSmartSend()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CanResolveRecipients(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanResolveRecipients()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanValidateCertificates(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanValidateCertificates()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanEmptyFolder(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanEmptyFolder()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanCreateFolder(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanCreateFolder()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanDeleteFolder(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanDeleteFolder()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanMoveFolder(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanMoveFolder()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_CanForwardMeetings(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanForwardMeetings(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanGetAndSetExternalAutoReplies(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanGetAndSetExternalAutoReplies(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanGetAndSetInternalAutoReplies(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanGetAndSetInternalAutoReplies(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanUpdateMeetingResponses(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanUpdateMeetingResponses(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanServerSearchFolders(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanServerSearchFolders(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanServerSearchMailbox(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanServerSearchMailbox(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanProposeNewTimeForMeetings(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanProposeNewTimeForMeetings(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanSmartSend(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanSmartSend(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanResolveRecipients(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanResolveRecipients(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanValidateCertificates(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanValidateCertificates(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanEmptyFolder(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanEmptyFolder(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanCreateFolder(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanCreateFolder(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanDeleteFolder(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanDeleteFolder(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanMoveFolder(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanMoveFolder(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ChangeType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ChangeType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MailboxActions(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().MailboxActions()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Message(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Message()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Folder(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Folder()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall AcceptChanges() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AcceptChanges(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AcceptChangesThrough(void* lastChangeToAcknowledge) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AcceptChangesThrough(*reinterpret_cast(&lastChangeToAcknowledge)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ReadBatchAsync(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>>(this->shim().ReadBatchAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsTracking(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsTracking()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Enable() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Enable(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetChangeReader(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetChangeReader()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Reset() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Reset(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Complete() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Complete(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetDeferral(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetDeferral()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Status(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Status()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Folder(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Folder()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AllowedSmimeEncryptionAlgorithmNegotiation(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllowedSmimeEncryptionAlgorithmNegotiation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AllowSmimeSoftCertificates(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllowSmimeSoftCertificates()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RequiredSmimeEncryptionAlgorithm(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().RequiredSmimeEncryptionAlgorithm()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RequiredSmimeSigningAlgorithm(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().RequiredSmimeSigningAlgorithm()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_MustEncryptSmimeMessages(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MustEncryptSmimeMessages()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MustSignSmimeMessages(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MustSignSmimeMessages()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_AllowedSmimeEncryptionAlgorithmNegotiation(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AllowedSmimeEncryptionAlgorithmNegotiation(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AllowSmimeSoftCertificates(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AllowSmimeSoftCertificates(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RequiredSmimeEncryptionAlgorithm(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RequiredSmimeEncryptionAlgorithm(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RequiredSmimeSigningAlgorithm(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RequiredSmimeSigningAlgorithm(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MustEncryptSmimeMessages(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MustEncryptSmimeMessages(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MustSignSmimeMessages(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MustSignSmimeMessages(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Status(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Status()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LastSuccessfulSyncTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LastSuccessfulSyncTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LastAttemptedSyncTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LastAttemptedSyncTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SyncAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().SyncAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_SyncStatusChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().SyncStatusChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SyncStatusChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SyncStatusChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_Status(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Status(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_LastSuccessfulSyncTime(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LastSuccessfulSyncTime(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_LastAttemptedSyncTime(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LastAttemptedSyncTime(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ShowComposeNewEmailAsync(void* message, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ShowComposeNewEmailAsync(*reinterpret_cast(&message))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestStoreAsync(int32_t accessType, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().RequestStoreAsync(*reinterpret_cast(&accessType))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_User(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().User()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ShowComposeNewEmailAsync(void* message, void** asyncAction) noexcept final try { clear_abi(asyncAction); typename D::abi_guard guard(this->shim()); *asyncAction = detach_from(this->shim().ShowComposeNewEmailAsync(*reinterpret_cast(&message))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall RequestStoreAsync(int32_t accessType, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().RequestStoreAsync(*reinterpret_cast(&accessType))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForUser(void* user, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetForUser(*reinterpret_cast(&user))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AllowNewTimeProposal(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllowNewTimeProposal()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AllowNewTimeProposal(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AllowNewTimeProposal(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AppointmentRoamingId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppointmentRoamingId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AppointmentRoamingId(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AppointmentRoamingId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AppointmentOriginalStartTime(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().AppointmentOriginalStartTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AppointmentOriginalStartTime(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AppointmentOriginalStartTime(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Duration(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Duration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Duration(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Duration(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsAllDay(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsAllDay()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsAllDay(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsAllDay(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsResponseRequested(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsResponseRequested()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsResponseRequested(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsResponseRequested(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Location(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Location()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Location(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Location(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProposedStartTime(void** proposedStartTime) noexcept final try { clear_abi(proposedStartTime); typename D::abi_guard guard(this->shim()); *proposedStartTime = detach_from>(this->shim().ProposedStartTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ProposedStartTime(void* proposedStartTime) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ProposedStartTime(*reinterpret_cast const*>(&proposedStartTime)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProposedDuration(void** duration) noexcept final try { clear_abi(duration); typename D::abi_guard guard(this->shim()); *duration = detach_from>(this->shim().ProposedDuration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ProposedDuration(void* duration) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ProposedDuration(*reinterpret_cast const*>(&duration)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RecurrenceStartTime(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().RecurrenceStartTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RecurrenceStartTime(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RecurrenceStartTime(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Recurrence(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Recurrence()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Recurrence(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Recurrence(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RemoteChangeNumber(uint64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RemoteChangeNumber()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RemoteChangeNumber(uint64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RemoteChangeNumber(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StartTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StartTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_StartTime(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartTime(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsReportedOutOfDateByServer(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsReportedOutOfDateByServer()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Subject(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Subject()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Subject(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Subject(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Body(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Body()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Body(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Body(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_To(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().To()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CC(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().CC()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Bcc(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Bcc()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Attachments(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Attachments()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RemoteId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RemoteId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RemoteId(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RemoteId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MailboxId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MailboxId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ConversationId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ConversationId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FolderId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FolderId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AllowInternetImages(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllowInternetImages()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AllowInternetImages(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AllowInternetImages(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ChangeNumber(uint64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ChangeNumber()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DownloadState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DownloadState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DownloadState(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DownloadState(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_EstimatedDownloadSizeInBytes(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EstimatedDownloadSizeInBytes()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_EstimatedDownloadSizeInBytes(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().EstimatedDownloadSizeInBytes(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FlagState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FlagState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FlagState(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FlagState(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HasPartialBodies(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasPartialBodies()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Importance(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Importance()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Importance(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Importance(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InResponseToMessageId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InResponseToMessageId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IrmInfo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IrmInfo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IrmInfo(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IrmInfo(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsDraftMessage(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsDraftMessage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsRead(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsRead()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsRead(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsRead(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsSeen(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSeen()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsSeen(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsSeen(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsServerSearchMessage(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsServerSearchMessage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsSmartSendable(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSmartSendable()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MessageClass(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MessageClass()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MessageClass(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MessageClass(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NormalizedSubject(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NormalizedSubject()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OriginalCodePage(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OriginalCodePage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_OriginalCodePage(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OriginalCodePage(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Preview(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Preview()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Preview(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Preview(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LastResponseKind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LastResponseKind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_LastResponseKind(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LastResponseKind(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Sender(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Sender()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Sender(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Sender(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SentTime(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SentTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SentTime(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SentTime(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MeetingInfo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MeetingInfo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MeetingInfo(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MeetingInfo(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetBodyStream(int32_t type, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetBodyStream(*reinterpret_cast(&type))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetBodyStream(int32_t type, void* stream) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetBodyStream(*reinterpret_cast(&type), *reinterpret_cast(&stream)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SmimeData(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SmimeData()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SmimeData(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SmimeData(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SmimeKind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SmimeKind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SmimeKind(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SmimeKind(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ReplyTo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ReplyTo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SentRepresenting(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SentRepresenting()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SentRepresenting(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SentRepresenting(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Messages(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Messages()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Status(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Status()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ReadBatchAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().ReadBatchAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_TextSearch(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TextSearch()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SortDirection(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SortDirection()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SortDirection(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SortDirection(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SortProperty(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SortProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SortProperty(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SortProperty(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Kind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Kind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Kind(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Kind(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FolderIds(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().FolderIds()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateWithText(void* text, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateWithText(*reinterpret_cast(&text))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWithTextAndFields(void* text, uint32_t fields, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateWithTextAndFields(*reinterpret_cast(&text), *reinterpret_cast(&fields))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Fields(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Fields()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Fields(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Fields(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SearchScope(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SearchScope()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SearchScope(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SearchScope(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Text(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Text()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Text(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Text(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Name(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Name()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Name(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Name(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Address(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Address()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Address(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Address(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* address, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(*reinterpret_cast(&address))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWithName(void* address, void* name, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateWithName(*reinterpret_cast(&address), *reinterpret_cast(&name))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Status(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Status()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PublicKeys(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().PublicKeys()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_Status(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Status(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetPublicKeys(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetPublicKeys(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall FindMailboxesAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>>(this->shim().FindMailboxesAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetConversationReader(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetConversationReader()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetConversationReaderWithOptions(void* options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetConversationReader(*reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetMessageReader(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetMessageReader()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetMessageReaderWithOptions(void* options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetMessageReader(*reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetMailboxAsync(void* id, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetMailboxAsync(*reinterpret_cast(&id))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetConversationAsync(void* id, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetConversationAsync(*reinterpret_cast(&id))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetFolderAsync(void* id, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetFolderAsync(*reinterpret_cast(&id))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetMessageAsync(void* id, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetMessageAsync(*reinterpret_cast(&id))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateMailboxAsync(void* accountName, void* accountAddress, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().CreateMailboxAsync(*reinterpret_cast(&accountName), *reinterpret_cast(&accountAddress))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateMailboxInAccountAsync(void* accountName, void* accountAddress, void* userDataAccountId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().CreateMailboxAsync(*reinterpret_cast(&accountName), *reinterpret_cast(&accountAddress), *reinterpret_cast(&userDataAccountId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif } WINRT_EXPORT namespace winrt::Windows::ApplicationModel::Email { constexpr auto operator|(EmailQuerySearchFields const left, EmailQuerySearchFields const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(EmailQuerySearchFields& left, EmailQuerySearchFields const right) noexcept { left = left | right; return left; } constexpr auto operator&(EmailQuerySearchFields const left, EmailQuerySearchFields const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(EmailQuerySearchFields& left, EmailQuerySearchFields const right) noexcept { left = left & right; return left; } constexpr auto operator~(EmailQuerySearchFields const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(EmailQuerySearchFields const left, EmailQuerySearchFields const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(EmailQuerySearchFields& left, EmailQuerySearchFields const right) noexcept { left = left ^ right; return left; } inline EmailAttachment::EmailAttachment() : EmailAttachment(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline EmailAttachment::EmailAttachment(param::hstring const& fileName, winrt::Windows::Storage::Streams::IRandomAccessStreamReference const& data) : EmailAttachment(impl::call_factory([&](IEmailAttachmentFactory const& f) { return f.Create(fileName, data); })) { } inline EmailAttachment::EmailAttachment(param::hstring const& fileName, winrt::Windows::Storage::Streams::IRandomAccessStreamReference const& data, param::hstring const& mimeType) : EmailAttachment(impl::call_factory([&](IEmailAttachmentFactory2 const& f) { return f.Create(fileName, data, mimeType); })) { } inline EmailIrmInfo::EmailIrmInfo() : EmailIrmInfo(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline EmailIrmInfo::EmailIrmInfo(winrt::Windows::Foundation::DateTime const& expiration, winrt::Windows::ApplicationModel::Email::EmailIrmTemplate const& irmTemplate) : EmailIrmInfo(impl::call_factory([&](IEmailIrmInfoFactory const& f) { return f.Create(expiration, irmTemplate); })) { } inline EmailIrmTemplate::EmailIrmTemplate() : EmailIrmTemplate(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline EmailIrmTemplate::EmailIrmTemplate(param::hstring const& id, param::hstring const& name, param::hstring const& description) : EmailIrmTemplate(impl::call_factory([&](IEmailIrmTemplateFactory const& f) { return f.Create(id, name, description); })) { } inline EmailMailboxAutoReplySettings::EmailMailboxAutoReplySettings() : EmailMailboxAutoReplySettings(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto EmailManager::ShowComposeNewEmailAsync(winrt::Windows::ApplicationModel::Email::EmailMessage const& message) { return impl::call_factory([&](IEmailManagerStatics const& f) { return f.ShowComposeNewEmailAsync(message); }); } inline auto EmailManager::RequestStoreAsync(winrt::Windows::ApplicationModel::Email::EmailStoreAccessType const& accessType) { return impl::call_factory([&](IEmailManagerStatics2 const& f) { return f.RequestStoreAsync(accessType); }); } inline auto EmailManager::GetForUser(winrt::Windows::System::User const& user) { return impl::call_factory([&](IEmailManagerStatics3 const& f) { return f.GetForUser(user); }); } inline EmailMeetingInfo::EmailMeetingInfo() : EmailMeetingInfo(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline EmailMessage::EmailMessage() : EmailMessage(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline EmailQueryOptions::EmailQueryOptions() : EmailQueryOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline EmailQueryOptions::EmailQueryOptions(param::hstring const& text) : EmailQueryOptions(impl::call_factory([&](IEmailQueryOptionsFactory const& f) { return f.CreateWithText(text); })) { } inline EmailQueryOptions::EmailQueryOptions(param::hstring const& text, winrt::Windows::ApplicationModel::Email::EmailQuerySearchFields const& fields) : EmailQueryOptions(impl::call_factory([&](IEmailQueryOptionsFactory const& f) { return f.CreateWithTextAndFields(text, fields); })) { } inline EmailRecipient::EmailRecipient() : EmailRecipient(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline EmailRecipient::EmailRecipient(param::hstring const& address) : EmailRecipient(impl::call_factory([&](IEmailRecipientFactory const& f) { return f.Create(address); })) { } inline EmailRecipient::EmailRecipient(param::hstring const& address, param::hstring const& name) : EmailRecipient(impl::call_factory([&](IEmailRecipientFactory const& f) { return f.CreateWithName(address, name); })) { } inline EmailRecipientResolutionResult::EmailRecipientResolutionResult() : EmailRecipientResolutionResult(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif