widget/windows/winrt/DisplayInfo_sdk81.h

branch
TOR_BUG_9701
changeset 10
ac0c01689b40
equal deleted inserted replaced
-1:000000000000 0:36b73a3adaab
1
2 /* this file contains the definitions for DisplayInformation related interfaces
3 copied over from Windows.Graphics.Display.h file in the windows 8.1 SDK
4 This file can be deleted once our build system moves to 8.1. */
5
6 /* File created by MIDL compiler version 8.00.0603 */
7 /* @@MIDL_FILE_HEADING( ) */
8
9 /* Forward Declarations */
10
11 #ifndef ____FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_FWD_DEFINED__
12 #define ____FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_FWD_DEFINED__
13 typedef interface __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable;
14
15 #endif /* ____FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_FWD_DEFINED__ */
16
17
18 #ifndef ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics_FWD_DEFINED__
19 #define ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics_FWD_DEFINED__
20 typedef interface __x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics __x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics;
21
22 #ifdef __cplusplus
23 namespace ABI {
24 namespace Windows {
25 namespace Graphics {
26 namespace Display {
27 interface IDisplayInformationStatics;
28 } /* end namespace */
29 } /* end namespace */
30 } /* end namespace */
31 } /* end namespace */
32
33 #endif /* __cplusplus */
34
35 #endif /* ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics_FWD_DEFINED__ */
36
37
38 #ifndef ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation_FWD_DEFINED__
39 #define ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation_FWD_DEFINED__
40 typedef interface __x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation __x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation;
41
42 #ifdef __cplusplus
43 namespace ABI {
44 namespace Windows {
45 namespace Graphics {
46 namespace Display {
47 interface IDisplayInformation;
48 } /* end namespace */
49 } /* end namespace */
50 } /* end namespace */
51 } /* end namespace */
52
53 #endif /* __cplusplus */
54
55 #endif /* ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation_FWD_DEFINED__ */
56
57
58 #ifdef __cplusplus
59 namespace ABI {
60 namespace Windows {
61 namespace Graphics {
62 namespace Display {
63 class DisplayInformation;
64 } /*Display*/
65 } /*Graphics*/
66 } /*Windows*/
67 }
68 #endif
69
70 #ifdef __cplusplus
71 namespace ABI {
72 namespace Windows {
73 namespace Graphics {
74 namespace Display {
75 interface IDisplayInformation;
76 } /*Display*/
77 } /*Graphics*/
78 } /*Windows*/
79 }
80 #endif
81
82 interface IInspectable;
83
84
85 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0000 */
86 /* [local] */
87
88
89
90
91
92 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0000_v0_0_c_ifspec;
93 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0000_v0_0_s_ifspec;
94
95 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0580 */
96
97
98
99
100 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0580 */
101
102
103
104
105 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0580_v0_0_c_ifspec;
106 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0580_v0_0_s_ifspec;
107
108 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0001 */
109 /* [local] */
110
111 #ifndef DEF___FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_USE
112 #define DEF___FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_USE
113 #if defined(__cplusplus) && !defined(RO_NO_TEMPLATE_NAME)
114 namespace ABI { namespace Windows { namespace Foundation {
115 template <>
116 struct __declspec(uuid("86c4f619-67b6-51c7-b30d-d8cf13625327"))
117 ITypedEventHandler<ABI::Windows::Graphics::Display::DisplayInformation*,IInspectable*> : ITypedEventHandler_impl<ABI::Windows::Foundation::Internal::AggregateType<ABI::Windows::Graphics::Display::DisplayInformation*, ABI::Windows::Graphics::Display::IDisplayInformation*>,IInspectable*> {
118 static const wchar_t* z_get_rc_name_impl() {
119 return L"Windows.Foundation.TypedEventHandler`2<Windows.Graphics.Display.DisplayInformation, Object>"; }
120 };
121 typedef ITypedEventHandler<ABI::Windows::Graphics::Display::DisplayInformation*,IInspectable*> __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_t;
122 #define ____FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_FWD_DEFINED__
123 #define __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable ABI::Windows::Foundation::__FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_t
124
125 /* ABI */ } /* Windows */ } /* Foundation */ }
126 #endif //__cplusplus
127 #endif /* DEF___FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_USE */
128
129 #ifndef DEF___FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable
130 #define DEF___FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable
131 #if !defined(__cplusplus) || defined(RO_NO_TEMPLATE_NAME)
132
133
134 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0004 */
135 /* [local] */
136
137
138
139 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0004_v0_0_c_ifspec;
140 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0004_v0_0_s_ifspec;
141
142 #ifndef ____FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_INTERFACE_DEFINED__
143 #define ____FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_INTERFACE_DEFINED__
144
145 /* interface __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable */
146 /* [unique][uuid][object] */
147
148
149
150 /* interface __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable */
151 /* [unique][uuid][object] */
152
153
154 EXTERN_C const IID IID___FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable;
155
156 #if defined(__cplusplus) && !defined(CINTERFACE)
157
158 MIDL_INTERFACE("86c4f619-67b6-51c7-b30d-d8cf13625327")
159 __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable : public IUnknown
160 {
161 public:
162 virtual HRESULT STDMETHODCALLTYPE Invoke(
163 /* [in] */ __RPC__in_opt ABI::Windows::Graphics::Display::IDisplayInformation *sender,
164 /* [in] */ __RPC__in_opt IInspectable *e) = 0;
165
166 };
167
168
169 #else /* C style interface */
170
171 typedef struct __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectableVtbl
172 {
173 BEGIN_INTERFACE
174
175 HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
176 __RPC__in __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable * This,
177 /* [in] */ __RPC__in REFIID riid,
178 /* [annotation][iid_is][out] */
179 _COM_Outptr_ void **ppvObject);
180
181 ULONG ( STDMETHODCALLTYPE *AddRef )(
182 __RPC__in __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable * This);
183
184 ULONG ( STDMETHODCALLTYPE *Release )(
185 __RPC__in __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable * This);
186
187 HRESULT ( STDMETHODCALLTYPE *Invoke )(
188 __RPC__in __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable * This,
189 /* [in] */ __RPC__in_opt __x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation *sender,
190 /* [in] */ __RPC__in_opt IInspectable *e);
191
192 END_INTERFACE
193 } __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectableVtbl;
194
195 interface __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable
196 {
197 CONST_VTBL struct __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectableVtbl *lpVtbl;
198 };
199
200
201
202 #ifdef COBJMACROS
203
204
205 #define __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_QueryInterface(This,riid,ppvObject) \
206 ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
207
208 #define __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_AddRef(This) \
209 ( (This)->lpVtbl -> AddRef(This) )
210
211 #define __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_Release(This) \
212 ( (This)->lpVtbl -> Release(This) )
213
214
215 #define __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_Invoke(This,sender,e) \
216 ( (This)->lpVtbl -> Invoke(This,sender,e) )
217
218 #endif /* COBJMACROS */
219
220
221 #endif /* C style interface */
222
223
224
225
226 #endif /* ____FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_INTERFACE_DEFINED__ */
227
228
229 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0005 */
230 /* [local] */
231
232 #endif /* pinterface */
233 #endif /* DEF___FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable */
234
235
236 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0005 */
237 /* [local] */
238
239
240 /* interface __x_ABI_CWindows_CGraphics_CDisplay_CIDisplayPropertiesEventHandler */
241 /* [uuid][object] */
242
243
244
245 /* interface ABI::Windows::Graphics::Display::IDisplayPropertiesEventHandler */
246 /* [uuid][object] */
247
248
249
250
251 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0006 */
252 /* [local] */
253
254 #if !defined(____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics_INTERFACE_DEFINED__)
255 extern const __declspec(selectany) _Null_terminated_ WCHAR InterfaceName_Windows_Graphics_Display_IDisplayInformationStatics[] = L"Windows.Graphics.Display.IDisplayInformationStatics";
256 #endif /* !defined(____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics_INTERFACE_DEFINED__) */
257
258
259 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0006 */
260 /* [local] */
261
262
263
264 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0006_v0_0_c_ifspec;
265 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0006_v0_0_s_ifspec;
266
267 #ifndef ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics_INTERFACE_DEFINED__
268 #define ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics_INTERFACE_DEFINED__
269
270 /* interface __x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics */
271 /* [uuid][object] */
272
273
274
275 /* interface ABI::Windows::Graphics::Display::IDisplayInformationStatics */
276 /* [uuid][object] */
277
278
279 EXTERN_C const IID IID___x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics;
280
281 #if defined(__cplusplus) && !defined(CINTERFACE)
282 namespace ABI {
283 namespace Windows {
284 namespace Graphics {
285 namespace Display {
286
287 MIDL_INTERFACE("C6A02A6C-D452-44DC-BA07-96F3C6ADF9D1")
288 IDisplayInformationStatics : public IInspectable
289 {
290 public:
291 virtual HRESULT STDMETHODCALLTYPE GetForCurrentView(
292 /* [out][retval] */ __RPC__deref_out_opt ABI::Windows::Graphics::Display::IDisplayInformation **current) = 0;
293
294 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AutoRotationPreferences(
295 /* [out][retval] */ __RPC__out ABI::Windows::Graphics::Display::DisplayOrientations *value) = 0;
296
297 virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_AutoRotationPreferences(
298 /* [in] */ ABI::Windows::Graphics::Display::DisplayOrientations value) = 0;
299
300 virtual HRESULT STDMETHODCALLTYPE add_DisplayContentsInvalidated(
301 /* [in] */ __RPC__in_opt __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable *handler,
302 /* [out][retval] */ __RPC__out EventRegistrationToken *token) = 0;
303
304 virtual HRESULT STDMETHODCALLTYPE remove_DisplayContentsInvalidated(
305 /* [in] */ EventRegistrationToken token) = 0;
306
307 };
308
309 extern const __declspec(selectany) IID & IID_IDisplayInformationStatics = __uuidof(IDisplayInformationStatics);
310
311
312 } /* end namespace */
313 } /* end namespace */
314 } /* end namespace */
315 } /* end namespace */
316
317 #endif /* C style interface */
318
319
320
321
322 #endif /* ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics_INTERFACE_DEFINED__ */
323
324
325 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0007 */
326 /* [local] */
327
328 #if !defined(____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation_INTERFACE_DEFINED__)
329 extern const __declspec(selectany) _Null_terminated_ WCHAR InterfaceName_Windows_Graphics_Display_IDisplayInformation[] = L"Windows.Graphics.Display.IDisplayInformation";
330 #endif /* !defined(____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation_INTERFACE_DEFINED__) */
331
332
333 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0007 */
334 /* [local] */
335
336
337
338 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0007_v0_0_c_ifspec;
339 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0007_v0_0_s_ifspec;
340
341 #ifndef ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation_INTERFACE_DEFINED__
342 #define ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation_INTERFACE_DEFINED__
343
344 /* interface __x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation */
345 /* [uuid][object] */
346
347
348
349 /* interface ABI::Windows::Graphics::Display::IDisplayInformation */
350 /* [uuid][object] */
351
352
353 EXTERN_C const IID IID___x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation;
354
355 #if defined(__cplusplus) && !defined(CINTERFACE)
356 namespace ABI {
357 namespace Windows {
358 namespace Graphics {
359 namespace Display {
360
361 MIDL_INTERFACE("BED112AE-ADC3-4DC9-AE65-851F4D7D4799")
362 IDisplayInformation : public IInspectable
363 {
364 public:
365 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CurrentOrientation(
366 /* [out][retval] */ __RPC__out ABI::Windows::Graphics::Display::DisplayOrientations *value) = 0;
367
368 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_NativeOrientation(
369 /* [out][retval] */ __RPC__out ABI::Windows::Graphics::Display::DisplayOrientations *value) = 0;
370
371 virtual HRESULT STDMETHODCALLTYPE add_OrientationChanged(
372 /* [in] */ __RPC__in_opt __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable *handler,
373 /* [out][retval] */ __RPC__out EventRegistrationToken *token) = 0;
374
375 virtual HRESULT STDMETHODCALLTYPE remove_OrientationChanged(
376 /* [in] */ EventRegistrationToken token) = 0;
377
378 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ResolutionScale(
379 /* [out][retval] */ __RPC__out ABI::Windows::Graphics::Display::ResolutionScale *value) = 0;
380
381 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_LogicalDpi(
382 /* [out][retval] */ __RPC__out FLOAT *value) = 0;
383
384 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RawDpiX(
385 /* [out][retval] */ __RPC__out FLOAT *value) = 0;
386
387 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RawDpiY(
388 /* [out][retval] */ __RPC__out FLOAT *value) = 0;
389
390 virtual HRESULT STDMETHODCALLTYPE add_DpiChanged(
391 /* [in] */ __RPC__in_opt __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable *handler,
392 /* [out][retval] */ __RPC__out EventRegistrationToken *token) = 0;
393
394 virtual HRESULT STDMETHODCALLTYPE remove_DpiChanged(
395 /* [in] */ EventRegistrationToken token) = 0;
396
397 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_StereoEnabled(
398 /* [out][retval] */ __RPC__out boolean *value) = 0;
399
400 virtual HRESULT STDMETHODCALLTYPE add_StereoEnabledChanged(
401 /* [in] */ __RPC__in_opt __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable *handler,
402 /* [out][retval] */ __RPC__out EventRegistrationToken *token) = 0;
403
404 virtual HRESULT STDMETHODCALLTYPE remove_StereoEnabledChanged(
405 /* [in] */ EventRegistrationToken token) = 0;
406
407 virtual HRESULT STDMETHODCALLTYPE GetColorProfileAsync(
408 /* [out][retval] */ __RPC__deref_out_opt __FIAsyncOperation_1_Windows__CStorage__CStreams__CIRandomAccessStream **asyncInfo) = 0;
409
410 virtual HRESULT STDMETHODCALLTYPE add_ColorProfileChanged(
411 /* [in] */ __RPC__in_opt __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable *handler,
412 /* [out][retval] */ __RPC__out EventRegistrationToken *token) = 0;
413
414 virtual HRESULT STDMETHODCALLTYPE remove_ColorProfileChanged(
415 /* [in] */ EventRegistrationToken token) = 0;
416
417 };
418
419 extern const __declspec(selectany) IID & IID_IDisplayInformation = __uuidof(IDisplayInformation);
420
421
422 } /* end namespace */
423 } /* end namespace */
424 } /* end namespace */
425 } /* end namespace */
426
427 #endif /* C style interface */
428
429
430
431
432 #endif /* ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation_INTERFACE_DEFINED__ */
433
434
435 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0008 */
436 /* [local] */
437
438
439 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0009 */
440 /* [local] */
441
442 #ifndef RUNTIMECLASS_Windows_Graphics_Display_DisplayInformation_DEFINED
443 #define RUNTIMECLASS_Windows_Graphics_Display_DisplayInformation_DEFINED
444 extern const __declspec(selectany) _Null_terminated_ WCHAR RuntimeClass_Windows_Graphics_Display_DisplayInformation[] = L"Windows.Graphics.Display.DisplayInformation";
445 #endif
446
447
448 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0009 */
449 /* [local] */
450
451
452
453 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0009_v0_0_c_ifspec;
454 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0009_v0_0_s_ifspec;
455
456 /* Additional Prototypes for ALL interfaces */
457
458 /* end of Additional Prototypes */

mercurial