// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_ApplicationModel_Store_Preview_H #define WINRT_Windows_ApplicationModel_Store_Preview_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #include "winrt/Windows.ApplicationModel.Store.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Security.Authentication.Web.Core.2.h" #include "winrt/impl/Windows.Security.Credentials.2.h" #include "winrt/impl/Windows.Storage.Streams.2.h" #include "winrt/impl/Windows.System.2.h" #include "winrt/impl/Windows.UI.Xaml.2.h" #include "winrt/impl/Windows.ApplicationModel.Store.Preview.2.h" namespace winrt::impl { template auto consume_Windows_ApplicationModel_Store_Preview_IDeliveryOptimizationSettings::DownloadMode() const { winrt::Windows::ApplicationModel::Store::Preview::DeliveryOptimizationDownloadMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IDeliveryOptimizationSettings)->get_DownloadMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Store_Preview_IDeliveryOptimizationSettings::DownloadModeSource() const { winrt::Windows::ApplicationModel::Store::Preview::DeliveryOptimizationDownloadModeSource value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IDeliveryOptimizationSettings)->get_DownloadModeSource(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Store_Preview_IDeliveryOptimizationSettingsStatics::GetCurrentSettings() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IDeliveryOptimizationSettingsStatics)->GetCurrentSettings(&result)); return winrt::Windows::ApplicationModel::Store::Preview::DeliveryOptimizationSettings{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics::SetSystemConfiguration(param::hstring const& catalogHardwareManufacturerId, param::hstring const& catalogStoreContentModifierId, winrt::Windows::Foundation::DateTime const& systemConfigurationExpiration, param::hstring const& catalogHardwareDescriptor) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics)->SetSystemConfiguration(*(void**)(&catalogHardwareManufacturerId), *(void**)(&catalogStoreContentModifierId), impl::bind_in(systemConfigurationExpiration), *(void**)(&catalogHardwareDescriptor))); } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics::SetMobileOperatorConfiguration(param::hstring const& mobileOperatorId, uint32_t appDownloadLimitInMegabytes, uint32_t updateDownloadLimitInMegabytes) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics)->SetMobileOperatorConfiguration(*(void**)(&mobileOperatorId), appDownloadLimitInMegabytes, updateDownloadLimitInMegabytes)); } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics::SetStoreWebAccountId(param::hstring const& webAccountId) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics)->SetStoreWebAccountId(*(void**)(&webAccountId))); } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics::IsStoreWebAccountId(param::hstring const& webAccountId) const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics)->IsStoreWebAccountId(*(void**)(&webAccountId), &value)); return value; } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics::HardwareManufacturerInfo() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics)->get_HardwareManufacturerInfo(&value)); return winrt::Windows::ApplicationModel::Store::Preview::StoreHardwareManufacturerInfo{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics::FilterUnsupportedSystemFeaturesAsync(param::async_iterable const& systemFeatures) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics)->FilterUnsupportedSystemFeaturesAsync(*(void**)(&systemFeatures), &operation)); return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics2::PurchasePromptingPolicy() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics2)->get_PurchasePromptingPolicy(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics2::PurchasePromptingPolicy(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics2)->put_PurchasePromptingPolicy(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics3::HasStoreWebAccount() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics3)->HasStoreWebAccount(&value)); return value; } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics3::HasStoreWebAccountForUser(winrt::Windows::System::User const& user) const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics3)->HasStoreWebAccountForUser(*(void**)(&user), &value)); return value; } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics3::GetStoreLogDataAsync(winrt::Windows::ApplicationModel::Store::Preview::StoreLogOptions const& options) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics3)->GetStoreLogDataAsync(static_cast(options), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics3::SetStoreWebAccountIdForUser(winrt::Windows::System::User const& user, param::hstring const& webAccountId) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics3)->SetStoreWebAccountIdForUser(*(void**)(&user), *(void**)(&webAccountId))); } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics3::IsStoreWebAccountIdForUser(winrt::Windows::System::User const& user, param::hstring const& webAccountId) const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics3)->IsStoreWebAccountIdForUser(*(void**)(&user), *(void**)(&webAccountId), &value)); return value; } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics3::GetPurchasePromptingPolicyForUser(winrt::Windows::System::User const& user) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics3)->GetPurchasePromptingPolicyForUser(*(void**)(&user), &value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics3::SetPurchasePromptingPolicyForUser(winrt::Windows::System::User const& user, winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics3)->SetPurchasePromptingPolicyForUser(*(void**)(&user), *(void**)(&value))); } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics4::GetStoreWebAccountId() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics4)->GetStoreWebAccountId(&result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics4::GetStoreWebAccountIdForUser(winrt::Windows::System::User const& user) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics4)->GetStoreWebAccountIdForUser(*(void**)(&user), &result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics4::SetEnterpriseStoreWebAccountId(param::hstring const& webAccountId) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics4)->SetEnterpriseStoreWebAccountId(*(void**)(&webAccountId))); } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics4::SetEnterpriseStoreWebAccountIdForUser(winrt::Windows::System::User const& user, param::hstring const& webAccountId) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics4)->SetEnterpriseStoreWebAccountIdForUser(*(void**)(&user), *(void**)(&webAccountId))); } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics4::GetEnterpriseStoreWebAccountId() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics4)->GetEnterpriseStoreWebAccountId(&result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics4::GetEnterpriseStoreWebAccountIdForUser(winrt::Windows::System::User const& user) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics4)->GetEnterpriseStoreWebAccountIdForUser(*(void**)(&user), &result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics4::ShouldRestrictToEnterpriseStoreOnly() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics4)->ShouldRestrictToEnterpriseStoreOnly(&result)); return result; } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics4::ShouldRestrictToEnterpriseStoreOnlyForUser(winrt::Windows::System::User const& user) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics4)->ShouldRestrictToEnterpriseStoreOnlyForUser(*(void**)(&user), &result)); return result; } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics5::IsPinToDesktopSupported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics5)->IsPinToDesktopSupported(&value)); return value; } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics5::IsPinToTaskbarSupported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics5)->IsPinToTaskbarSupported(&value)); return value; } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics5::IsPinToStartSupported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics5)->IsPinToStartSupported(&value)); return value; } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics5::PinToDesktop(param::hstring const& appPackageFamilyName) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics5)->PinToDesktop(*(void**)(&appPackageFamilyName))); } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreConfigurationStatics5::PinToDesktopForUser(winrt::Windows::System::User const& user, param::hstring const& appPackageFamilyName) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreConfigurationStatics5)->PinToDesktopForUser(*(void**)(&user), *(void**)(&appPackageFamilyName))); } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreHardwareManufacturerInfo::HardwareManufacturerId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreHardwareManufacturerInfo)->get_HardwareManufacturerId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreHardwareManufacturerInfo::StoreContentModifierId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreHardwareManufacturerInfo)->get_StoreContentModifierId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreHardwareManufacturerInfo::ModelName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreHardwareManufacturerInfo)->get_ModelName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStoreHardwareManufacturerInfo::ManufacturerName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStoreHardwareManufacturerInfo)->get_ManufacturerName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStorePreview::RequestProductPurchaseByProductIdAndSkuIdAsync(param::hstring const& productId, param::hstring const& skuId) const { void* requestPurchaseBySkuIdOperation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStorePreview)->RequestProductPurchaseByProductIdAndSkuIdAsync(*(void**)(&productId), *(void**)(&skuId), &requestPurchaseBySkuIdOperation)); return winrt::Windows::Foundation::IAsyncOperation{ requestPurchaseBySkuIdOperation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStorePreview::LoadAddOnProductInfosAsync() const { void* loadAddOnProductInfosOperation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStorePreview)->LoadAddOnProductInfosAsync(&loadAddOnProductInfosOperation)); return winrt::Windows::Foundation::IAsyncOperation>{ loadAddOnProductInfosOperation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStorePreviewProductInfo::ProductId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStorePreviewProductInfo)->get_ProductId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStorePreviewProductInfo::ProductType() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStorePreviewProductInfo)->get_ProductType(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStorePreviewProductInfo::Title() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStorePreviewProductInfo)->get_Title(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStorePreviewProductInfo::Description() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStorePreviewProductInfo)->get_Description(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStorePreviewProductInfo::SkuInfoList() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStorePreviewProductInfo)->get_SkuInfoList(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStorePreviewPurchaseResults::ProductPurchaseStatus() const { winrt::Windows::ApplicationModel::Store::Preview::StorePreviewProductPurchaseStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStorePreviewPurchaseResults)->get_ProductPurchaseStatus(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Store_Preview_IStorePreviewSkuInfo::ProductId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStorePreviewSkuInfo)->get_ProductId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStorePreviewSkuInfo::SkuId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStorePreviewSkuInfo)->get_SkuId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStorePreviewSkuInfo::SkuType() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStorePreviewSkuInfo)->get_SkuType(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStorePreviewSkuInfo::Title() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStorePreviewSkuInfo)->get_Title(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStorePreviewSkuInfo::Description() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStorePreviewSkuInfo)->get_Description(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStorePreviewSkuInfo::CustomDeveloperData() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStorePreviewSkuInfo)->get_CustomDeveloperData(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStorePreviewSkuInfo::CurrencyCode() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStorePreviewSkuInfo)->get_CurrencyCode(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStorePreviewSkuInfo::FormattedListPrice() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStorePreviewSkuInfo)->get_FormattedListPrice(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IStorePreviewSkuInfo::ExtendedData() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IStorePreviewSkuInfo)->get_ExtendedData(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IWebAuthenticationCoreManagerHelper::RequestTokenWithUIElementHostingAsync(winrt::Windows::Security::Authentication::Web::Core::WebTokenRequest const& request, winrt::Windows::UI::Xaml::UIElement const& uiElement) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IWebAuthenticationCoreManagerHelper)->RequestTokenWithUIElementHostingAsync(*(void**)(&request), *(void**)(&uiElement), &asyncInfo)); return winrt::Windows::Foundation::IAsyncOperation{ asyncInfo, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Store_Preview_IWebAuthenticationCoreManagerHelper::RequestTokenWithUIElementHostingAsync(winrt::Windows::Security::Authentication::Web::Core::WebTokenRequest const& request, winrt::Windows::Security::Credentials::WebAccount const& webAccount, winrt::Windows::UI::Xaml::UIElement const& uiElement) const { void* asyncInfo{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Store::Preview::IWebAuthenticationCoreManagerHelper)->RequestTokenWithUIElementHostingAndWebAccountAsync(*(void**)(&request), *(void**)(&webAccount), *(void**)(&uiElement), &asyncInfo)); return winrt::Windows::Foundation::IAsyncOperation{ asyncInfo, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DownloadMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DownloadMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DownloadModeSource(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DownloadModeSource()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetCurrentSettings(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetCurrentSettings()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetSystemConfiguration(void* catalogHardwareManufacturerId, void* catalogStoreContentModifierId, int64_t systemConfigurationExpiration, void* catalogHardwareDescriptor) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetSystemConfiguration(*reinterpret_cast(&catalogHardwareManufacturerId), *reinterpret_cast(&catalogStoreContentModifierId), *reinterpret_cast(&systemConfigurationExpiration), *reinterpret_cast(&catalogHardwareDescriptor)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetMobileOperatorConfiguration(void* mobileOperatorId, uint32_t appDownloadLimitInMegabytes, uint32_t updateDownloadLimitInMegabytes) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetMobileOperatorConfiguration(*reinterpret_cast(&mobileOperatorId), appDownloadLimitInMegabytes, updateDownloadLimitInMegabytes); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetStoreWebAccountId(void* webAccountId) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetStoreWebAccountId(*reinterpret_cast(&webAccountId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsStoreWebAccountId(void* webAccountId, bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsStoreWebAccountId(*reinterpret_cast(&webAccountId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HardwareManufacturerInfo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HardwareManufacturerInfo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FilterUnsupportedSystemFeaturesAsync(void* systemFeatures, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>>(this->shim().FilterUnsupportedSystemFeaturesAsync(*reinterpret_cast const*>(&systemFeatures))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PurchasePromptingPolicy(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().PurchasePromptingPolicy()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PurchasePromptingPolicy(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PurchasePromptingPolicy(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall HasStoreWebAccount(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasStoreWebAccount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall HasStoreWebAccountForUser(void* user, bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasStoreWebAccountForUser(*reinterpret_cast(&user))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetStoreLogDataAsync(uint32_t options, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetStoreLogDataAsync(*reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetStoreWebAccountIdForUser(void* user, void* webAccountId) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetStoreWebAccountIdForUser(*reinterpret_cast(&user), *reinterpret_cast(&webAccountId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsStoreWebAccountIdForUser(void* user, void* webAccountId, bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsStoreWebAccountIdForUser(*reinterpret_cast(&user), *reinterpret_cast(&webAccountId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetPurchasePromptingPolicyForUser(void* user, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().GetPurchasePromptingPolicyForUser(*reinterpret_cast(&user))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetPurchasePromptingPolicyForUser(void* user, void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetPurchasePromptingPolicyForUser(*reinterpret_cast(&user), *reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetStoreWebAccountId(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetStoreWebAccountId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetStoreWebAccountIdForUser(void* user, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetStoreWebAccountIdForUser(*reinterpret_cast(&user))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetEnterpriseStoreWebAccountId(void* webAccountId) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetEnterpriseStoreWebAccountId(*reinterpret_cast(&webAccountId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetEnterpriseStoreWebAccountIdForUser(void* user, void* webAccountId) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetEnterpriseStoreWebAccountIdForUser(*reinterpret_cast(&user), *reinterpret_cast(&webAccountId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetEnterpriseStoreWebAccountId(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetEnterpriseStoreWebAccountId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetEnterpriseStoreWebAccountIdForUser(void* user, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetEnterpriseStoreWebAccountIdForUser(*reinterpret_cast(&user))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShouldRestrictToEnterpriseStoreOnly(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ShouldRestrictToEnterpriseStoreOnly()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShouldRestrictToEnterpriseStoreOnlyForUser(void* user, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ShouldRestrictToEnterpriseStoreOnlyForUser(*reinterpret_cast(&user))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall IsPinToDesktopSupported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsPinToDesktopSupported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsPinToTaskbarSupported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsPinToTaskbarSupported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsPinToStartSupported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsPinToStartSupported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PinToDesktop(void* appPackageFamilyName) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PinToDesktop(*reinterpret_cast(&appPackageFamilyName)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PinToDesktopForUser(void* user, void* appPackageFamilyName) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PinToDesktopForUser(*reinterpret_cast(&user), *reinterpret_cast(&appPackageFamilyName)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_HardwareManufacturerId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HardwareManufacturerId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StoreContentModifierId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StoreContentModifierId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ModelName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ModelName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ManufacturerName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ManufacturerName()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall RequestProductPurchaseByProductIdAndSkuIdAsync(void* productId, void* skuId, void** requestPurchaseBySkuIdOperation) noexcept final try { clear_abi(requestPurchaseBySkuIdOperation); typename D::abi_guard guard(this->shim()); *requestPurchaseBySkuIdOperation = detach_from>(this->shim().RequestProductPurchaseByProductIdAndSkuIdAsync(*reinterpret_cast(&productId), *reinterpret_cast(&skuId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LoadAddOnProductInfosAsync(void** loadAddOnProductInfosOperation) noexcept final try { clear_abi(loadAddOnProductInfosOperation); typename D::abi_guard guard(this->shim()); *loadAddOnProductInfosOperation = detach_from>>(this->shim().LoadAddOnProductInfosAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ProductId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProductId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProductType(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProductType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Title(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Title()); 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(this->shim().Description()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SkuInfoList(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SkuInfoList()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ProductPurchaseStatus(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProductPurchaseStatus()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ProductId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProductId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SkuId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SkuId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SkuType(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SkuType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Title(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Title()); 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(this->shim().Description()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CustomDeveloperData(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CustomDeveloperData()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CurrencyCode(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CurrencyCode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FormattedListPrice(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FormattedListPrice()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExtendedData(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExtendedData()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall RequestTokenWithUIElementHostingAsync(void* request, void* uiElement, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from>(this->shim().RequestTokenWithUIElementHostingAsync(*reinterpret_cast(&request), *reinterpret_cast(&uiElement))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestTokenWithUIElementHostingAndWebAccountAsync(void* request, void* webAccount, void* uiElement, void** asyncInfo) noexcept final try { clear_abi(asyncInfo); typename D::abi_guard guard(this->shim()); *asyncInfo = detach_from>(this->shim().RequestTokenWithUIElementHostingAsync(*reinterpret_cast(&request), *reinterpret_cast(&webAccount), *reinterpret_cast(&uiElement))); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::ApplicationModel::Store::Preview { constexpr auto operator|(StoreLogOptions const left, StoreLogOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(StoreLogOptions& left, StoreLogOptions const right) noexcept { left = left | right; return left; } constexpr auto operator&(StoreLogOptions const left, StoreLogOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(StoreLogOptions& left, StoreLogOptions const right) noexcept { left = left & right; return left; } constexpr auto operator~(StoreLogOptions const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(StoreLogOptions const left, StoreLogOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(StoreLogOptions& left, StoreLogOptions const right) noexcept { left = left ^ right; return left; } inline auto DeliveryOptimizationSettings::GetCurrentSettings() { return impl::call_factory_cast([](IDeliveryOptimizationSettingsStatics const& f) { return f.GetCurrentSettings(); }); } inline auto StoreConfiguration::SetSystemConfiguration(param::hstring const& catalogHardwareManufacturerId, param::hstring const& catalogStoreContentModifierId, winrt::Windows::Foundation::DateTime const& systemConfigurationExpiration, param::hstring const& catalogHardwareDescriptor) { impl::call_factory([&](IStoreConfigurationStatics const& f) { return f.SetSystemConfiguration(catalogHardwareManufacturerId, catalogStoreContentModifierId, systemConfigurationExpiration, catalogHardwareDescriptor); }); } inline auto StoreConfiguration::SetMobileOperatorConfiguration(param::hstring const& mobileOperatorId, uint32_t appDownloadLimitInMegabytes, uint32_t updateDownloadLimitInMegabytes) { impl::call_factory([&](IStoreConfigurationStatics const& f) { return f.SetMobileOperatorConfiguration(mobileOperatorId, appDownloadLimitInMegabytes, updateDownloadLimitInMegabytes); }); } inline auto StoreConfiguration::SetStoreWebAccountId(param::hstring const& webAccountId) { impl::call_factory([&](IStoreConfigurationStatics const& f) { return f.SetStoreWebAccountId(webAccountId); }); } inline auto StoreConfiguration::IsStoreWebAccountId(param::hstring const& webAccountId) { return impl::call_factory([&](IStoreConfigurationStatics const& f) { return f.IsStoreWebAccountId(webAccountId); }); } inline auto StoreConfiguration::HardwareManufacturerInfo() { return impl::call_factory_cast([](IStoreConfigurationStatics const& f) { return f.HardwareManufacturerInfo(); }); } inline auto StoreConfiguration::FilterUnsupportedSystemFeaturesAsync(param::async_iterable const& systemFeatures) { return impl::call_factory([&](IStoreConfigurationStatics const& f) { return f.FilterUnsupportedSystemFeaturesAsync(systemFeatures); }); } inline auto StoreConfiguration::PurchasePromptingPolicy() { return impl::call_factory_cast(*)(IStoreConfigurationStatics2 const&), StoreConfiguration, IStoreConfigurationStatics2>([](IStoreConfigurationStatics2 const& f) { return f.PurchasePromptingPolicy(); }); } inline auto StoreConfiguration::PurchasePromptingPolicy(winrt::Windows::Foundation::IReference const& value) { impl::call_factory([&](IStoreConfigurationStatics2 const& f) { return f.PurchasePromptingPolicy(value); }); } inline auto StoreConfiguration::HasStoreWebAccount() { return impl::call_factory_cast([](IStoreConfigurationStatics3 const& f) { return f.HasStoreWebAccount(); }); } inline auto StoreConfiguration::HasStoreWebAccountForUser(winrt::Windows::System::User const& user) { return impl::call_factory([&](IStoreConfigurationStatics3 const& f) { return f.HasStoreWebAccountForUser(user); }); } inline auto StoreConfiguration::GetStoreLogDataAsync(winrt::Windows::ApplicationModel::Store::Preview::StoreLogOptions const& options) { return impl::call_factory([&](IStoreConfigurationStatics3 const& f) { return f.GetStoreLogDataAsync(options); }); } inline auto StoreConfiguration::SetStoreWebAccountIdForUser(winrt::Windows::System::User const& user, param::hstring const& webAccountId) { impl::call_factory([&](IStoreConfigurationStatics3 const& f) { return f.SetStoreWebAccountIdForUser(user, webAccountId); }); } inline auto StoreConfiguration::IsStoreWebAccountIdForUser(winrt::Windows::System::User const& user, param::hstring const& webAccountId) { return impl::call_factory([&](IStoreConfigurationStatics3 const& f) { return f.IsStoreWebAccountIdForUser(user, webAccountId); }); } inline auto StoreConfiguration::GetPurchasePromptingPolicyForUser(winrt::Windows::System::User const& user) { return impl::call_factory([&](IStoreConfigurationStatics3 const& f) { return f.GetPurchasePromptingPolicyForUser(user); }); } inline auto StoreConfiguration::SetPurchasePromptingPolicyForUser(winrt::Windows::System::User const& user, winrt::Windows::Foundation::IReference const& value) { impl::call_factory([&](IStoreConfigurationStatics3 const& f) { return f.SetPurchasePromptingPolicyForUser(user, value); }); } inline auto StoreConfiguration::GetStoreWebAccountId() { return impl::call_factory_cast([](IStoreConfigurationStatics4 const& f) { return f.GetStoreWebAccountId(); }); } inline auto StoreConfiguration::GetStoreWebAccountIdForUser(winrt::Windows::System::User const& user) { return impl::call_factory([&](IStoreConfigurationStatics4 const& f) { return f.GetStoreWebAccountIdForUser(user); }); } inline auto StoreConfiguration::SetEnterpriseStoreWebAccountId(param::hstring const& webAccountId) { impl::call_factory([&](IStoreConfigurationStatics4 const& f) { return f.SetEnterpriseStoreWebAccountId(webAccountId); }); } inline auto StoreConfiguration::SetEnterpriseStoreWebAccountIdForUser(winrt::Windows::System::User const& user, param::hstring const& webAccountId) { impl::call_factory([&](IStoreConfigurationStatics4 const& f) { return f.SetEnterpriseStoreWebAccountIdForUser(user, webAccountId); }); } inline auto StoreConfiguration::GetEnterpriseStoreWebAccountId() { return impl::call_factory_cast([](IStoreConfigurationStatics4 const& f) { return f.GetEnterpriseStoreWebAccountId(); }); } inline auto StoreConfiguration::GetEnterpriseStoreWebAccountIdForUser(winrt::Windows::System::User const& user) { return impl::call_factory([&](IStoreConfigurationStatics4 const& f) { return f.GetEnterpriseStoreWebAccountIdForUser(user); }); } inline auto StoreConfiguration::ShouldRestrictToEnterpriseStoreOnly() { return impl::call_factory_cast([](IStoreConfigurationStatics4 const& f) { return f.ShouldRestrictToEnterpriseStoreOnly(); }); } inline auto StoreConfiguration::ShouldRestrictToEnterpriseStoreOnlyForUser(winrt::Windows::System::User const& user) { return impl::call_factory([&](IStoreConfigurationStatics4 const& f) { return f.ShouldRestrictToEnterpriseStoreOnlyForUser(user); }); } inline auto StoreConfiguration::IsPinToDesktopSupported() { return impl::call_factory_cast([](IStoreConfigurationStatics5 const& f) { return f.IsPinToDesktopSupported(); }); } inline auto StoreConfiguration::IsPinToTaskbarSupported() { return impl::call_factory_cast([](IStoreConfigurationStatics5 const& f) { return f.IsPinToTaskbarSupported(); }); } inline auto StoreConfiguration::IsPinToStartSupported() { return impl::call_factory_cast([](IStoreConfigurationStatics5 const& f) { return f.IsPinToStartSupported(); }); } inline auto StoreConfiguration::PinToDesktop(param::hstring const& appPackageFamilyName) { impl::call_factory([&](IStoreConfigurationStatics5 const& f) { return f.PinToDesktop(appPackageFamilyName); }); } inline auto StoreConfiguration::PinToDesktopForUser(winrt::Windows::System::User const& user, param::hstring const& appPackageFamilyName) { impl::call_factory([&](IStoreConfigurationStatics5 const& f) { return f.PinToDesktopForUser(user, appPackageFamilyName); }); } inline auto StorePreview::RequestProductPurchaseByProductIdAndSkuIdAsync(param::hstring const& productId, param::hstring const& skuId) { return impl::call_factory([&](IStorePreview const& f) { return f.RequestProductPurchaseByProductIdAndSkuIdAsync(productId, skuId); }); } inline auto StorePreview::LoadAddOnProductInfosAsync() { return impl::call_factory_cast>(*)(IStorePreview const&), StorePreview, IStorePreview>([](IStorePreview const& f) { return f.LoadAddOnProductInfosAsync(); }); } inline auto WebAuthenticationCoreManagerHelper::RequestTokenWithUIElementHostingAsync(winrt::Windows::Security::Authentication::Web::Core::WebTokenRequest const& request, winrt::Windows::UI::Xaml::UIElement const& uiElement) { return impl::call_factory([&](IWebAuthenticationCoreManagerHelper const& f) { return f.RequestTokenWithUIElementHostingAsync(request, uiElement); }); } inline auto WebAuthenticationCoreManagerHelper::RequestTokenWithUIElementHostingAsync(winrt::Windows::Security::Authentication::Web::Core::WebTokenRequest const& request, winrt::Windows::Security::Credentials::WebAccount const& webAccount, winrt::Windows::UI::Xaml::UIElement const& uiElement) { return impl::call_factory([&](IWebAuthenticationCoreManagerHelper const& f) { return f.RequestTokenWithUIElementHostingAsync(request, webAccount, uiElement); }); } } 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 {}; #endif #ifdef __cpp_lib_format #endif } #endif