// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_UI_Xaml_Automation_Provider_H #define WINRT_Windows_UI_Xaml_Automation_Provider_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.UI.Xaml.Automation.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.UI.2.h" #include "winrt/impl/Windows.UI.Xaml.2.h" #include "winrt/impl/Windows.UI.Xaml.Automation.2.h" #include "winrt/impl/Windows.UI.Xaml.Automation.Peers.2.h" #include "winrt/impl/Windows.UI.Xaml.Automation.Text.2.h" #include "winrt/impl/Windows.UI.Xaml.Automation.Provider.2.h" namespace winrt::impl { template auto consume_Windows_UI_Xaml_Automation_Provider_IAnnotationProvider::AnnotationTypeId() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IAnnotationProvider)->get_AnnotationTypeId(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IAnnotationProvider::AnnotationTypeName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IAnnotationProvider)->get_AnnotationTypeName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_IAnnotationProvider::Author() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IAnnotationProvider)->get_Author(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_IAnnotationProvider::DateTime() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IAnnotationProvider)->get_DateTime(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_IAnnotationProvider::Target() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IAnnotationProvider)->get_Target(&value)); return winrt::Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ICustomNavigationProvider::NavigateCustom(winrt::Windows::UI::Xaml::Automation::Peers::AutomationNavigationDirection const& direction) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ICustomNavigationProvider)->NavigateCustom(static_cast(direction), &result)); return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_IDockProvider::DockPosition() const { winrt::Windows::UI::Xaml::Automation::DockPosition value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IDockProvider)->get_DockPosition(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IDockProvider::SetDockPosition(winrt::Windows::UI::Xaml::Automation::DockPosition const& dockPosition) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IDockProvider)->SetDockPosition(static_cast(dockPosition))); } template auto consume_Windows_UI_Xaml_Automation_Provider_IDragProvider::IsGrabbed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IDragProvider)->get_IsGrabbed(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IDragProvider::DropEffect() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IDragProvider)->get_DropEffect(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_IDragProvider::DropEffects() const { uint32_t value_impl_size{}; void** value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IDragProvider)->get_DropEffects(&value_impl_size, &value)); return com_array{ value, value_impl_size, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_IDragProvider::GetGrabbedItems() const { uint32_t result_impl_size{}; void** result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IDragProvider)->GetGrabbedItems(&result_impl_size, &result)); return com_array{ result, result_impl_size, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_IDropTargetProvider::DropEffect() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IDropTargetProvider)->get_DropEffect(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_IDropTargetProvider::DropEffects() const { uint32_t value_impl_size{}; void** value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IDropTargetProvider)->get_DropEffects(&value_impl_size, &value)); return com_array{ value, value_impl_size, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_IExpandCollapseProvider::ExpandCollapseState() const { winrt::Windows::UI::Xaml::Automation::ExpandCollapseState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IExpandCollapseProvider)->get_ExpandCollapseState(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IExpandCollapseProvider::Collapse() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IExpandCollapseProvider)->Collapse()); } template auto consume_Windows_UI_Xaml_Automation_Provider_IExpandCollapseProvider::Expand() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IExpandCollapseProvider)->Expand()); } template auto consume_Windows_UI_Xaml_Automation_Provider_IGridItemProvider::Column() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IGridItemProvider)->get_Column(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IGridItemProvider::ColumnSpan() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IGridItemProvider)->get_ColumnSpan(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IGridItemProvider::ContainingGrid() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IGridItemProvider)->get_ContainingGrid(&value)); return winrt::Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_IGridItemProvider::Row() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IGridItemProvider)->get_Row(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IGridItemProvider::RowSpan() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IGridItemProvider)->get_RowSpan(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IGridProvider::ColumnCount() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IGridProvider)->get_ColumnCount(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IGridProvider::RowCount() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IGridProvider)->get_RowCount(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IGridProvider::GetItem(int32_t row, int32_t column) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IGridProvider)->GetItem(row, column, &result)); return winrt::Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_IInvokeProvider::Invoke() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IInvokeProvider)->Invoke()); } template auto consume_Windows_UI_Xaml_Automation_Provider_IItemContainerProvider::FindItemByProperty(winrt::Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple const& startAfter, winrt::Windows::UI::Xaml::Automation::AutomationProperty const& automationProperty, winrt::Windows::Foundation::IInspectable const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IItemContainerProvider)->FindItemByProperty(*(void**)(&startAfter), *(void**)(&automationProperty), *(void**)(&value), &result)); return winrt::Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_IMultipleViewProvider::CurrentView() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IMultipleViewProvider)->get_CurrentView(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IMultipleViewProvider::GetSupportedViews() const { uint32_t result_impl_size{}; int32_t* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IMultipleViewProvider)->GetSupportedViews(&result_impl_size, &result)); return com_array{ result, result_impl_size, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_IMultipleViewProvider::GetViewName(int32_t viewId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IMultipleViewProvider)->GetViewName(viewId, &result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_IMultipleViewProvider::SetCurrentView(int32_t viewId) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IMultipleViewProvider)->SetCurrentView(viewId)); } template auto consume_Windows_UI_Xaml_Automation_Provider_IObjectModelProvider::GetUnderlyingObjectModel() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IObjectModelProvider)->GetUnderlyingObjectModel(&result)); return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_IRangeValueProvider::IsReadOnly() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IRangeValueProvider)->get_IsReadOnly(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IRangeValueProvider::LargeChange() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IRangeValueProvider)->get_LargeChange(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IRangeValueProvider::Maximum() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IRangeValueProvider)->get_Maximum(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IRangeValueProvider::Minimum() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IRangeValueProvider)->get_Minimum(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IRangeValueProvider::SmallChange() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IRangeValueProvider)->get_SmallChange(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IRangeValueProvider::Value() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IRangeValueProvider)->get_Value(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IRangeValueProvider::SetValue(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IRangeValueProvider)->SetValue(value)); } template auto consume_Windows_UI_Xaml_Automation_Provider_IScrollItemProvider::ScrollIntoView() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IScrollItemProvider)->ScrollIntoView()); } template auto consume_Windows_UI_Xaml_Automation_Provider_IScrollProvider::HorizontallyScrollable() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IScrollProvider)->get_HorizontallyScrollable(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IScrollProvider::HorizontalScrollPercent() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IScrollProvider)->get_HorizontalScrollPercent(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IScrollProvider::HorizontalViewSize() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IScrollProvider)->get_HorizontalViewSize(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IScrollProvider::VerticallyScrollable() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IScrollProvider)->get_VerticallyScrollable(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IScrollProvider::VerticalScrollPercent() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IScrollProvider)->get_VerticalScrollPercent(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IScrollProvider::VerticalViewSize() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IScrollProvider)->get_VerticalViewSize(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IScrollProvider::Scroll(winrt::Windows::UI::Xaml::Automation::ScrollAmount const& horizontalAmount, winrt::Windows::UI::Xaml::Automation::ScrollAmount const& verticalAmount) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IScrollProvider)->Scroll(static_cast(horizontalAmount), static_cast(verticalAmount))); } template auto consume_Windows_UI_Xaml_Automation_Provider_IScrollProvider::SetScrollPercent(double horizontalPercent, double verticalPercent) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IScrollProvider)->SetScrollPercent(horizontalPercent, verticalPercent)); } template auto consume_Windows_UI_Xaml_Automation_Provider_ISelectionItemProvider::IsSelected() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ISelectionItemProvider)->get_IsSelected(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_ISelectionItemProvider::SelectionContainer() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ISelectionItemProvider)->get_SelectionContainer(&value)); return winrt::Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ISelectionItemProvider::AddToSelection() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ISelectionItemProvider)->AddToSelection()); } template auto consume_Windows_UI_Xaml_Automation_Provider_ISelectionItemProvider::RemoveFromSelection() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ISelectionItemProvider)->RemoveFromSelection()); } template auto consume_Windows_UI_Xaml_Automation_Provider_ISelectionItemProvider::Select() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ISelectionItemProvider)->Select()); } template auto consume_Windows_UI_Xaml_Automation_Provider_ISelectionProvider::CanSelectMultiple() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ISelectionProvider)->get_CanSelectMultiple(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_ISelectionProvider::IsSelectionRequired() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ISelectionProvider)->get_IsSelectionRequired(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_ISelectionProvider::GetSelection() const { uint32_t result_impl_size{}; void** result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ISelectionProvider)->GetSelection(&result_impl_size, &result)); return com_array{ result, result_impl_size, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ISpreadsheetItemProvider::Formula() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ISpreadsheetItemProvider)->get_Formula(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ISpreadsheetItemProvider::GetAnnotationObjects() const { uint32_t result_impl_size{}; void** result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ISpreadsheetItemProvider)->GetAnnotationObjects(&result_impl_size, &result)); return com_array{ result, result_impl_size, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ISpreadsheetItemProvider::GetAnnotationTypes() const { uint32_t result_impl_size{}; int32_t* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ISpreadsheetItemProvider)->GetAnnotationTypes(&result_impl_size, &result)); return com_array{ result, result_impl_size, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ISpreadsheetProvider::GetItemByName(param::hstring const& name) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ISpreadsheetProvider)->GetItemByName(*(void**)(&name), &result)); return winrt::Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_IStylesProvider::ExtendedProperties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IStylesProvider)->get_ExtendedProperties(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_IStylesProvider::FillColor() const { winrt::Windows::UI::Color value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IStylesProvider)->get_FillColor(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IStylesProvider::FillPatternColor() const { winrt::Windows::UI::Color value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IStylesProvider)->get_FillPatternColor(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IStylesProvider::FillPatternStyle() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IStylesProvider)->get_FillPatternStyle(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_IStylesProvider::Shape() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IStylesProvider)->get_Shape(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_IStylesProvider::StyleId() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IStylesProvider)->get_StyleId(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IStylesProvider::StyleName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IStylesProvider)->get_StyleName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ISynchronizedInputProvider::Cancel() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ISynchronizedInputProvider)->Cancel()); } template auto consume_Windows_UI_Xaml_Automation_Provider_ISynchronizedInputProvider::StartListening(winrt::Windows::UI::Xaml::Automation::SynchronizedInputType const& inputType) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ISynchronizedInputProvider)->StartListening(static_cast(inputType))); } template auto consume_Windows_UI_Xaml_Automation_Provider_ITableItemProvider::GetColumnHeaderItems() const { uint32_t result_impl_size{}; void** result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITableItemProvider)->GetColumnHeaderItems(&result_impl_size, &result)); return com_array{ result, result_impl_size, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITableItemProvider::GetRowHeaderItems() const { uint32_t result_impl_size{}; void** result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITableItemProvider)->GetRowHeaderItems(&result_impl_size, &result)); return com_array{ result, result_impl_size, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITableProvider::RowOrColumnMajor() const { winrt::Windows::UI::Xaml::Automation::RowOrColumnMajor value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITableProvider)->get_RowOrColumnMajor(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITableProvider::GetColumnHeaders() const { uint32_t result_impl_size{}; void** result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITableProvider)->GetColumnHeaders(&result_impl_size, &result)); return com_array{ result, result_impl_size, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITableProvider::GetRowHeaders() const { uint32_t result_impl_size{}; void** result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITableProvider)->GetRowHeaders(&result_impl_size, &result)); return com_array{ result, result_impl_size, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextChildProvider::TextContainer() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextChildProvider)->get_TextContainer(&value)); return winrt::Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextChildProvider::TextRange() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextChildProvider)->get_TextRange(&value)); return winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextEditProvider::GetActiveComposition() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextEditProvider)->GetActiveComposition(&result)); return winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextEditProvider::GetConversionTarget() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextEditProvider)->GetConversionTarget(&result)); return winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextProvider::DocumentRange() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextProvider)->get_DocumentRange(&value)); return winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextProvider::SupportedTextSelection() const { winrt::Windows::UI::Xaml::Automation::SupportedTextSelection value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextProvider)->get_SupportedTextSelection(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextProvider::GetSelection() const { uint32_t result_impl_size{}; void** result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextProvider)->GetSelection(&result_impl_size, &result)); return com_array{ result, result_impl_size, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextProvider::GetVisibleRanges() const { uint32_t result_impl_size{}; void** result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextProvider)->GetVisibleRanges(&result_impl_size, &result)); return com_array{ result, result_impl_size, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextProvider::RangeFromChild(winrt::Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple const& childElement) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextProvider)->RangeFromChild(*(void**)(&childElement), &result)); return winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextProvider::RangeFromPoint(winrt::Windows::Foundation::Point const& screenLocation) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextProvider)->RangeFromPoint(impl::bind_in(screenLocation), &result)); return winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextProvider2::RangeFromAnnotation(winrt::Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple const& annotationElement) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextProvider2)->RangeFromAnnotation(*(void**)(&annotationElement), &result)); return winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextProvider2::GetCaretRange(bool& isActive) const { void* returnValue{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextProvider2)->GetCaretRange(&isActive, &returnValue)); return winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider{ returnValue, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextRangeProvider::Clone() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider)->Clone(&result)); return winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextRangeProvider::Compare(winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider const& textRangeProvider) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider)->Compare(*(void**)(&textRangeProvider), &result)); return result; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextRangeProvider::CompareEndpoints(winrt::Windows::UI::Xaml::Automation::Text::TextPatternRangeEndpoint const& endpoint, winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider const& textRangeProvider, winrt::Windows::UI::Xaml::Automation::Text::TextPatternRangeEndpoint const& targetEndpoint) const { int32_t result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider)->CompareEndpoints(static_cast(endpoint), *(void**)(&textRangeProvider), static_cast(targetEndpoint), &result)); return result; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextRangeProvider::ExpandToEnclosingUnit(winrt::Windows::UI::Xaml::Automation::Text::TextUnit const& unit) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider)->ExpandToEnclosingUnit(static_cast(unit))); } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextRangeProvider::FindAttribute(int32_t attributeId, winrt::Windows::Foundation::IInspectable const& value, bool backward) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider)->FindAttribute(attributeId, *(void**)(&value), backward, &result)); return winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextRangeProvider::FindText(param::hstring const& text, bool backward, bool ignoreCase) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider)->FindText(*(void**)(&text), backward, ignoreCase, &result)); return winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextRangeProvider::GetAttributeValue(int32_t attributeId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider)->GetAttributeValue(attributeId, &result)); return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextRangeProvider::GetBoundingRectangles(com_array& returnValue) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider)->GetBoundingRectangles(impl::put_size_abi(returnValue), put_abi(returnValue))); } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextRangeProvider::GetEnclosingElement() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider)->GetEnclosingElement(&result)); return winrt::Windows::UI::Xaml::Automation::Provider::IRawElementProviderSimple{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextRangeProvider::GetText(int32_t maxLength) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider)->GetText(maxLength, &result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextRangeProvider::Move(winrt::Windows::UI::Xaml::Automation::Text::TextUnit const& unit, int32_t count) const { int32_t result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider)->Move(static_cast(unit), count, &result)); return result; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextRangeProvider::MoveEndpointByUnit(winrt::Windows::UI::Xaml::Automation::Text::TextPatternRangeEndpoint const& endpoint, winrt::Windows::UI::Xaml::Automation::Text::TextUnit const& unit, int32_t count) const { int32_t result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider)->MoveEndpointByUnit(static_cast(endpoint), static_cast(unit), count, &result)); return result; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextRangeProvider::MoveEndpointByRange(winrt::Windows::UI::Xaml::Automation::Text::TextPatternRangeEndpoint const& endpoint, winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider const& textRangeProvider, winrt::Windows::UI::Xaml::Automation::Text::TextPatternRangeEndpoint const& targetEndpoint) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider)->MoveEndpointByRange(static_cast(endpoint), *(void**)(&textRangeProvider), static_cast(targetEndpoint))); } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextRangeProvider::Select() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider)->Select()); } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextRangeProvider::AddToSelection() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider)->AddToSelection()); } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextRangeProvider::RemoveFromSelection() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider)->RemoveFromSelection()); } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextRangeProvider::ScrollIntoView(bool alignToTop) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider)->ScrollIntoView(alignToTop)); } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextRangeProvider::GetChildren() const { uint32_t result_impl_size{}; void** result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider)->GetChildren(&result_impl_size, &result)); return com_array{ result, result_impl_size, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITextRangeProvider2::ShowContextMenu() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITextRangeProvider2)->ShowContextMenu()); } template auto consume_Windows_UI_Xaml_Automation_Provider_IToggleProvider::ToggleState() const { winrt::Windows::UI::Xaml::Automation::ToggleState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IToggleProvider)->get_ToggleState(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IToggleProvider::Toggle() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IToggleProvider)->Toggle()); } template auto consume_Windows_UI_Xaml_Automation_Provider_ITransformProvider::CanMove() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITransformProvider)->get_CanMove(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITransformProvider::CanResize() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITransformProvider)->get_CanResize(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITransformProvider::CanRotate() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITransformProvider)->get_CanRotate(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITransformProvider::Move(double x, double y) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITransformProvider)->Move(x, y)); } template auto consume_Windows_UI_Xaml_Automation_Provider_ITransformProvider::Resize(double width, double height) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITransformProvider)->Resize(width, height)); } template auto consume_Windows_UI_Xaml_Automation_Provider_ITransformProvider::Rotate(double degrees) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITransformProvider)->Rotate(degrees)); } template auto consume_Windows_UI_Xaml_Automation_Provider_ITransformProvider2::CanZoom() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITransformProvider2)->get_CanZoom(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITransformProvider2::ZoomLevel() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITransformProvider2)->get_ZoomLevel(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITransformProvider2::MaxZoom() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITransformProvider2)->get_MaxZoom(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITransformProvider2::MinZoom() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITransformProvider2)->get_MinZoom(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_ITransformProvider2::Zoom(double zoom) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITransformProvider2)->Zoom(zoom)); } template auto consume_Windows_UI_Xaml_Automation_Provider_ITransformProvider2::ZoomByUnit(winrt::Windows::UI::Xaml::Automation::ZoomUnit const& zoomUnit) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::ITransformProvider2)->ZoomByUnit(static_cast(zoomUnit))); } template auto consume_Windows_UI_Xaml_Automation_Provider_IValueProvider::IsReadOnly() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IValueProvider)->get_IsReadOnly(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IValueProvider::Value() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IValueProvider)->get_Value(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Automation_Provider_IValueProvider::SetValue(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IValueProvider)->SetValue(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_Automation_Provider_IVirtualizedItemProvider::Realize() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IVirtualizedItemProvider)->Realize()); } template auto consume_Windows_UI_Xaml_Automation_Provider_IWindowProvider::IsModal() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IWindowProvider)->get_IsModal(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IWindowProvider::IsTopmost() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IWindowProvider)->get_IsTopmost(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IWindowProvider::Maximizable() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IWindowProvider)->get_Maximizable(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IWindowProvider::Minimizable() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IWindowProvider)->get_Minimizable(&value)); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IWindowProvider::InteractionState() const { winrt::Windows::UI::Xaml::Automation::WindowInteractionState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IWindowProvider)->get_InteractionState(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IWindowProvider::VisualState() const { winrt::Windows::UI::Xaml::Automation::WindowVisualState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IWindowProvider)->get_VisualState(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_Automation_Provider_IWindowProvider::Close() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IWindowProvider)->Close()); } template auto consume_Windows_UI_Xaml_Automation_Provider_IWindowProvider::SetVisualState(winrt::Windows::UI::Xaml::Automation::WindowVisualState const& state) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IWindowProvider)->SetVisualState(static_cast(state))); } template auto consume_Windows_UI_Xaml_Automation_Provider_IWindowProvider::WaitForInputIdle(int32_t milliseconds) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Automation::Provider::IWindowProvider)->WaitForInputIdle(milliseconds, &result)); return result; } template struct produce : produce_base { int32_t __stdcall get_AnnotationTypeId(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AnnotationTypeId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AnnotationTypeName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AnnotationTypeName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Author(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Author()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DateTime(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DateTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Target(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Target()); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall NavigateCustom(int32_t direction, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().NavigateCustom(*reinterpret_cast(&direction))); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_DockPosition(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DockPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetDockPosition(int32_t dockPosition) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetDockPosition(*reinterpret_cast(&dockPosition)); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_IsGrabbed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsGrabbed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DropEffect(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DropEffect()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DropEffects(uint32_t* __valueSize, void*** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); std::tie(*__valueSize, *value) = detach_abi(this->shim().DropEffects()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetGrabbedItems(uint32_t* __resultSize, void*** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); std::tie(*__resultSize, *result) = detach_abi(this->shim().GetGrabbedItems()); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_DropEffect(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DropEffect()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DropEffects(uint32_t* __valueSize, void*** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); std::tie(*__valueSize, *value) = detach_abi(this->shim().DropEffects()); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_ExpandCollapseState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExpandCollapseState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Collapse() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Collapse(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Expand() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Expand(); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_Column(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Column()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ColumnSpan(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ColumnSpan()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContainingGrid(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContainingGrid()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Row(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Row()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RowSpan(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RowSpan()); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_ColumnCount(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ColumnCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RowCount(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RowCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetItem(int32_t row, int32_t column, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetItem(row, column)); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif template struct produce : produce_base { int32_t __stdcall Invoke() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Invoke(); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall FindItemByProperty(void* startAfter, void* automationProperty, void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().FindItemByProperty(*reinterpret_cast(&startAfter), *reinterpret_cast(&automationProperty), *reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_CurrentView(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CurrentView()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetSupportedViews(uint32_t* __resultSize, int32_t** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); std::tie(*__resultSize, *result) = detach_abi(this->shim().GetSupportedViews()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetViewName(int32_t viewId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetViewName(viewId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetCurrentView(int32_t viewId) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetCurrentView(viewId); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall GetUnderlyingObjectModel(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetUnderlyingObjectModel()); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_IsReadOnly(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsReadOnly()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LargeChange(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LargeChange()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Maximum(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Maximum()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Minimum(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Minimum()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SmallChange(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SmallChange()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Value(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Value()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetValue(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetValue(value); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall ScrollIntoView() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ScrollIntoView(); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_HorizontallyScrollable(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HorizontallyScrollable()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HorizontalScrollPercent(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HorizontalScrollPercent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HorizontalViewSize(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HorizontalViewSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VerticallyScrollable(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VerticallyScrollable()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VerticalScrollPercent(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VerticalScrollPercent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VerticalViewSize(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VerticalViewSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Scroll(int32_t horizontalAmount, int32_t verticalAmount) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Scroll(*reinterpret_cast(&horizontalAmount), *reinterpret_cast(&verticalAmount)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetScrollPercent(double horizontalPercent, double verticalPercent) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetScrollPercent(horizontalPercent, verticalPercent); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_IsSelected(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSelected()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectionContainer(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectionContainer()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddToSelection() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddToSelection(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveFromSelection() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RemoveFromSelection(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Select() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Select(); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_CanSelectMultiple(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanSelectMultiple()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsSelectionRequired(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSelectionRequired()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetSelection(uint32_t* __resultSize, void*** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); std::tie(*__resultSize, *result) = detach_abi(this->shim().GetSelection()); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_Formula(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Formula()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAnnotationObjects(uint32_t* __resultSize, void*** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); std::tie(*__resultSize, *result) = detach_abi(this->shim().GetAnnotationObjects()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAnnotationTypes(uint32_t* __resultSize, int32_t** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); std::tie(*__resultSize, *result) = detach_abi(this->shim().GetAnnotationTypes()); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall GetItemByName(void* name, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetItemByName(*reinterpret_cast(&name))); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_ExtendedProperties(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExtendedProperties()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FillColor(struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FillColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FillPatternColor(struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FillPatternColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FillPatternStyle(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FillPatternStyle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Shape(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Shape()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StyleId(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StyleId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StyleName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StyleName()); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall Cancel() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Cancel(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartListening(int32_t inputType) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartListening(*reinterpret_cast(&inputType)); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall GetColumnHeaderItems(uint32_t* __resultSize, void*** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); std::tie(*__resultSize, *result) = detach_abi(this->shim().GetColumnHeaderItems()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetRowHeaderItems(uint32_t* __resultSize, void*** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); std::tie(*__resultSize, *result) = detach_abi(this->shim().GetRowHeaderItems()); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_RowOrColumnMajor(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RowOrColumnMajor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetColumnHeaders(uint32_t* __resultSize, void*** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); std::tie(*__resultSize, *result) = detach_abi(this->shim().GetColumnHeaders()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetRowHeaders(uint32_t* __resultSize, void*** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); std::tie(*__resultSize, *result) = detach_abi(this->shim().GetRowHeaders()); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_TextContainer(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TextContainer()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TextRange(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TextRange()); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall GetActiveComposition(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetActiveComposition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetConversionTarget(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetConversionTarget()); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_DocumentRange(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DocumentRange()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportedTextSelection(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SupportedTextSelection()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetSelection(uint32_t* __resultSize, void*** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); std::tie(*__resultSize, *result) = detach_abi(this->shim().GetSelection()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetVisibleRanges(uint32_t* __resultSize, void*** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); std::tie(*__resultSize, *result) = detach_abi(this->shim().GetVisibleRanges()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RangeFromChild(void* childElement, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RangeFromChild(*reinterpret_cast(&childElement))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RangeFromPoint(winrt::Windows::Foundation::Point screenLocation, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RangeFromPoint(*reinterpret_cast(&screenLocation))); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall RangeFromAnnotation(void* annotationElement, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RangeFromAnnotation(*reinterpret_cast(&annotationElement))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetCaretRange(bool* isActive, void** returnValue) noexcept final try { clear_abi(returnValue); typename D::abi_guard guard(this->shim()); *returnValue = detach_from(this->shim().GetCaretRange(*isActive)); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall Clone(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Clone()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Compare(void* textRangeProvider, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Compare(*reinterpret_cast(&textRangeProvider))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CompareEndpoints(int32_t endpoint, void* textRangeProvider, int32_t targetEndpoint, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CompareEndpoints(*reinterpret_cast(&endpoint), *reinterpret_cast(&textRangeProvider), *reinterpret_cast(&targetEndpoint))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ExpandToEnclosingUnit(int32_t unit) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ExpandToEnclosingUnit(*reinterpret_cast(&unit)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindAttribute(int32_t attributeId, void* value, bool backward, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().FindAttribute(attributeId, *reinterpret_cast(&value), backward)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindText(void* text, bool backward, bool ignoreCase, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().FindText(*reinterpret_cast(&text), backward, ignoreCase)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAttributeValue(int32_t attributeId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetAttributeValue(attributeId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetBoundingRectangles(uint32_t* __returnValueSize, double** returnValue) noexcept final try { clear_abi(returnValue); typename D::abi_guard guard(this->shim()); this->shim().GetBoundingRectangles(detach_abi(__returnValueSize, returnValue)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetEnclosingElement(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetEnclosingElement()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetText(int32_t maxLength, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetText(maxLength)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Move(int32_t unit, int32_t count, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Move(*reinterpret_cast(&unit), count)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MoveEndpointByUnit(int32_t endpoint, int32_t unit, int32_t count, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().MoveEndpointByUnit(*reinterpret_cast(&endpoint), *reinterpret_cast(&unit), count)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MoveEndpointByRange(int32_t endpoint, void* textRangeProvider, int32_t targetEndpoint) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MoveEndpointByRange(*reinterpret_cast(&endpoint), *reinterpret_cast(&textRangeProvider), *reinterpret_cast(&targetEndpoint)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Select() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Select(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddToSelection() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddToSelection(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveFromSelection() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RemoveFromSelection(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ScrollIntoView(bool alignToTop) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ScrollIntoView(alignToTop); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetChildren(uint32_t* __resultSize, void*** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); std::tie(*__resultSize, *result) = detach_abi(this->shim().GetChildren()); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall ShowContextMenu() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShowContextMenu(); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_ToggleState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ToggleState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Toggle() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Toggle(); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_CanMove(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanMove()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanResize(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanResize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanRotate(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanRotate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Move(double x, double y) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Move(x, y); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Resize(double width, double height) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Resize(width, height); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Rotate(double degrees) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Rotate(degrees); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_CanZoom(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanZoom()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ZoomLevel(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ZoomLevel()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxZoom(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxZoom()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MinZoom(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MinZoom()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Zoom(double zoom) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Zoom(zoom); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ZoomByUnit(int32_t zoomUnit) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ZoomByUnit(*reinterpret_cast(&zoomUnit)); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_IsReadOnly(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsReadOnly()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Value(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Value()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetValue(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetValue(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall Realize() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Realize(); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_IsModal(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsModal()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsTopmost(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsTopmost()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Maximizable(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Maximizable()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Minimizable(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Minimizable()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InteractionState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InteractionState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VisualState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VisualState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Close() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Close(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetVisualState(int32_t state) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetVisualState(*reinterpret_cast(&state)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall WaitForInputIdle(int32_t milliseconds, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().WaitForInputIdle(milliseconds)); return 0; } catch (...) { return to_hresult(); } }; } WINRT_EXPORT namespace winrt::Windows::UI::Xaml::Automation::Provider { } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif