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