-
Notifications
You must be signed in to change notification settings - Fork 127
Expand file tree
/
Copy pathWinRT.Interop.idl
More file actions
196 lines (177 loc) · 7.76 KB
/
Copy pathWinRT.Interop.idl
File metadata and controls
196 lines (177 loc) · 7.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
// Modern IDL 3.0: https://docs.microsoft.com/en-us/uwp/midl-3/intro
// Note: the projection generated for this metadata should be internal, and only
// accessed indirectly with the user-friendly wrappers in ComInteropHelpers.cs.
namespace WinRT.Interop
{
// C#/WinRT provides support for generating internal interface projections
[attributeusage(target_interface)]
[attributename("ProjectionInternal")]
attribute ProjectionInternalAttribute
{
}
// C#/WinRT provides a custom mapping of WinRT.Interop.HWND to System.IntPtr
struct HWND
{
Int32 unused;
};
// accountssettingspaneinterop.idl (see: https://learn.microsoft.com/windows/win32/api/accountssettingspaneinterop/)
#if UAC_VERSION > 2
[uuid(D3EE12AD-3865-4362-9746-B75A682DF0E6), ProjectionInternal]
interface IAccountsSettingsPaneInterop
{
Windows.UI.ApplicationSettings.AccountsSettingsPane GetForWindow(
HWND appWindow,
ref const GUID riid); // __uuidof(AccountsSettingsPane)
Windows.Foundation.IAsyncAction ShowManageAccountsForWindowAsync(
HWND appWindow,
ref const GUID riid); // __uuidof(IAsyncAction)
Windows.Foundation.IAsyncAction ShowAddAccountForWindowAsync(
HWND appWindow,
ref const GUID riid); // __uuidof(IAsyncAction)
}
#endif
// dragdropinterop.idl (see: https://learn.microsoft.com/windows/win32/api/dragdropinterop/)
#if UAC_VERSION > 0
[uuid(5AD8CBA7-4C01-4DAC-9074-827894292D63), ProjectionInternal]
interface IDragDropManagerInterop
{
Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager GetForWindow(
HWND hwnd,
ref const GUID riid); // __uuidof(CoreDragDropManager)
}
#endif
// inputpaneinterop.idl (see: https://learn.microsoft.com/windows/win32/api/inputpaneinterop/)
#if UAC_VERSION > 2
[uuid(75CF2C57-9195-4931-8332-F0B409E916AF), ProjectionInternal]
interface IInputPaneInterop
{
Windows.UI.ViewManagement.InputPane GetForWindow(
HWND appWindow,
ref const GUID riid); // __uuidof(InputPane)
}
#endif
// PlayToManagerInterop.idl (see: https://learn.microsoft.com/windows/win32/api/playtomanagerinterop/)
#if UAC_VERSION > 0
[uuid(24394699-1F2C-4EB3-8CD7-0EC1DA42A540), ProjectionInternal]
interface IPlayToManagerInterop
{
Windows.Media.PlayTo.PlayToManager GetForWindow(
HWND appWindow,
ref const GUID riid); // __uuidof(PlayToManager)
void ShowPlayToUIForWindow(
HWND appWindow);
}
#endif
// PrintManagerInterop.idl (see: https://learn.microsoft.com/windows/win32/api/printmanagerinterop/)
#if UAC_VERSION > 0
[uuid(c5435a42-8d43-4e7b-a68a-ef311e392087), ProjectionInternal]
interface IPrintManagerInterop
{
Windows.Graphics.Printing.PrintManager GetForWindow(
HWND appWindow,
ref const GUID riid); // __uuidof(PrintManager)
Windows.Foundation.IAsyncOperation<Boolean> ShowPrintUIForWindowAsync(
HWND appWindow,
ref const GUID riid); // __uuidof(IAsyncOperation<Boolean>)
}
#endif
// RadialControllerInterop.idl (see: https://learn.microsoft.com/windows/win32/api/radialcontrollerinterop/)
#if UAC_VERSION > 2
[uuid(1B0535C9-57AD-45C1-9D79-AD5C34360513), ProjectionInternal]
interface IRadialControllerInterop
{
Windows.UI.Input.RadialController CreateForWindow(
HWND hwnd,
ref const GUID riid); // __uuidof(RadialController)
}
#endif
#if UAC_VERSION > 2
[uuid(787cdaac-3186-476d-87e4-b9374a7b9970), ProjectionInternal]
interface IRadialControllerConfigurationInterop
{
Windows.UI.Input.RadialControllerConfiguration GetForWindow(
HWND hwnd,
ref const GUID riid); // __uuidof(RadialControllerConfiguration)
}
#endif
#if UAC_VERSION > 3
[uuid(3D577EFF-4CEE-11E6-B535-001BDC06AB3B), ProjectionInternal]
interface IRadialControllerIndependentInputSourceInterop
{
Windows.UI.Input.Core.RadialControllerIndependentInputSource CreateForWindow(
HWND hwnd,
ref const GUID riid); // __uuidof(RadialControllerIndependentInputSource)
}
#endif
// SpatialInteractionManagerInterop.idl (see: https://learn.microsoft.com/windows/win32/api/spatialinteractionmanagerinterop/)
// This interop interface is duplicated by IHolographicSpaceInterop, which has the same IID
#if UAC_VERSION > 3
[uuid(5C4EE536-6A98-4B86-A170-587013D6FD4B), ProjectionInternal]
interface ISpatialInteractionManagerInterop
{
Windows.UI.Input.Spatial.SpatialInteractionManager GetForWindow(
HWND window,
ref const GUID riid); // __uuidof(SpatialInteractionManager)
}
#endif
// SystemMediaTransportControlsInterop.idl (see: https://learn.microsoft.com/windows/win32/api/systemmediatransportcontrolsinterop/)
#if UAC_VERSION > 0
[uuid(ddb0472d-c911-4a1f-86d9-dc3d71a95f5a), ProjectionInternal]
interface ISystemMediaTransportControlsInterop
{
Windows.Media.SystemMediaTransportControls GetForWindow(
HWND appWindow,
ref const GUID riid); // __uuidof(SystemMediaTransportControls)
}
#endif
// UIViewSettingsInterop.idl (see: https://learn.microsoft.com/windows/win32/api/uiviewsettingsinterop/)
#if UAC_VERSION > 0
[uuid(3694dbf9-8f68-44be-8ff5-195c98ede8a6), ProjectionInternal]
interface IUIViewSettingsInterop
{
Windows.UI.ViewManagement.UIViewSettings GetForWindow(
HWND hwnd,
ref const GUID riid); // __uuidof(UIViewSettings)
}
#endif
// UserConsentVerifierInterop.idl (see: https://learn.microsoft.com/windows/win32/api/userconsentverifierinterop/)
#if UAC_VERSION > 4
[uuid(39E050C3-4E74-441A-8DC0-B81104DF949C), ProjectionInternal]
interface IUserConsentVerifierInterop
{
Windows.Foundation.IAsyncOperation<Windows.Security.Credentials.UI.UserConsentVerificationResult> RequestVerificationForWindowAsync(
HWND appWindow,
String message,
ref const GUID riid); // __uuidof(IAsyncOperation<UserConsentVerificationResult>)
}
#endif
// WebAuthenticationCoreManagerInterop.idl (see: https://learn.microsoft.com/windows/win32/api/webauthenticationcoremanagerinterop/)
#if UAC_VERSION > 0
[uuid(F4B8E804-811E-4436-B69C-44CB67B72084), ProjectionInternal]
interface IWebAuthenticationCoreManagerInterop
{
Windows.Foundation.IAsyncOperation<Windows.Security.Authentication.Web.Core.WebTokenRequestResult> RequestTokenForWindowAsync(
HWND appWindow,
Windows.Security.Authentication.Web.Core.WebTokenRequest request,
ref const GUID riid); // __uuidof(IAsyncOperation<WebTokenRequestResult>)
Windows.Foundation.IAsyncOperation<Windows.Security.Authentication.Web.Core.WebTokenRequestResult> RequestTokenWithWebAccountForWindowAsync(
HWND appWindow,
Windows.Security.Authentication.Web.Core.WebTokenRequest request,
Windows.Security.Credentials.WebAccount webAccount,
ref const GUID riid); // __uuidof(IAsyncOperation<WebTokenRequestResult>)
}
#endif
// WindowsGraphicsDisplayInterop.idl (see: https://learn.microsoft.com/windows/win32/api/windows.graphics.display.interop/)
#if UAC_VERSION > 14
[uuid(7449121C-382B-4705-8DA7-A795BA482013), ProjectionInternal]
interface IDisplayInformationStaticsInterop
{
Windows.Graphics.Display.DisplayInformation GetForWindow(
HWND window,
ref const GUID riid); // __uuidof(DisplayInformation)
Windows.Graphics.Display.DisplayInformation GetForMonitor(
HWND monitor,
ref const GUID riid); // __uuidof(DisplayInformation)
}
#endif
}