mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Update WinRT to new version 2.0.250303.1
PiperOrigin-RevId: 781075193
This commit is contained in:
committed by
Copybara-Service
parent
5e558cffc4
commit
8f14bd10fc
+133
-13
@@ -1,11 +1,11 @@
|
||||
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.220531.1
|
||||
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.250303.1
|
||||
|
||||
#pragma once
|
||||
#ifndef WINRT_Windows_ApplicationModel_Resources_H
|
||||
#define WINRT_Windows_ApplicationModel_Resources_H
|
||||
#include "winrt/base.h"
|
||||
static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.220531.1"), "Mismatched C++/WinRT headers.");
|
||||
#define CPPWINRT_VERSION "2.0.220531.1"
|
||||
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.ApplicationModel.h"
|
||||
#include "winrt/impl/Windows.Foundation.2.h"
|
||||
#include "winrt/impl/Windows.UI.2.h"
|
||||
@@ -15,61 +15,181 @@ namespace winrt::impl
|
||||
template <typename D> auto consume_Windows_ApplicationModel_Resources_IResourceLoader<D>::GetString(param::hstring const& resource) const
|
||||
{
|
||||
void* value{};
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::IResourceLoader)->GetString(*(void**)(&resource), &value));
|
||||
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Resources::IResourceLoader>)
|
||||
{
|
||||
winrt::hresult _winrt_cast_result_code;
|
||||
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Resources::IResourceLoader, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
||||
check_hresult(_winrt_cast_result_code);
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Resources::IResourceLoader>**)&_winrt_casted_result;
|
||||
check_hresult(_winrt_abi_type->GetString(*(void**)(&resource), &value));
|
||||
}
|
||||
else
|
||||
{
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Resources::IResourceLoader>**)this;
|
||||
check_hresult(_winrt_abi_type->GetString(*(void**)(&resource), &value));
|
||||
}
|
||||
return hstring{ value, take_ownership_from_abi };
|
||||
}
|
||||
template <typename D> auto consume_Windows_ApplicationModel_Resources_IResourceLoader2<D>::GetStringForUri(winrt::Windows::Foundation::Uri const& uri) const
|
||||
{
|
||||
void* value{};
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::IResourceLoader2)->GetStringForUri(*(void**)(&uri), &value));
|
||||
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Resources::IResourceLoader2>)
|
||||
{
|
||||
winrt::hresult _winrt_cast_result_code;
|
||||
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Resources::IResourceLoader2, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
||||
check_hresult(_winrt_cast_result_code);
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Resources::IResourceLoader2>**)&_winrt_casted_result;
|
||||
check_hresult(_winrt_abi_type->GetStringForUri(*(void**)(&uri), &value));
|
||||
}
|
||||
else
|
||||
{
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Resources::IResourceLoader2>**)this;
|
||||
check_hresult(_winrt_abi_type->GetStringForUri(*(void**)(&uri), &value));
|
||||
}
|
||||
return hstring{ value, take_ownership_from_abi };
|
||||
}
|
||||
template <typename D> auto consume_Windows_ApplicationModel_Resources_IResourceLoaderFactory<D>::CreateResourceLoaderByName(param::hstring const& name) const
|
||||
{
|
||||
void* loader{};
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::IResourceLoaderFactory)->CreateResourceLoaderByName(*(void**)(&name), &loader));
|
||||
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Resources::IResourceLoaderFactory>)
|
||||
{
|
||||
winrt::hresult _winrt_cast_result_code;
|
||||
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Resources::IResourceLoaderFactory, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
||||
check_hresult(_winrt_cast_result_code);
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Resources::IResourceLoaderFactory>**)&_winrt_casted_result;
|
||||
check_hresult(_winrt_abi_type->CreateResourceLoaderByName(*(void**)(&name), &loader));
|
||||
}
|
||||
else
|
||||
{
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Resources::IResourceLoaderFactory>**)this;
|
||||
check_hresult(_winrt_abi_type->CreateResourceLoaderByName(*(void**)(&name), &loader));
|
||||
}
|
||||
return winrt::Windows::ApplicationModel::Resources::ResourceLoader{ loader, take_ownership_from_abi };
|
||||
}
|
||||
template <typename D> auto consume_Windows_ApplicationModel_Resources_IResourceLoaderStatics<D>::GetStringForReference(winrt::Windows::Foundation::Uri const& uri) const
|
||||
{
|
||||
void* value{};
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics)->GetStringForReference(*(void**)(&uri), &value));
|
||||
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics>)
|
||||
{
|
||||
winrt::hresult _winrt_cast_result_code;
|
||||
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
||||
check_hresult(_winrt_cast_result_code);
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics>**)&_winrt_casted_result;
|
||||
check_hresult(_winrt_abi_type->GetStringForReference(*(void**)(&uri), &value));
|
||||
}
|
||||
else
|
||||
{
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics>**)this;
|
||||
check_hresult(_winrt_abi_type->GetStringForReference(*(void**)(&uri), &value));
|
||||
}
|
||||
return hstring{ value, take_ownership_from_abi };
|
||||
}
|
||||
template <typename D> auto consume_Windows_ApplicationModel_Resources_IResourceLoaderStatics2<D>::GetForCurrentView() const
|
||||
{
|
||||
void* loader{};
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics2)->GetForCurrentView(&loader));
|
||||
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics2>)
|
||||
{
|
||||
winrt::hresult _winrt_cast_result_code;
|
||||
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics2, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
||||
check_hresult(_winrt_cast_result_code);
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics2>**)&_winrt_casted_result;
|
||||
check_hresult(_winrt_abi_type->GetForCurrentView(&loader));
|
||||
}
|
||||
else
|
||||
{
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics2>**)this;
|
||||
check_hresult(_winrt_abi_type->GetForCurrentView(&loader));
|
||||
}
|
||||
return winrt::Windows::ApplicationModel::Resources::ResourceLoader{ loader, take_ownership_from_abi };
|
||||
}
|
||||
template <typename D> auto consume_Windows_ApplicationModel_Resources_IResourceLoaderStatics2<D>::GetForCurrentView(param::hstring const& name) const
|
||||
{
|
||||
void* loader{};
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics2)->GetForCurrentViewWithName(*(void**)(&name), &loader));
|
||||
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics2>)
|
||||
{
|
||||
winrt::hresult _winrt_cast_result_code;
|
||||
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics2, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
||||
check_hresult(_winrt_cast_result_code);
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics2>**)&_winrt_casted_result;
|
||||
check_hresult(_winrt_abi_type->GetForCurrentViewWithName(*(void**)(&name), &loader));
|
||||
}
|
||||
else
|
||||
{
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics2>**)this;
|
||||
check_hresult(_winrt_abi_type->GetForCurrentViewWithName(*(void**)(&name), &loader));
|
||||
}
|
||||
return winrt::Windows::ApplicationModel::Resources::ResourceLoader{ loader, take_ownership_from_abi };
|
||||
}
|
||||
template <typename D> auto consume_Windows_ApplicationModel_Resources_IResourceLoaderStatics2<D>::GetForViewIndependentUse() const
|
||||
{
|
||||
void* loader{};
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics2)->GetForViewIndependentUse(&loader));
|
||||
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics2>)
|
||||
{
|
||||
winrt::hresult _winrt_cast_result_code;
|
||||
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics2, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
||||
check_hresult(_winrt_cast_result_code);
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics2>**)&_winrt_casted_result;
|
||||
check_hresult(_winrt_abi_type->GetForViewIndependentUse(&loader));
|
||||
}
|
||||
else
|
||||
{
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics2>**)this;
|
||||
check_hresult(_winrt_abi_type->GetForViewIndependentUse(&loader));
|
||||
}
|
||||
return winrt::Windows::ApplicationModel::Resources::ResourceLoader{ loader, take_ownership_from_abi };
|
||||
}
|
||||
template <typename D> auto consume_Windows_ApplicationModel_Resources_IResourceLoaderStatics2<D>::GetForViewIndependentUse(param::hstring const& name) const
|
||||
{
|
||||
void* loader{};
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics2)->GetForViewIndependentUseWithName(*(void**)(&name), &loader));
|
||||
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics2>)
|
||||
{
|
||||
winrt::hresult _winrt_cast_result_code;
|
||||
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics2, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
||||
check_hresult(_winrt_cast_result_code);
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics2>**)&_winrt_casted_result;
|
||||
check_hresult(_winrt_abi_type->GetForViewIndependentUseWithName(*(void**)(&name), &loader));
|
||||
}
|
||||
else
|
||||
{
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics2>**)this;
|
||||
check_hresult(_winrt_abi_type->GetForViewIndependentUseWithName(*(void**)(&name), &loader));
|
||||
}
|
||||
return winrt::Windows::ApplicationModel::Resources::ResourceLoader{ loader, take_ownership_from_abi };
|
||||
}
|
||||
template <typename D> auto consume_Windows_ApplicationModel_Resources_IResourceLoaderStatics3<D>::GetForUIContext(winrt::Windows::UI::UIContext const& context) const
|
||||
{
|
||||
void* result{};
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics3)->GetForUIContext(*(void**)(&context), &result));
|
||||
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics3>)
|
||||
{
|
||||
winrt::hresult _winrt_cast_result_code;
|
||||
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics3, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
||||
check_hresult(_winrt_cast_result_code);
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics3>**)&_winrt_casted_result;
|
||||
check_hresult(_winrt_abi_type->GetForUIContext(*(void**)(&context), &result));
|
||||
}
|
||||
else
|
||||
{
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics3>**)this;
|
||||
check_hresult(_winrt_abi_type->GetForUIContext(*(void**)(&context), &result));
|
||||
}
|
||||
return winrt::Windows::ApplicationModel::Resources::ResourceLoader{ result, take_ownership_from_abi };
|
||||
}
|
||||
template <typename D> auto consume_Windows_ApplicationModel_Resources_IResourceLoaderStatics4<D>::GetDefaultPriPath(param::hstring const& packageFullName) const
|
||||
{
|
||||
void* value{};
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics4)->GetDefaultPriPath(*(void**)(&packageFullName), &value));
|
||||
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics4>)
|
||||
{
|
||||
winrt::hresult _winrt_cast_result_code;
|
||||
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics4, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
||||
check_hresult(_winrt_cast_result_code);
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics4>**)&_winrt_casted_result;
|
||||
check_hresult(_winrt_abi_type->GetDefaultPriPath(*(void**)(&packageFullName), &value));
|
||||
}
|
||||
else
|
||||
{
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Resources::IResourceLoaderStatics4>**)this;
|
||||
check_hresult(_winrt_abi_type->GetDefaultPriPath(*(void**)(&packageFullName), &value));
|
||||
}
|
||||
return hstring{ value, take_ownership_from_abi };
|
||||
}
|
||||
#ifndef WINRT_LEAN_AND_MEAN
|
||||
|
||||
Reference in New Issue
Block a user