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
+68
-8
@@ -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_Embedded_DeviceLockdown_H
|
||||
#define WINRT_Windows_Embedded_DeviceLockdown_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/impl/Windows.Foundation.2.h"
|
||||
#include "winrt/impl/Windows.Foundation.Collections.2.h"
|
||||
#include "winrt/impl/Windows.Embedded.DeviceLockdown.2.h"
|
||||
@@ -14,31 +14,91 @@ namespace winrt::impl
|
||||
template <typename D> auto consume_Windows_Embedded_DeviceLockdown_IDeviceLockdownProfileInformation<D>::Name() const
|
||||
{
|
||||
void* phProfileName{};
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Embedded::DeviceLockdown::IDeviceLockdownProfileInformation)->get_Name(&phProfileName));
|
||||
if constexpr (!std::is_same_v<D, winrt::Windows::Embedded::DeviceLockdown::IDeviceLockdownProfileInformation>)
|
||||
{
|
||||
winrt::hresult _winrt_cast_result_code;
|
||||
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Embedded::DeviceLockdown::IDeviceLockdownProfileInformation, 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::Embedded::DeviceLockdown::IDeviceLockdownProfileInformation>**)&_winrt_casted_result;
|
||||
check_hresult(_winrt_abi_type->get_Name(&phProfileName));
|
||||
}
|
||||
else
|
||||
{
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Embedded::DeviceLockdown::IDeviceLockdownProfileInformation>**)this;
|
||||
check_hresult(_winrt_abi_type->get_Name(&phProfileName));
|
||||
}
|
||||
return hstring{ phProfileName, take_ownership_from_abi };
|
||||
}
|
||||
template <typename D> auto consume_Windows_Embedded_DeviceLockdown_IDeviceLockdownProfileStatics<D>::GetSupportedLockdownProfiles() const
|
||||
{
|
||||
void* ppProfileIDs{};
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Embedded::DeviceLockdown::IDeviceLockdownProfileStatics)->GetSupportedLockdownProfiles(&ppProfileIDs));
|
||||
if constexpr (!std::is_same_v<D, winrt::Windows::Embedded::DeviceLockdown::IDeviceLockdownProfileStatics>)
|
||||
{
|
||||
winrt::hresult _winrt_cast_result_code;
|
||||
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Embedded::DeviceLockdown::IDeviceLockdownProfileStatics, 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::Embedded::DeviceLockdown::IDeviceLockdownProfileStatics>**)&_winrt_casted_result;
|
||||
check_hresult(_winrt_abi_type->GetSupportedLockdownProfiles(&ppProfileIDs));
|
||||
}
|
||||
else
|
||||
{
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Embedded::DeviceLockdown::IDeviceLockdownProfileStatics>**)this;
|
||||
check_hresult(_winrt_abi_type->GetSupportedLockdownProfiles(&ppProfileIDs));
|
||||
}
|
||||
return winrt::Windows::Foundation::Collections::IVectorView<winrt::guid>{ ppProfileIDs, take_ownership_from_abi };
|
||||
}
|
||||
template <typename D> auto consume_Windows_Embedded_DeviceLockdown_IDeviceLockdownProfileStatics<D>::GetCurrentLockdownProfile() const
|
||||
{
|
||||
winrt::guid pProfileID{};
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Embedded::DeviceLockdown::IDeviceLockdownProfileStatics)->GetCurrentLockdownProfile(put_abi(pProfileID)));
|
||||
if constexpr (!std::is_same_v<D, winrt::Windows::Embedded::DeviceLockdown::IDeviceLockdownProfileStatics>)
|
||||
{
|
||||
winrt::hresult _winrt_cast_result_code;
|
||||
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Embedded::DeviceLockdown::IDeviceLockdownProfileStatics, 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::Embedded::DeviceLockdown::IDeviceLockdownProfileStatics>**)&_winrt_casted_result;
|
||||
check_hresult(_winrt_abi_type->GetCurrentLockdownProfile(put_abi(pProfileID)));
|
||||
}
|
||||
else
|
||||
{
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Embedded::DeviceLockdown::IDeviceLockdownProfileStatics>**)this;
|
||||
check_hresult(_winrt_abi_type->GetCurrentLockdownProfile(put_abi(pProfileID)));
|
||||
}
|
||||
return pProfileID;
|
||||
}
|
||||
template <typename D> auto consume_Windows_Embedded_DeviceLockdown_IDeviceLockdownProfileStatics<D>::ApplyLockdownProfileAsync(winrt::guid const& profileID) const
|
||||
{
|
||||
void* ppWaitableOperation{};
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Embedded::DeviceLockdown::IDeviceLockdownProfileStatics)->ApplyLockdownProfileAsync(impl::bind_in(profileID), &ppWaitableOperation));
|
||||
if constexpr (!std::is_same_v<D, winrt::Windows::Embedded::DeviceLockdown::IDeviceLockdownProfileStatics>)
|
||||
{
|
||||
winrt::hresult _winrt_cast_result_code;
|
||||
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Embedded::DeviceLockdown::IDeviceLockdownProfileStatics, 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::Embedded::DeviceLockdown::IDeviceLockdownProfileStatics>**)&_winrt_casted_result;
|
||||
check_hresult(_winrt_abi_type->ApplyLockdownProfileAsync(impl::bind_in(profileID), &ppWaitableOperation));
|
||||
}
|
||||
else
|
||||
{
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Embedded::DeviceLockdown::IDeviceLockdownProfileStatics>**)this;
|
||||
check_hresult(_winrt_abi_type->ApplyLockdownProfileAsync(impl::bind_in(profileID), &ppWaitableOperation));
|
||||
}
|
||||
return winrt::Windows::Foundation::IAsyncAction{ ppWaitableOperation, take_ownership_from_abi };
|
||||
}
|
||||
template <typename D> auto consume_Windows_Embedded_DeviceLockdown_IDeviceLockdownProfileStatics<D>::GetLockdownProfileInformation(winrt::guid const& profileID) const
|
||||
{
|
||||
void* ppInformation{};
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Embedded::DeviceLockdown::IDeviceLockdownProfileStatics)->GetLockdownProfileInformation(impl::bind_in(profileID), &ppInformation));
|
||||
if constexpr (!std::is_same_v<D, winrt::Windows::Embedded::DeviceLockdown::IDeviceLockdownProfileStatics>)
|
||||
{
|
||||
winrt::hresult _winrt_cast_result_code;
|
||||
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Embedded::DeviceLockdown::IDeviceLockdownProfileStatics, 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::Embedded::DeviceLockdown::IDeviceLockdownProfileStatics>**)&_winrt_casted_result;
|
||||
check_hresult(_winrt_abi_type->GetLockdownProfileInformation(impl::bind_in(profileID), &ppInformation));
|
||||
}
|
||||
else
|
||||
{
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Embedded::DeviceLockdown::IDeviceLockdownProfileStatics>**)this;
|
||||
check_hresult(_winrt_abi_type->GetLockdownProfileInformation(impl::bind_in(profileID), &ppInformation));
|
||||
}
|
||||
return winrt::Windows::Embedded::DeviceLockdown::DeviceLockdownProfileInformation{ ppInformation, take_ownership_from_abi };
|
||||
}
|
||||
#ifndef WINRT_LEAN_AND_MEAN
|
||||
|
||||
Reference in New Issue
Block a user