// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_ApplicationModel_DataTransfer_DragDrop_Core_H #define WINRT_Windows_ApplicationModel_DataTransfer_DragDrop_Core_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.DataTransfer.DragDrop.h" #include "winrt/impl/Windows.ApplicationModel.DataTransfer.2.h" #include "winrt/impl/Windows.ApplicationModel.DataTransfer.DragDrop.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Graphics.Imaging.2.h" #include "winrt/impl/Windows.ApplicationModel.DataTransfer.DragDrop.Core.2.h" namespace winrt::impl { template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragDropManager::TargetRequested(winrt::Windows::Foundation::TypedEventHandler const& value) const { winrt::event_token returnValue{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragDropManager)->add_TargetRequested(*(void**)(&value), put_abi(returnValue))); return returnValue; } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragDropManager::TargetRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& value) const { return impl::make_event_revoker(this, TargetRequested(value)); } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragDropManager::TargetRequested(winrt::event_token const& value) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragDropManager)->remove_TargetRequested(impl::bind_in(value)); } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragDropManager::AreConcurrentOperationsEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragDropManager)->get_AreConcurrentOperationsEnabled(&value)); return value; } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragDropManager::AreConcurrentOperationsEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragDropManager)->put_AreConcurrentOperationsEnabled(value)); } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragDropManagerStatics::GetForCurrentView() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragDropManagerStatics)->GetForCurrentView(&value)); return winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragDropManager{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragInfo::Data() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragInfo)->get_Data(&value)); return winrt::Windows::ApplicationModel::DataTransfer::DataPackageView{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragInfo::Modifiers() const { winrt::Windows::ApplicationModel::DataTransfer::DragDrop::DragDropModifiers value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragInfo)->get_Modifiers(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragInfo::Position() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragInfo)->get_Position(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragInfo2::AllowedOperations() const { winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragInfo2)->get_AllowedOperations(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragOperation::Data() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragOperation)->get_Data(&value)); return winrt::Windows::ApplicationModel::DataTransfer::DataPackage{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragOperation::SetPointerId(uint32_t pointerId) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragOperation)->SetPointerId(pointerId)); } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragOperation::SetDragUIContentFromSoftwareBitmap(winrt::Windows::Graphics::Imaging::SoftwareBitmap const& softwareBitmap) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragOperation)->SetDragUIContentFromSoftwareBitmap(*(void**)(&softwareBitmap))); } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragOperation::SetDragUIContentFromSoftwareBitmap(winrt::Windows::Graphics::Imaging::SoftwareBitmap const& softwareBitmap, winrt::Windows::Foundation::Point const& anchorPoint) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragOperation)->SetDragUIContentFromSoftwareBitmapWithAnchorPoint(*(void**)(&softwareBitmap), impl::bind_in(anchorPoint))); } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragOperation::DragUIContentMode() const { winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIContentMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragOperation)->get_DragUIContentMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragOperation::DragUIContentMode(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIContentMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragOperation)->put_DragUIContentMode(static_cast(value))); } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragOperation::StartAsync() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragOperation)->StartAsync(&value)); return winrt::Windows::Foundation::IAsyncOperation{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragOperation2::AllowedOperations() const { winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragOperation2)->get_AllowedOperations(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragOperation2::AllowedOperations(winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragOperation2)->put_AllowedOperations(static_cast(value))); } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragUIOverride::SetContentFromSoftwareBitmap(winrt::Windows::Graphics::Imaging::SoftwareBitmap const& softwareBitmap) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragUIOverride)->SetContentFromSoftwareBitmap(*(void**)(&softwareBitmap))); } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragUIOverride::SetContentFromSoftwareBitmap(winrt::Windows::Graphics::Imaging::SoftwareBitmap const& softwareBitmap, winrt::Windows::Foundation::Point const& anchorPoint) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragUIOverride)->SetContentFromSoftwareBitmapWithAnchorPoint(*(void**)(&softwareBitmap), impl::bind_in(anchorPoint))); } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragUIOverride::IsContentVisible() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragUIOverride)->get_IsContentVisible(&value)); return value; } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragUIOverride::IsContentVisible(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragUIOverride)->put_IsContentVisible(value)); } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragUIOverride::Caption() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragUIOverride)->get_Caption(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragUIOverride::Caption(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragUIOverride)->put_Caption(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragUIOverride::IsCaptionVisible() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragUIOverride)->get_IsCaptionVisible(&value)); return value; } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragUIOverride::IsCaptionVisible(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragUIOverride)->put_IsCaptionVisible(value)); } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragUIOverride::IsGlyphVisible() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragUIOverride)->get_IsGlyphVisible(&value)); return value; } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragUIOverride::IsGlyphVisible(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragUIOverride)->put_IsGlyphVisible(value)); } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDragUIOverride::Clear() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragUIOverride)->Clear()); } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDropOperationTarget::EnterAsync(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragInfo const& dragInfo, winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIOverride const& dragUIOverride) const { void* returnValue{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDropOperationTarget)->EnterAsync(*(void**)(&dragInfo), *(void**)(&dragUIOverride), &returnValue)); return winrt::Windows::Foundation::IAsyncOperation{ returnValue, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDropOperationTarget::OverAsync(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragInfo const& dragInfo, winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIOverride const& dragUIOverride) const { void* returnValue{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDropOperationTarget)->OverAsync(*(void**)(&dragInfo), *(void**)(&dragUIOverride), &returnValue)); return winrt::Windows::Foundation::IAsyncOperation{ returnValue, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDropOperationTarget::LeaveAsync(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragInfo const& dragInfo) const { void* returnValue{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDropOperationTarget)->LeaveAsync(*(void**)(&dragInfo), &returnValue)); return winrt::Windows::Foundation::IAsyncAction{ returnValue, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDropOperationTarget::DropAsync(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragInfo const& dragInfo) const { void* returnValue{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDropOperationTarget)->DropAsync(*(void**)(&dragInfo), &returnValue)); return winrt::Windows::Foundation::IAsyncOperation{ returnValue, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_DataTransfer_DragDrop_Core_ICoreDropOperationTargetRequestedEventArgs::SetTarget(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDropOperationTarget const& target) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDropOperationTargetRequestedEventArgs)->SetTarget(*(void**)(&target))); } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_TargetRequested(void* value, winrt::event_token* returnValue) noexcept final try { zero_abi(returnValue); typename D::abi_guard guard(this->shim()); *returnValue = detach_from(this->shim().TargetRequested(*reinterpret_cast const*>(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_TargetRequested(winrt::event_token value) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().TargetRequested(*reinterpret_cast(&value)); return 0; } int32_t __stdcall get_AreConcurrentOperationsEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AreConcurrentOperationsEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AreConcurrentOperationsEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AreConcurrentOperationsEnabled(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForCurrentView(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetForCurrentView()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Data(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Data()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Modifiers(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Modifiers()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Position(winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Position()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AllowedOperations(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllowedOperations()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Data(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Data()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetPointerId(uint32_t pointerId) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetPointerId(pointerId); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetDragUIContentFromSoftwareBitmap(void* softwareBitmap) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetDragUIContentFromSoftwareBitmap(*reinterpret_cast(&softwareBitmap)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetDragUIContentFromSoftwareBitmapWithAnchorPoint(void* softwareBitmap, winrt::Windows::Foundation::Point anchorPoint) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetDragUIContentFromSoftwareBitmap(*reinterpret_cast(&softwareBitmap), *reinterpret_cast(&anchorPoint)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DragUIContentMode(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DragUIContentMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DragUIContentMode(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DragUIContentMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartAsync(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().StartAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AllowedOperations(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllowedOperations()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AllowedOperations(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AllowedOperations(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetContentFromSoftwareBitmap(void* softwareBitmap) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetContentFromSoftwareBitmap(*reinterpret_cast(&softwareBitmap)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetContentFromSoftwareBitmapWithAnchorPoint(void* softwareBitmap, winrt::Windows::Foundation::Point anchorPoint) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetContentFromSoftwareBitmap(*reinterpret_cast(&softwareBitmap), *reinterpret_cast(&anchorPoint)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsContentVisible(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsContentVisible()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsContentVisible(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsContentVisible(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Caption(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Caption()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Caption(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Caption(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsCaptionVisible(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsCaptionVisible()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsCaptionVisible(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsCaptionVisible(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsGlyphVisible(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsGlyphVisible()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsGlyphVisible(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsGlyphVisible(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Clear() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Clear(); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall EnterAsync(void* dragInfo, void* dragUIOverride, void** returnValue) noexcept final try { clear_abi(returnValue); typename D::abi_guard guard(this->shim()); *returnValue = detach_from>(this->shim().EnterAsync(*reinterpret_cast(&dragInfo), *reinterpret_cast(&dragUIOverride))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall OverAsync(void* dragInfo, void* dragUIOverride, void** returnValue) noexcept final try { clear_abi(returnValue); typename D::abi_guard guard(this->shim()); *returnValue = detach_from>(this->shim().OverAsync(*reinterpret_cast(&dragInfo), *reinterpret_cast(&dragUIOverride))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LeaveAsync(void* dragInfo, void** returnValue) noexcept final try { clear_abi(returnValue); typename D::abi_guard guard(this->shim()); *returnValue = detach_from(this->shim().LeaveAsync(*reinterpret_cast(&dragInfo))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DropAsync(void* dragInfo, void** returnValue) noexcept final try { clear_abi(returnValue); typename D::abi_guard guard(this->shim()); *returnValue = detach_from>(this->shim().DropAsync(*reinterpret_cast(&dragInfo))); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetTarget(void* target) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetTarget(*reinterpret_cast(&target)); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core { constexpr auto operator|(CoreDragUIContentMode const left, CoreDragUIContentMode const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(CoreDragUIContentMode& left, CoreDragUIContentMode const right) noexcept { left = left | right; return left; } constexpr auto operator&(CoreDragUIContentMode const left, CoreDragUIContentMode const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(CoreDragUIContentMode& left, CoreDragUIContentMode const right) noexcept { left = left & right; return left; } constexpr auto operator~(CoreDragUIContentMode const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(CoreDragUIContentMode const left, CoreDragUIContentMode const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(CoreDragUIContentMode& left, CoreDragUIContentMode const right) noexcept { left = left ^ right; return left; } inline auto CoreDragDropManager::GetForCurrentView() { return impl::call_factory_cast([](ICoreDragDropManagerStatics const& f) { return f.GetForCurrentView(); }); } inline CoreDragOperation::CoreDragOperation() : CoreDragOperation(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif