Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit 61ea511

Browse files
committed
re-run generate
Apparently we previously missed some 22621 APIs.
1 parent 4490b5f commit 61ea511

40 files changed

+6533
-29
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
## [Unreleased]
66

7+
### Added
8+
- Added more Windows SDK (10.0.22621) for Windows 11, version 22H2 APIs.
9+
710
## [v1.0.0b9] - 2023-04-15
811

912
### Added

cppwinrt/winrt/Windows.Devices.Sensors.h

Lines changed: 289 additions & 0 deletions
Large diffs are not rendered by default.

cppwinrt/winrt/Windows.Media.ClosedCaptioning.h

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.230225.1"), "Mismatched C++/WinRT headers.");
88
#define CPPWINRT_VERSION "2.0.230225.1"
99
#include "winrt/Windows.Media.h"
10+
#include "winrt/impl/Windows.Foundation.2.h"
1011
#include "winrt/impl/Windows.UI.2.h"
1112
#include "winrt/impl/Windows.Media.ClosedCaptioning.2.h"
1213
namespace winrt::impl
@@ -83,6 +84,20 @@ namespace winrt::impl
8384
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics)->get_RegionOpacity(reinterpret_cast<int32_t*>(&value)));
8485
return value;
8586
}
87+
template <typename D> auto consume_Windows_Media_ClosedCaptioning_IClosedCaptionPropertiesStatics2<D>::PropertiesChanged(winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable> const& handler) const
88+
{
89+
winrt::event_token token{};
90+
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics2)->add_PropertiesChanged(*(void**)(&handler), put_abi(token)));
91+
return token;
92+
}
93+
template <typename D> auto consume_Windows_Media_ClosedCaptioning_IClosedCaptionPropertiesStatics2<D>::PropertiesChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable> const& handler) const
94+
{
95+
return impl::make_event_revoker<D, PropertiesChanged_revoker>(this, PropertiesChanged(handler));
96+
}
97+
template <typename D> auto consume_Windows_Media_ClosedCaptioning_IClosedCaptionPropertiesStatics2<D>::PropertiesChanged(winrt::event_token const& token) const noexcept
98+
{
99+
WINRT_IMPL_SHIM(winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics2)->remove_PropertiesChanged(impl::bind_in(token));
100+
}
86101
#ifndef WINRT_LEAN_AND_MEAN
87102
template <typename D>
88103
struct produce<D, winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics> : produce_base<D, winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics>
@@ -176,6 +191,26 @@ namespace winrt::impl
176191
catch (...) { return to_hresult(); }
177192
};
178193
#endif
194+
#ifndef WINRT_LEAN_AND_MEAN
195+
template <typename D>
196+
struct produce<D, winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics2> : produce_base<D, winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics2>
197+
{
198+
int32_t __stdcall add_PropertiesChanged(void* handler, winrt::event_token* token) noexcept final try
199+
{
200+
zero_abi<winrt::event_token>(token);
201+
typename D::abi_guard guard(this->shim());
202+
*token = detach_from<winrt::event_token>(this->shim().PropertiesChanged(*reinterpret_cast<winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable> const*>(&handler)));
203+
return 0;
204+
}
205+
catch (...) { return to_hresult(); }
206+
int32_t __stdcall remove_PropertiesChanged(winrt::event_token token) noexcept final
207+
{
208+
typename D::abi_guard guard(this->shim());
209+
this->shim().PropertiesChanged(*reinterpret_cast<winrt::event_token const*>(&token));
210+
return 0;
211+
}
212+
};
213+
#endif
179214
}
180215
WINRT_EXPORT namespace winrt::Windows::Media::ClosedCaptioning
181216
{
@@ -227,11 +262,25 @@ WINRT_EXPORT namespace winrt::Windows::Media::ClosedCaptioning
227262
{
228263
return impl::call_factory_cast<winrt::Windows::Media::ClosedCaptioning::ClosedCaptionOpacity(*)(IClosedCaptionPropertiesStatics const&), ClosedCaptionProperties, IClosedCaptionPropertiesStatics>([](IClosedCaptionPropertiesStatics const& f) { return f.RegionOpacity(); });
229264
}
265+
inline auto ClosedCaptionProperties::PropertiesChanged(winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable> const& handler)
266+
{
267+
return impl::call_factory<ClosedCaptionProperties, IClosedCaptionPropertiesStatics2>([&](IClosedCaptionPropertiesStatics2 const& f) { return f.PropertiesChanged(handler); });
268+
}
269+
inline auto ClosedCaptionProperties::PropertiesChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable> const& handler)
270+
{
271+
auto f = get_activation_factory<ClosedCaptionProperties, winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics2>();
272+
return ClosedCaptionProperties::PropertiesChanged_revoker{ f, f.PropertiesChanged(handler) };
273+
}
274+
inline auto ClosedCaptionProperties::PropertiesChanged(winrt::event_token const& token)
275+
{
276+
impl::call_factory<ClosedCaptionProperties, IClosedCaptionPropertiesStatics2>([&](IClosedCaptionPropertiesStatics2 const& f) { return f.PropertiesChanged(token); });
277+
}
230278
}
231279
namespace std
232280
{
233281
#ifndef WINRT_LEAN_AND_MEAN
234282
template<> struct hash<winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics> : winrt::impl::hash_base {};
283+
template<> struct hash<winrt::Windows::Media::ClosedCaptioning::IClosedCaptionPropertiesStatics2> : winrt::impl::hash_base {};
235284
template<> struct hash<winrt::Windows::Media::ClosedCaptioning::ClosedCaptionProperties> : winrt::impl::hash_base {};
236285
#endif
237286
#ifdef __cpp_lib_format

cppwinrt/winrt/Windows.Services.Store.h

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,24 @@ namespace winrt::impl
442442
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Store::IStoreContext4)->SetInstallOrderForAssociatedStoreQueueItemsAsync(*(void**)(&items), &operation));
443443
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Services::Store::StoreQueueItem>>{ operation, take_ownership_from_abi };
444444
}
445+
template <typename D> auto consume_Windows_Services_Store_IStoreContext5<D>::GetUserPurchaseHistoryAsync(param::async_iterable<hstring> const& productKinds) const
446+
{
447+
void* operation{};
448+
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Store::IStoreContext5)->GetUserPurchaseHistoryAsync(*(void**)(&productKinds), &operation));
449+
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Services::Store::StoreProductQueryResult>{ operation, take_ownership_from_abi };
450+
}
451+
template <typename D> auto consume_Windows_Services_Store_IStoreContext5<D>::GetAssociatedStoreProductsByInAppOfferTokenAsync(param::async_iterable<hstring> const& inAppOfferTokens) const
452+
{
453+
void* operation{};
454+
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Store::IStoreContext5)->GetAssociatedStoreProductsByInAppOfferTokenAsync(*(void**)(&inAppOfferTokens), &operation));
455+
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Services::Store::StoreProductQueryResult>{ operation, take_ownership_from_abi };
456+
}
457+
template <typename D> auto consume_Windows_Services_Store_IStoreContext5<D>::RequestPurchaseByInAppOfferTokenAsync(param::hstring const& inAppOfferToken) const
458+
{
459+
void* operation{};
460+
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Store::IStoreContext5)->RequestPurchaseByInAppOfferTokenAsync(*(void**)(&inAppOfferToken), &operation));
461+
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Services::Store::StorePurchaseResult>{ operation, take_ownership_from_abi };
462+
}
445463
template <typename D> auto consume_Windows_Services_Store_IStoreContextStatics<D>::GetDefault() const
446464
{
447465
void* value{};
@@ -620,6 +638,24 @@ namespace winrt::impl
620638
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Store::IStorePrice)->get_FormattedRecurrencePrice(&value));
621639
return hstring{ value, take_ownership_from_abi };
622640
}
641+
template <typename D> auto consume_Windows_Services_Store_IStorePrice2<D>::UnformattedBasePrice() const
642+
{
643+
void* value{};
644+
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Store::IStorePrice2)->get_UnformattedBasePrice(&value));
645+
return hstring{ value, take_ownership_from_abi };
646+
}
647+
template <typename D> auto consume_Windows_Services_Store_IStorePrice2<D>::UnformattedPrice() const
648+
{
649+
void* value{};
650+
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Store::IStorePrice2)->get_UnformattedPrice(&value));
651+
return hstring{ value, take_ownership_from_abi };
652+
}
653+
template <typename D> auto consume_Windows_Services_Store_IStorePrice2<D>::UnformattedRecurrencePrice() const
654+
{
655+
void* value{};
656+
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Services::Store::IStorePrice2)->get_UnformattedRecurrencePrice(&value));
657+
return hstring{ value, take_ownership_from_abi };
658+
}
623659
template <typename D> auto consume_Windows_Services_Store_IStoreProduct<D>::StoreId() const
624660
{
625661
void* value{};
@@ -1782,6 +1818,36 @@ namespace winrt::impl
17821818
catch (...) { return to_hresult(); }
17831819
};
17841820
#endif
1821+
#ifndef WINRT_LEAN_AND_MEAN
1822+
template <typename D>
1823+
struct produce<D, winrt::Windows::Services::Store::IStoreContext5> : produce_base<D, winrt::Windows::Services::Store::IStoreContext5>
1824+
{
1825+
int32_t __stdcall GetUserPurchaseHistoryAsync(void* productKinds, void** operation) noexcept final try
1826+
{
1827+
clear_abi(operation);
1828+
typename D::abi_guard guard(this->shim());
1829+
*operation = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Services::Store::StoreProductQueryResult>>(this->shim().GetUserPurchaseHistoryAsync(*reinterpret_cast<winrt::Windows::Foundation::Collections::IIterable<hstring> const*>(&productKinds)));
1830+
return 0;
1831+
}
1832+
catch (...) { return to_hresult(); }
1833+
int32_t __stdcall GetAssociatedStoreProductsByInAppOfferTokenAsync(void* inAppOfferTokens, void** operation) noexcept final try
1834+
{
1835+
clear_abi(operation);
1836+
typename D::abi_guard guard(this->shim());
1837+
*operation = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Services::Store::StoreProductQueryResult>>(this->shim().GetAssociatedStoreProductsByInAppOfferTokenAsync(*reinterpret_cast<winrt::Windows::Foundation::Collections::IIterable<hstring> const*>(&inAppOfferTokens)));
1838+
return 0;
1839+
}
1840+
catch (...) { return to_hresult(); }
1841+
int32_t __stdcall RequestPurchaseByInAppOfferTokenAsync(void* inAppOfferToken, void** operation) noexcept final try
1842+
{
1843+
clear_abi(operation);
1844+
typename D::abi_guard guard(this->shim());
1845+
*operation = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Services::Store::StorePurchaseResult>>(this->shim().RequestPurchaseByInAppOfferTokenAsync(*reinterpret_cast<hstring const*>(&inAppOfferToken)));
1846+
return 0;
1847+
}
1848+
catch (...) { return to_hresult(); }
1849+
};
1850+
#endif
17851851
#ifndef WINRT_LEAN_AND_MEAN
17861852
template <typename D>
17871853
struct produce<D, winrt::Windows::Services::Store::IStoreContextStatics> : produce_base<D, winrt::Windows::Services::Store::IStoreContextStatics>
@@ -2064,6 +2130,36 @@ namespace winrt::impl
20642130
catch (...) { return to_hresult(); }
20652131
};
20662132
#endif
2133+
#ifndef WINRT_LEAN_AND_MEAN
2134+
template <typename D>
2135+
struct produce<D, winrt::Windows::Services::Store::IStorePrice2> : produce_base<D, winrt::Windows::Services::Store::IStorePrice2>
2136+
{
2137+
int32_t __stdcall get_UnformattedBasePrice(void** value) noexcept final try
2138+
{
2139+
clear_abi(value);
2140+
typename D::abi_guard guard(this->shim());
2141+
*value = detach_from<hstring>(this->shim().UnformattedBasePrice());
2142+
return 0;
2143+
}
2144+
catch (...) { return to_hresult(); }
2145+
int32_t __stdcall get_UnformattedPrice(void** value) noexcept final try
2146+
{
2147+
clear_abi(value);
2148+
typename D::abi_guard guard(this->shim());
2149+
*value = detach_from<hstring>(this->shim().UnformattedPrice());
2150+
return 0;
2151+
}
2152+
catch (...) { return to_hresult(); }
2153+
int32_t __stdcall get_UnformattedRecurrencePrice(void** value) noexcept final try
2154+
{
2155+
clear_abi(value);
2156+
typename D::abi_guard guard(this->shim());
2157+
*value = detach_from<hstring>(this->shim().UnformattedRecurrencePrice());
2158+
return 0;
2159+
}
2160+
catch (...) { return to_hresult(); }
2161+
};
2162+
#endif
20672163
#ifndef WINRT_LEAN_AND_MEAN
20682164
template <typename D>
20692165
struct produce<D, winrt::Windows::Services::Store::IStoreProduct> : produce_base<D, winrt::Windows::Services::Store::IStoreProduct>
@@ -2923,6 +3019,7 @@ namespace std
29233019
template<> struct hash<winrt::Windows::Services::Store::IStoreContext2> : winrt::impl::hash_base {};
29243020
template<> struct hash<winrt::Windows::Services::Store::IStoreContext3> : winrt::impl::hash_base {};
29253021
template<> struct hash<winrt::Windows::Services::Store::IStoreContext4> : winrt::impl::hash_base {};
3022+
template<> struct hash<winrt::Windows::Services::Store::IStoreContext5> : winrt::impl::hash_base {};
29263023
template<> struct hash<winrt::Windows::Services::Store::IStoreContextStatics> : winrt::impl::hash_base {};
29273024
template<> struct hash<winrt::Windows::Services::Store::IStoreImage> : winrt::impl::hash_base {};
29283025
template<> struct hash<winrt::Windows::Services::Store::IStoreLicense> : winrt::impl::hash_base {};
@@ -2932,6 +3029,7 @@ namespace std
29323029
template<> struct hash<winrt::Windows::Services::Store::IStorePackageUpdateResult> : winrt::impl::hash_base {};
29333030
template<> struct hash<winrt::Windows::Services::Store::IStorePackageUpdateResult2> : winrt::impl::hash_base {};
29343031
template<> struct hash<winrt::Windows::Services::Store::IStorePrice> : winrt::impl::hash_base {};
3032+
template<> struct hash<winrt::Windows::Services::Store::IStorePrice2> : winrt::impl::hash_base {};
29353033
template<> struct hash<winrt::Windows::Services::Store::IStoreProduct> : winrt::impl::hash_base {};
29363034
template<> struct hash<winrt::Windows::Services::Store::IStoreProductOptions> : winrt::impl::hash_base {};
29373035
template<> struct hash<winrt::Windows::Services::Store::IStoreProductPagedQueryResult> : winrt::impl::hash_base {};
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.230225.1
2+
3+
#pragma once
4+
#ifndef WINRT_Windows_System_RemoteDesktop_Provider_H
5+
#define WINRT_Windows_System_RemoteDesktop_Provider_H
6+
#include "winrt/base.h"
7+
static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.230225.1"), "Mismatched C++/WinRT headers.");
8+
#define CPPWINRT_VERSION "2.0.230225.1"
9+
#include "winrt/Windows.System.RemoteDesktop.h"
10+
#include "winrt/impl/Windows.Foundation.2.h"
11+
#include "winrt/impl/Windows.UI.2.h"
12+
#include "winrt/impl/Windows.System.RemoteDesktop.Provider.2.h"
13+
namespace winrt::impl
14+
{
15+
template <typename D> auto consume_Windows_System_RemoteDesktop_Provider_IRemoteDesktopConnectionInfo<D>::SetConnectionStatus(winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionStatus const& value) const
16+
{
17+
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteDesktop::Provider::IRemoteDesktopConnectionInfo)->SetConnectionStatus(static_cast<int32_t>(value)));
18+
}
19+
template <typename D> auto consume_Windows_System_RemoteDesktop_Provider_IRemoteDesktopConnectionInfoStatics<D>::GetForLaunchUri(winrt::Windows::Foundation::Uri const& launchUri, winrt::Windows::UI::WindowId const& windowId) const
20+
{
21+
void* result{};
22+
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteDesktop::Provider::IRemoteDesktopConnectionInfoStatics)->GetForLaunchUri(*(void**)(&launchUri), impl::bind_in(windowId), &result));
23+
return winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionInfo{ result, take_ownership_from_abi };
24+
}
25+
#ifndef WINRT_LEAN_AND_MEAN
26+
template <typename D>
27+
struct produce<D, winrt::Windows::System::RemoteDesktop::Provider::IRemoteDesktopConnectionInfo> : produce_base<D, winrt::Windows::System::RemoteDesktop::Provider::IRemoteDesktopConnectionInfo>
28+
{
29+
int32_t __stdcall SetConnectionStatus(int32_t value) noexcept final try
30+
{
31+
typename D::abi_guard guard(this->shim());
32+
this->shim().SetConnectionStatus(*reinterpret_cast<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionStatus const*>(&value));
33+
return 0;
34+
}
35+
catch (...) { return to_hresult(); }
36+
};
37+
#endif
38+
#ifndef WINRT_LEAN_AND_MEAN
39+
template <typename D>
40+
struct produce<D, winrt::Windows::System::RemoteDesktop::Provider::IRemoteDesktopConnectionInfoStatics> : produce_base<D, winrt::Windows::System::RemoteDesktop::Provider::IRemoteDesktopConnectionInfoStatics>
41+
{
42+
int32_t __stdcall GetForLaunchUri(void* launchUri, struct struct_Windows_UI_WindowId windowId, void** result) noexcept final try
43+
{
44+
clear_abi(result);
45+
typename D::abi_guard guard(this->shim());
46+
*result = detach_from<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionInfo>(this->shim().GetForLaunchUri(*reinterpret_cast<winrt::Windows::Foundation::Uri const*>(&launchUri), *reinterpret_cast<winrt::Windows::UI::WindowId const*>(&windowId)));
47+
return 0;
48+
}
49+
catch (...) { return to_hresult(); }
50+
};
51+
#endif
52+
}
53+
WINRT_EXPORT namespace winrt::Windows::System::RemoteDesktop::Provider
54+
{
55+
inline auto RemoteDesktopConnectionInfo::GetForLaunchUri(winrt::Windows::Foundation::Uri const& launchUri, winrt::Windows::UI::WindowId const& windowId)
56+
{
57+
return impl::call_factory<RemoteDesktopConnectionInfo, IRemoteDesktopConnectionInfoStatics>([&](IRemoteDesktopConnectionInfoStatics const& f) { return f.GetForLaunchUri(launchUri, windowId); });
58+
}
59+
}
60+
namespace std
61+
{
62+
#ifndef WINRT_LEAN_AND_MEAN
63+
template<> struct hash<winrt::Windows::System::RemoteDesktop::Provider::IRemoteDesktopConnectionInfo> : winrt::impl::hash_base {};
64+
template<> struct hash<winrt::Windows::System::RemoteDesktop::Provider::IRemoteDesktopConnectionInfoStatics> : winrt::impl::hash_base {};
65+
template<> struct hash<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionInfo> : winrt::impl::hash_base {};
66+
#endif
67+
#ifdef __cpp_lib_format
68+
#endif
69+
}
70+
#endif

0 commit comments

Comments
 (0)