// C++/WinRT v2.0.250303.1 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #ifndef WINRT_Windows_ApplicationModel_Resources_Core_0_H #define WINRT_Windows_ApplicationModel_Resources_Core_0_H WINRT_EXPORT namespace winrt::Windows::Foundation { struct Uri; } WINRT_EXPORT namespace winrt::Windows::Foundation::Collections { template struct WINRT_IMPL_EMPTY_BASES IIterable; template struct WINRT_IMPL_EMPTY_BASES IIterator; template struct WINRT_IMPL_EMPTY_BASES IKeyValuePair; template struct WINRT_IMPL_EMPTY_BASES IMapView; template struct WINRT_IMPL_EMPTY_BASES IObservableMap; template struct WINRT_IMPL_EMPTY_BASES IVectorView; } WINRT_EXPORT namespace winrt::Windows::Storage { struct IStorageFile; } WINRT_EXPORT namespace winrt::Windows::UI { struct UIContext; } WINRT_EXPORT namespace winrt::Windows::ApplicationModel::Resources::Core { enum class ResourceCandidateKind : int32_t { String = 0, File = 1, EmbeddedData = 2, }; enum class ResourceQualifierPersistence : int32_t { None = 0, LocalMachine = 1, }; struct INamedResource; struct IResourceCandidate; struct IResourceCandidate2; struct IResourceCandidate3; struct IResourceContext; struct IResourceContextStatics; struct IResourceContextStatics2; struct IResourceContextStatics3; struct IResourceContextStatics4; struct IResourceManager; struct IResourceManager2; struct IResourceManagerStatics; struct IResourceMap; struct IResourceQualifier; struct NamedResource; struct ResourceCandidate; struct ResourceCandidateVectorView; struct ResourceContext; struct ResourceContextLanguagesVectorView; struct ResourceManager; struct ResourceMap; struct ResourceMapIterator; struct ResourceMapMapView; struct ResourceMapMapViewIterator; struct ResourceQualifier; struct ResourceQualifierMapView; struct ResourceQualifierObservableMap; struct ResourceQualifierVectorView; struct ResourceLayoutInfo; } namespace winrt::impl { template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = enum_category; }; template <> struct category{ using type = enum_category; }; template <> struct category{ using type = struct_category; }; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.NamedResource"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.ResourceCandidate"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.ResourceCandidateVectorView"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.ResourceContext"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.ResourceContextLanguagesVectorView"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.ResourceManager"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.ResourceMap"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.ResourceMapIterator"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.ResourceMapMapView"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.ResourceMapMapViewIterator"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.ResourceQualifier"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.ResourceQualifierMapView"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.ResourceQualifierObservableMap"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.ResourceQualifierVectorView"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.ResourceCandidateKind"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.ResourceQualifierPersistence"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.ResourceLayoutInfo"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.INamedResource"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.IResourceCandidate"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.IResourceCandidate2"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.IResourceCandidate3"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.IResourceContext"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.IResourceContextStatics"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.IResourceContextStatics2"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.IResourceContextStatics3"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.IResourceContextStatics4"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.IResourceManager"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.IResourceManager2"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.IResourceManagerStatics"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.IResourceMap"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Resources.Core.IResourceQualifier"; template <> inline constexpr guid guid_v{ 0x1C98C219,0x0B13,0x4240,{ 0x89,0xA5,0xD4,0x95,0xDC,0x18,0x9A,0x00 } }; // 1C98C219-0B13-4240-89A5-D495DC189A00 template <> inline constexpr guid guid_v{ 0xAF5207D9,0xC433,0x4764,{ 0xB3,0xFD,0x8F,0xA6,0xBF,0xBC,0xBA,0xDC } }; // AF5207D9-C433-4764-B3FD-8FA6BFBCBADC template <> inline constexpr guid guid_v{ 0x69E5B468,0xF6FC,0x4013,{ 0xAA,0xA2,0xD5,0x3F,0x17,0x57,0xD3,0xB5 } }; // 69E5B468-F6FC-4013-AAA2-D53F1757D3B5 template <> inline constexpr guid guid_v{ 0x08AE97F8,0x517A,0x4674,{ 0x95,0x8C,0x4A,0x3C,0x7C,0xD2,0xCC,0x6B } }; // 08AE97F8-517A-4674-958C-4A3C7CD2CC6B template <> inline constexpr guid guid_v{ 0x2FA22F4B,0x707E,0x4B27,{ 0xAD,0x0D,0xD0,0xD8,0xCD,0x46,0x8F,0xD2 } }; // 2FA22F4B-707E-4B27-AD0D-D0D8CD468FD2 template <> inline constexpr guid guid_v{ 0x98BE9D6C,0x6338,0x4B31,{ 0x99,0xDF,0xB2,0xB4,0x42,0xF1,0x71,0x49 } }; // 98BE9D6C-6338-4B31-99DF-B2B442F17149 template <> inline constexpr guid guid_v{ 0x41F752EF,0x12AF,0x41B9,{ 0xAB,0x36,0xB1,0xEB,0x4B,0x51,0x24,0x60 } }; // 41F752EF-12AF-41B9-AB36-B1EB4B512460 template <> inline constexpr guid guid_v{ 0x20CF492C,0xAF0F,0x450B,{ 0x9D,0xA6,0x10,0x6D,0xD0,0xC2,0x9A,0x39 } }; // 20CF492C-AF0F-450B-9DA6-106DD0C29A39 template <> inline constexpr guid guid_v{ 0x22EB9CCD,0xFB31,0x4BFA,{ 0xB8,0x6B,0xDF,0x9D,0x9D,0x7B,0xDC,0x39 } }; // 22EB9CCD-FB31-4BFA-B86B-DF9D9D7BDC39 template <> inline constexpr guid guid_v{ 0xF744D97B,0x9988,0x44FB,{ 0xAB,0xD6,0x53,0x78,0x84,0x4C,0xFA,0x8B } }; // F744D97B-9988-44FB-ABD6-5378844CFA8B template <> inline constexpr guid guid_v{ 0x9D66FE6C,0xA4D7,0x4C23,{ 0x9E,0x85,0x67,0x5F,0x30,0x4C,0x25,0x2D } }; // 9D66FE6C-A4D7-4C23-9E85-675F304C252D template <> inline constexpr guid guid_v{ 0x1CC0FDFC,0x69EE,0x4E43,{ 0x99,0x01,0x47,0xF1,0x26,0x87,0xBA,0xF7 } }; // 1CC0FDFC-69EE-4E43-9901-47F12687BAF7 template <> inline constexpr guid guid_v{ 0x72284824,0xDB8C,0x42F8,{ 0xB0,0x8C,0x53,0xFF,0x35,0x7D,0xAD,0x82 } }; // 72284824-DB8C-42F8-B08C-53FF357DAD82 template <> inline constexpr guid guid_v{ 0x785DA5B2,0x4AFD,0x4376,{ 0xA8,0x88,0xC5,0xF9,0xA6,0xB7,0xA0,0x5C } }; // 785DA5B2-4AFD-4376-A888-C5F9A6B7A05C template <> struct default_interface{ using type = winrt::Windows::ApplicationModel::Resources::Core::INamedResource; }; template <> struct default_interface{ using type = winrt::Windows::ApplicationModel::Resources::Core::IResourceCandidate; }; template <> struct default_interface{ using type = winrt::Windows::Foundation::Collections::IVectorView; }; template <> struct default_interface{ using type = winrt::Windows::ApplicationModel::Resources::Core::IResourceContext; }; template <> struct default_interface{ using type = winrt::Windows::Foundation::Collections::IVectorView; }; template <> struct default_interface{ using type = winrt::Windows::ApplicationModel::Resources::Core::IResourceManager; }; template <> struct default_interface{ using type = winrt::Windows::ApplicationModel::Resources::Core::IResourceMap; }; template <> struct default_interface{ using type = winrt::Windows::Foundation::Collections::IIterator>; }; template <> struct default_interface{ using type = winrt::Windows::Foundation::Collections::IMapView; }; template <> struct default_interface{ using type = winrt::Windows::Foundation::Collections::IIterator>; }; template <> struct default_interface{ using type = winrt::Windows::ApplicationModel::Resources::Core::IResourceQualifier; }; template <> struct default_interface{ using type = winrt::Windows::Foundation::Collections::IMapView; }; template <> struct default_interface{ using type = winrt::Windows::Foundation::Collections::IObservableMap; }; template <> struct default_interface{ using type = winrt::Windows::Foundation::Collections::IVectorView; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_Uri(void**) noexcept = 0; virtual int32_t __stdcall get_Candidates(void**) noexcept = 0; virtual int32_t __stdcall Resolve(void**) noexcept = 0; virtual int32_t __stdcall ResolveForContext(void*, void**) noexcept = 0; virtual int32_t __stdcall ResolveAll(void**) noexcept = 0; virtual int32_t __stdcall ResolveAllForContext(void*, void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_Qualifiers(void**) noexcept = 0; virtual int32_t __stdcall get_IsMatch(bool*) noexcept = 0; virtual int32_t __stdcall get_IsMatchAsDefault(bool*) noexcept = 0; virtual int32_t __stdcall get_IsDefault(bool*) noexcept = 0; virtual int32_t __stdcall get_ValueAsString(void**) noexcept = 0; virtual int32_t __stdcall GetValueAsFileAsync(void**) noexcept = 0; virtual int32_t __stdcall GetQualifierValue(void*, void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall GetValueAsStreamAsync(void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_Kind(int32_t*) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_QualifierValues(void**) noexcept = 0; virtual int32_t __stdcall Reset() noexcept = 0; virtual int32_t __stdcall ResetQualifierValues(void*) noexcept = 0; virtual int32_t __stdcall OverrideToMatch(void*) noexcept = 0; virtual int32_t __stdcall Clone(void**) noexcept = 0; virtual int32_t __stdcall get_Languages(void**) noexcept = 0; virtual int32_t __stdcall put_Languages(void*) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall CreateMatchingContext(void*, void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall GetForCurrentView(void**) noexcept = 0; virtual int32_t __stdcall SetGlobalQualifierValue(void*, void*) noexcept = 0; virtual int32_t __stdcall ResetGlobalQualifierValues() noexcept = 0; virtual int32_t __stdcall ResetGlobalQualifierValuesForSpecifiedQualifiers(void*) noexcept = 0; virtual int32_t __stdcall GetForViewIndependentUse(void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall SetGlobalQualifierValueWithPersistence(void*, void*, int32_t) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall GetForUIContext(void*, void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_MainResourceMap(void**) noexcept = 0; virtual int32_t __stdcall get_AllResourceMaps(void**) noexcept = 0; virtual int32_t __stdcall get_DefaultContext(void**) noexcept = 0; virtual int32_t __stdcall LoadPriFiles(void*) noexcept = 0; virtual int32_t __stdcall UnloadPriFiles(void*) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall GetAllNamedResourcesForPackage(void*, struct struct_Windows_ApplicationModel_Resources_Core_ResourceLayoutInfo, void**) noexcept = 0; virtual int32_t __stdcall GetAllSubtreesForPackage(void*, struct struct_Windows_ApplicationModel_Resources_Core_ResourceLayoutInfo, void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_Current(void**) noexcept = 0; virtual int32_t __stdcall IsResourceReference(void*, bool*) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_Uri(void**) noexcept = 0; virtual int32_t __stdcall GetValue(void*, void**) noexcept = 0; virtual int32_t __stdcall GetValueForContext(void*, void*, void**) noexcept = 0; virtual int32_t __stdcall GetSubtree(void*, void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_QualifierName(void**) noexcept = 0; virtual int32_t __stdcall get_QualifierValue(void**) noexcept = 0; virtual int32_t __stdcall get_IsDefault(bool*) noexcept = 0; virtual int32_t __stdcall get_IsMatch(bool*) noexcept = 0; virtual int32_t __stdcall get_Score(double*) noexcept = 0; }; }; template struct consume_Windows_ApplicationModel_Resources_Core_INamedResource { [[nodiscard]] auto Uri() const; [[nodiscard]] auto Candidates() const; auto Resolve() const; auto Resolve(winrt::Windows::ApplicationModel::Resources::Core::ResourceContext const& resourceContext) const; auto ResolveAll() const; auto ResolveAll(winrt::Windows::ApplicationModel::Resources::Core::ResourceContext const& resourceContext) const; }; template <> struct consume { template using type = consume_Windows_ApplicationModel_Resources_Core_INamedResource; }; template struct consume_Windows_ApplicationModel_Resources_Core_IResourceCandidate { [[nodiscard]] auto Qualifiers() const; [[nodiscard]] auto IsMatch() const; [[nodiscard]] auto IsMatchAsDefault() const; [[nodiscard]] auto IsDefault() const; [[nodiscard]] auto ValueAsString() const; auto GetValueAsFileAsync() const; auto GetQualifierValue(param::hstring const& qualifierName) const; }; template <> struct consume { template using type = consume_Windows_ApplicationModel_Resources_Core_IResourceCandidate; }; template struct consume_Windows_ApplicationModel_Resources_Core_IResourceCandidate2 { auto GetValueAsStreamAsync() const; }; template <> struct consume { template using type = consume_Windows_ApplicationModel_Resources_Core_IResourceCandidate2; }; template struct consume_Windows_ApplicationModel_Resources_Core_IResourceCandidate3 { [[nodiscard]] auto Kind() const; }; template <> struct consume { template using type = consume_Windows_ApplicationModel_Resources_Core_IResourceCandidate3; }; template struct consume_Windows_ApplicationModel_Resources_Core_IResourceContext { [[nodiscard]] auto QualifierValues() const; auto Reset() const; auto Reset(param::iterable const& qualifierNames) const; auto OverrideToMatch(param::iterable const& result) const; auto Clone() const; [[nodiscard]] auto Languages() const; auto Languages(param::async_vector_view const& languages) const; }; template <> struct consume { template using type = consume_Windows_ApplicationModel_Resources_Core_IResourceContext; }; template struct consume_Windows_ApplicationModel_Resources_Core_IResourceContextStatics { auto CreateMatchingContext(param::iterable const& result) const; }; template <> struct consume { template using type = consume_Windows_ApplicationModel_Resources_Core_IResourceContextStatics; }; template struct consume_Windows_ApplicationModel_Resources_Core_IResourceContextStatics2 { auto GetForCurrentView() const; auto SetGlobalQualifierValue(param::hstring const& key, param::hstring const& value) const; auto ResetGlobalQualifierValues() const; auto ResetGlobalQualifierValues(param::iterable const& qualifierNames) const; auto GetForViewIndependentUse() const; }; template <> struct consume { template using type = consume_Windows_ApplicationModel_Resources_Core_IResourceContextStatics2; }; template struct consume_Windows_ApplicationModel_Resources_Core_IResourceContextStatics3 { auto SetGlobalQualifierValue(param::hstring const& key, param::hstring const& value, winrt::Windows::ApplicationModel::Resources::Core::ResourceQualifierPersistence const& persistence) const; }; template <> struct consume { template using type = consume_Windows_ApplicationModel_Resources_Core_IResourceContextStatics3; }; template struct consume_Windows_ApplicationModel_Resources_Core_IResourceContextStatics4 { auto GetForUIContext(winrt::Windows::UI::UIContext const& context) const; }; template <> struct consume { template using type = consume_Windows_ApplicationModel_Resources_Core_IResourceContextStatics4; }; template struct consume_Windows_ApplicationModel_Resources_Core_IResourceManager { [[nodiscard]] auto MainResourceMap() const; [[nodiscard]] auto AllResourceMaps() const; [[nodiscard]] auto DefaultContext() const; auto LoadPriFiles(param::iterable const& files) const; auto UnloadPriFiles(param::iterable const& files) const; }; template <> struct consume { template using type = consume_Windows_ApplicationModel_Resources_Core_IResourceManager; }; template struct consume_Windows_ApplicationModel_Resources_Core_IResourceManager2 { auto GetAllNamedResourcesForPackage(param::hstring const& packageName, winrt::Windows::ApplicationModel::Resources::Core::ResourceLayoutInfo const& resourceLayoutInfo) const; auto GetAllSubtreesForPackage(param::hstring const& packageName, winrt::Windows::ApplicationModel::Resources::Core::ResourceLayoutInfo const& resourceLayoutInfo) const; }; template <> struct consume { template using type = consume_Windows_ApplicationModel_Resources_Core_IResourceManager2; }; template struct consume_Windows_ApplicationModel_Resources_Core_IResourceManagerStatics { [[nodiscard]] auto Current() const; auto IsResourceReference(param::hstring const& resourceReference) const; }; template <> struct consume { template using type = consume_Windows_ApplicationModel_Resources_Core_IResourceManagerStatics; }; template struct consume_Windows_ApplicationModel_Resources_Core_IResourceMap { [[nodiscard]] auto Uri() const; auto GetValue(param::hstring const& resource) const; auto GetValue(param::hstring const& resource, winrt::Windows::ApplicationModel::Resources::Core::ResourceContext const& context) const; auto GetSubtree(param::hstring const& reference) const; }; template <> struct consume { template using type = consume_Windows_ApplicationModel_Resources_Core_IResourceMap; }; template struct consume_Windows_ApplicationModel_Resources_Core_IResourceQualifier { [[nodiscard]] auto QualifierName() const; [[nodiscard]] auto QualifierValue() const; [[nodiscard]] auto IsDefault() const; [[nodiscard]] auto IsMatch() const; [[nodiscard]] auto Score() const; }; template <> struct consume { template using type = consume_Windows_ApplicationModel_Resources_Core_IResourceQualifier; }; struct struct_Windows_ApplicationModel_Resources_Core_ResourceLayoutInfo { uint32_t MajorVersion; uint32_t MinorVersion; uint32_t ResourceSubtreeCount; uint32_t NamedResourceCount; int32_t Checksum; }; template <> struct abi { using type = struct_Windows_ApplicationModel_Resources_Core_ResourceLayoutInfo; }; } #endif