| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/cppwinrt/winrt/ |
Upload File : |
// C++/WinRT v2.0.190620.2
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef WINRT_Windows_UI_StartScreen_H
#define WINRT_Windows_UI_StartScreen_H
#include "winrt/base.h"
static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.190620.2"), "Mismatched C++/WinRT headers.");
#include "winrt/Windows.UI.h"
#include "winrt/impl/Windows.ApplicationModel.Core.2.h"
#include "winrt/impl/Windows.Foundation.2.h"
#include "winrt/impl/Windows.Foundation.Collections.2.h"
#include "winrt/impl/Windows.Perception.Spatial.2.h"
#include "winrt/impl/Windows.System.2.h"
#include "winrt/impl/Windows.UI.2.h"
#include "winrt/impl/Windows.UI.Popups.2.h"
#include "winrt/impl/Windows.UI.StartScreen.2.h"
namespace winrt::impl
{
template <typename D> auto consume_Windows_UI_StartScreen_IJumpList<D>::Items() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IJumpList)->get_Items(&value));
return Windows::Foundation::Collections::IVector<Windows::UI::StartScreen::JumpListItem>{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_IJumpList<D>::SystemGroupKind() const
{
Windows::UI::StartScreen::JumpListSystemGroupKind value;
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IJumpList)->get_SystemGroupKind(put_abi(value)));
return value;
}
template <typename D> auto consume_Windows_UI_StartScreen_IJumpList<D>::SystemGroupKind(Windows::UI::StartScreen::JumpListSystemGroupKind const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IJumpList)->put_SystemGroupKind(static_cast<int32_t>(value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_IJumpList<D>::SaveAsync() const
{
void* result{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IJumpList)->SaveAsync(&result));
return Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_IJumpListItem<D>::Kind() const
{
Windows::UI::StartScreen::JumpListItemKind value;
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IJumpListItem)->get_Kind(put_abi(value)));
return value;
}
template <typename D> auto consume_Windows_UI_StartScreen_IJumpListItem<D>::Arguments() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IJumpListItem)->get_Arguments(&value));
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_IJumpListItem<D>::RemovedByUser() const
{
bool value;
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IJumpListItem)->get_RemovedByUser(&value));
return value;
}
template <typename D> auto consume_Windows_UI_StartScreen_IJumpListItem<D>::Description() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IJumpListItem)->get_Description(&value));
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_IJumpListItem<D>::Description(param::hstring const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IJumpListItem)->put_Description(*(void**)(&value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_IJumpListItem<D>::DisplayName() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IJumpListItem)->get_DisplayName(&value));
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_IJumpListItem<D>::DisplayName(param::hstring const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IJumpListItem)->put_DisplayName(*(void**)(&value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_IJumpListItem<D>::GroupName() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IJumpListItem)->get_GroupName(&value));
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_IJumpListItem<D>::GroupName(param::hstring const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IJumpListItem)->put_GroupName(*(void**)(&value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_IJumpListItem<D>::Logo() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IJumpListItem)->get_Logo(&value));
return Windows::Foundation::Uri{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_IJumpListItem<D>::Logo(Windows::Foundation::Uri const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IJumpListItem)->put_Logo(*(void**)(&value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_IJumpListItemStatics<D>::CreateWithArguments(param::hstring const& arguments, param::hstring const& displayName) const
{
void* result{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IJumpListItemStatics)->CreateWithArguments(*(void**)(&arguments), *(void**)(&displayName), &result));
return Windows::UI::StartScreen::JumpListItem{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_IJumpListItemStatics<D>::CreateSeparator() const
{
void* result{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IJumpListItemStatics)->CreateSeparator(&result));
return Windows::UI::StartScreen::JumpListItem{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_IJumpListStatics<D>::LoadCurrentAsync() const
{
void* result{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IJumpListStatics)->LoadCurrentAsync(&result));
return Windows::Foundation::IAsyncOperation<Windows::UI::StartScreen::JumpList>{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_IJumpListStatics<D>::IsSupported() const
{
bool result;
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IJumpListStatics)->IsSupported(&result));
return result;
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::TileId(param::hstring const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->put_TileId(*(void**)(&value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::TileId() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->get_TileId(&value));
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::Arguments(param::hstring const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->put_Arguments(*(void**)(&value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::Arguments() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->get_Arguments(&value));
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::ShortName(param::hstring const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->put_ShortName(*(void**)(&value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::ShortName() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->get_ShortName(&value));
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::DisplayName(param::hstring const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->put_DisplayName(*(void**)(&value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::DisplayName() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->get_DisplayName(&value));
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::Logo(Windows::Foundation::Uri const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->put_Logo(*(void**)(&value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::Logo() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->get_Logo(&value));
return Windows::Foundation::Uri{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::SmallLogo(Windows::Foundation::Uri const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->put_SmallLogo(*(void**)(&value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::SmallLogo() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->get_SmallLogo(&value));
return Windows::Foundation::Uri{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::WideLogo(Windows::Foundation::Uri const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->put_WideLogo(*(void**)(&value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::WideLogo() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->get_WideLogo(&value));
return Windows::Foundation::Uri{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::LockScreenBadgeLogo(Windows::Foundation::Uri const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->put_LockScreenBadgeLogo(*(void**)(&value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::LockScreenBadgeLogo() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->get_LockScreenBadgeLogo(&value));
return Windows::Foundation::Uri{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::LockScreenDisplayBadgeAndTileText(bool value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->put_LockScreenDisplayBadgeAndTileText(value));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::LockScreenDisplayBadgeAndTileText() const
{
bool value;
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->get_LockScreenDisplayBadgeAndTileText(&value));
return value;
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::TileOptions(Windows::UI::StartScreen::TileOptions const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->put_TileOptions(static_cast<uint32_t>(value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::TileOptions() const
{
Windows::UI::StartScreen::TileOptions value;
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->get_TileOptions(put_abi(value)));
return value;
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::ForegroundText(Windows::UI::StartScreen::ForegroundText const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->put_ForegroundText(static_cast<int32_t>(value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::ForegroundText() const
{
Windows::UI::StartScreen::ForegroundText value;
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->get_ForegroundText(put_abi(value)));
return value;
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::BackgroundColor(Windows::UI::Color const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->put_BackgroundColor(impl::bind_in(value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::BackgroundColor() const
{
Windows::UI::Color value;
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->get_BackgroundColor(put_abi(value)));
return value;
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::RequestCreateAsync() const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->RequestCreateAsync(&operation));
return Windows::Foundation::IAsyncOperation<bool>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::RequestCreateAsync(Windows::Foundation::Point const& invocationPoint) const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->RequestCreateAsyncWithPoint(impl::bind_in(invocationPoint), &operation));
return Windows::Foundation::IAsyncOperation<bool>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::RequestCreateForSelectionAsync(Windows::Foundation::Rect const& selection) const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->RequestCreateAsyncWithRect(impl::bind_in(selection), &operation));
return Windows::Foundation::IAsyncOperation<bool>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::RequestCreateForSelectionAsync(Windows::Foundation::Rect const& selection, Windows::UI::Popups::Placement const& preferredPlacement) const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->RequestCreateAsyncWithRectAndPlacement(impl::bind_in(selection), static_cast<int32_t>(preferredPlacement), &operation));
return Windows::Foundation::IAsyncOperation<bool>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::RequestDeleteAsync() const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->RequestDeleteAsync(&operation));
return Windows::Foundation::IAsyncOperation<bool>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::RequestDeleteAsync(Windows::Foundation::Point const& invocationPoint) const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->RequestDeleteAsyncWithPoint(impl::bind_in(invocationPoint), &operation));
return Windows::Foundation::IAsyncOperation<bool>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::RequestDeleteForSelectionAsync(Windows::Foundation::Rect const& selection) const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->RequestDeleteAsyncWithRect(impl::bind_in(selection), &operation));
return Windows::Foundation::IAsyncOperation<bool>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::RequestDeleteForSelectionAsync(Windows::Foundation::Rect const& selection, Windows::UI::Popups::Placement const& preferredPlacement) const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->RequestDeleteAsyncWithRectAndPlacement(impl::bind_in(selection), static_cast<int32_t>(preferredPlacement), &operation));
return Windows::Foundation::IAsyncOperation<bool>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile<D>::UpdateAsync() const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile)->UpdateAsync(&operation));
return Windows::Foundation::IAsyncOperation<bool>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile2<D>::PhoneticName(param::hstring const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile2)->put_PhoneticName(*(void**)(&value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile2<D>::PhoneticName() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile2)->get_PhoneticName(&value));
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile2<D>::VisualElements() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile2)->get_VisualElements(&value));
return Windows::UI::StartScreen::SecondaryTileVisualElements{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile2<D>::RoamingEnabled(bool value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile2)->put_RoamingEnabled(value));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile2<D>::RoamingEnabled() const
{
bool value;
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile2)->get_RoamingEnabled(&value));
return value;
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile2<D>::VisualElementsRequested(Windows::Foundation::TypedEventHandler<Windows::UI::StartScreen::SecondaryTile, Windows::UI::StartScreen::VisualElementsRequestedEventArgs> const& handler) const
{
winrt::event_token token;
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile2)->add_VisualElementsRequested(*(void**)(&handler), put_abi(token)));
return token;
}
template <typename D> typename consume_Windows_UI_StartScreen_ISecondaryTile2<D>::VisualElementsRequested_revoker consume_Windows_UI_StartScreen_ISecondaryTile2<D>::VisualElementsRequested(auto_revoke_t, Windows::Foundation::TypedEventHandler<Windows::UI::StartScreen::SecondaryTile, Windows::UI::StartScreen::VisualElementsRequestedEventArgs> const& handler) const
{
return impl::make_event_revoker<D, VisualElementsRequested_revoker>(this, VisualElementsRequested(handler));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTile2<D>::VisualElementsRequested(winrt::event_token const& token) const noexcept
{
WINRT_VERIFY_(0, WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTile2)->remove_VisualElementsRequested(impl::bind_in(token)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileFactory<D>::CreateTile(param::hstring const& tileId, param::hstring const& shortName, param::hstring const& displayName, param::hstring const& arguments, Windows::UI::StartScreen::TileOptions const& tileOptions, Windows::Foundation::Uri const& logoReference) const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileFactory)->CreateTile(*(void**)(&tileId), *(void**)(&shortName), *(void**)(&displayName), *(void**)(&arguments), static_cast<uint32_t>(tileOptions), *(void**)(&logoReference), &value));
return Windows::UI::StartScreen::SecondaryTile{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileFactory<D>::CreateWideTile(param::hstring const& tileId, param::hstring const& shortName, param::hstring const& displayName, param::hstring const& arguments, Windows::UI::StartScreen::TileOptions const& tileOptions, Windows::Foundation::Uri const& logoReference, Windows::Foundation::Uri const& wideLogoReference) const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileFactory)->CreateWideTile(*(void**)(&tileId), *(void**)(&shortName), *(void**)(&displayName), *(void**)(&arguments), static_cast<uint32_t>(tileOptions), *(void**)(&logoReference), *(void**)(&wideLogoReference), &value));
return Windows::UI::StartScreen::SecondaryTile{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileFactory<D>::CreateWithId(param::hstring const& tileId) const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileFactory)->CreateWithId(*(void**)(&tileId), &value));
return Windows::UI::StartScreen::SecondaryTile{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileFactory2<D>::CreateMinimalTile(param::hstring const& tileId, param::hstring const& displayName, param::hstring const& arguments, Windows::Foundation::Uri const& square150x150Logo, Windows::UI::StartScreen::TileSize const& desiredSize) const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileFactory2)->CreateMinimalTile(*(void**)(&tileId), *(void**)(&displayName), *(void**)(&arguments), *(void**)(&square150x150Logo), static_cast<int32_t>(desiredSize), &value));
return Windows::UI::StartScreen::SecondaryTile{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileStatics<D>::Exists(param::hstring const& tileId) const
{
bool exists;
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileStatics)->Exists(*(void**)(&tileId), &exists));
return exists;
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileStatics<D>::FindAllAsync() const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileStatics)->FindAllAsync(&operation));
return Windows::Foundation::IAsyncOperation<Windows::Foundation::Collections::IVectorView<Windows::UI::StartScreen::SecondaryTile>>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileStatics<D>::FindAllAsync(param::hstring const& applicationId) const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileStatics)->FindAllForApplicationAsync(*(void**)(&applicationId), &operation));
return Windows::Foundation::IAsyncOperation<Windows::Foundation::Collections::IVectorView<Windows::UI::StartScreen::SecondaryTile>>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileStatics<D>::FindAllForPackageAsync() const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileStatics)->FindAllForPackageAsync(&operation));
return Windows::Foundation::IAsyncOperation<Windows::Foundation::Collections::IVectorView<Windows::UI::StartScreen::SecondaryTile>>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements<D>::Square30x30Logo(Windows::Foundation::Uri const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements)->put_Square30x30Logo(*(void**)(&value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements<D>::Square30x30Logo() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements)->get_Square30x30Logo(&value));
return Windows::Foundation::Uri{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements<D>::Square70x70Logo(Windows::Foundation::Uri const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements)->put_Square70x70Logo(*(void**)(&value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements<D>::Square70x70Logo() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements)->get_Square70x70Logo(&value));
return Windows::Foundation::Uri{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements<D>::Square150x150Logo(Windows::Foundation::Uri const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements)->put_Square150x150Logo(*(void**)(&value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements<D>::Square150x150Logo() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements)->get_Square150x150Logo(&value));
return Windows::Foundation::Uri{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements<D>::Wide310x150Logo(Windows::Foundation::Uri const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements)->put_Wide310x150Logo(*(void**)(&value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements<D>::Wide310x150Logo() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements)->get_Wide310x150Logo(&value));
return Windows::Foundation::Uri{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements<D>::Square310x310Logo(Windows::Foundation::Uri const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements)->put_Square310x310Logo(*(void**)(&value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements<D>::Square310x310Logo() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements)->get_Square310x310Logo(&value));
return Windows::Foundation::Uri{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements<D>::ForegroundText(Windows::UI::StartScreen::ForegroundText const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements)->put_ForegroundText(static_cast<int32_t>(value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements<D>::ForegroundText() const
{
Windows::UI::StartScreen::ForegroundText value;
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements)->get_ForegroundText(put_abi(value)));
return value;
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements<D>::BackgroundColor(Windows::UI::Color const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements)->put_BackgroundColor(impl::bind_in(value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements<D>::BackgroundColor() const
{
Windows::UI::Color value;
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements)->get_BackgroundColor(put_abi(value)));
return value;
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements<D>::ShowNameOnSquare150x150Logo(bool value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements)->put_ShowNameOnSquare150x150Logo(value));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements<D>::ShowNameOnSquare150x150Logo() const
{
bool value;
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements)->get_ShowNameOnSquare150x150Logo(&value));
return value;
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements<D>::ShowNameOnWide310x150Logo(bool value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements)->put_ShowNameOnWide310x150Logo(value));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements<D>::ShowNameOnWide310x150Logo() const
{
bool value;
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements)->get_ShowNameOnWide310x150Logo(&value));
return value;
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements<D>::ShowNameOnSquare310x310Logo(bool value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements)->put_ShowNameOnSquare310x310Logo(value));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements<D>::ShowNameOnSquare310x310Logo() const
{
bool value;
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements)->get_ShowNameOnSquare310x310Logo(&value));
return value;
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements2<D>::Square71x71Logo(Windows::Foundation::Uri const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements2)->put_Square71x71Logo(*(void**)(&value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements2<D>::Square71x71Logo() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements2)->get_Square71x71Logo(&value));
return Windows::Foundation::Uri{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements3<D>::Square44x44Logo(Windows::Foundation::Uri const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements3)->put_Square44x44Logo(*(void**)(&value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements3<D>::Square44x44Logo() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements3)->get_Square44x44Logo(&value));
return Windows::Foundation::Uri{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ISecondaryTileVisualElements4<D>::MixedRealityModel() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ISecondaryTileVisualElements4)->get_MixedRealityModel(&value));
return Windows::UI::StartScreen::TileMixedRealityModel{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_IStartScreenManager<D>::User() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IStartScreenManager)->get_User(&value));
return Windows::System::User{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_IStartScreenManager<D>::SupportsAppListEntry(Windows::ApplicationModel::Core::AppListEntry const& appListEntry) const
{
bool result;
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IStartScreenManager)->SupportsAppListEntry(*(void**)(&appListEntry), &result));
return result;
}
template <typename D> auto consume_Windows_UI_StartScreen_IStartScreenManager<D>::ContainsAppListEntryAsync(Windows::ApplicationModel::Core::AppListEntry const& appListEntry) const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IStartScreenManager)->ContainsAppListEntryAsync(*(void**)(&appListEntry), &operation));
return Windows::Foundation::IAsyncOperation<bool>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_IStartScreenManager<D>::RequestAddAppListEntryAsync(Windows::ApplicationModel::Core::AppListEntry const& appListEntry) const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IStartScreenManager)->RequestAddAppListEntryAsync(*(void**)(&appListEntry), &operation));
return Windows::Foundation::IAsyncOperation<bool>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_IStartScreenManager2<D>::ContainsSecondaryTileAsync(param::hstring const& tileId) const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IStartScreenManager2)->ContainsSecondaryTileAsync(*(void**)(&tileId), &operation));
return Windows::Foundation::IAsyncOperation<bool>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_IStartScreenManager2<D>::TryRemoveSecondaryTileAsync(param::hstring const& tileId) const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IStartScreenManager2)->TryRemoveSecondaryTileAsync(*(void**)(&tileId), &operation));
return Windows::Foundation::IAsyncOperation<bool>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_IStartScreenManagerStatics<D>::GetDefault() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IStartScreenManagerStatics)->GetDefault(&value));
return Windows::UI::StartScreen::StartScreenManager{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_IStartScreenManagerStatics<D>::GetForUser(Windows::System::User const& user) const
{
void* result{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IStartScreenManagerStatics)->GetForUser(*(void**)(&user), &result));
return Windows::UI::StartScreen::StartScreenManager{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ITileMixedRealityModel<D>::Uri(Windows::Foundation::Uri const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ITileMixedRealityModel)->put_Uri(*(void**)(&value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ITileMixedRealityModel<D>::Uri() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ITileMixedRealityModel)->get_Uri(&value));
return Windows::Foundation::Uri{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ITileMixedRealityModel<D>::BoundingBox(Windows::Foundation::IReference<Windows::Perception::Spatial::SpatialBoundingBox> const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ITileMixedRealityModel)->put_BoundingBox(*(void**)(&value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ITileMixedRealityModel<D>::BoundingBox() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ITileMixedRealityModel)->get_BoundingBox(&value));
return Windows::Foundation::IReference<Windows::Perception::Spatial::SpatialBoundingBox>{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_ITileMixedRealityModel2<D>::ActivationBehavior(Windows::UI::StartScreen::TileMixedRealityModelActivationBehavior const& value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ITileMixedRealityModel2)->put_ActivationBehavior(static_cast<int32_t>(value)));
}
template <typename D> auto consume_Windows_UI_StartScreen_ITileMixedRealityModel2<D>::ActivationBehavior() const
{
Windows::UI::StartScreen::TileMixedRealityModelActivationBehavior value;
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::ITileMixedRealityModel2)->get_ActivationBehavior(put_abi(value)));
return value;
}
template <typename D> auto consume_Windows_UI_StartScreen_IVisualElementsRequest<D>::VisualElements() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IVisualElementsRequest)->get_VisualElements(&value));
return Windows::UI::StartScreen::SecondaryTileVisualElements{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_IVisualElementsRequest<D>::AlternateVisualElements() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IVisualElementsRequest)->get_AlternateVisualElements(&value));
return Windows::Foundation::Collections::IVectorView<Windows::UI::StartScreen::SecondaryTileVisualElements>{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_IVisualElementsRequest<D>::Deadline() const
{
Windows::Foundation::DateTime value;
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IVisualElementsRequest)->get_Deadline(put_abi(value)));
return value;
}
template <typename D> auto consume_Windows_UI_StartScreen_IVisualElementsRequest<D>::GetDeferral() const
{
void* deferral{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IVisualElementsRequest)->GetDeferral(&deferral));
return Windows::UI::StartScreen::VisualElementsRequestDeferral{ deferral, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_UI_StartScreen_IVisualElementsRequestDeferral<D>::Complete() const
{
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IVisualElementsRequestDeferral)->Complete());
}
template <typename D> auto consume_Windows_UI_StartScreen_IVisualElementsRequestedEventArgs<D>::Request() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::UI::StartScreen::IVisualElementsRequestedEventArgs)->get_Request(&value));
return Windows::UI::StartScreen::VisualElementsRequest{ value, take_ownership_from_abi };
}
template <typename D>
struct produce<D, Windows::UI::StartScreen::IJumpList> : produce_base<D, Windows::UI::StartScreen::IJumpList>
{
int32_t __stdcall get_Items(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::Foundation::Collections::IVector<Windows::UI::StartScreen::JumpListItem>>(this->shim().Items());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_SystemGroupKind(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::UI::StartScreen::JumpListSystemGroupKind>(this->shim().SystemGroupKind());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_SystemGroupKind(int32_t value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().SystemGroupKind(*reinterpret_cast<Windows::UI::StartScreen::JumpListSystemGroupKind const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall SaveAsync(void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<Windows::Foundation::IAsyncAction>(this->shim().SaveAsync());
return 0;
}
catch (...) { return to_hresult(); }
};
template <typename D>
struct produce<D, Windows::UI::StartScreen::IJumpListItem> : produce_base<D, Windows::UI::StartScreen::IJumpListItem>
{
int32_t __stdcall get_Kind(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::UI::StartScreen::JumpListItemKind>(this->shim().Kind());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Arguments(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().Arguments());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_RemovedByUser(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().RemovedByUser());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Description(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().Description());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Description(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Description(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_DisplayName(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().DisplayName());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_DisplayName(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().DisplayName(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_GroupName(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().GroupName());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_GroupName(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().GroupName(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Logo(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::Foundation::Uri>(this->shim().Logo());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Logo(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Logo(*reinterpret_cast<Windows::Foundation::Uri const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
};
template <typename D>
struct produce<D, Windows::UI::StartScreen::IJumpListItemStatics> : produce_base<D, Windows::UI::StartScreen::IJumpListItemStatics>
{
int32_t __stdcall CreateWithArguments(void* arguments, void* displayName, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<Windows::UI::StartScreen::JumpListItem>(this->shim().CreateWithArguments(*reinterpret_cast<hstring const*>(&arguments), *reinterpret_cast<hstring const*>(&displayName)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall CreateSeparator(void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<Windows::UI::StartScreen::JumpListItem>(this->shim().CreateSeparator());
return 0;
}
catch (...) { return to_hresult(); }
};
template <typename D>
struct produce<D, Windows::UI::StartScreen::IJumpListStatics> : produce_base<D, Windows::UI::StartScreen::IJumpListStatics>
{
int32_t __stdcall LoadCurrentAsync(void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<Windows::Foundation::IAsyncOperation<Windows::UI::StartScreen::JumpList>>(this->shim().LoadCurrentAsync());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall IsSupported(bool* result) noexcept final try
{
typename D::abi_guard guard(this->shim());
*result = detach_from<bool>(this->shim().IsSupported());
return 0;
}
catch (...) { return to_hresult(); }
};
template <typename D>
struct produce<D, Windows::UI::StartScreen::ISecondaryTile> : produce_base<D, Windows::UI::StartScreen::ISecondaryTile>
{
int32_t __stdcall put_TileId(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().TileId(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_TileId(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().TileId());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Arguments(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Arguments(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Arguments(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().Arguments());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ShortName(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ShortName(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ShortName(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().ShortName());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_DisplayName(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().DisplayName(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_DisplayName(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().DisplayName());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Logo(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Logo(*reinterpret_cast<Windows::Foundation::Uri const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Logo(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::Foundation::Uri>(this->shim().Logo());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_SmallLogo(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().SmallLogo(*reinterpret_cast<Windows::Foundation::Uri const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_SmallLogo(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::Foundation::Uri>(this->shim().SmallLogo());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_WideLogo(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().WideLogo(*reinterpret_cast<Windows::Foundation::Uri const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_WideLogo(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::Foundation::Uri>(this->shim().WideLogo());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_LockScreenBadgeLogo(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().LockScreenBadgeLogo(*reinterpret_cast<Windows::Foundation::Uri const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_LockScreenBadgeLogo(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::Foundation::Uri>(this->shim().LockScreenBadgeLogo());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_LockScreenDisplayBadgeAndTileText(bool value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().LockScreenDisplayBadgeAndTileText(value);
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_LockScreenDisplayBadgeAndTileText(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().LockScreenDisplayBadgeAndTileText());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_TileOptions(uint32_t value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().TileOptions(*reinterpret_cast<Windows::UI::StartScreen::TileOptions const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_TileOptions(uint32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::UI::StartScreen::TileOptions>(this->shim().TileOptions());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ForegroundText(int32_t value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ForegroundText(*reinterpret_cast<Windows::UI::StartScreen::ForegroundText const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ForegroundText(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::UI::StartScreen::ForegroundText>(this->shim().ForegroundText());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_BackgroundColor(struct struct_Windows_UI_Color value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().BackgroundColor(*reinterpret_cast<Windows::UI::Color const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_BackgroundColor(struct struct_Windows_UI_Color* value) noexcept final try
{
zero_abi<Windows::UI::Color>(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::UI::Color>(this->shim().BackgroundColor());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RequestCreateAsync(void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<Windows::Foundation::IAsyncOperation<bool>>(this->shim().RequestCreateAsync());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RequestCreateAsyncWithPoint(Windows::Foundation::Point invocationPoint, void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<Windows::Foundation::IAsyncOperation<bool>>(this->shim().RequestCreateAsync(*reinterpret_cast<Windows::Foundation::Point const*>(&invocationPoint)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RequestCreateAsyncWithRect(Windows::Foundation::Rect selection, void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<Windows::Foundation::IAsyncOperation<bool>>(this->shim().RequestCreateForSelectionAsync(*reinterpret_cast<Windows::Foundation::Rect const*>(&selection)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RequestCreateAsyncWithRectAndPlacement(Windows::Foundation::Rect selection, int32_t preferredPlacement, void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<Windows::Foundation::IAsyncOperation<bool>>(this->shim().RequestCreateForSelectionAsync(*reinterpret_cast<Windows::Foundation::Rect const*>(&selection), *reinterpret_cast<Windows::UI::Popups::Placement const*>(&preferredPlacement)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RequestDeleteAsync(void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<Windows::Foundation::IAsyncOperation<bool>>(this->shim().RequestDeleteAsync());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RequestDeleteAsyncWithPoint(Windows::Foundation::Point invocationPoint, void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<Windows::Foundation::IAsyncOperation<bool>>(this->shim().RequestDeleteAsync(*reinterpret_cast<Windows::Foundation::Point const*>(&invocationPoint)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RequestDeleteAsyncWithRect(Windows::Foundation::Rect selection, void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<Windows::Foundation::IAsyncOperation<bool>>(this->shim().RequestDeleteForSelectionAsync(*reinterpret_cast<Windows::Foundation::Rect const*>(&selection)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RequestDeleteAsyncWithRectAndPlacement(Windows::Foundation::Rect selection, int32_t preferredPlacement, void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<Windows::Foundation::IAsyncOperation<bool>>(this->shim().RequestDeleteForSelectionAsync(*reinterpret_cast<Windows::Foundation::Rect const*>(&selection), *reinterpret_cast<Windows::UI::Popups::Placement const*>(&preferredPlacement)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall UpdateAsync(void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<Windows::Foundation::IAsyncOperation<bool>>(this->shim().UpdateAsync());
return 0;
}
catch (...) { return to_hresult(); }
};
template <typename D>
struct produce<D, Windows::UI::StartScreen::ISecondaryTile2> : produce_base<D, Windows::UI::StartScreen::ISecondaryTile2>
{
int32_t __stdcall put_PhoneticName(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().PhoneticName(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_PhoneticName(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().PhoneticName());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_VisualElements(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::UI::StartScreen::SecondaryTileVisualElements>(this->shim().VisualElements());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_RoamingEnabled(bool value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().RoamingEnabled(value);
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_RoamingEnabled(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().RoamingEnabled());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall add_VisualElementsRequested(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().VisualElementsRequested(*reinterpret_cast<Windows::Foundation::TypedEventHandler<Windows::UI::StartScreen::SecondaryTile, Windows::UI::StartScreen::VisualElementsRequestedEventArgs> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_VisualElementsRequested(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().VisualElementsRequested(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
};
template <typename D>
struct produce<D, Windows::UI::StartScreen::ISecondaryTileFactory> : produce_base<D, Windows::UI::StartScreen::ISecondaryTileFactory>
{
int32_t __stdcall CreateTile(void* tileId, void* shortName, void* displayName, void* arguments, uint32_t tileOptions, void* logoReference, void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::UI::StartScreen::SecondaryTile>(this->shim().CreateTile(*reinterpret_cast<hstring const*>(&tileId), *reinterpret_cast<hstring const*>(&shortName), *reinterpret_cast<hstring const*>(&displayName), *reinterpret_cast<hstring const*>(&arguments), *reinterpret_cast<Windows::UI::StartScreen::TileOptions const*>(&tileOptions), *reinterpret_cast<Windows::Foundation::Uri const*>(&logoReference)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall CreateWideTile(void* tileId, void* shortName, void* displayName, void* arguments, uint32_t tileOptions, void* logoReference, void* wideLogoReference, void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::UI::StartScreen::SecondaryTile>(this->shim().CreateWideTile(*reinterpret_cast<hstring const*>(&tileId), *reinterpret_cast<hstring const*>(&shortName), *reinterpret_cast<hstring const*>(&displayName), *reinterpret_cast<hstring const*>(&arguments), *reinterpret_cast<Windows::UI::StartScreen::TileOptions const*>(&tileOptions), *reinterpret_cast<Windows::Foundation::Uri const*>(&logoReference), *reinterpret_cast<Windows::Foundation::Uri const*>(&wideLogoReference)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall CreateWithId(void* tileId, void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::UI::StartScreen::SecondaryTile>(this->shim().CreateWithId(*reinterpret_cast<hstring const*>(&tileId)));
return 0;
}
catch (...) { return to_hresult(); }
};
template <typename D>
struct produce<D, Windows::UI::StartScreen::ISecondaryTileFactory2> : produce_base<D, Windows::UI::StartScreen::ISecondaryTileFactory2>
{
int32_t __stdcall CreateMinimalTile(void* tileId, void* displayName, void* arguments, void* square150x150Logo, int32_t desiredSize, void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::UI::StartScreen::SecondaryTile>(this->shim().CreateMinimalTile(*reinterpret_cast<hstring const*>(&tileId), *reinterpret_cast<hstring const*>(&displayName), *reinterpret_cast<hstring const*>(&arguments), *reinterpret_cast<Windows::Foundation::Uri const*>(&square150x150Logo), *reinterpret_cast<Windows::UI::StartScreen::TileSize const*>(&desiredSize)));
return 0;
}
catch (...) { return to_hresult(); }
};
template <typename D>
struct produce<D, Windows::UI::StartScreen::ISecondaryTileStatics> : produce_base<D, Windows::UI::StartScreen::ISecondaryTileStatics>
{
int32_t __stdcall Exists(void* tileId, bool* exists) noexcept final try
{
typename D::abi_guard guard(this->shim());
*exists = detach_from<bool>(this->shim().Exists(*reinterpret_cast<hstring const*>(&tileId)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall FindAllAsync(void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<Windows::Foundation::IAsyncOperation<Windows::Foundation::Collections::IVectorView<Windows::UI::StartScreen::SecondaryTile>>>(this->shim().FindAllAsync());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall FindAllForApplicationAsync(void* applicationId, void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<Windows::Foundation::IAsyncOperation<Windows::Foundation::Collections::IVectorView<Windows::UI::StartScreen::SecondaryTile>>>(this->shim().FindAllAsync(*reinterpret_cast<hstring const*>(&applicationId)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall FindAllForPackageAsync(void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<Windows::Foundation::IAsyncOperation<Windows::Foundation::Collections::IVectorView<Windows::UI::StartScreen::SecondaryTile>>>(this->shim().FindAllForPackageAsync());
return 0;
}
catch (...) { return to_hresult(); }
};
template <typename D>
struct produce<D, Windows::UI::StartScreen::ISecondaryTileVisualElements> : produce_base<D, Windows::UI::StartScreen::ISecondaryTileVisualElements>
{
int32_t __stdcall put_Square30x30Logo(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Square30x30Logo(*reinterpret_cast<Windows::Foundation::Uri const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Square30x30Logo(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::Foundation::Uri>(this->shim().Square30x30Logo());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Square70x70Logo(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Square70x70Logo(*reinterpret_cast<Windows::Foundation::Uri const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Square70x70Logo(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::Foundation::Uri>(this->shim().Square70x70Logo());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Square150x150Logo(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Square150x150Logo(*reinterpret_cast<Windows::Foundation::Uri const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Square150x150Logo(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::Foundation::Uri>(this->shim().Square150x150Logo());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Wide310x150Logo(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Wide310x150Logo(*reinterpret_cast<Windows::Foundation::Uri const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Wide310x150Logo(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::Foundation::Uri>(this->shim().Wide310x150Logo());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Square310x310Logo(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Square310x310Logo(*reinterpret_cast<Windows::Foundation::Uri const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Square310x310Logo(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::Foundation::Uri>(this->shim().Square310x310Logo());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ForegroundText(int32_t value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ForegroundText(*reinterpret_cast<Windows::UI::StartScreen::ForegroundText const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ForegroundText(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::UI::StartScreen::ForegroundText>(this->shim().ForegroundText());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_BackgroundColor(struct struct_Windows_UI_Color value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().BackgroundColor(*reinterpret_cast<Windows::UI::Color const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_BackgroundColor(struct struct_Windows_UI_Color* value) noexcept final try
{
zero_abi<Windows::UI::Color>(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::UI::Color>(this->shim().BackgroundColor());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ShowNameOnSquare150x150Logo(bool value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ShowNameOnSquare150x150Logo(value);
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ShowNameOnSquare150x150Logo(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().ShowNameOnSquare150x150Logo());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ShowNameOnWide310x150Logo(bool value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ShowNameOnWide310x150Logo(value);
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ShowNameOnWide310x150Logo(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().ShowNameOnWide310x150Logo());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ShowNameOnSquare310x310Logo(bool value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ShowNameOnSquare310x310Logo(value);
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ShowNameOnSquare310x310Logo(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().ShowNameOnSquare310x310Logo());
return 0;
}
catch (...) { return to_hresult(); }
};
template <typename D>
struct produce<D, Windows::UI::StartScreen::ISecondaryTileVisualElements2> : produce_base<D, Windows::UI::StartScreen::ISecondaryTileVisualElements2>
{
int32_t __stdcall put_Square71x71Logo(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Square71x71Logo(*reinterpret_cast<Windows::Foundation::Uri const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Square71x71Logo(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::Foundation::Uri>(this->shim().Square71x71Logo());
return 0;
}
catch (...) { return to_hresult(); }
};
template <typename D>
struct produce<D, Windows::UI::StartScreen::ISecondaryTileVisualElements3> : produce_base<D, Windows::UI::StartScreen::ISecondaryTileVisualElements3>
{
int32_t __stdcall put_Square44x44Logo(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Square44x44Logo(*reinterpret_cast<Windows::Foundation::Uri const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Square44x44Logo(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::Foundation::Uri>(this->shim().Square44x44Logo());
return 0;
}
catch (...) { return to_hresult(); }
};
template <typename D>
struct produce<D, Windows::UI::StartScreen::ISecondaryTileVisualElements4> : produce_base<D, Windows::UI::StartScreen::ISecondaryTileVisualElements4>
{
int32_t __stdcall get_MixedRealityModel(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::UI::StartScreen::TileMixedRealityModel>(this->shim().MixedRealityModel());
return 0;
}
catch (...) { return to_hresult(); }
};
template <typename D>
struct produce<D, Windows::UI::StartScreen::IStartScreenManager> : produce_base<D, Windows::UI::StartScreen::IStartScreenManager>
{
int32_t __stdcall get_User(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::System::User>(this->shim().User());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall SupportsAppListEntry(void* appListEntry, bool* result) noexcept final try
{
typename D::abi_guard guard(this->shim());
*result = detach_from<bool>(this->shim().SupportsAppListEntry(*reinterpret_cast<Windows::ApplicationModel::Core::AppListEntry const*>(&appListEntry)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall ContainsAppListEntryAsync(void* appListEntry, void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<Windows::Foundation::IAsyncOperation<bool>>(this->shim().ContainsAppListEntryAsync(*reinterpret_cast<Windows::ApplicationModel::Core::AppListEntry const*>(&appListEntry)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RequestAddAppListEntryAsync(void* appListEntry, void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<Windows::Foundation::IAsyncOperation<bool>>(this->shim().RequestAddAppListEntryAsync(*reinterpret_cast<Windows::ApplicationModel::Core::AppListEntry const*>(&appListEntry)));
return 0;
}
catch (...) { return to_hresult(); }
};
template <typename D>
struct produce<D, Windows::UI::StartScreen::IStartScreenManager2> : produce_base<D, Windows::UI::StartScreen::IStartScreenManager2>
{
int32_t __stdcall ContainsSecondaryTileAsync(void* tileId, void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<Windows::Foundation::IAsyncOperation<bool>>(this->shim().ContainsSecondaryTileAsync(*reinterpret_cast<hstring const*>(&tileId)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall TryRemoveSecondaryTileAsync(void* tileId, void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<Windows::Foundation::IAsyncOperation<bool>>(this->shim().TryRemoveSecondaryTileAsync(*reinterpret_cast<hstring const*>(&tileId)));
return 0;
}
catch (...) { return to_hresult(); }
};
template <typename D>
struct produce<D, Windows::UI::StartScreen::IStartScreenManagerStatics> : produce_base<D, Windows::UI::StartScreen::IStartScreenManagerStatics>
{
int32_t __stdcall GetDefault(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::UI::StartScreen::StartScreenManager>(this->shim().GetDefault());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall GetForUser(void* user, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<Windows::UI::StartScreen::StartScreenManager>(this->shim().GetForUser(*reinterpret_cast<Windows::System::User const*>(&user)));
return 0;
}
catch (...) { return to_hresult(); }
};
template <typename D>
struct produce<D, Windows::UI::StartScreen::ITileMixedRealityModel> : produce_base<D, Windows::UI::StartScreen::ITileMixedRealityModel>
{
int32_t __stdcall put_Uri(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Uri(*reinterpret_cast<Windows::Foundation::Uri const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Uri(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::Foundation::Uri>(this->shim().Uri());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_BoundingBox(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().BoundingBox(*reinterpret_cast<Windows::Foundation::IReference<Windows::Perception::Spatial::SpatialBoundingBox> const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_BoundingBox(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::Foundation::IReference<Windows::Perception::Spatial::SpatialBoundingBox>>(this->shim().BoundingBox());
return 0;
}
catch (...) { return to_hresult(); }
};
template <typename D>
struct produce<D, Windows::UI::StartScreen::ITileMixedRealityModel2> : produce_base<D, Windows::UI::StartScreen::ITileMixedRealityModel2>
{
int32_t __stdcall put_ActivationBehavior(int32_t value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ActivationBehavior(*reinterpret_cast<Windows::UI::StartScreen::TileMixedRealityModelActivationBehavior const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ActivationBehavior(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::UI::StartScreen::TileMixedRealityModelActivationBehavior>(this->shim().ActivationBehavior());
return 0;
}
catch (...) { return to_hresult(); }
};
template <typename D>
struct produce<D, Windows::UI::StartScreen::IVisualElementsRequest> : produce_base<D, Windows::UI::StartScreen::IVisualElementsRequest>
{
int32_t __stdcall get_VisualElements(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::UI::StartScreen::SecondaryTileVisualElements>(this->shim().VisualElements());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_AlternateVisualElements(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::Foundation::Collections::IVectorView<Windows::UI::StartScreen::SecondaryTileVisualElements>>(this->shim().AlternateVisualElements());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Deadline(int64_t* value) noexcept final try
{
zero_abi<Windows::Foundation::DateTime>(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::Foundation::DateTime>(this->shim().Deadline());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall GetDeferral(void** deferral) noexcept final try
{
clear_abi(deferral);
typename D::abi_guard guard(this->shim());
*deferral = detach_from<Windows::UI::StartScreen::VisualElementsRequestDeferral>(this->shim().GetDeferral());
return 0;
}
catch (...) { return to_hresult(); }
};
template <typename D>
struct produce<D, Windows::UI::StartScreen::IVisualElementsRequestDeferral> : produce_base<D, Windows::UI::StartScreen::IVisualElementsRequestDeferral>
{
int32_t __stdcall Complete() noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Complete();
return 0;
}
catch (...) { return to_hresult(); }
};
template <typename D>
struct produce<D, Windows::UI::StartScreen::IVisualElementsRequestedEventArgs> : produce_base<D, Windows::UI::StartScreen::IVisualElementsRequestedEventArgs>
{
int32_t __stdcall get_Request(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::UI::StartScreen::VisualElementsRequest>(this->shim().Request());
return 0;
}
catch (...) { return to_hresult(); }
};
}
namespace winrt::Windows::UI::StartScreen
{
constexpr auto operator|(TileOptions const left, TileOptions const right) noexcept
{
return static_cast<TileOptions>(impl::to_underlying_type(left) | impl::to_underlying_type(right));
}
constexpr auto operator|=(TileOptions& left, TileOptions const right) noexcept
{
left = left | right;
return left;
}
constexpr auto operator&(TileOptions const left, TileOptions const right) noexcept
{
return static_cast<TileOptions>(impl::to_underlying_type(left) & impl::to_underlying_type(right));
}
constexpr auto operator&=(TileOptions& left, TileOptions const right) noexcept
{
left = left & right;
return left;
}
constexpr auto operator~(TileOptions const value) noexcept
{
return static_cast<TileOptions>(~impl::to_underlying_type(value));
}
constexpr auto operator^(TileOptions const left, TileOptions const right) noexcept
{
return static_cast<TileOptions>(impl::to_underlying_type(left) ^ impl::to_underlying_type(right));
}
constexpr auto operator^=(TileOptions& left, TileOptions const right) noexcept
{
left = left ^ right;
return left;
}
inline auto JumpList::LoadCurrentAsync()
{
return impl::call_factory<JumpList, Windows::UI::StartScreen::IJumpListStatics>([&](auto&& f) { return f.LoadCurrentAsync(); });
}
inline auto JumpList::IsSupported()
{
return impl::call_factory<JumpList, Windows::UI::StartScreen::IJumpListStatics>([&](auto&& f) { return f.IsSupported(); });
}
inline auto JumpListItem::CreateWithArguments(param::hstring const& arguments, param::hstring const& displayName)
{
return impl::call_factory<JumpListItem, Windows::UI::StartScreen::IJumpListItemStatics>([&](auto&& f) { return f.CreateWithArguments(arguments, displayName); });
}
inline auto JumpListItem::CreateSeparator()
{
return impl::call_factory<JumpListItem, Windows::UI::StartScreen::IJumpListItemStatics>([&](auto&& f) { return f.CreateSeparator(); });
}
inline SecondaryTile::SecondaryTile() :
SecondaryTile(impl::call_factory<SecondaryTile>([](auto&& f) { return f.template ActivateInstance<SecondaryTile>(); }))
{
}
inline SecondaryTile::SecondaryTile(param::hstring const& tileId, param::hstring const& shortName, param::hstring const& displayName, param::hstring const& arguments, Windows::UI::StartScreen::TileOptions const& tileOptions, Windows::Foundation::Uri const& logoReference) :
SecondaryTile(impl::call_factory<SecondaryTile, Windows::UI::StartScreen::ISecondaryTileFactory>([&](auto&& f) { return f.CreateTile(tileId, shortName, displayName, arguments, tileOptions, logoReference); }))
{
}
inline SecondaryTile::SecondaryTile(param::hstring const& tileId, param::hstring const& shortName, param::hstring const& displayName, param::hstring const& arguments, Windows::UI::StartScreen::TileOptions const& tileOptions, Windows::Foundation::Uri const& logoReference, Windows::Foundation::Uri const& wideLogoReference) :
SecondaryTile(impl::call_factory<SecondaryTile, Windows::UI::StartScreen::ISecondaryTileFactory>([&](auto&& f) { return f.CreateWideTile(tileId, shortName, displayName, arguments, tileOptions, logoReference, wideLogoReference); }))
{
}
inline SecondaryTile::SecondaryTile(param::hstring const& tileId) :
SecondaryTile(impl::call_factory<SecondaryTile, Windows::UI::StartScreen::ISecondaryTileFactory>([&](auto&& f) { return f.CreateWithId(tileId); }))
{
}
inline SecondaryTile::SecondaryTile(param::hstring const& tileId, param::hstring const& displayName, param::hstring const& arguments, Windows::Foundation::Uri const& square150x150Logo, Windows::UI::StartScreen::TileSize const& desiredSize) :
SecondaryTile(impl::call_factory<SecondaryTile, Windows::UI::StartScreen::ISecondaryTileFactory2>([&](auto&& f) { return f.CreateMinimalTile(tileId, displayName, arguments, square150x150Logo, desiredSize); }))
{
}
inline auto SecondaryTile::Exists(param::hstring const& tileId)
{
return impl::call_factory<SecondaryTile, Windows::UI::StartScreen::ISecondaryTileStatics>([&](auto&& f) { return f.Exists(tileId); });
}
inline auto SecondaryTile::FindAllAsync()
{
return impl::call_factory<SecondaryTile, Windows::UI::StartScreen::ISecondaryTileStatics>([&](auto&& f) { return f.FindAllAsync(); });
}
inline auto SecondaryTile::FindAllAsync(param::hstring const& applicationId)
{
return impl::call_factory<SecondaryTile, Windows::UI::StartScreen::ISecondaryTileStatics>([&](auto&& f) { return f.FindAllAsync(applicationId); });
}
inline auto SecondaryTile::FindAllForPackageAsync()
{
return impl::call_factory<SecondaryTile, Windows::UI::StartScreen::ISecondaryTileStatics>([&](auto&& f) { return f.FindAllForPackageAsync(); });
}
inline auto StartScreenManager::GetDefault()
{
return impl::call_factory<StartScreenManager, Windows::UI::StartScreen::IStartScreenManagerStatics>([&](auto&& f) { return f.GetDefault(); });
}
inline auto StartScreenManager::GetForUser(Windows::System::User const& user)
{
return impl::call_factory<StartScreenManager, Windows::UI::StartScreen::IStartScreenManagerStatics>([&](auto&& f) { return f.GetForUser(user); });
}
}
namespace std
{
template<> struct hash<winrt::Windows::UI::StartScreen::IJumpList> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::IJumpList> {};
template<> struct hash<winrt::Windows::UI::StartScreen::IJumpListItem> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::IJumpListItem> {};
template<> struct hash<winrt::Windows::UI::StartScreen::IJumpListItemStatics> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::IJumpListItemStatics> {};
template<> struct hash<winrt::Windows::UI::StartScreen::IJumpListStatics> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::IJumpListStatics> {};
template<> struct hash<winrt::Windows::UI::StartScreen::ISecondaryTile> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::ISecondaryTile> {};
template<> struct hash<winrt::Windows::UI::StartScreen::ISecondaryTile2> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::ISecondaryTile2> {};
template<> struct hash<winrt::Windows::UI::StartScreen::ISecondaryTileFactory> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::ISecondaryTileFactory> {};
template<> struct hash<winrt::Windows::UI::StartScreen::ISecondaryTileFactory2> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::ISecondaryTileFactory2> {};
template<> struct hash<winrt::Windows::UI::StartScreen::ISecondaryTileStatics> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::ISecondaryTileStatics> {};
template<> struct hash<winrt::Windows::UI::StartScreen::ISecondaryTileVisualElements> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::ISecondaryTileVisualElements> {};
template<> struct hash<winrt::Windows::UI::StartScreen::ISecondaryTileVisualElements2> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::ISecondaryTileVisualElements2> {};
template<> struct hash<winrt::Windows::UI::StartScreen::ISecondaryTileVisualElements3> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::ISecondaryTileVisualElements3> {};
template<> struct hash<winrt::Windows::UI::StartScreen::ISecondaryTileVisualElements4> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::ISecondaryTileVisualElements4> {};
template<> struct hash<winrt::Windows::UI::StartScreen::IStartScreenManager> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::IStartScreenManager> {};
template<> struct hash<winrt::Windows::UI::StartScreen::IStartScreenManager2> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::IStartScreenManager2> {};
template<> struct hash<winrt::Windows::UI::StartScreen::IStartScreenManagerStatics> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::IStartScreenManagerStatics> {};
template<> struct hash<winrt::Windows::UI::StartScreen::ITileMixedRealityModel> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::ITileMixedRealityModel> {};
template<> struct hash<winrt::Windows::UI::StartScreen::ITileMixedRealityModel2> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::ITileMixedRealityModel2> {};
template<> struct hash<winrt::Windows::UI::StartScreen::IVisualElementsRequest> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::IVisualElementsRequest> {};
template<> struct hash<winrt::Windows::UI::StartScreen::IVisualElementsRequestDeferral> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::IVisualElementsRequestDeferral> {};
template<> struct hash<winrt::Windows::UI::StartScreen::IVisualElementsRequestedEventArgs> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::IVisualElementsRequestedEventArgs> {};
template<> struct hash<winrt::Windows::UI::StartScreen::JumpList> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::JumpList> {};
template<> struct hash<winrt::Windows::UI::StartScreen::JumpListItem> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::JumpListItem> {};
template<> struct hash<winrt::Windows::UI::StartScreen::SecondaryTile> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::SecondaryTile> {};
template<> struct hash<winrt::Windows::UI::StartScreen::SecondaryTileVisualElements> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::SecondaryTileVisualElements> {};
template<> struct hash<winrt::Windows::UI::StartScreen::StartScreenManager> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::StartScreenManager> {};
template<> struct hash<winrt::Windows::UI::StartScreen::TileMixedRealityModel> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::TileMixedRealityModel> {};
template<> struct hash<winrt::Windows::UI::StartScreen::VisualElementsRequest> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::VisualElementsRequest> {};
template<> struct hash<winrt::Windows::UI::StartScreen::VisualElementsRequestDeferral> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::VisualElementsRequestDeferral> {};
template<> struct hash<winrt::Windows::UI::StartScreen::VisualElementsRequestedEventArgs> : winrt::impl::hash_base<winrt::Windows::UI::StartScreen::VisualElementsRequestedEventArgs> {};
}
#endif