// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_ApplicationModel_Appointments_H #define WINRT_Windows_ApplicationModel_Appointments_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.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.System.2.h" #include "winrt/impl/Windows.UI.2.h" #include "winrt/impl/Windows.UI.Popups.2.h" #include "winrt/impl/Windows.ApplicationModel.Appointments.2.h" namespace winrt::impl { template auto consume_Windows_ApplicationModel_Appointments_IAppointment::StartTime() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->get_StartTime(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::StartTime(winrt::Windows::Foundation::DateTime const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->put_StartTime(impl::bind_in(value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::Duration() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->get_Duration(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::Duration(winrt::Windows::Foundation::TimeSpan const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->put_Duration(impl::bind_in(value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::Location() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->get_Location(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::Location(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->put_Location(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::Subject() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->get_Subject(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::Subject(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->put_Subject(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::Details() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->get_Details(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::Details(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->put_Details(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::Reminder() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->get_Reminder(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::Reminder(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->put_Reminder(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::Organizer() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->get_Organizer(&value)); return winrt::Windows::ApplicationModel::Appointments::AppointmentOrganizer{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::Organizer(winrt::Windows::ApplicationModel::Appointments::AppointmentOrganizer const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->put_Organizer(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::Invitees() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->get_Invitees(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::Recurrence() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->get_Recurrence(&value)); return winrt::Windows::ApplicationModel::Appointments::AppointmentRecurrence{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::Recurrence(winrt::Windows::ApplicationModel::Appointments::AppointmentRecurrence const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->put_Recurrence(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::BusyStatus() const { winrt::Windows::ApplicationModel::Appointments::AppointmentBusyStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->get_BusyStatus(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::BusyStatus(winrt::Windows::ApplicationModel::Appointments::AppointmentBusyStatus const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->put_BusyStatus(static_cast(value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::AllDay() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->get_AllDay(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::AllDay(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->put_AllDay(value)); } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::Sensitivity() const { winrt::Windows::ApplicationModel::Appointments::AppointmentSensitivity value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->get_Sensitivity(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::Sensitivity(winrt::Windows::ApplicationModel::Appointments::AppointmentSensitivity const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->put_Sensitivity(static_cast(value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::Uri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->get_Uri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment::Uri(winrt::Windows::Foundation::Uri const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment)->put_Uri(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointment2::LocalId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment2)->get_LocalId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment2::CalendarId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment2)->get_CalendarId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment2::RoamingId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment2)->get_RoamingId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment2::RoamingId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment2)->put_RoamingId(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointment2::OriginalStartTime() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment2)->get_OriginalStartTime(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment2::IsResponseRequested() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment2)->get_IsResponseRequested(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment2::IsResponseRequested(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment2)->put_IsResponseRequested(value)); } template auto consume_Windows_ApplicationModel_Appointments_IAppointment2::AllowNewTimeProposal() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment2)->get_AllowNewTimeProposal(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment2::AllowNewTimeProposal(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment2)->put_AllowNewTimeProposal(value)); } template auto consume_Windows_ApplicationModel_Appointments_IAppointment2::OnlineMeetingLink() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment2)->get_OnlineMeetingLink(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment2::OnlineMeetingLink(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment2)->put_OnlineMeetingLink(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointment2::ReplyTime() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment2)->get_ReplyTime(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment2::ReplyTime(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment2)->put_ReplyTime(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointment2::UserResponse() const { winrt::Windows::ApplicationModel::Appointments::AppointmentParticipantResponse value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment2)->get_UserResponse(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment2::UserResponse(winrt::Windows::ApplicationModel::Appointments::AppointmentParticipantResponse const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment2)->put_UserResponse(static_cast(value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointment2::HasInvitees() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment2)->get_HasInvitees(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment2::IsCanceledMeeting() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment2)->get_IsCanceledMeeting(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment2::IsCanceledMeeting(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment2)->put_IsCanceledMeeting(value)); } template auto consume_Windows_ApplicationModel_Appointments_IAppointment2::IsOrganizedByUser() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment2)->get_IsOrganizedByUser(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment2::IsOrganizedByUser(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment2)->put_IsOrganizedByUser(value)); } template auto consume_Windows_ApplicationModel_Appointments_IAppointment3::ChangeNumber() const { uint64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment3)->get_ChangeNumber(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment3::RemoteChangeNumber() const { uint64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment3)->get_RemoteChangeNumber(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment3::RemoteChangeNumber(uint64_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment3)->put_RemoteChangeNumber(value)); } template auto consume_Windows_ApplicationModel_Appointments_IAppointment3::DetailsKind() const { winrt::Windows::ApplicationModel::Appointments::AppointmentDetailsKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment3)->get_DetailsKind(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointment3::DetailsKind(winrt::Windows::ApplicationModel::Appointments::AppointmentDetailsKind const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointment3)->put_DetailsKind(static_cast(value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::DisplayColor() const { winrt::Windows::UI::Color value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->get_DisplayColor(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::DisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->get_DisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::DisplayName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->put_DisplayName(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::LocalId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->get_LocalId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::IsHidden() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->get_IsHidden(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::OtherAppReadAccess() const { winrt::Windows::ApplicationModel::Appointments::AppointmentCalendarOtherAppReadAccess value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->get_OtherAppReadAccess(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::OtherAppReadAccess(winrt::Windows::ApplicationModel::Appointments::AppointmentCalendarOtherAppReadAccess const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->put_OtherAppReadAccess(static_cast(value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::OtherAppWriteAccess() const { winrt::Windows::ApplicationModel::Appointments::AppointmentCalendarOtherAppWriteAccess value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->get_OtherAppWriteAccess(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::OtherAppWriteAccess(winrt::Windows::ApplicationModel::Appointments::AppointmentCalendarOtherAppWriteAccess const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->put_OtherAppWriteAccess(static_cast(value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::SourceDisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->get_SourceDisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::SummaryCardView() const { winrt::Windows::ApplicationModel::Appointments::AppointmentSummaryCardView value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->get_SummaryCardView(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::SummaryCardView(winrt::Windows::ApplicationModel::Appointments::AppointmentSummaryCardView const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->put_SummaryCardView(static_cast(value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::FindAppointmentsAsync(winrt::Windows::Foundation::DateTime const& rangeStart, winrt::Windows::Foundation::TimeSpan const& rangeLength) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->FindAppointmentsAsync(impl::bind_in(rangeStart), impl::bind_in(rangeLength), &result)); return winrt::Windows::Foundation::IAsyncOperation>{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::FindAppointmentsAsync(winrt::Windows::Foundation::DateTime const& rangeStart, winrt::Windows::Foundation::TimeSpan const& rangeLength, winrt::Windows::ApplicationModel::Appointments::FindAppointmentsOptions const& options) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->FindAppointmentsAsyncWithOptions(impl::bind_in(rangeStart), impl::bind_in(rangeLength), *(void**)(&options), &result)); return winrt::Windows::Foundation::IAsyncOperation>{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::FindExceptionsFromMasterAsync(param::hstring const& masterLocalId) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->FindExceptionsFromMasterAsync(*(void**)(&masterLocalId), &value)); return winrt::Windows::Foundation::IAsyncOperation>{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::FindAllInstancesAsync(param::hstring const& masterLocalId, winrt::Windows::Foundation::DateTime const& rangeStart, winrt::Windows::Foundation::TimeSpan const& rangeLength) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->FindAllInstancesAsync(*(void**)(&masterLocalId), impl::bind_in(rangeStart), impl::bind_in(rangeLength), &value)); return winrt::Windows::Foundation::IAsyncOperation>{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::FindAllInstancesAsync(param::hstring const& masterLocalId, winrt::Windows::Foundation::DateTime const& rangeStart, winrt::Windows::Foundation::TimeSpan const& rangeLength, winrt::Windows::ApplicationModel::Appointments::FindAppointmentsOptions const& pOptions) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->FindAllInstancesAsyncWithOptions(*(void**)(&masterLocalId), impl::bind_in(rangeStart), impl::bind_in(rangeLength), *(void**)(&pOptions), &value)); return winrt::Windows::Foundation::IAsyncOperation>{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::GetAppointmentAsync(param::hstring const& localId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->GetAppointmentAsync(*(void**)(&localId), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::GetAppointmentInstanceAsync(param::hstring const& localId, winrt::Windows::Foundation::DateTime const& instanceStartTime) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->GetAppointmentInstanceAsync(*(void**)(&localId), impl::bind_in(instanceStartTime), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::FindUnexpandedAppointmentsAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->FindUnexpandedAppointmentsAsync(&result)); return winrt::Windows::Foundation::IAsyncOperation>{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::FindUnexpandedAppointmentsAsync(winrt::Windows::ApplicationModel::Appointments::FindAppointmentsOptions const& options) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->FindUnexpandedAppointmentsAsyncWithOptions(*(void**)(&options), &result)); return winrt::Windows::Foundation::IAsyncOperation>{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::DeleteAsync() const { void* asyncAction{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->DeleteAsync(&asyncAction)); return winrt::Windows::Foundation::IAsyncAction{ asyncAction, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::SaveAsync() const { void* asyncAction{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->SaveAsync(&asyncAction)); return winrt::Windows::Foundation::IAsyncAction{ asyncAction, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::DeleteAppointmentAsync(param::hstring const& localId) const { void* asyncAction{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->DeleteAppointmentAsync(*(void**)(&localId), &asyncAction)); return winrt::Windows::Foundation::IAsyncAction{ asyncAction, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::DeleteAppointmentInstanceAsync(param::hstring const& localId, winrt::Windows::Foundation::DateTime const& instanceStartTime) const { void* asyncAction{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->DeleteAppointmentInstanceAsync(*(void**)(&localId), impl::bind_in(instanceStartTime), &asyncAction)); return winrt::Windows::Foundation::IAsyncAction{ asyncAction, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar::SaveAppointmentAsync(winrt::Windows::ApplicationModel::Appointments::Appointment const& pAppointment) const { void* asyncAction{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar)->SaveAppointmentAsync(*(void**)(&pAppointment), &asyncAction)); return winrt::Windows::Foundation::IAsyncAction{ asyncAction, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::SyncManager() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->get_SyncManager(&value)); return winrt::Windows::ApplicationModel::Appointments::AppointmentCalendarSyncManager{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::RemoteId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->get_RemoteId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::RemoteId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->put_RemoteId(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::DisplayColor(winrt::Windows::UI::Color const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->put_DisplayColor(impl::bind_in(value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::IsHidden(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->put_IsHidden(value)); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::UserDataAccountId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->get_UserDataAccountId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::CanCreateOrUpdateAppointments() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->get_CanCreateOrUpdateAppointments(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::CanCreateOrUpdateAppointments(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->put_CanCreateOrUpdateAppointments(value)); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::CanCancelMeetings() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->get_CanCancelMeetings(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::CanCancelMeetings(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->put_CanCancelMeetings(value)); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::CanForwardMeetings() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->get_CanForwardMeetings(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::CanForwardMeetings(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->put_CanForwardMeetings(value)); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::CanProposeNewTimeForMeetings() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->get_CanProposeNewTimeForMeetings(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::CanProposeNewTimeForMeetings(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->put_CanProposeNewTimeForMeetings(value)); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::CanUpdateMeetingResponses() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->get_CanUpdateMeetingResponses(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::CanUpdateMeetingResponses(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->put_CanUpdateMeetingResponses(value)); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::CanNotifyInvitees() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->get_CanNotifyInvitees(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::CanNotifyInvitees(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->put_CanNotifyInvitees(value)); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::MustNofityInvitees() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->get_MustNofityInvitees(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::MustNofityInvitees(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->put_MustNofityInvitees(value)); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::TryCreateOrUpdateAppointmentAsync(winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment, bool notifyInvitees) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->TryCreateOrUpdateAppointmentAsync(*(void**)(&appointment), notifyInvitees, &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::TryCancelMeetingAsync(winrt::Windows::ApplicationModel::Appointments::Appointment const& meeting, param::hstring const& subject, param::hstring const& comment, bool notifyInvitees) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->TryCancelMeetingAsync(*(void**)(&meeting), *(void**)(&subject), *(void**)(&comment), notifyInvitees, &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::TryForwardMeetingAsync(winrt::Windows::ApplicationModel::Appointments::Appointment const& meeting, param::async_iterable const& invitees, param::hstring const& subject, param::hstring const& forwardHeader, param::hstring const& comment) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->TryForwardMeetingAsync(*(void**)(&meeting), *(void**)(&invitees), *(void**)(&subject), *(void**)(&forwardHeader), *(void**)(&comment), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendar2::TryProposeNewTimeForMeetingAsync(winrt::Windows::ApplicationModel::Appointments::Appointment 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::Appointments::IAppointmentCalendar2)->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_Appointments_IAppointmentCalendar2::TryUpdateMeetingResponseAsync(winrt::Windows::ApplicationModel::Appointments::Appointment const& meeting, winrt::Windows::ApplicationModel::Appointments::AppointmentParticipantResponse const& response, param::hstring const& subject, param::hstring const& comment, bool sendUpdate) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar2)->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_Appointments_IAppointmentCalendar3::RegisterSyncManagerAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendar3)->RegisterSyncManagerAsync(&result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendarSyncManager::Status() const { winrt::Windows::ApplicationModel::Appointments::AppointmentCalendarSyncStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendarSyncManager)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendarSyncManager::LastSuccessfulSyncTime() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendarSyncManager)->get_LastSuccessfulSyncTime(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendarSyncManager::LastAttemptedSyncTime() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendarSyncManager)->get_LastAttemptedSyncTime(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendarSyncManager::SyncAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendarSyncManager)->SyncAsync(&result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendarSyncManager::SyncStatusChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendarSyncManager)->add_SyncStatusChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendarSyncManager::SyncStatusChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, SyncStatusChanged(handler)); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendarSyncManager::SyncStatusChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendarSyncManager)->remove_SyncStatusChanged(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendarSyncManager2::Status(winrt::Windows::ApplicationModel::Appointments::AppointmentCalendarSyncStatus const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendarSyncManager2)->put_Status(static_cast(value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendarSyncManager2::LastSuccessfulSyncTime(winrt::Windows::Foundation::DateTime const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendarSyncManager2)->put_LastSuccessfulSyncTime(impl::bind_in(value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentCalendarSyncManager2::LastAttemptedSyncTime(winrt::Windows::Foundation::DateTime const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentCalendarSyncManager2)->put_LastAttemptedSyncTime(impl::bind_in(value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentConflictResult::Type() const { winrt::Windows::ApplicationModel::Appointments::AppointmentConflictType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentConflictResult)->get_Type(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentConflictResult::Date() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentConflictResult)->get_Date(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentException::Appointment() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentException)->get_Appointment(&value)); return winrt::Windows::ApplicationModel::Appointments::Appointment{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentException::ExceptionProperties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentException)->get_ExceptionProperties(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentException::IsDeleted() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentException)->get_IsDeleted(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentInvitee::Role() const { winrt::Windows::ApplicationModel::Appointments::AppointmentParticipantRole value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentInvitee)->get_Role(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentInvitee::Role(winrt::Windows::ApplicationModel::Appointments::AppointmentParticipantRole const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentInvitee)->put_Role(static_cast(value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentInvitee::Response() const { winrt::Windows::ApplicationModel::Appointments::AppointmentParticipantResponse value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentInvitee)->get_Response(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentInvitee::Response(winrt::Windows::ApplicationModel::Appointments::AppointmentParticipantResponse const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentInvitee)->put_Response(static_cast(value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerForUser::ShowAddAppointmentAsync(winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment, winrt::Windows::Foundation::Rect const& selection) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerForUser)->ShowAddAppointmentAsync(*(void**)(&appointment), impl::bind_in(selection), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerForUser::ShowAddAppointmentAsync(winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment, winrt::Windows::Foundation::Rect const& selection, winrt::Windows::UI::Popups::Placement const& preferredPlacement) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerForUser)->ShowAddAppointmentWithPlacementAsync(*(void**)(&appointment), impl::bind_in(selection), static_cast(preferredPlacement), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerForUser::ShowReplaceAppointmentAsync(param::hstring const& appointmentId, winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment, winrt::Windows::Foundation::Rect const& selection) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerForUser)->ShowReplaceAppointmentAsync(*(void**)(&appointmentId), *(void**)(&appointment), impl::bind_in(selection), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerForUser::ShowReplaceAppointmentAsync(param::hstring const& appointmentId, winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment, winrt::Windows::Foundation::Rect const& selection, winrt::Windows::UI::Popups::Placement const& preferredPlacement) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerForUser)->ShowReplaceAppointmentWithPlacementAsync(*(void**)(&appointmentId), *(void**)(&appointment), impl::bind_in(selection), static_cast(preferredPlacement), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerForUser::ShowReplaceAppointmentAsync(param::hstring const& appointmentId, winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment, winrt::Windows::Foundation::Rect const& selection, winrt::Windows::UI::Popups::Placement const& preferredPlacement, winrt::Windows::Foundation::DateTime const& instanceStartDate) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerForUser)->ShowReplaceAppointmentWithPlacementAndDateAsync(*(void**)(&appointmentId), *(void**)(&appointment), impl::bind_in(selection), static_cast(preferredPlacement), impl::bind_in(instanceStartDate), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerForUser::ShowRemoveAppointmentAsync(param::hstring const& appointmentId, winrt::Windows::Foundation::Rect const& selection) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerForUser)->ShowRemoveAppointmentAsync(*(void**)(&appointmentId), impl::bind_in(selection), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerForUser::ShowRemoveAppointmentAsync(param::hstring const& appointmentId, winrt::Windows::Foundation::Rect const& selection, winrt::Windows::UI::Popups::Placement const& preferredPlacement) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerForUser)->ShowRemoveAppointmentWithPlacementAsync(*(void**)(&appointmentId), impl::bind_in(selection), static_cast(preferredPlacement), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerForUser::ShowRemoveAppointmentAsync(param::hstring const& appointmentId, winrt::Windows::Foundation::Rect const& selection, winrt::Windows::UI::Popups::Placement const& preferredPlacement, winrt::Windows::Foundation::DateTime const& instanceStartDate) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerForUser)->ShowRemoveAppointmentWithPlacementAndDateAsync(*(void**)(&appointmentId), impl::bind_in(selection), static_cast(preferredPlacement), impl::bind_in(instanceStartDate), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerForUser::ShowTimeFrameAsync(winrt::Windows::Foundation::DateTime const& timeToShow, winrt::Windows::Foundation::TimeSpan const& duration) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerForUser)->ShowTimeFrameAsync(impl::bind_in(timeToShow), impl::bind_in(duration), &result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerForUser::ShowAppointmentDetailsAsync(param::hstring const& appointmentId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerForUser)->ShowAppointmentDetailsAsync(*(void**)(&appointmentId), &result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerForUser::ShowAppointmentDetailsAsync(param::hstring const& appointmentId, winrt::Windows::Foundation::DateTime const& instanceStartDate) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerForUser)->ShowAppointmentDetailsWithDateAsync(*(void**)(&appointmentId), impl::bind_in(instanceStartDate), &result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerForUser::ShowEditNewAppointmentAsync(winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerForUser)->ShowEditNewAppointmentAsync(*(void**)(&appointment), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerForUser::RequestStoreAsync(winrt::Windows::ApplicationModel::Appointments::AppointmentStoreAccessType const& options) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerForUser)->RequestStoreAsync(static_cast(options), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerForUser::User() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerForUser)->get_User(&value)); return winrt::Windows::System::User{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerStatics::ShowAddAppointmentAsync(winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment, winrt::Windows::Foundation::Rect const& selection) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerStatics)->ShowAddAppointmentAsync(*(void**)(&appointment), impl::bind_in(selection), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerStatics::ShowAddAppointmentAsync(winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment, winrt::Windows::Foundation::Rect const& selection, winrt::Windows::UI::Popups::Placement const& preferredPlacement) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerStatics)->ShowAddAppointmentWithPlacementAsync(*(void**)(&appointment), impl::bind_in(selection), static_cast(preferredPlacement), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerStatics::ShowReplaceAppointmentAsync(param::hstring const& appointmentId, winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment, winrt::Windows::Foundation::Rect const& selection) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerStatics)->ShowReplaceAppointmentAsync(*(void**)(&appointmentId), *(void**)(&appointment), impl::bind_in(selection), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerStatics::ShowReplaceAppointmentAsync(param::hstring const& appointmentId, winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment, winrt::Windows::Foundation::Rect const& selection, winrt::Windows::UI::Popups::Placement const& preferredPlacement) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerStatics)->ShowReplaceAppointmentWithPlacementAsync(*(void**)(&appointmentId), *(void**)(&appointment), impl::bind_in(selection), static_cast(preferredPlacement), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerStatics::ShowReplaceAppointmentAsync(param::hstring const& appointmentId, winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment, winrt::Windows::Foundation::Rect const& selection, winrt::Windows::UI::Popups::Placement const& preferredPlacement, winrt::Windows::Foundation::DateTime const& instanceStartDate) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerStatics)->ShowReplaceAppointmentWithPlacementAndDateAsync(*(void**)(&appointmentId), *(void**)(&appointment), impl::bind_in(selection), static_cast(preferredPlacement), impl::bind_in(instanceStartDate), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerStatics::ShowRemoveAppointmentAsync(param::hstring const& appointmentId, winrt::Windows::Foundation::Rect const& selection) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerStatics)->ShowRemoveAppointmentAsync(*(void**)(&appointmentId), impl::bind_in(selection), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerStatics::ShowRemoveAppointmentAsync(param::hstring const& appointmentId, winrt::Windows::Foundation::Rect const& selection, winrt::Windows::UI::Popups::Placement const& preferredPlacement) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerStatics)->ShowRemoveAppointmentWithPlacementAsync(*(void**)(&appointmentId), impl::bind_in(selection), static_cast(preferredPlacement), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerStatics::ShowRemoveAppointmentAsync(param::hstring const& appointmentId, winrt::Windows::Foundation::Rect const& selection, winrt::Windows::UI::Popups::Placement const& preferredPlacement, winrt::Windows::Foundation::DateTime const& instanceStartDate) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerStatics)->ShowRemoveAppointmentWithPlacementAndDateAsync(*(void**)(&appointmentId), impl::bind_in(selection), static_cast(preferredPlacement), impl::bind_in(instanceStartDate), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerStatics::ShowTimeFrameAsync(winrt::Windows::Foundation::DateTime const& timeToShow, winrt::Windows::Foundation::TimeSpan const& duration) const { void* asyncAction{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerStatics)->ShowTimeFrameAsync(impl::bind_in(timeToShow), impl::bind_in(duration), &asyncAction)); return winrt::Windows::Foundation::IAsyncAction{ asyncAction, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerStatics2::ShowAppointmentDetailsAsync(param::hstring const& appointmentId) const { void* asyncAction{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerStatics2)->ShowAppointmentDetailsAsync(*(void**)(&appointmentId), &asyncAction)); return winrt::Windows::Foundation::IAsyncAction{ asyncAction, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerStatics2::ShowAppointmentDetailsAsync(param::hstring const& appointmentId, winrt::Windows::Foundation::DateTime const& instanceStartDate) const { void* asyncAction{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerStatics2)->ShowAppointmentDetailsWithDateAsync(*(void**)(&appointmentId), impl::bind_in(instanceStartDate), &asyncAction)); return winrt::Windows::Foundation::IAsyncAction{ asyncAction, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerStatics2::ShowEditNewAppointmentAsync(winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerStatics2)->ShowEditNewAppointmentAsync(*(void**)(&appointment), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerStatics2::RequestStoreAsync(winrt::Windows::ApplicationModel::Appointments::AppointmentStoreAccessType const& options) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerStatics2)->RequestStoreAsync(static_cast(options), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentManagerStatics3::GetForUser(winrt::Windows::System::User const& user) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentManagerStatics3)->GetForUser(*(void**)(&user), &result)); return winrt::Windows::ApplicationModel::Appointments::AppointmentManagerForUser{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentParticipant::DisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentParticipant)->get_DisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentParticipant::DisplayName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentParticipant)->put_DisplayName(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentParticipant::Address() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentParticipant)->get_Address(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentParticipant::Address(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentParticipant)->put_Address(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::Subject() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_Subject(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::Location() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_Location(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::StartTime() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_StartTime(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::Duration() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_Duration(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::Reminder() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_Reminder(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::BusyStatus() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_BusyStatus(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::Sensitivity() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_Sensitivity(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::OriginalStartTime() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_OriginalStartTime(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::IsResponseRequested() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_IsResponseRequested(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::AllowNewTimeProposal() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_AllowNewTimeProposal(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::AllDay() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_AllDay(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::Details() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_Details(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::OnlineMeetingLink() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_OnlineMeetingLink(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::ReplyTime() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_ReplyTime(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::Organizer() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_Organizer(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::UserResponse() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_UserResponse(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::HasInvitees() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_HasInvitees(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::IsCanceledMeeting() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_IsCanceledMeeting(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::IsOrganizedByUser() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_IsOrganizedByUser(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::Recurrence() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_Recurrence(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::Uri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_Uri(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::Invitees() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_Invitees(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics::DefaultProperties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics)->get_DefaultProperties(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics2::ChangeNumber() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics2)->get_ChangeNumber(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics2::RemoteChangeNumber() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics2)->get_RemoteChangeNumber(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentPropertiesStatics2::DetailsKind() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentPropertiesStatics2)->get_DetailsKind(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentRecurrence::Unit() const { winrt::Windows::ApplicationModel::Appointments::AppointmentRecurrenceUnit value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentRecurrence)->get_Unit(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentRecurrence::Unit(winrt::Windows::ApplicationModel::Appointments::AppointmentRecurrenceUnit const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentRecurrence)->put_Unit(static_cast(value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentRecurrence::Occurrences() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentRecurrence)->get_Occurrences(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentRecurrence::Occurrences(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentRecurrence)->put_Occurrences(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentRecurrence::Until() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentRecurrence)->get_Until(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentRecurrence::Until(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentRecurrence)->put_Until(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentRecurrence::Interval() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentRecurrence)->get_Interval(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentRecurrence::Interval(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentRecurrence)->put_Interval(value)); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentRecurrence::DaysOfWeek() const { winrt::Windows::ApplicationModel::Appointments::AppointmentDaysOfWeek value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentRecurrence)->get_DaysOfWeek(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentRecurrence::DaysOfWeek(winrt::Windows::ApplicationModel::Appointments::AppointmentDaysOfWeek const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentRecurrence)->put_DaysOfWeek(static_cast(value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentRecurrence::WeekOfMonth() const { winrt::Windows::ApplicationModel::Appointments::AppointmentWeekOfMonth value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentRecurrence)->get_WeekOfMonth(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentRecurrence::WeekOfMonth(winrt::Windows::ApplicationModel::Appointments::AppointmentWeekOfMonth const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentRecurrence)->put_WeekOfMonth(static_cast(value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentRecurrence::Month() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentRecurrence)->get_Month(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentRecurrence::Month(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentRecurrence)->put_Month(value)); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentRecurrence::Day() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentRecurrence)->get_Day(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentRecurrence::Day(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentRecurrence)->put_Day(value)); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentRecurrence2::RecurrenceType() const { winrt::Windows::ApplicationModel::Appointments::RecurrenceType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentRecurrence2)->get_RecurrenceType(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentRecurrence2::TimeZone() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentRecurrence2)->get_TimeZone(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentRecurrence2::TimeZone(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentRecurrence2)->put_TimeZone(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentRecurrence3::CalendarIdentifier() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentRecurrence3)->get_CalendarIdentifier(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore::ChangeTracker() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore)->get_ChangeTracker(&value)); return winrt::Windows::ApplicationModel::Appointments::AppointmentStoreChangeTracker{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore::CreateAppointmentCalendarAsync(param::hstring const& name) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore)->CreateAppointmentCalendarAsync(*(void**)(&name), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore::GetAppointmentCalendarAsync(param::hstring const& calendarId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore)->GetAppointmentCalendarAsync(*(void**)(&calendarId), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore::GetAppointmentAsync(param::hstring const& localId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore)->GetAppointmentAsync(*(void**)(&localId), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore::GetAppointmentInstanceAsync(param::hstring const& localId, winrt::Windows::Foundation::DateTime const& instanceStartTime) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore)->GetAppointmentInstanceAsync(*(void**)(&localId), impl::bind_in(instanceStartTime), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore::FindAppointmentCalendarsAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore)->FindAppointmentCalendarsAsync(&result)); return winrt::Windows::Foundation::IAsyncOperation>{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore::FindAppointmentCalendarsAsync(winrt::Windows::ApplicationModel::Appointments::FindAppointmentCalendarsOptions const& options) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore)->FindAppointmentCalendarsAsyncWithOptions(static_cast(options), &result)); return winrt::Windows::Foundation::IAsyncOperation>{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore::FindAppointmentsAsync(winrt::Windows::Foundation::DateTime const& rangeStart, winrt::Windows::Foundation::TimeSpan const& rangeLength) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore)->FindAppointmentsAsync(impl::bind_in(rangeStart), impl::bind_in(rangeLength), &result)); return winrt::Windows::Foundation::IAsyncOperation>{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore::FindAppointmentsAsync(winrt::Windows::Foundation::DateTime const& rangeStart, winrt::Windows::Foundation::TimeSpan const& rangeLength, winrt::Windows::ApplicationModel::Appointments::FindAppointmentsOptions const& options) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore)->FindAppointmentsAsyncWithOptions(impl::bind_in(rangeStart), impl::bind_in(rangeLength), *(void**)(&options), &result)); return winrt::Windows::Foundation::IAsyncOperation>{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore::FindConflictAsync(winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore)->FindConflictAsync(*(void**)(&appointment), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore::FindConflictAsync(winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment, winrt::Windows::Foundation::DateTime const& instanceStartTime) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore)->FindConflictAsyncWithInstanceStart(*(void**)(&appointment), impl::bind_in(instanceStartTime), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore::MoveAppointmentAsync(winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment, winrt::Windows::ApplicationModel::Appointments::AppointmentCalendar const& destinationCalendar) const { void* asyncAction{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore)->MoveAppointmentAsync(*(void**)(&appointment), *(void**)(&destinationCalendar), &asyncAction)); return winrt::Windows::Foundation::IAsyncAction{ asyncAction, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore::ShowAddAppointmentAsync(winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment, winrt::Windows::Foundation::Rect const& selection) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore)->ShowAddAppointmentAsync(*(void**)(&appointment), impl::bind_in(selection), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore::ShowReplaceAppointmentAsync(param::hstring const& localId, winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment, winrt::Windows::Foundation::Rect const& selection) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore)->ShowReplaceAppointmentAsync(*(void**)(&localId), *(void**)(&appointment), impl::bind_in(selection), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore::ShowReplaceAppointmentAsync(param::hstring const& localId, winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment, winrt::Windows::Foundation::Rect const& selection, winrt::Windows::UI::Popups::Placement const& preferredPlacement, winrt::Windows::Foundation::DateTime const& instanceStartDate) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore)->ShowReplaceAppointmentWithPlacementAndDateAsync(*(void**)(&localId), *(void**)(&appointment), impl::bind_in(selection), static_cast(preferredPlacement), impl::bind_in(instanceStartDate), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore::ShowRemoveAppointmentAsync(param::hstring const& localId, winrt::Windows::Foundation::Rect const& selection) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore)->ShowRemoveAppointmentAsync(*(void**)(&localId), impl::bind_in(selection), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore::ShowRemoveAppointmentAsync(param::hstring const& localId, winrt::Windows::Foundation::Rect const& selection, winrt::Windows::UI::Popups::Placement const& preferredPlacement, winrt::Windows::Foundation::DateTime const& instanceStartDate) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore)->ShowRemoveAppointmentWithPlacementAndDateAsync(*(void**)(&localId), impl::bind_in(selection), static_cast(preferredPlacement), impl::bind_in(instanceStartDate), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore::ShowAppointmentDetailsAsync(param::hstring const& localId) const { void* asyncAction{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore)->ShowAppointmentDetailsAsync(*(void**)(&localId), &asyncAction)); return winrt::Windows::Foundation::IAsyncAction{ asyncAction, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore::ShowAppointmentDetailsAsync(param::hstring const& localId, winrt::Windows::Foundation::DateTime const& instanceStartDate) const { void* asyncAction{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore)->ShowAppointmentDetailsWithDateAsync(*(void**)(&localId), impl::bind_in(instanceStartDate), &asyncAction)); return winrt::Windows::Foundation::IAsyncAction{ asyncAction, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore::ShowEditNewAppointmentAsync(winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore)->ShowEditNewAppointmentAsync(*(void**)(&appointment), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore::FindLocalIdsFromRoamingIdAsync(param::hstring const& roamingId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore)->FindLocalIdsFromRoamingIdAsync(*(void**)(&roamingId), &operation)); return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore2::StoreChanged(winrt::Windows::Foundation::TypedEventHandler const& pHandler) const { winrt::event_token pToken{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore2)->add_StoreChanged(*(void**)(&pHandler), put_abi(pToken))); return pToken; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore2::StoreChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& pHandler) const { return impl::make_event_revoker(this, StoreChanged(pHandler)); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore2::StoreChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore2)->remove_StoreChanged(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore2::CreateAppointmentCalendarAsync(param::hstring const& name, param::hstring const& userDataAccountId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore2)->CreateAppointmentCalendarInAccountAsync(*(void**)(&name), *(void**)(&userDataAccountId), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStore3::GetChangeTracker(param::hstring const& identity) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStore3)->GetChangeTracker(*(void**)(&identity), &result)); return winrt::Windows::ApplicationModel::Appointments::AppointmentStoreChangeTracker{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStoreChange::Appointment() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStoreChange)->get_Appointment(&value)); return winrt::Windows::ApplicationModel::Appointments::Appointment{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStoreChange::ChangeType() const { winrt::Windows::ApplicationModel::Appointments::AppointmentStoreChangeType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStoreChange)->get_ChangeType(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStoreChange2::AppointmentCalendar() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStoreChange2)->get_AppointmentCalendar(&value)); return winrt::Windows::ApplicationModel::Appointments::AppointmentCalendar{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStoreChangeReader::ReadBatchAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStoreChangeReader)->ReadBatchAsync(&result)); return winrt::Windows::Foundation::IAsyncOperation>{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStoreChangeReader::AcceptChanges() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStoreChangeReader)->AcceptChanges()); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStoreChangeReader::AcceptChangesThrough(winrt::Windows::ApplicationModel::Appointments::AppointmentStoreChange const& lastChangeToAccept) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStoreChangeReader)->AcceptChangesThrough(*(void**)(&lastChangeToAccept))); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStoreChangeTracker::GetChangeReader() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStoreChangeTracker)->GetChangeReader(&value)); return winrt::Windows::ApplicationModel::Appointments::AppointmentStoreChangeReader{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStoreChangeTracker::Enable() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStoreChangeTracker)->Enable()); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStoreChangeTracker::Reset() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStoreChangeTracker)->Reset()); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStoreChangeTracker2::IsTracking() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStoreChangeTracker2)->get_IsTracking(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStoreChangedDeferral::Complete() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStoreChangedDeferral)->Complete()); } template auto consume_Windows_ApplicationModel_Appointments_IAppointmentStoreChangedEventArgs::GetDeferral() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IAppointmentStoreChangedEventArgs)->GetDeferral(&result)); return winrt::Windows::ApplicationModel::Appointments::AppointmentStoreChangedDeferral{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IFindAppointmentsOptions::CalendarIds() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IFindAppointmentsOptions)->get_CalendarIds(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IFindAppointmentsOptions::FetchProperties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IFindAppointmentsOptions)->get_FetchProperties(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_IFindAppointmentsOptions::IncludeHidden() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IFindAppointmentsOptions)->get_IncludeHidden(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IFindAppointmentsOptions::IncludeHidden(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IFindAppointmentsOptions)->put_IncludeHidden(value)); } template auto consume_Windows_ApplicationModel_Appointments_IFindAppointmentsOptions::MaxCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IFindAppointmentsOptions)->get_MaxCount(&value)); return value; } template auto consume_Windows_ApplicationModel_Appointments_IFindAppointmentsOptions::MaxCount(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::IFindAppointmentsOptions)->put_MaxCount(value)); } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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(); } 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_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_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_Details(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Details()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Details(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Details(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Reminder(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Reminder()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Reminder(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Reminder(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Organizer(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Organizer()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Organizer(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Organizer(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Invitees(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Invitees()); 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_BusyStatus(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BusyStatus()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_BusyStatus(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BusyStatus(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AllDay(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllDay()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AllDay(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AllDay(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Sensitivity(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Sensitivity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Sensitivity(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Sensitivity(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Uri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Uri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Uri(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Uri(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_LocalId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LocalId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CalendarId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CalendarId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RoamingId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RoamingId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RoamingId(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RoamingId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OriginalStartTime(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().OriginalStartTime()); 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_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_OnlineMeetingLink(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OnlineMeetingLink()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_OnlineMeetingLink(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnlineMeetingLink(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ReplyTime(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ReplyTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ReplyTime(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ReplyTime(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UserResponse(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UserResponse()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_UserResponse(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UserResponse(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HasInvitees(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasInvitees()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsCanceledMeeting(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsCanceledMeeting()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsCanceledMeeting(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsCanceledMeeting(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsOrganizedByUser(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsOrganizedByUser()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsOrganizedByUser(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsOrganizedByUser(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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_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_DetailsKind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DetailsKind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DetailsKind(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DetailsKind(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DisplayColor(struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayColor()); 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_LocalId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LocalId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsHidden(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsHidden()); 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_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_SummaryCardView(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SummaryCardView()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SummaryCardView(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SummaryCardView(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindAppointmentsAsync(int64_t rangeStart, int64_t rangeLength, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>>(this->shim().FindAppointmentsAsync(*reinterpret_cast(&rangeStart), *reinterpret_cast(&rangeLength))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindAppointmentsAsyncWithOptions(int64_t rangeStart, int64_t rangeLength, void* options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>>(this->shim().FindAppointmentsAsync(*reinterpret_cast(&rangeStart), *reinterpret_cast(&rangeLength), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindExceptionsFromMasterAsync(void* masterLocalId, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>>(this->shim().FindExceptionsFromMasterAsync(*reinterpret_cast(&masterLocalId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindAllInstancesAsync(void* masterLocalId, int64_t rangeStart, int64_t rangeLength, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>>(this->shim().FindAllInstancesAsync(*reinterpret_cast(&masterLocalId), *reinterpret_cast(&rangeStart), *reinterpret_cast(&rangeLength))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindAllInstancesAsyncWithOptions(void* masterLocalId, int64_t rangeStart, int64_t rangeLength, void* pOptions, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>>(this->shim().FindAllInstancesAsync(*reinterpret_cast(&masterLocalId), *reinterpret_cast(&rangeStart), *reinterpret_cast(&rangeLength), *reinterpret_cast(&pOptions))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAppointmentAsync(void* localId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetAppointmentAsync(*reinterpret_cast(&localId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAppointmentInstanceAsync(void* localId, int64_t instanceStartTime, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetAppointmentInstanceAsync(*reinterpret_cast(&localId), *reinterpret_cast(&instanceStartTime))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindUnexpandedAppointmentsAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>>(this->shim().FindUnexpandedAppointmentsAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindUnexpandedAppointmentsAsyncWithOptions(void* options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>>(this->shim().FindUnexpandedAppointmentsAsync(*reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DeleteAsync(void** asyncAction) noexcept final try { clear_abi(asyncAction); typename D::abi_guard guard(this->shim()); *asyncAction = detach_from(this->shim().DeleteAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SaveAsync(void** asyncAction) noexcept final try { clear_abi(asyncAction); typename D::abi_guard guard(this->shim()); *asyncAction = detach_from(this->shim().SaveAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DeleteAppointmentAsync(void* localId, void** asyncAction) noexcept final try { clear_abi(asyncAction); typename D::abi_guard guard(this->shim()); *asyncAction = detach_from(this->shim().DeleteAppointmentAsync(*reinterpret_cast(&localId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DeleteAppointmentInstanceAsync(void* localId, int64_t instanceStartTime, void** asyncAction) noexcept final try { clear_abi(asyncAction); typename D::abi_guard guard(this->shim()); *asyncAction = detach_from(this->shim().DeleteAppointmentInstanceAsync(*reinterpret_cast(&localId), *reinterpret_cast(&instanceStartTime))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SaveAppointmentAsync(void* pAppointment, void** asyncAction) noexcept final try { clear_abi(asyncAction); typename D::abi_guard guard(this->shim()); *asyncAction = detach_from(this->shim().SaveAppointmentAsync(*reinterpret_cast(&pAppointment))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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_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 put_DisplayColor(struct struct_Windows_UI_Color value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DisplayColor(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsHidden(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsHidden(value); 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 get_CanCreateOrUpdateAppointments(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanCreateOrUpdateAppointments()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanCreateOrUpdateAppointments(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanCreateOrUpdateAppointments(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanCancelMeetings(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanCancelMeetings()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanCancelMeetings(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanCancelMeetings(value); return 0; } catch (...) { return to_hresult(); } 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 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 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 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 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 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 get_CanNotifyInvitees(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanNotifyInvitees()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanNotifyInvitees(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanNotifyInvitees(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MustNofityInvitees(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MustNofityInvitees()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MustNofityInvitees(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MustNofityInvitees(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryCreateOrUpdateAppointmentAsync(void* appointment, bool notifyInvitees, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().TryCreateOrUpdateAppointmentAsync(*reinterpret_cast(&appointment), notifyInvitees)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryCancelMeetingAsync(void* meeting, void* subject, void* comment, bool notifyInvitees, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().TryCancelMeetingAsync(*reinterpret_cast(&meeting), *reinterpret_cast(&subject), *reinterpret_cast(&comment), notifyInvitees)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryForwardMeetingAsync(void* meeting, void* invitees, void* subject, 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*>(&invitees), *reinterpret_cast(&subject), *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 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(); } }; #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 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 get_Type(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Type()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Date(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Date()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Appointment(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Appointment()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExceptionProperties(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ExceptionProperties()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsDeleted(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsDeleted()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Role(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Role()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Role(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Role(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Response(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Response()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Response(int32_t 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 ShowAddAppointmentAsync(void* appointment, winrt::Windows::Foundation::Rect selection, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().ShowAddAppointmentAsync(*reinterpret_cast(&appointment), *reinterpret_cast(&selection))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowAddAppointmentWithPlacementAsync(void* appointment, winrt::Windows::Foundation::Rect selection, int32_t preferredPlacement, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().ShowAddAppointmentAsync(*reinterpret_cast(&appointment), *reinterpret_cast(&selection), *reinterpret_cast(&preferredPlacement))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowReplaceAppointmentAsync(void* appointmentId, void* appointment, winrt::Windows::Foundation::Rect selection, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().ShowReplaceAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&appointment), *reinterpret_cast(&selection))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowReplaceAppointmentWithPlacementAsync(void* appointmentId, void* appointment, winrt::Windows::Foundation::Rect selection, int32_t preferredPlacement, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().ShowReplaceAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&appointment), *reinterpret_cast(&selection), *reinterpret_cast(&preferredPlacement))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowReplaceAppointmentWithPlacementAndDateAsync(void* appointmentId, void* appointment, winrt::Windows::Foundation::Rect selection, int32_t preferredPlacement, int64_t instanceStartDate, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().ShowReplaceAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&appointment), *reinterpret_cast(&selection), *reinterpret_cast(&preferredPlacement), *reinterpret_cast(&instanceStartDate))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowRemoveAppointmentAsync(void* appointmentId, winrt::Windows::Foundation::Rect selection, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().ShowRemoveAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&selection))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowRemoveAppointmentWithPlacementAsync(void* appointmentId, winrt::Windows::Foundation::Rect selection, int32_t preferredPlacement, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().ShowRemoveAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&selection), *reinterpret_cast(&preferredPlacement))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowRemoveAppointmentWithPlacementAndDateAsync(void* appointmentId, winrt::Windows::Foundation::Rect selection, int32_t preferredPlacement, int64_t instanceStartDate, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().ShowRemoveAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&selection), *reinterpret_cast(&preferredPlacement), *reinterpret_cast(&instanceStartDate))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowTimeFrameAsync(int64_t timeToShow, int64_t duration, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ShowTimeFrameAsync(*reinterpret_cast(&timeToShow), *reinterpret_cast(&duration))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowAppointmentDetailsAsync(void* appointmentId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ShowAppointmentDetailsAsync(*reinterpret_cast(&appointmentId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowAppointmentDetailsWithDateAsync(void* appointmentId, int64_t instanceStartDate, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ShowAppointmentDetailsAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&instanceStartDate))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowEditNewAppointmentAsync(void* appointment, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().ShowEditNewAppointmentAsync(*reinterpret_cast(&appointment))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestStoreAsync(int32_t options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().RequestStoreAsync(*reinterpret_cast(&options))); 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 ShowAddAppointmentAsync(void* appointment, winrt::Windows::Foundation::Rect selection, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ShowAddAppointmentAsync(*reinterpret_cast(&appointment), *reinterpret_cast(&selection))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowAddAppointmentWithPlacementAsync(void* appointment, winrt::Windows::Foundation::Rect selection, int32_t preferredPlacement, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ShowAddAppointmentAsync(*reinterpret_cast(&appointment), *reinterpret_cast(&selection), *reinterpret_cast(&preferredPlacement))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowReplaceAppointmentAsync(void* appointmentId, void* appointment, winrt::Windows::Foundation::Rect selection, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ShowReplaceAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&appointment), *reinterpret_cast(&selection))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowReplaceAppointmentWithPlacementAsync(void* appointmentId, void* appointment, winrt::Windows::Foundation::Rect selection, int32_t preferredPlacement, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ShowReplaceAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&appointment), *reinterpret_cast(&selection), *reinterpret_cast(&preferredPlacement))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowReplaceAppointmentWithPlacementAndDateAsync(void* appointmentId, void* appointment, winrt::Windows::Foundation::Rect selection, int32_t preferredPlacement, int64_t instanceStartDate, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ShowReplaceAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&appointment), *reinterpret_cast(&selection), *reinterpret_cast(&preferredPlacement), *reinterpret_cast(&instanceStartDate))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowRemoveAppointmentAsync(void* appointmentId, winrt::Windows::Foundation::Rect selection, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ShowRemoveAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&selection))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowRemoveAppointmentWithPlacementAsync(void* appointmentId, winrt::Windows::Foundation::Rect selection, int32_t preferredPlacement, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ShowRemoveAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&selection), *reinterpret_cast(&preferredPlacement))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowRemoveAppointmentWithPlacementAndDateAsync(void* appointmentId, winrt::Windows::Foundation::Rect selection, int32_t preferredPlacement, int64_t instanceStartDate, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ShowRemoveAppointmentAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&selection), *reinterpret_cast(&preferredPlacement), *reinterpret_cast(&instanceStartDate))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowTimeFrameAsync(int64_t timeToShow, int64_t duration, void** asyncAction) noexcept final try { clear_abi(asyncAction); typename D::abi_guard guard(this->shim()); *asyncAction = detach_from(this->shim().ShowTimeFrameAsync(*reinterpret_cast(&timeToShow), *reinterpret_cast(&duration))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ShowAppointmentDetailsAsync(void* appointmentId, void** asyncAction) noexcept final try { clear_abi(asyncAction); typename D::abi_guard guard(this->shim()); *asyncAction = detach_from(this->shim().ShowAppointmentDetailsAsync(*reinterpret_cast(&appointmentId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowAppointmentDetailsWithDateAsync(void* appointmentId, int64_t instanceStartDate, void** asyncAction) noexcept final try { clear_abi(asyncAction); typename D::abi_guard guard(this->shim()); *asyncAction = detach_from(this->shim().ShowAppointmentDetailsAsync(*reinterpret_cast(&appointmentId), *reinterpret_cast(&instanceStartDate))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowEditNewAppointmentAsync(void* appointment, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ShowEditNewAppointmentAsync(*reinterpret_cast(&appointment))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestStoreAsync(int32_t options, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RequestStoreAsync(*reinterpret_cast(&options))); 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 template struct produce : produce_base { 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_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(); } }; #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 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 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 get_Duration(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Duration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Reminder(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Reminder()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BusyStatus(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BusyStatus()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Sensitivity(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Sensitivity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OriginalStartTime(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OriginalStartTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsResponseRequested(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsResponseRequested()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AllowNewTimeProposal(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllowNewTimeProposal()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AllDay(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllDay()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Details(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Details()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OnlineMeetingLink(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OnlineMeetingLink()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ReplyTime(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ReplyTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Organizer(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Organizer()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UserResponse(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UserResponse()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HasInvitees(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasInvitees()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsCanceledMeeting(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsCanceledMeeting()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsOrganizedByUser(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsOrganizedByUser()); 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 get_Uri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Uri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Invitees(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Invitees()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DefaultProperties(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().DefaultProperties()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ChangeNumber(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ChangeNumber()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RemoteChangeNumber(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RemoteChangeNumber()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DetailsKind(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DetailsKind()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Unit(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Unit()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Unit(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Unit(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Occurrences(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Occurrences()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Occurrences(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Occurrences(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Until(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Until()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Until(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Until(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Interval(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Interval()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Interval(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Interval(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DaysOfWeek(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DaysOfWeek()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DaysOfWeek(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DaysOfWeek(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WeekOfMonth(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WeekOfMonth()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_WeekOfMonth(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().WeekOfMonth(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Month(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Month()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Month(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Month(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Day(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Day()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Day(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Day(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RecurrenceType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RecurrenceType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TimeZone(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TimeZone()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TimeZone(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TimeZone(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CalendarIdentifier(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CalendarIdentifier()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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 CreateAppointmentCalendarAsync(void* name, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().CreateAppointmentCalendarAsync(*reinterpret_cast(&name))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAppointmentCalendarAsync(void* calendarId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetAppointmentCalendarAsync(*reinterpret_cast(&calendarId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAppointmentAsync(void* localId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetAppointmentAsync(*reinterpret_cast(&localId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAppointmentInstanceAsync(void* localId, int64_t instanceStartTime, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetAppointmentInstanceAsync(*reinterpret_cast(&localId), *reinterpret_cast(&instanceStartTime))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindAppointmentCalendarsAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>>(this->shim().FindAppointmentCalendarsAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindAppointmentCalendarsAsyncWithOptions(uint32_t options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>>(this->shim().FindAppointmentCalendarsAsync(*reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindAppointmentsAsync(int64_t rangeStart, int64_t rangeLength, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>>(this->shim().FindAppointmentsAsync(*reinterpret_cast(&rangeStart), *reinterpret_cast(&rangeLength))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindAppointmentsAsyncWithOptions(int64_t rangeStart, int64_t rangeLength, void* options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>>(this->shim().FindAppointmentsAsync(*reinterpret_cast(&rangeStart), *reinterpret_cast(&rangeLength), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindConflictAsync(void* appointment, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().FindConflictAsync(*reinterpret_cast(&appointment))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindConflictAsyncWithInstanceStart(void* appointment, int64_t instanceStartTime, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().FindConflictAsync(*reinterpret_cast(&appointment), *reinterpret_cast(&instanceStartTime))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MoveAppointmentAsync(void* appointment, void* destinationCalendar, void** asyncAction) noexcept final try { clear_abi(asyncAction); typename D::abi_guard guard(this->shim()); *asyncAction = detach_from(this->shim().MoveAppointmentAsync(*reinterpret_cast(&appointment), *reinterpret_cast(&destinationCalendar))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowAddAppointmentAsync(void* appointment, winrt::Windows::Foundation::Rect selection, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ShowAddAppointmentAsync(*reinterpret_cast(&appointment), *reinterpret_cast(&selection))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowReplaceAppointmentAsync(void* localId, void* appointment, winrt::Windows::Foundation::Rect selection, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ShowReplaceAppointmentAsync(*reinterpret_cast(&localId), *reinterpret_cast(&appointment), *reinterpret_cast(&selection))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowReplaceAppointmentWithPlacementAndDateAsync(void* localId, void* appointment, winrt::Windows::Foundation::Rect selection, int32_t preferredPlacement, int64_t instanceStartDate, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ShowReplaceAppointmentAsync(*reinterpret_cast(&localId), *reinterpret_cast(&appointment), *reinterpret_cast(&selection), *reinterpret_cast(&preferredPlacement), *reinterpret_cast(&instanceStartDate))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowRemoveAppointmentAsync(void* localId, winrt::Windows::Foundation::Rect selection, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ShowRemoveAppointmentAsync(*reinterpret_cast(&localId), *reinterpret_cast(&selection))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowRemoveAppointmentWithPlacementAndDateAsync(void* localId, winrt::Windows::Foundation::Rect selection, int32_t preferredPlacement, int64_t instanceStartDate, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ShowRemoveAppointmentAsync(*reinterpret_cast(&localId), *reinterpret_cast(&selection), *reinterpret_cast(&preferredPlacement), *reinterpret_cast(&instanceStartDate))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowAppointmentDetailsAsync(void* localId, void** asyncAction) noexcept final try { clear_abi(asyncAction); typename D::abi_guard guard(this->shim()); *asyncAction = detach_from(this->shim().ShowAppointmentDetailsAsync(*reinterpret_cast(&localId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowAppointmentDetailsWithDateAsync(void* localId, int64_t instanceStartDate, void** asyncAction) noexcept final try { clear_abi(asyncAction); typename D::abi_guard guard(this->shim()); *asyncAction = detach_from(this->shim().ShowAppointmentDetailsAsync(*reinterpret_cast(&localId), *reinterpret_cast(&instanceStartDate))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowEditNewAppointmentAsync(void* appointment, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ShowEditNewAppointmentAsync(*reinterpret_cast(&appointment))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindLocalIdsFromRoamingIdAsync(void* roamingId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>>(this->shim().FindLocalIdsFromRoamingIdAsync(*reinterpret_cast(&roamingId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_StoreChanged(void* pHandler, winrt::event_token* pToken) noexcept final try { zero_abi(pToken); typename D::abi_guard guard(this->shim()); *pToken = detach_from(this->shim().StoreChanged(*reinterpret_cast const*>(&pHandler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_StoreChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().StoreChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall CreateAppointmentCalendarInAccountAsync(void* name, void* userDataAccountId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().CreateAppointmentCalendarAsync(*reinterpret_cast(&name), *reinterpret_cast(&userDataAccountId))); 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_Appointment(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Appointment()); return 0; } catch (...) { return to_hresult(); } 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(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AppointmentCalendar(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppointmentCalendar()); 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(); } 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* lastChangeToAccept) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AcceptChangesThrough(*reinterpret_cast(&lastChangeToAccept)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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 Enable() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Enable(); 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 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(); } }; #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 { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CalendarIds(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().CalendarIds()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FetchProperties(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().FetchProperties()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IncludeHidden(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IncludeHidden()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IncludeHidden(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IncludeHidden(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MaxCount(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MaxCount(value); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::ApplicationModel::Appointments { constexpr auto operator|(AppointmentDaysOfWeek const left, AppointmentDaysOfWeek const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(AppointmentDaysOfWeek& left, AppointmentDaysOfWeek const right) noexcept { left = left | right; return left; } constexpr auto operator&(AppointmentDaysOfWeek const left, AppointmentDaysOfWeek const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(AppointmentDaysOfWeek& left, AppointmentDaysOfWeek const right) noexcept { left = left & right; return left; } constexpr auto operator~(AppointmentDaysOfWeek const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(AppointmentDaysOfWeek const left, AppointmentDaysOfWeek const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(AppointmentDaysOfWeek& left, AppointmentDaysOfWeek const right) noexcept { left = left ^ right; return left; } constexpr auto operator|(FindAppointmentCalendarsOptions const left, FindAppointmentCalendarsOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(FindAppointmentCalendarsOptions& left, FindAppointmentCalendarsOptions const right) noexcept { left = left | right; return left; } constexpr auto operator&(FindAppointmentCalendarsOptions const left, FindAppointmentCalendarsOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(FindAppointmentCalendarsOptions& left, FindAppointmentCalendarsOptions const right) noexcept { left = left & right; return left; } constexpr auto operator~(FindAppointmentCalendarsOptions const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(FindAppointmentCalendarsOptions const left, FindAppointmentCalendarsOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(FindAppointmentCalendarsOptions& left, FindAppointmentCalendarsOptions const right) noexcept { left = left ^ right; return left; } inline Appointment::Appointment() : Appointment(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline AppointmentInvitee::AppointmentInvitee() : AppointmentInvitee(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto AppointmentManager::ShowAddAppointmentAsync(winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment, winrt::Windows::Foundation::Rect const& selection) { return impl::call_factory([&](IAppointmentManagerStatics const& f) { return f.ShowAddAppointmentAsync(appointment, selection); }); } inline auto AppointmentManager::ShowAddAppointmentAsync(winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment, winrt::Windows::Foundation::Rect const& selection, winrt::Windows::UI::Popups::Placement const& preferredPlacement) { return impl::call_factory([&](IAppointmentManagerStatics const& f) { return f.ShowAddAppointmentAsync(appointment, selection, preferredPlacement); }); } inline auto AppointmentManager::ShowReplaceAppointmentAsync(param::hstring const& appointmentId, winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment, winrt::Windows::Foundation::Rect const& selection) { return impl::call_factory([&](IAppointmentManagerStatics const& f) { return f.ShowReplaceAppointmentAsync(appointmentId, appointment, selection); }); } inline auto AppointmentManager::ShowReplaceAppointmentAsync(param::hstring const& appointmentId, winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment, winrt::Windows::Foundation::Rect const& selection, winrt::Windows::UI::Popups::Placement const& preferredPlacement) { return impl::call_factory([&](IAppointmentManagerStatics const& f) { return f.ShowReplaceAppointmentAsync(appointmentId, appointment, selection, preferredPlacement); }); } inline auto AppointmentManager::ShowReplaceAppointmentAsync(param::hstring const& appointmentId, winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment, winrt::Windows::Foundation::Rect const& selection, winrt::Windows::UI::Popups::Placement const& preferredPlacement, winrt::Windows::Foundation::DateTime const& instanceStartDate) { return impl::call_factory([&](IAppointmentManagerStatics const& f) { return f.ShowReplaceAppointmentAsync(appointmentId, appointment, selection, preferredPlacement, instanceStartDate); }); } inline auto AppointmentManager::ShowRemoveAppointmentAsync(param::hstring const& appointmentId, winrt::Windows::Foundation::Rect const& selection) { return impl::call_factory([&](IAppointmentManagerStatics const& f) { return f.ShowRemoveAppointmentAsync(appointmentId, selection); }); } inline auto AppointmentManager::ShowRemoveAppointmentAsync(param::hstring const& appointmentId, winrt::Windows::Foundation::Rect const& selection, winrt::Windows::UI::Popups::Placement const& preferredPlacement) { return impl::call_factory([&](IAppointmentManagerStatics const& f) { return f.ShowRemoveAppointmentAsync(appointmentId, selection, preferredPlacement); }); } inline auto AppointmentManager::ShowRemoveAppointmentAsync(param::hstring const& appointmentId, winrt::Windows::Foundation::Rect const& selection, winrt::Windows::UI::Popups::Placement const& preferredPlacement, winrt::Windows::Foundation::DateTime const& instanceStartDate) { return impl::call_factory([&](IAppointmentManagerStatics const& f) { return f.ShowRemoveAppointmentAsync(appointmentId, selection, preferredPlacement, instanceStartDate); }); } inline auto AppointmentManager::ShowTimeFrameAsync(winrt::Windows::Foundation::DateTime const& timeToShow, winrt::Windows::Foundation::TimeSpan const& duration) { return impl::call_factory([&](IAppointmentManagerStatics const& f) { return f.ShowTimeFrameAsync(timeToShow, duration); }); } inline auto AppointmentManager::ShowAppointmentDetailsAsync(param::hstring const& appointmentId) { return impl::call_factory([&](IAppointmentManagerStatics2 const& f) { return f.ShowAppointmentDetailsAsync(appointmentId); }); } inline auto AppointmentManager::ShowAppointmentDetailsAsync(param::hstring const& appointmentId, winrt::Windows::Foundation::DateTime const& instanceStartDate) { return impl::call_factory([&](IAppointmentManagerStatics2 const& f) { return f.ShowAppointmentDetailsAsync(appointmentId, instanceStartDate); }); } inline auto AppointmentManager::ShowEditNewAppointmentAsync(winrt::Windows::ApplicationModel::Appointments::Appointment const& appointment) { return impl::call_factory([&](IAppointmentManagerStatics2 const& f) { return f.ShowEditNewAppointmentAsync(appointment); }); } inline auto AppointmentManager::RequestStoreAsync(winrt::Windows::ApplicationModel::Appointments::AppointmentStoreAccessType const& options) { return impl::call_factory([&](IAppointmentManagerStatics2 const& f) { return f.RequestStoreAsync(options); }); } inline auto AppointmentManager::GetForUser(winrt::Windows::System::User const& user) { return impl::call_factory([&](IAppointmentManagerStatics3 const& f) { return f.GetForUser(user); }); } inline AppointmentOrganizer::AppointmentOrganizer() : AppointmentOrganizer(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto AppointmentProperties::Subject() { return impl::call_factory_cast([](IAppointmentPropertiesStatics const& f) { return f.Subject(); }); } inline auto AppointmentProperties::Location() { return impl::call_factory_cast([](IAppointmentPropertiesStatics const& f) { return f.Location(); }); } inline auto AppointmentProperties::StartTime() { return impl::call_factory_cast([](IAppointmentPropertiesStatics const& f) { return f.StartTime(); }); } inline auto AppointmentProperties::Duration() { return impl::call_factory_cast([](IAppointmentPropertiesStatics const& f) { return f.Duration(); }); } inline auto AppointmentProperties::Reminder() { return impl::call_factory_cast([](IAppointmentPropertiesStatics const& f) { return f.Reminder(); }); } inline auto AppointmentProperties::BusyStatus() { return impl::call_factory_cast([](IAppointmentPropertiesStatics const& f) { return f.BusyStatus(); }); } inline auto AppointmentProperties::Sensitivity() { return impl::call_factory_cast([](IAppointmentPropertiesStatics const& f) { return f.Sensitivity(); }); } inline auto AppointmentProperties::OriginalStartTime() { return impl::call_factory_cast([](IAppointmentPropertiesStatics const& f) { return f.OriginalStartTime(); }); } inline auto AppointmentProperties::IsResponseRequested() { return impl::call_factory_cast([](IAppointmentPropertiesStatics const& f) { return f.IsResponseRequested(); }); } inline auto AppointmentProperties::AllowNewTimeProposal() { return impl::call_factory_cast([](IAppointmentPropertiesStatics const& f) { return f.AllowNewTimeProposal(); }); } inline auto AppointmentProperties::AllDay() { return impl::call_factory_cast([](IAppointmentPropertiesStatics const& f) { return f.AllDay(); }); } inline auto AppointmentProperties::Details() { return impl::call_factory_cast([](IAppointmentPropertiesStatics const& f) { return f.Details(); }); } inline auto AppointmentProperties::OnlineMeetingLink() { return impl::call_factory_cast([](IAppointmentPropertiesStatics const& f) { return f.OnlineMeetingLink(); }); } inline auto AppointmentProperties::ReplyTime() { return impl::call_factory_cast([](IAppointmentPropertiesStatics const& f) { return f.ReplyTime(); }); } inline auto AppointmentProperties::Organizer() { return impl::call_factory_cast([](IAppointmentPropertiesStatics const& f) { return f.Organizer(); }); } inline auto AppointmentProperties::UserResponse() { return impl::call_factory_cast([](IAppointmentPropertiesStatics const& f) { return f.UserResponse(); }); } inline auto AppointmentProperties::HasInvitees() { return impl::call_factory_cast([](IAppointmentPropertiesStatics const& f) { return f.HasInvitees(); }); } inline auto AppointmentProperties::IsCanceledMeeting() { return impl::call_factory_cast([](IAppointmentPropertiesStatics const& f) { return f.IsCanceledMeeting(); }); } inline auto AppointmentProperties::IsOrganizedByUser() { return impl::call_factory_cast([](IAppointmentPropertiesStatics const& f) { return f.IsOrganizedByUser(); }); } inline auto AppointmentProperties::Recurrence() { return impl::call_factory_cast([](IAppointmentPropertiesStatics const& f) { return f.Recurrence(); }); } inline auto AppointmentProperties::Uri() { return impl::call_factory_cast([](IAppointmentPropertiesStatics const& f) { return f.Uri(); }); } inline auto AppointmentProperties::Invitees() { return impl::call_factory_cast([](IAppointmentPropertiesStatics const& f) { return f.Invitees(); }); } inline auto AppointmentProperties::DefaultProperties() { return impl::call_factory_cast(*)(IAppointmentPropertiesStatics const&), AppointmentProperties, IAppointmentPropertiesStatics>([](IAppointmentPropertiesStatics const& f) { return f.DefaultProperties(); }); } inline auto AppointmentProperties::ChangeNumber() { return impl::call_factory_cast([](IAppointmentPropertiesStatics2 const& f) { return f.ChangeNumber(); }); } inline auto AppointmentProperties::RemoteChangeNumber() { return impl::call_factory_cast([](IAppointmentPropertiesStatics2 const& f) { return f.RemoteChangeNumber(); }); } inline auto AppointmentProperties::DetailsKind() { return impl::call_factory_cast([](IAppointmentPropertiesStatics2 const& f) { return f.DetailsKind(); }); } inline AppointmentRecurrence::AppointmentRecurrence() : AppointmentRecurrence(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline FindAppointmentsOptions::FindAppointmentsOptions() : FindAppointmentsOptions(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 {}; #endif #ifdef __cpp_lib_format #endif } #endif