| 1 |
/* |
| 2 |
* Copyright 2021 Rémi Bernon for CodeWeavers |
| 3 |
* |
| 4 |
* This library is free software; you can redistribute it and/or |
| 5 |
* modify it under the terms of the GNU Lesser General Public |
| 6 |
* License as published by the Free Software Foundation; either |
| 7 |
* version 2.1 of the License, or (at your option) any later version. |
| 8 |
* |
| 9 |
* This library is distributed in the hope that it will be useful, |
| 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 |
* Lesser General Public License for more details. |
| 13 |
* |
| 14 |
* You should have received a copy of the GNU Lesser General Public |
| 15 |
* License along with this library; if not, write to the Free Software |
| 16 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
| 17 |
*/ |
| 18 |
|
| 19 |
#ifdef __WIDL__ |
| 20 |
#pragma winrt ns_prefix |
| 21 |
#endif |
| 22 |
|
| 23 |
import "inspectable.idl"; |
| 24 |
import "asyncinfo.idl"; |
| 25 |
import "eventtoken.idl"; |
| 26 |
import "windowscontracts.idl"; |
| 27 |
import "windows.foundation.idl"; |
| 28 |
import "windows.globalization.idl"; |
| 29 |
|
| 30 |
namespace Windows.System.UserProfile { |
| 31 |
|
| 32 |
interface IAdvertisingManagerStatics; |
| 33 |
interface IAdvertisingManagerStatics2; |
| 34 |
interface IGlobalizationPreferencesStatics; |
| 35 |
interface IGlobalizationPreferencesStatics2; |
| 36 |
interface IGlobalizationPreferencesStatics3; |
| 37 |
runtimeclass AdvertisingManager; |
| 38 |
runtimeclass GlobalizationPreferences; |
| 39 |
|
| 40 |
[ |
| 41 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 42 |
exclusiveto(Windows.System.UserProfile.GlobalizationPreferences), |
| 43 |
uuid(01bf4326-ed37-4e96-b0e9-c1340d1ea158) |
| 44 |
] |
| 45 |
interface IGlobalizationPreferencesStatics : IInspectable |
| 46 |
{ |
| 47 |
[propget] HRESULT Calendars([out, retval] Windows.Foundation.Collections.IVectorView<HSTRING> **value); |
| 48 |
[propget] HRESULT Clocks([out, retval] Windows.Foundation.Collections.IVectorView<HSTRING> **value); |
| 49 |
[propget] HRESULT Currencies([out, retval] Windows.Foundation.Collections.IVectorView<HSTRING> **value); |
| 50 |
[propget] HRESULT Languages([out, retval] Windows.Foundation.Collections.IVectorView<HSTRING> **value); |
| 51 |
[propget] HRESULT HomeGeographicRegion([out, retval] HSTRING *value); |
| 52 |
[propget] HRESULT WeekStartsOn([out, retval] Windows.Globalization.DayOfWeek *value); |
| 53 |
} |
| 54 |
|
| 55 |
[ |
| 56 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 57 |
exclusiveto(Windows.System.UserProfile.AdvertisingManager), |
| 58 |
uuid(add3468c-a273-48cb-b346-3544522d5581), |
| 59 |
] |
| 60 |
interface IAdvertisingManagerStatics : IInspectable |
| 61 |
{ |
| 62 |
[propget] HRESULT AdvertisingId([out, retval] HSTRING *value); |
| 63 |
} |
| 64 |
|
| 65 |
[ |
| 66 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 67 |
marshaling_behavior(agile), |
| 68 |
static(Windows.System.UserProfile.IGlobalizationPreferencesStatics, Windows.Foundation.UniversalApiContract, 1.0), |
| 69 |
/* static(Windows.System.UserProfile.IGlobalizationPreferencesStatics2, Windows.Foundation.UniversalApiContract, 5.0), */ |
| 70 |
/* static(Windows.System.UserProfile.IGlobalizationPreferencesStatics3, Windows.Foundation.UniversalApiContract, 6.0), */ |
| 71 |
] |
| 72 |
runtimeclass GlobalizationPreferences |
| 73 |
{ |
| 74 |
} |
| 75 |
|
| 76 |
[ |
| 77 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 78 |
marshaling_behavior(standard), |
| 79 |
static(Windows.System.UserProfile.IAdvertisingManagerStatics, Windows.Foundation.UniversalApiContract, 1.0), |
| 80 |
/* static(Windows.System.UserProfile.IAdvertisingManagerStatics2, Windows.Foundation.UniversalApiContract, 3.0), */ |
| 81 |
] |
| 82 |
runtimeclass AdvertisingManager |
| 83 |
{ |
| 84 |
} |
| 85 |
|
| 86 |
} |