windowscodecs: Silence fixme for IID_CMetaBitmapRenderTarget.
[wine.git] / dlls / windows.gaming.ui.gamebar / private.h
blob85f87b56e7bbba4d27d4b15ba0c9d34536d43050
1 /* WinRT Windows.Gaming.UI.GameBar implementation
3 * Copyright 2022 Paul Gofman for CodeWeavers
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #include <stdarg.h>
21 #include <stddef.h>
23 #define COBJMACROS
24 #include "windef.h"
25 #include "winbase.h"
26 #include "winstring.h"
28 #define WIDL_using_Windows_Foundation
29 #define WIDL_using_Windows_Gaming_UI
30 #include "activation.h"
31 #include "windows.gaming.ui.h"
33 #define DEFINE_IINSPECTABLE_( pfx, iface_type, impl_type, impl_from, iface_mem, expr ) \
34 static inline impl_type *impl_from( iface_type *iface ) \
35 { \
36 return CONTAINING_RECORD( iface, impl_type, iface_mem ); \
37 } \
38 static HRESULT WINAPI pfx##_QueryInterface( iface_type *iface, REFIID iid, void **out ) \
39 { \
40 impl_type *impl = impl_from( iface ); \
41 return IInspectable_QueryInterface( (IInspectable *)(expr), iid, out ); \
42 } \
43 static ULONG WINAPI pfx##_AddRef( iface_type *iface ) \
44 { \
45 impl_type *impl = impl_from( iface ); \
46 return IInspectable_AddRef( (IInspectable *)(expr) ); \
47 } \
48 static ULONG WINAPI pfx##_Release( iface_type *iface ) \
49 { \
50 impl_type *impl = impl_from( iface ); \
51 return IInspectable_Release( (IInspectable *)(expr) ); \
52 } \
53 static HRESULT WINAPI pfx##_GetIids( iface_type *iface, ULONG *iid_count, IID **iids ) \
54 { \
55 impl_type *impl = impl_from( iface ); \
56 return IInspectable_GetIids( (IInspectable *)(expr), iid_count, iids ); \
57 } \
58 static HRESULT WINAPI pfx##_GetRuntimeClassName( iface_type *iface, HSTRING *class_name ) \
59 { \
60 impl_type *impl = impl_from( iface ); \
61 return IInspectable_GetRuntimeClassName( (IInspectable *)(expr), class_name ); \
62 } \
63 static HRESULT WINAPI pfx##_GetTrustLevel( iface_type *iface, TrustLevel *trust_level ) \
64 { \
65 impl_type *impl = impl_from( iface ); \
66 return IInspectable_GetTrustLevel( (IInspectable *)(expr), trust_level ); \
68 #define DEFINE_IINSPECTABLE( pfx, iface_type, impl_type, base_iface ) \
69 DEFINE_IINSPECTABLE_( pfx, iface_type, impl_type, impl_from_##iface_type, iface_type##_iface, &impl->base_iface )