// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Services_Store_2_H #define WINRT_Windows_Services_Store_2_H #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.System.2.h" #include "winrt/impl/Windows.Services.Store.1.h" WINRT_EXPORT namespace winrt::Windows::Services::Store { struct StorePackageUpdateStatus { hstring PackageFamilyName; uint64_t PackageDownloadSizeInBytes; uint64_t PackageBytesDownloaded; double PackageDownloadProgress; double TotalDownloadProgress; winrt::Windows::Services::Store::StorePackageUpdateState PackageUpdateState; }; inline bool operator==(StorePackageUpdateStatus const& left, StorePackageUpdateStatus const& right) noexcept { return left.PackageFamilyName == right.PackageFamilyName && left.PackageDownloadSizeInBytes == right.PackageDownloadSizeInBytes && left.PackageBytesDownloaded == right.PackageBytesDownloaded && left.PackageDownloadProgress == right.PackageDownloadProgress && left.TotalDownloadProgress == right.TotalDownloadProgress && left.PackageUpdateState == right.PackageUpdateState; } inline bool operator!=(StorePackageUpdateStatus const& left, StorePackageUpdateStatus const& right) noexcept { return !(left == right); } struct WINRT_IMPL_EMPTY_BASES StoreAcquireLicenseResult : winrt::Windows::Services::Store::IStoreAcquireLicenseResult { StoreAcquireLicenseResult(std::nullptr_t) noexcept {} StoreAcquireLicenseResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreAcquireLicenseResult(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StoreAppLicense : winrt::Windows::Services::Store::IStoreAppLicense, impl::require { StoreAppLicense(std::nullptr_t) noexcept {} StoreAppLicense(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreAppLicense(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StoreAvailability : winrt::Windows::Services::Store::IStoreAvailability { StoreAvailability(std::nullptr_t) noexcept {} StoreAvailability(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreAvailability(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StoreCanAcquireLicenseResult : winrt::Windows::Services::Store::IStoreCanAcquireLicenseResult { StoreCanAcquireLicenseResult(std::nullptr_t) noexcept {} StoreCanAcquireLicenseResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreCanAcquireLicenseResult(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StoreCollectionData : winrt::Windows::Services::Store::IStoreCollectionData { StoreCollectionData(std::nullptr_t) noexcept {} StoreCollectionData(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreCollectionData(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StoreConsumableResult : winrt::Windows::Services::Store::IStoreConsumableResult { StoreConsumableResult(std::nullptr_t) noexcept {} StoreConsumableResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreConsumableResult(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StoreContext : winrt::Windows::Services::Store::IStoreContext, impl::require { StoreContext(std::nullptr_t) noexcept {} StoreContext(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreContext(ptr, take_ownership_from_abi) {} using winrt::Windows::Services::Store::IStoreContext::GetStoreProductsAsync; using impl::consume_t::GetStoreProductsAsync; using winrt::Windows::Services::Store::IStoreContext::RequestDownloadAndInstallStorePackagesAsync; using impl::consume_t::RequestDownloadAndInstallStorePackagesAsync; static auto GetDefault(); static auto GetForUser(winrt::Windows::System::User const& user); }; struct WINRT_IMPL_EMPTY_BASES StoreImage : winrt::Windows::Services::Store::IStoreImage { StoreImage(std::nullptr_t) noexcept {} StoreImage(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreImage(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StoreLicense : winrt::Windows::Services::Store::IStoreLicense { StoreLicense(std::nullptr_t) noexcept {} StoreLicense(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreLicense(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StorePackageInstallOptions : winrt::Windows::Services::Store::IStorePackageInstallOptions { StorePackageInstallOptions(std::nullptr_t) noexcept {} StorePackageInstallOptions(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStorePackageInstallOptions(ptr, take_ownership_from_abi) {} StorePackageInstallOptions(); }; struct WINRT_IMPL_EMPTY_BASES StorePackageLicense : winrt::Windows::Services::Store::IStorePackageLicense { StorePackageLicense(std::nullptr_t) noexcept {} StorePackageLicense(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStorePackageLicense(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StorePackageUpdate : winrt::Windows::Services::Store::IStorePackageUpdate { StorePackageUpdate(std::nullptr_t) noexcept {} StorePackageUpdate(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStorePackageUpdate(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StorePackageUpdateResult : winrt::Windows::Services::Store::IStorePackageUpdateResult, impl::require { StorePackageUpdateResult(std::nullptr_t) noexcept {} StorePackageUpdateResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStorePackageUpdateResult(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StorePrice : winrt::Windows::Services::Store::IStorePrice, impl::require { StorePrice(std::nullptr_t) noexcept {} StorePrice(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStorePrice(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StoreProduct : winrt::Windows::Services::Store::IStoreProduct { StoreProduct(std::nullptr_t) noexcept {} StoreProduct(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreProduct(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StoreProductOptions : winrt::Windows::Services::Store::IStoreProductOptions { StoreProductOptions(std::nullptr_t) noexcept {} StoreProductOptions(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreProductOptions(ptr, take_ownership_from_abi) {} StoreProductOptions(); }; struct WINRT_IMPL_EMPTY_BASES StoreProductPagedQueryResult : winrt::Windows::Services::Store::IStoreProductPagedQueryResult { StoreProductPagedQueryResult(std::nullptr_t) noexcept {} StoreProductPagedQueryResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreProductPagedQueryResult(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StoreProductQueryResult : winrt::Windows::Services::Store::IStoreProductQueryResult { StoreProductQueryResult(std::nullptr_t) noexcept {} StoreProductQueryResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreProductQueryResult(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StoreProductResult : winrt::Windows::Services::Store::IStoreProductResult { StoreProductResult(std::nullptr_t) noexcept {} StoreProductResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreProductResult(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StorePurchaseProperties : winrt::Windows::Services::Store::IStorePurchaseProperties { StorePurchaseProperties(std::nullptr_t) noexcept {} StorePurchaseProperties(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStorePurchaseProperties(ptr, take_ownership_from_abi) {} StorePurchaseProperties(); explicit StorePurchaseProperties(param::hstring const& name); }; struct WINRT_IMPL_EMPTY_BASES StorePurchaseResult : winrt::Windows::Services::Store::IStorePurchaseResult { StorePurchaseResult(std::nullptr_t) noexcept {} StorePurchaseResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStorePurchaseResult(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StoreQueueItem : winrt::Windows::Services::Store::IStoreQueueItem, impl::require { StoreQueueItem(std::nullptr_t) noexcept {} StoreQueueItem(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreQueueItem(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StoreQueueItemCompletedEventArgs : winrt::Windows::Services::Store::IStoreQueueItemCompletedEventArgs { StoreQueueItemCompletedEventArgs(std::nullptr_t) noexcept {} StoreQueueItemCompletedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreQueueItemCompletedEventArgs(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StoreQueueItemStatus : winrt::Windows::Services::Store::IStoreQueueItemStatus { StoreQueueItemStatus(std::nullptr_t) noexcept {} StoreQueueItemStatus(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreQueueItemStatus(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StoreRateAndReviewResult : winrt::Windows::Services::Store::IStoreRateAndReviewResult { StoreRateAndReviewResult(std::nullptr_t) noexcept {} StoreRateAndReviewResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreRateAndReviewResult(ptr, take_ownership_from_abi) {} }; struct StoreRequestHelper { StoreRequestHelper() = delete; static auto SendRequestAsync(winrt::Windows::Services::Store::StoreContext const& context, uint32_t requestKind, param::hstring const& parametersAsJson); }; struct WINRT_IMPL_EMPTY_BASES StoreSendRequestResult : winrt::Windows::Services::Store::IStoreSendRequestResult, impl::require { StoreSendRequestResult(std::nullptr_t) noexcept {} StoreSendRequestResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreSendRequestResult(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StoreSku : winrt::Windows::Services::Store::IStoreSku { StoreSku(std::nullptr_t) noexcept {} StoreSku(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreSku(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StoreSubscriptionInfo : winrt::Windows::Services::Store::IStoreSubscriptionInfo { StoreSubscriptionInfo(std::nullptr_t) noexcept {} StoreSubscriptionInfo(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreSubscriptionInfo(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StoreUninstallStorePackageResult : winrt::Windows::Services::Store::IStoreUninstallStorePackageResult { StoreUninstallStorePackageResult(std::nullptr_t) noexcept {} StoreUninstallStorePackageResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreUninstallStorePackageResult(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES StoreVideo : winrt::Windows::Services::Store::IStoreVideo { StoreVideo(std::nullptr_t) noexcept {} StoreVideo(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Services::Store::IStoreVideo(ptr, take_ownership_from_abi) {} }; } #endif