mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Updating the winrt headers
After this C/L you must update your Windows SDK to 10.0.20348.0 in order to build on Visual Studio PiperOrigin-RevId: 393786833
This commit is contained in:
committed by
Copybara-Service
parent
8e2f2da45d
commit
9f8d186e42
@@ -216,6 +216,22 @@ namespace winrt::impl
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Networking::Vpn::IVpnChannel4)->get_CurrentRequestTransportContext(&context));
|
||||
return winrt::Windows::Foundation::IInspectable{ context, take_ownership_from_abi };
|
||||
}
|
||||
template <typename D> WINRT_IMPL_AUTO(void) consume_Windows_Networking_Vpn_IVpnChannel5<D>::AppendVpnReceivePacketBuffer(winrt::Windows::Networking::Vpn::VpnPacketBuffer const& decapsulatedPacketBuffer) const
|
||||
{
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Networking::Vpn::IVpnChannel5)->AppendVpnReceivePacketBuffer(*(void**)(&decapsulatedPacketBuffer)));
|
||||
}
|
||||
template <typename D> WINRT_IMPL_AUTO(void) consume_Windows_Networking_Vpn_IVpnChannel5<D>::AppendVpnSendPacketBuffer(winrt::Windows::Networking::Vpn::VpnPacketBuffer const& encapsulatedPacketBuffer) const
|
||||
{
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Networking::Vpn::IVpnChannel5)->AppendVpnSendPacketBuffer(*(void**)(&encapsulatedPacketBuffer)));
|
||||
}
|
||||
template <typename D> WINRT_IMPL_AUTO(void) consume_Windows_Networking_Vpn_IVpnChannel5<D>::FlushVpnReceivePacketBuffers() const
|
||||
{
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Networking::Vpn::IVpnChannel5)->FlushVpnReceivePacketBuffers());
|
||||
}
|
||||
template <typename D> WINRT_IMPL_AUTO(void) consume_Windows_Networking_Vpn_IVpnChannel5<D>::FlushVpnSendPacketBuffers() const
|
||||
{
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Networking::Vpn::IVpnChannel5)->FlushVpnSendPacketBuffers());
|
||||
}
|
||||
template <typename D> WINRT_IMPL_AUTO(winrt::Windows::Networking::Vpn::VpnChannelActivityEventType) consume_Windows_Networking_Vpn_IVpnChannelActivityEventArgs<D>::Type() const
|
||||
{
|
||||
winrt::Windows::Networking::Vpn::VpnChannelActivityEventType value{};
|
||||
@@ -1457,6 +1473,40 @@ namespace winrt::impl
|
||||
catch (...) { return to_hresult(); }
|
||||
};
|
||||
#endif
|
||||
#ifndef WINRT_LEAN_AND_MEAN
|
||||
template <typename D>
|
||||
struct produce<D, winrt::Windows::Networking::Vpn::IVpnChannel5> : produce_base<D, winrt::Windows::Networking::Vpn::IVpnChannel5>
|
||||
{
|
||||
int32_t __stdcall AppendVpnReceivePacketBuffer(void* decapsulatedPacketBuffer) noexcept final try
|
||||
{
|
||||
typename D::abi_guard guard(this->shim());
|
||||
this->shim().AppendVpnReceivePacketBuffer(*reinterpret_cast<winrt::Windows::Networking::Vpn::VpnPacketBuffer const*>(&decapsulatedPacketBuffer));
|
||||
return 0;
|
||||
}
|
||||
catch (...) { return to_hresult(); }
|
||||
int32_t __stdcall AppendVpnSendPacketBuffer(void* encapsulatedPacketBuffer) noexcept final try
|
||||
{
|
||||
typename D::abi_guard guard(this->shim());
|
||||
this->shim().AppendVpnSendPacketBuffer(*reinterpret_cast<winrt::Windows::Networking::Vpn::VpnPacketBuffer const*>(&encapsulatedPacketBuffer));
|
||||
return 0;
|
||||
}
|
||||
catch (...) { return to_hresult(); }
|
||||
int32_t __stdcall FlushVpnReceivePacketBuffers() noexcept final try
|
||||
{
|
||||
typename D::abi_guard guard(this->shim());
|
||||
this->shim().FlushVpnReceivePacketBuffers();
|
||||
return 0;
|
||||
}
|
||||
catch (...) { return to_hresult(); }
|
||||
int32_t __stdcall FlushVpnSendPacketBuffers() noexcept final try
|
||||
{
|
||||
typename D::abi_guard guard(this->shim());
|
||||
this->shim().FlushVpnSendPacketBuffers();
|
||||
return 0;
|
||||
}
|
||||
catch (...) { return to_hresult(); }
|
||||
};
|
||||
#endif
|
||||
#ifndef WINRT_LEAN_AND_MEAN
|
||||
template <typename D>
|
||||
struct produce<D, winrt::Windows::Networking::Vpn::IVpnChannelActivityEventArgs> : produce_base<D, winrt::Windows::Networking::Vpn::IVpnChannelActivityEventArgs>
|
||||
@@ -3160,6 +3210,7 @@ namespace std
|
||||
template<> struct hash<winrt::Windows::Networking::Vpn::IVpnChannel> : winrt::impl::hash_base {};
|
||||
template<> struct hash<winrt::Windows::Networking::Vpn::IVpnChannel2> : winrt::impl::hash_base {};
|
||||
template<> struct hash<winrt::Windows::Networking::Vpn::IVpnChannel4> : winrt::impl::hash_base {};
|
||||
template<> struct hash<winrt::Windows::Networking::Vpn::IVpnChannel5> : winrt::impl::hash_base {};
|
||||
template<> struct hash<winrt::Windows::Networking::Vpn::IVpnChannelActivityEventArgs> : winrt::impl::hash_base {};
|
||||
template<> struct hash<winrt::Windows::Networking::Vpn::IVpnChannelActivityStateChangedArgs> : winrt::impl::hash_base {};
|
||||
template<> struct hash<winrt::Windows::Networking::Vpn::IVpnChannelConfiguration> : winrt::impl::hash_base {};
|
||||
|
||||
Reference in New Issue
Block a user