// C++/WinRT v2.0.250303.1 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #ifndef WINRT_Windows_System_Profile_H #define WINRT_Windows_System_Profile_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.250303.1" #include "winrt/Windows.System.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Storage.Streams.2.h" #include "winrt/impl/Windows.System.2.h" #include "winrt/impl/Windows.System.Profile.2.h" namespace winrt::impl { template auto consume_Windows_System_Profile_IAnalyticsInfoStatics::VersionInfo() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_VersionInfo(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_VersionInfo(&value)); } return winrt::Windows::System::Profile::AnalyticsVersionInfo{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IAnalyticsInfoStatics::DeviceForm() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DeviceForm(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DeviceForm(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IAnalyticsInfoStatics2::GetSystemPropertiesAsync(param::async_iterable const& attributeNames) const { void* operation{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetSystemPropertiesAsync(*(void**)(&attributeNames), &operation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetSystemPropertiesAsync(*(void**)(&attributeNames), &operation)); } return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IAnalyticsVersionInfo::DeviceFamily() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DeviceFamily(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DeviceFamily(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IAnalyticsVersionInfo::DeviceFamilyVersion() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DeviceFamilyVersion(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DeviceFamilyVersion(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IAnalyticsVersionInfo2::ProductName() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ProductName(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ProductName(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IAppApplicabilityStatics::GetUnsupportedAppRequirements(param::iterable const& capabilities) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetUnsupportedAppRequirements(*(void**)(&capabilities), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetUnsupportedAppRequirements(*(void**)(&capabilities), &result)); } return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IEducationSettingsStatics::IsEducationEnvironment() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsEducationEnvironment(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsEducationEnvironment(&value)); } return value; } template auto consume_Windows_System_Profile_IHardwareIdentificationStatics::GetPackageSpecificToken(winrt::Windows::Storage::Streams::IBuffer const& nonce) const { void* packageSpecificHardwareToken{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetPackageSpecificToken(*(void**)(&nonce), &packageSpecificHardwareToken)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetPackageSpecificToken(*(void**)(&nonce), &packageSpecificHardwareToken)); } return winrt::Windows::System::Profile::HardwareToken{ packageSpecificHardwareToken, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IHardwareToken::Id() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Id(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Id(&value)); } return winrt::Windows::Storage::Streams::IBuffer{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IHardwareToken::Signature() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Signature(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Signature(&value)); } return winrt::Windows::Storage::Streams::IBuffer{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IHardwareToken::Certificate() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Certificate(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Certificate(&value)); } return winrt::Windows::Storage::Streams::IBuffer{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IKnownRetailInfoPropertiesStatics::RetailAccessCode() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_RetailAccessCode(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RetailAccessCode(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IKnownRetailInfoPropertiesStatics::ManufacturerName() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ManufacturerName(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ManufacturerName(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IKnownRetailInfoPropertiesStatics::ModelName() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ModelName(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ModelName(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IKnownRetailInfoPropertiesStatics::DisplayModelName() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DisplayModelName(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DisplayModelName(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IKnownRetailInfoPropertiesStatics::Price() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Price(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Price(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IKnownRetailInfoPropertiesStatics::IsFeatured() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsFeatured(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsFeatured(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IKnownRetailInfoPropertiesStatics::FormFactor() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_FormFactor(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_FormFactor(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IKnownRetailInfoPropertiesStatics::ScreenSize() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ScreenSize(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ScreenSize(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IKnownRetailInfoPropertiesStatics::Weight() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Weight(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Weight(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IKnownRetailInfoPropertiesStatics::DisplayDescription() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DisplayDescription(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DisplayDescription(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IKnownRetailInfoPropertiesStatics::BatteryLifeDescription() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_BatteryLifeDescription(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_BatteryLifeDescription(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IKnownRetailInfoPropertiesStatics::ProcessorDescription() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ProcessorDescription(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ProcessorDescription(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IKnownRetailInfoPropertiesStatics::Memory() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Memory(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Memory(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IKnownRetailInfoPropertiesStatics::StorageDescription() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_StorageDescription(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_StorageDescription(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IKnownRetailInfoPropertiesStatics::GraphicsDescription() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_GraphicsDescription(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_GraphicsDescription(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IKnownRetailInfoPropertiesStatics::FrontCameraDescription() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_FrontCameraDescription(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_FrontCameraDescription(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IKnownRetailInfoPropertiesStatics::RearCameraDescription() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_RearCameraDescription(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RearCameraDescription(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IKnownRetailInfoPropertiesStatics::HasNfc() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HasNfc(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HasNfc(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IKnownRetailInfoPropertiesStatics::HasSdSlot() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HasSdSlot(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HasSdSlot(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IKnownRetailInfoPropertiesStatics::HasOpticalDrive() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HasOpticalDrive(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HasOpticalDrive(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IKnownRetailInfoPropertiesStatics::IsOfficeInstalled() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsOfficeInstalled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsOfficeInstalled(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IKnownRetailInfoPropertiesStatics::WindowsEdition() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WindowsEdition(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WindowsEdition(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IPlatformAutomaticAppSignInManagerStatics::Policy() const { winrt::Windows::System::Profile::PlatformAutomaticAppSignInPolicy value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Policy(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Policy(reinterpret_cast(&value))); } return value; } template auto consume_Windows_System_Profile_IPlatformDiagnosticsAndUsageDataSettingsStatics::CollectionLevel() const { winrt::Windows::System::Profile::PlatformDataCollectionLevel value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CollectionLevel(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CollectionLevel(reinterpret_cast(&value))); } return value; } template auto consume_Windows_System_Profile_IPlatformDiagnosticsAndUsageDataSettingsStatics::CollectionLevelChanged(winrt::Windows::Foundation::EventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_CollectionLevelChanged(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_CollectionLevelChanged(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_System_Profile_IPlatformDiagnosticsAndUsageDataSettingsStatics::CollectionLevelChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const { return impl::make_event_revoker(this, CollectionLevelChanged(handler)); } template auto consume_Windows_System_Profile_IPlatformDiagnosticsAndUsageDataSettingsStatics::CollectionLevelChanged(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_CollectionLevelChanged(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_CollectionLevelChanged(impl::bind_in(token)); } } template auto consume_Windows_System_Profile_IPlatformDiagnosticsAndUsageDataSettingsStatics::CanCollectDiagnostics(winrt::Windows::System::Profile::PlatformDataCollectionLevel const& level) const { bool result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CanCollectDiagnostics(static_cast(level), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CanCollectDiagnostics(static_cast(level), &result)); } return result; } template auto consume_Windows_System_Profile_IRetailInfoStatics::IsDemoModeEnabled() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsDemoModeEnabled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsDemoModeEnabled(&value)); } return value; } template auto consume_Windows_System_Profile_IRetailInfoStatics::Properties() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Properties(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Properties(&value)); } return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_ISharedModeSettingsStatics::IsEnabled() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsEnabled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsEnabled(&value)); } return value; } template auto consume_Windows_System_Profile_ISharedModeSettingsStatics2::ShouldAvoidLocalStorage() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ShouldAvoidLocalStorage(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ShouldAvoidLocalStorage(&value)); } return value; } template auto consume_Windows_System_Profile_ISmartAppControlPolicyStatics::IsEnabled() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsEnabled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsEnabled(&value)); } return value; } template auto consume_Windows_System_Profile_ISmartAppControlPolicyStatics::Changed(winrt::Windows::Foundation::EventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_Changed(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_Changed(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_System_Profile_ISmartAppControlPolicyStatics::Changed(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const { return impl::make_event_revoker(this, Changed(handler)); } template auto consume_Windows_System_Profile_ISmartAppControlPolicyStatics::Changed(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_Changed(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_Changed(impl::bind_in(token)); } } template auto consume_Windows_System_Profile_ISystemIdentificationInfo::Id() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Id(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Id(&value)); } return winrt::Windows::Storage::Streams::IBuffer{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_ISystemIdentificationInfo::Source() const { winrt::Windows::System::Profile::SystemIdentificationSource value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Source(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Source(reinterpret_cast(&value))); } return value; } template auto consume_Windows_System_Profile_ISystemIdentificationStatics::GetSystemIdForPublisher() const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetSystemIdForPublisher(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetSystemIdForPublisher(&result)); } return winrt::Windows::System::Profile::SystemIdentificationInfo{ result, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_ISystemIdentificationStatics::GetSystemIdForUser(winrt::Windows::System::User const& user) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetSystemIdForUser(*(void**)(&user), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetSystemIdForUser(*(void**)(&user), &result)); } return winrt::Windows::System::Profile::SystemIdentificationInfo{ result, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_ISystemSetupInfoStatics::OutOfBoxExperienceState() const { winrt::Windows::System::Profile::SystemOutOfBoxExperienceState value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OutOfBoxExperienceState(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OutOfBoxExperienceState(reinterpret_cast(&value))); } return value; } template auto consume_Windows_System_Profile_ISystemSetupInfoStatics::OutOfBoxExperienceStateChanged(winrt::Windows::Foundation::EventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_OutOfBoxExperienceStateChanged(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_OutOfBoxExperienceStateChanged(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_System_Profile_ISystemSetupInfoStatics::OutOfBoxExperienceStateChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const { return impl::make_event_revoker(this, OutOfBoxExperienceStateChanged(handler)); } template auto consume_Windows_System_Profile_ISystemSetupInfoStatics::OutOfBoxExperienceStateChanged(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_OutOfBoxExperienceStateChanged(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_OutOfBoxExperienceStateChanged(impl::bind_in(token)); } } template auto consume_Windows_System_Profile_IUnsupportedAppRequirement::Requirement() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Requirement(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Requirement(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Profile_IUnsupportedAppRequirement::Reasons() const { winrt::Windows::System::Profile::UnsupportedAppRequirementReasons value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Reasons(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Reasons(reinterpret_cast(&value))); } return value; } template auto consume_Windows_System_Profile_IWindowsIntegrityPolicyStatics::IsEnabled() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsEnabled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsEnabled(&value)); } return value; } template auto consume_Windows_System_Profile_IWindowsIntegrityPolicyStatics::IsEnabledForTrial() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsEnabledForTrial(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsEnabledForTrial(&value)); } return value; } template auto consume_Windows_System_Profile_IWindowsIntegrityPolicyStatics::CanDisable() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CanDisable(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CanDisable(&value)); } return value; } template auto consume_Windows_System_Profile_IWindowsIntegrityPolicyStatics::IsDisableSupported() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsDisableSupported(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsDisableSupported(&value)); } return value; } template auto consume_Windows_System_Profile_IWindowsIntegrityPolicyStatics::PolicyChanged(winrt::Windows::Foundation::EventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_PolicyChanged(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_PolicyChanged(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_System_Profile_IWindowsIntegrityPolicyStatics::PolicyChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const { return impl::make_event_revoker(this, PolicyChanged(handler)); } template auto consume_Windows_System_Profile_IWindowsIntegrityPolicyStatics::PolicyChanged(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_PolicyChanged(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_PolicyChanged(impl::bind_in(token)); } } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_VersionInfo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VersionInfo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DeviceForm(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DeviceForm()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetSystemPropertiesAsync(void* attributeNames, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>>(this->shim().GetSystemPropertiesAsync(*reinterpret_cast const*>(&attributeNames))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DeviceFamily(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DeviceFamily()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DeviceFamilyVersion(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DeviceFamilyVersion()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ProductName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProductName()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetUnsupportedAppRequirements(void* capabilities, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetUnsupportedAppRequirements(*reinterpret_cast const*>(&capabilities))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsEducationEnvironment(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsEducationEnvironment()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetPackageSpecificToken(void* nonce, void** packageSpecificHardwareToken) noexcept final try { clear_abi(packageSpecificHardwareToken); typename D::abi_guard guard(this->shim()); *packageSpecificHardwareToken = detach_from(this->shim().GetPackageSpecificToken(*reinterpret_cast(&nonce))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Signature(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Signature()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Certificate(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Certificate()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RetailAccessCode(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RetailAccessCode()); 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(); } 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_DisplayModelName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayModelName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Price(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Price()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsFeatured(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsFeatured()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FormFactor(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FormFactor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ScreenSize(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ScreenSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Weight(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Weight()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisplayDescription(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayDescription()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BatteryLifeDescription(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BatteryLifeDescription()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProcessorDescription(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProcessorDescription()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Memory(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Memory()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StorageDescription(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StorageDescription()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_GraphicsDescription(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GraphicsDescription()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FrontCameraDescription(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FrontCameraDescription()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RearCameraDescription(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RearCameraDescription()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HasNfc(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasNfc()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HasSdSlot(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasSdSlot()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HasOpticalDrive(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasOpticalDrive()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsOfficeInstalled(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsOfficeInstalled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WindowsEdition(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WindowsEdition()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Policy(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Policy()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CollectionLevel(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CollectionLevel()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_CollectionLevelChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().CollectionLevelChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_CollectionLevelChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().CollectionLevelChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall CanCollectDiagnostics(int32_t level, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CanCollectDiagnostics(*reinterpret_cast(&level))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsDemoModeEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsDemoModeEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Properties(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Properties()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsEnabled()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ShouldAvoidLocalStorage(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShouldAvoidLocalStorage()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_Changed(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Changed(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Changed(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Changed(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Source(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Source()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetSystemIdForPublisher(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetSystemIdForPublisher()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetSystemIdForUser(void* user, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetSystemIdForUser(*reinterpret_cast(&user))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_OutOfBoxExperienceState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OutOfBoxExperienceState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_OutOfBoxExperienceStateChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().OutOfBoxExperienceStateChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_OutOfBoxExperienceStateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().OutOfBoxExperienceStateChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Requirement(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Requirement()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Reasons(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Reasons()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsEnabledForTrial(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsEnabledForTrial()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanDisable(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanDisable()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsDisableSupported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsDisableSupported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_PolicyChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PolicyChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PolicyChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PolicyChanged(*reinterpret_cast(&token)); return 0; } }; #endif } WINRT_EXPORT namespace winrt::Windows::System::Profile { constexpr auto operator|(UnsupportedAppRequirementReasons const left, UnsupportedAppRequirementReasons const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(UnsupportedAppRequirementReasons& left, UnsupportedAppRequirementReasons const right) noexcept { left = left | right; return left; } constexpr auto operator&(UnsupportedAppRequirementReasons const left, UnsupportedAppRequirementReasons const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(UnsupportedAppRequirementReasons& left, UnsupportedAppRequirementReasons const right) noexcept { left = left & right; return left; } constexpr auto operator~(UnsupportedAppRequirementReasons const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(UnsupportedAppRequirementReasons const left, UnsupportedAppRequirementReasons const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(UnsupportedAppRequirementReasons& left, UnsupportedAppRequirementReasons const right) noexcept { left = left ^ right; return left; } inline auto AnalyticsInfo::VersionInfo() { return impl::call_factory_cast([](IAnalyticsInfoStatics const& f) { return f.VersionInfo(); }); } inline auto AnalyticsInfo::DeviceForm() { return impl::call_factory_cast([](IAnalyticsInfoStatics const& f) { return f.DeviceForm(); }); } inline auto AnalyticsInfo::GetSystemPropertiesAsync(param::async_iterable const& attributeNames) { return impl::call_factory([&](IAnalyticsInfoStatics2 const& f) { return f.GetSystemPropertiesAsync(attributeNames); }); } inline auto AppApplicability::GetUnsupportedAppRequirements(param::iterable const& capabilities) { return impl::call_factory([&](IAppApplicabilityStatics const& f) { return f.GetUnsupportedAppRequirements(capabilities); }); } inline auto EducationSettings::IsEducationEnvironment() { return impl::call_factory_cast([](IEducationSettingsStatics const& f) { return f.IsEducationEnvironment(); }); } inline auto HardwareIdentification::GetPackageSpecificToken(winrt::Windows::Storage::Streams::IBuffer const& nonce) { return impl::call_factory([&](IHardwareIdentificationStatics const& f) { return f.GetPackageSpecificToken(nonce); }); } inline auto KnownRetailInfoProperties::RetailAccessCode() { return impl::call_factory_cast([](IKnownRetailInfoPropertiesStatics const& f) { return f.RetailAccessCode(); }); } inline auto KnownRetailInfoProperties::ManufacturerName() { return impl::call_factory_cast([](IKnownRetailInfoPropertiesStatics const& f) { return f.ManufacturerName(); }); } inline auto KnownRetailInfoProperties::ModelName() { return impl::call_factory_cast([](IKnownRetailInfoPropertiesStatics const& f) { return f.ModelName(); }); } inline auto KnownRetailInfoProperties::DisplayModelName() { return impl::call_factory_cast([](IKnownRetailInfoPropertiesStatics const& f) { return f.DisplayModelName(); }); } inline auto KnownRetailInfoProperties::Price() { return impl::call_factory_cast([](IKnownRetailInfoPropertiesStatics const& f) { return f.Price(); }); } inline auto KnownRetailInfoProperties::IsFeatured() { return impl::call_factory_cast([](IKnownRetailInfoPropertiesStatics const& f) { return f.IsFeatured(); }); } inline auto KnownRetailInfoProperties::FormFactor() { return impl::call_factory_cast([](IKnownRetailInfoPropertiesStatics const& f) { return f.FormFactor(); }); } inline auto KnownRetailInfoProperties::ScreenSize() { return impl::call_factory_cast([](IKnownRetailInfoPropertiesStatics const& f) { return f.ScreenSize(); }); } inline auto KnownRetailInfoProperties::Weight() { return impl::call_factory_cast([](IKnownRetailInfoPropertiesStatics const& f) { return f.Weight(); }); } inline auto KnownRetailInfoProperties::DisplayDescription() { return impl::call_factory_cast([](IKnownRetailInfoPropertiesStatics const& f) { return f.DisplayDescription(); }); } inline auto KnownRetailInfoProperties::BatteryLifeDescription() { return impl::call_factory_cast([](IKnownRetailInfoPropertiesStatics const& f) { return f.BatteryLifeDescription(); }); } inline auto KnownRetailInfoProperties::ProcessorDescription() { return impl::call_factory_cast([](IKnownRetailInfoPropertiesStatics const& f) { return f.ProcessorDescription(); }); } inline auto KnownRetailInfoProperties::Memory() { return impl::call_factory_cast([](IKnownRetailInfoPropertiesStatics const& f) { return f.Memory(); }); } inline auto KnownRetailInfoProperties::StorageDescription() { return impl::call_factory_cast([](IKnownRetailInfoPropertiesStatics const& f) { return f.StorageDescription(); }); } inline auto KnownRetailInfoProperties::GraphicsDescription() { return impl::call_factory_cast([](IKnownRetailInfoPropertiesStatics const& f) { return f.GraphicsDescription(); }); } inline auto KnownRetailInfoProperties::FrontCameraDescription() { return impl::call_factory_cast([](IKnownRetailInfoPropertiesStatics const& f) { return f.FrontCameraDescription(); }); } inline auto KnownRetailInfoProperties::RearCameraDescription() { return impl::call_factory_cast([](IKnownRetailInfoPropertiesStatics const& f) { return f.RearCameraDescription(); }); } inline auto KnownRetailInfoProperties::HasNfc() { return impl::call_factory_cast([](IKnownRetailInfoPropertiesStatics const& f) { return f.HasNfc(); }); } inline auto KnownRetailInfoProperties::HasSdSlot() { return impl::call_factory_cast([](IKnownRetailInfoPropertiesStatics const& f) { return f.HasSdSlot(); }); } inline auto KnownRetailInfoProperties::HasOpticalDrive() { return impl::call_factory_cast([](IKnownRetailInfoPropertiesStatics const& f) { return f.HasOpticalDrive(); }); } inline auto KnownRetailInfoProperties::IsOfficeInstalled() { return impl::call_factory_cast([](IKnownRetailInfoPropertiesStatics const& f) { return f.IsOfficeInstalled(); }); } inline auto KnownRetailInfoProperties::WindowsEdition() { return impl::call_factory_cast([](IKnownRetailInfoPropertiesStatics const& f) { return f.WindowsEdition(); }); } inline auto PlatformAutomaticAppSignInManager::Policy() { return impl::call_factory_cast([](IPlatformAutomaticAppSignInManagerStatics const& f) { return f.Policy(); }); } inline auto PlatformDiagnosticsAndUsageDataSettings::CollectionLevel() { return impl::call_factory_cast([](IPlatformDiagnosticsAndUsageDataSettingsStatics const& f) { return f.CollectionLevel(); }); } inline auto PlatformDiagnosticsAndUsageDataSettings::CollectionLevelChanged(winrt::Windows::Foundation::EventHandler const& handler) { return impl::call_factory([&](IPlatformDiagnosticsAndUsageDataSettingsStatics const& f) { return f.CollectionLevelChanged(handler); }); } inline auto PlatformDiagnosticsAndUsageDataSettings::CollectionLevelChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) { auto f = get_activation_factory(); return PlatformDiagnosticsAndUsageDataSettings::CollectionLevelChanged_revoker{ f, f.CollectionLevelChanged(handler) }; } inline auto PlatformDiagnosticsAndUsageDataSettings::CollectionLevelChanged(winrt::event_token const& token) { impl::call_factory([&](IPlatformDiagnosticsAndUsageDataSettingsStatics const& f) { return f.CollectionLevelChanged(token); }); } inline auto PlatformDiagnosticsAndUsageDataSettings::CanCollectDiagnostics(winrt::Windows::System::Profile::PlatformDataCollectionLevel const& level) { return impl::call_factory([&](IPlatformDiagnosticsAndUsageDataSettingsStatics const& f) { return f.CanCollectDiagnostics(level); }); } inline auto RetailInfo::IsDemoModeEnabled() { return impl::call_factory_cast([](IRetailInfoStatics const& f) { return f.IsDemoModeEnabled(); }); } inline auto RetailInfo::Properties() { return impl::call_factory_cast(*)(IRetailInfoStatics const&), RetailInfo, IRetailInfoStatics>([](IRetailInfoStatics const& f) { return f.Properties(); }); } inline auto SharedModeSettings::IsEnabled() { return impl::call_factory_cast([](ISharedModeSettingsStatics const& f) { return f.IsEnabled(); }); } inline auto SharedModeSettings::ShouldAvoidLocalStorage() { return impl::call_factory_cast([](ISharedModeSettingsStatics2 const& f) { return f.ShouldAvoidLocalStorage(); }); } inline auto SmartAppControlPolicy::IsEnabled() { return impl::call_factory_cast([](ISmartAppControlPolicyStatics const& f) { return f.IsEnabled(); }); } inline auto SmartAppControlPolicy::Changed(winrt::Windows::Foundation::EventHandler const& handler) { return impl::call_factory([&](ISmartAppControlPolicyStatics const& f) { return f.Changed(handler); }); } inline auto SmartAppControlPolicy::Changed(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) { auto f = get_activation_factory(); return SmartAppControlPolicy::Changed_revoker{ f, f.Changed(handler) }; } inline auto SmartAppControlPolicy::Changed(winrt::event_token const& token) { impl::call_factory([&](ISmartAppControlPolicyStatics const& f) { return f.Changed(token); }); } inline auto SystemIdentification::GetSystemIdForPublisher() { return impl::call_factory_cast([](ISystemIdentificationStatics const& f) { return f.GetSystemIdForPublisher(); }); } inline auto SystemIdentification::GetSystemIdForUser(winrt::Windows::System::User const& user) { return impl::call_factory([&](ISystemIdentificationStatics const& f) { return f.GetSystemIdForUser(user); }); } inline auto SystemSetupInfo::OutOfBoxExperienceState() { return impl::call_factory_cast([](ISystemSetupInfoStatics const& f) { return f.OutOfBoxExperienceState(); }); } inline auto SystemSetupInfo::OutOfBoxExperienceStateChanged(winrt::Windows::Foundation::EventHandler const& handler) { return impl::call_factory([&](ISystemSetupInfoStatics const& f) { return f.OutOfBoxExperienceStateChanged(handler); }); } inline auto SystemSetupInfo::OutOfBoxExperienceStateChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) { auto f = get_activation_factory(); return SystemSetupInfo::OutOfBoxExperienceStateChanged_revoker{ f, f.OutOfBoxExperienceStateChanged(handler) }; } inline auto SystemSetupInfo::OutOfBoxExperienceStateChanged(winrt::event_token const& token) { impl::call_factory([&](ISystemSetupInfoStatics const& f) { return f.OutOfBoxExperienceStateChanged(token); }); } inline auto WindowsIntegrityPolicy::IsEnabled() { return impl::call_factory_cast([](IWindowsIntegrityPolicyStatics const& f) { return f.IsEnabled(); }); } inline auto WindowsIntegrityPolicy::IsEnabledForTrial() { return impl::call_factory_cast([](IWindowsIntegrityPolicyStatics const& f) { return f.IsEnabledForTrial(); }); } inline auto WindowsIntegrityPolicy::CanDisable() { return impl::call_factory_cast([](IWindowsIntegrityPolicyStatics const& f) { return f.CanDisable(); }); } inline auto WindowsIntegrityPolicy::IsDisableSupported() { return impl::call_factory_cast([](IWindowsIntegrityPolicyStatics const& f) { return f.IsDisableSupported(); }); } inline auto WindowsIntegrityPolicy::PolicyChanged(winrt::Windows::Foundation::EventHandler const& handler) { return impl::call_factory([&](IWindowsIntegrityPolicyStatics const& f) { return f.PolicyChanged(handler); }); } inline auto WindowsIntegrityPolicy::PolicyChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) { auto f = get_activation_factory(); return WindowsIntegrityPolicy::PolicyChanged_revoker{ f, f.PolicyChanged(handler) }; } inline auto WindowsIntegrityPolicy::PolicyChanged(winrt::event_token const& token) { impl::call_factory([&](IWindowsIntegrityPolicyStatics const& f) { return f.PolicyChanged(token); }); } } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif