// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_ApplicationModel_Appointments_AppointmentsProvider_H #define WINRT_Windows_ApplicationModel_Appointments_AppointmentsProvider_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #include "winrt/Windows.ApplicationModel.Appointments.h" #include "winrt/impl/Windows.ApplicationModel.Appointments.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.ApplicationModel.Appointments.AppointmentsProvider.2.h" namespace winrt::impl { template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IAddAppointmentOperation::AppointmentInformation() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IAddAppointmentOperation)->get_AppointmentInformation(&value)); return winrt::Windows::ApplicationModel::Appointments::Appointment{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IAddAppointmentOperation::SourcePackageFamilyName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IAddAppointmentOperation)->get_SourcePackageFamilyName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IAddAppointmentOperation::ReportCompleted(param::hstring const& itemId) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IAddAppointmentOperation)->ReportCompleted(*(void**)(&itemId))); } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IAddAppointmentOperation::ReportCanceled() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IAddAppointmentOperation)->ReportCanceled()); } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IAddAppointmentOperation::ReportError(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IAddAppointmentOperation)->ReportError(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IAddAppointmentOperation::DismissUI() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IAddAppointmentOperation)->DismissUI()); } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IAppointmentsProviderLaunchActionVerbsStatics::AddAppointment() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IAppointmentsProviderLaunchActionVerbsStatics)->get_AddAppointment(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IAppointmentsProviderLaunchActionVerbsStatics::ReplaceAppointment() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IAppointmentsProviderLaunchActionVerbsStatics)->get_ReplaceAppointment(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IAppointmentsProviderLaunchActionVerbsStatics::RemoveAppointment() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IAppointmentsProviderLaunchActionVerbsStatics)->get_RemoveAppointment(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IAppointmentsProviderLaunchActionVerbsStatics::ShowTimeFrame() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IAppointmentsProviderLaunchActionVerbsStatics)->get_ShowTimeFrame(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IAppointmentsProviderLaunchActionVerbsStatics2::ShowAppointmentDetails() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IAppointmentsProviderLaunchActionVerbsStatics2)->get_ShowAppointmentDetails(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IRemoveAppointmentOperation::AppointmentId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IRemoveAppointmentOperation)->get_AppointmentId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IRemoveAppointmentOperation::InstanceStartDate() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IRemoveAppointmentOperation)->get_InstanceStartDate(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IRemoveAppointmentOperation::SourcePackageFamilyName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IRemoveAppointmentOperation)->get_SourcePackageFamilyName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IRemoveAppointmentOperation::ReportCompleted() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IRemoveAppointmentOperation)->ReportCompleted()); } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IRemoveAppointmentOperation::ReportCanceled() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IRemoveAppointmentOperation)->ReportCanceled()); } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IRemoveAppointmentOperation::ReportError(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IRemoveAppointmentOperation)->ReportError(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IRemoveAppointmentOperation::DismissUI() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IRemoveAppointmentOperation)->DismissUI()); } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IReplaceAppointmentOperation::AppointmentId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IReplaceAppointmentOperation)->get_AppointmentId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IReplaceAppointmentOperation::AppointmentInformation() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IReplaceAppointmentOperation)->get_AppointmentInformation(&value)); return winrt::Windows::ApplicationModel::Appointments::Appointment{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IReplaceAppointmentOperation::InstanceStartDate() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IReplaceAppointmentOperation)->get_InstanceStartDate(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IReplaceAppointmentOperation::SourcePackageFamilyName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IReplaceAppointmentOperation)->get_SourcePackageFamilyName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IReplaceAppointmentOperation::ReportCompleted(param::hstring const& itemId) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IReplaceAppointmentOperation)->ReportCompleted(*(void**)(&itemId))); } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IReplaceAppointmentOperation::ReportCanceled() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IReplaceAppointmentOperation)->ReportCanceled()); } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IReplaceAppointmentOperation::ReportError(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IReplaceAppointmentOperation)->ReportError(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Appointments_AppointmentsProvider_IReplaceAppointmentOperation::DismissUI() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::IReplaceAppointmentOperation)->DismissUI()); } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AppointmentInformation(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppointmentInformation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SourcePackageFamilyName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SourcePackageFamilyName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ReportCompleted(void* itemId) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ReportCompleted(*reinterpret_cast(&itemId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ReportCanceled() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ReportCanceled(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ReportError(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ReportError(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DismissUI() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DismissUI(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AddAppointment(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AddAppointment()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ReplaceAppointment(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ReplaceAppointment()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RemoveAppointment(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RemoveAppointment()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ShowTimeFrame(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShowTimeFrame()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ShowAppointmentDetails(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShowAppointmentDetails()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AppointmentId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppointmentId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InstanceStartDate(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().InstanceStartDate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SourcePackageFamilyName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SourcePackageFamilyName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ReportCompleted() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ReportCompleted(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ReportCanceled() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ReportCanceled(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ReportError(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ReportError(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DismissUI() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DismissUI(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AppointmentId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppointmentId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AppointmentInformation(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppointmentInformation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InstanceStartDate(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().InstanceStartDate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SourcePackageFamilyName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SourcePackageFamilyName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ReportCompleted(void* itemId) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ReportCompleted(*reinterpret_cast(&itemId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ReportCanceled() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ReportCanceled(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ReportError(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ReportError(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DismissUI() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DismissUI(); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider { inline auto AppointmentsProviderLaunchActionVerbs::AddAppointment() { return impl::call_factory_cast([](IAppointmentsProviderLaunchActionVerbsStatics const& f) { return f.AddAppointment(); }); } inline auto AppointmentsProviderLaunchActionVerbs::ReplaceAppointment() { return impl::call_factory_cast([](IAppointmentsProviderLaunchActionVerbsStatics const& f) { return f.ReplaceAppointment(); }); } inline auto AppointmentsProviderLaunchActionVerbs::RemoveAppointment() { return impl::call_factory_cast([](IAppointmentsProviderLaunchActionVerbsStatics const& f) { return f.RemoveAppointment(); }); } inline auto AppointmentsProviderLaunchActionVerbs::ShowTimeFrame() { return impl::call_factory_cast([](IAppointmentsProviderLaunchActionVerbsStatics const& f) { return f.ShowTimeFrame(); }); } inline auto AppointmentsProviderLaunchActionVerbs::ShowAppointmentDetails() { return impl::call_factory_cast([](IAppointmentsProviderLaunchActionVerbsStatics2 const& f) { return f.ShowAppointmentDetails(); }); } } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif