From 81fb29bfb632f3f107b3a8e0e40183323648621d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Tue, 28 Feb 2023 13:46:13 +0100 Subject: [PATCH] include: Add Windows.System.UserProfile.AdvertisingManager runtimeclass. --- include/windows.system.userprofile.idl | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/include/windows.system.userprofile.idl b/include/windows.system.userprofile.idl index 255ea7dcf6d..672f520c37a 100644 --- a/include/windows.system.userprofile.idl +++ b/include/windows.system.userprofile.idl @@ -31,9 +31,12 @@ import "windows.globalization.idl"; namespace Windows.System.UserProfile { + interface IAdvertisingManagerStatics; + interface IAdvertisingManagerStatics2; interface IGlobalizationPreferencesStatics; interface IGlobalizationPreferencesStatics2; interface IGlobalizationPreferencesStatics3; + runtimeclass AdvertisingManager; runtimeclass GlobalizationPreferences; [ @@ -51,6 +54,16 @@ namespace Windows.System.UserProfile { [propget] HRESULT WeekStartsOn([out, retval] Windows.Globalization.DayOfWeek *value); } + [ + contract(Windows.Foundation.UniversalApiContract, 1.0), + exclusiveto(Windows.System.UserProfile.AdvertisingManager), + uuid(add3468c-a273-48cb-b346-3544522d5581), + ] + interface IAdvertisingManagerStatics : IInspectable + { + [propget] HRESULT AdvertisingId([out, retval] HSTRING *value); + } + [ contract(Windows.Foundation.UniversalApiContract, 1.0), marshaling_behavior(agile), @@ -62,4 +75,14 @@ namespace Windows.System.UserProfile { { } + [ + contract(Windows.Foundation.UniversalApiContract, 1.0), + marshaling_behavior(standard), + static(Windows.System.UserProfile.IAdvertisingManagerStatics, Windows.Foundation.UniversalApiContract, 1.0), + static(Windows.System.UserProfile.IAdvertisingManagerStatics2, Windows.Foundation.UniversalApiContract, 3.0), + ] + runtimeclass AdvertisingManager + { + } + }