mingw-dispatchqueue.patch (7495B)
1 From 6e031273d1763ef1fd7acc11a6ed6c2a819c91ba Mon Sep 17 00:00:00 2001 2 From: Tom Ritter <tom@ritter.vg> 3 Date: Thu, 2 Feb 2023 15:51:46 -0500 4 Subject: [PATCH 6/6] Add back IDispatcherQueueController 5 6 --- 7 mingw-w64-headers/include/windows.system.h | 127 +++++++++++++++++++++ 8 1 file changed, 127 insertions(+) 9 10 diff --git a/mingw-w64-headers/include/windows.system.h b/mingw-w64-headers/include/windows.system.h 11 index 688361148..1bb159a31 100644 12 --- a/mingw-w64-headers/include/windows.system.h 13 +++ b/mingw-w64-headers/include/windows.system.h 14 @@ -41,6 +41,22 @@ namespace ABI { 15 #endif /* __cplusplus */ 16 #endif 17 18 +#ifndef ____x_ABI_CWindows_CSystem_CIDispatcherQueueController_FWD_DEFINED__ 19 +#define ____x_ABI_CWindows_CSystem_CIDispatcherQueueController_FWD_DEFINED__ 20 +typedef interface __x_ABI_CWindows_CSystem_CIDispatcherQueueController __x_ABI_CWindows_CSystem_CIDispatcherQueueController; 21 +#ifdef __cplusplus 22 +#define __x_ABI_CWindows_CSystem_CIDispatcherQueueController ABI::Windows::System::IDispatcherQueueController 23 +namespace ABI { 24 + namespace Windows { 25 + namespace System { 26 + interface IDispatcherQueueController; 27 + } 28 + } 29 +} 30 +#endif /* __cplusplus */ 31 +#endif 32 + 33 + 34 #ifndef ____x_ABI_CWindows_CSystem_CUser_FWD_DEFINED__ 35 #define ____x_ABI_CWindows_CSystem_CUser_FWD_DEFINED__ 36 #ifdef __cplusplus 37 @@ -269,6 +285,117 @@ static __WIDL_INLINE HRESULT __x_ABI_CWindows_CSystem_CIUserChangedEventArgs_get 38 #endif /* ____x_ABI_CWindows_CSystem_CIUserChangedEventArgs_INTERFACE_DEFINED__ */ 39 #endif /* WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0x10000 */ 40 41 +/***************************************************************************** 42 + * IDispatcherQueueController interface 43 + */ 44 +#if WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0x50000 45 +#ifndef ____x_ABI_CWindows_CSystem_CIDispatcherQueueController_INTERFACE_DEFINED__ 46 +#define ____x_ABI_CWindows_CSystem_CIDispatcherQueueController_INTERFACE_DEFINED__ 47 + 48 +DEFINE_GUID(IID___x_ABI_CWindows_CSystem_CIDispatcherQueueController, 0x22f34e66, 0x50db, 0x4e36, 0xa9,0x8d, 0x61,0xc0,0x1b,0x38,0x4d,0x20); 49 +#if defined(__cplusplus) && !defined(CINTERFACE) 50 +} /* extern "C" */ 51 +namespace ABI { 52 + namespace Windows { 53 + namespace System { 54 + MIDL_INTERFACE("22f34e66-50db-4e36-a98d-61c01b384d20") 55 + IDispatcherQueueController : public IInspectable 56 + { 57 + }; 58 + } 59 + } 60 +} 61 +extern "C" { 62 +#ifdef __CRT_UUID_DECL 63 +__CRT_UUID_DECL(__x_ABI_CWindows_CSystem_CIDispatcherQueueController, 0x22f34e66, 0x50db, 0x4e36, 0xa9,0x8d, 0x61,0xc0,0x1b,0x38,0x4d,0x20) 64 +#endif 65 +#else 66 +typedef struct __x_ABI_CWindows_CSystem_CIDispatcherQueueControllerVtbl { 67 + BEGIN_INTERFACE 68 + 69 + /*** IUnknown methods ***/ 70 + HRESULT (STDMETHODCALLTYPE *QueryInterface)( 71 + __x_ABI_CWindows_CSystem_CIDispatcherQueueController *This, 72 + REFIID riid, 73 + void **ppvObject); 74 + 75 + ULONG (STDMETHODCALLTYPE *AddRef)( 76 + __x_ABI_CWindows_CSystem_CIDispatcherQueueController *This); 77 + 78 + ULONG (STDMETHODCALLTYPE *Release)( 79 + __x_ABI_CWindows_CSystem_CIDispatcherQueueController *This); 80 + 81 + /*** IInspectable methods ***/ 82 + HRESULT (STDMETHODCALLTYPE *GetIids)( 83 + __x_ABI_CWindows_CSystem_CIDispatcherQueueController *This, 84 + ULONG *iidCount, 85 + IID **iids); 86 + 87 + HRESULT (STDMETHODCALLTYPE *GetRuntimeClassName)( 88 + __x_ABI_CWindows_CSystem_CIDispatcherQueueController *This, 89 + HSTRING *className); 90 + 91 + HRESULT (STDMETHODCALLTYPE *GetTrustLevel)( 92 + __x_ABI_CWindows_CSystem_CIDispatcherQueueController *This, 93 + TrustLevel *trustLevel); 94 + 95 + END_INTERFACE 96 +} __x_ABI_CWindows_CSystem_CIDispatcherQueueControllerVtbl; 97 + 98 +interface __x_ABI_CWindows_CSystem_CIDispatcherQueueController { 99 + CONST_VTBL __x_ABI_CWindows_CSystem_CIDispatcherQueueControllerVtbl* lpVtbl; 100 +}; 101 + 102 +#ifdef COBJMACROS 103 +#ifndef WIDL_C_INLINE_WRAPPERS 104 +/*** IUnknown methods ***/ 105 +#define __x_ABI_CWindows_CSystem_CIDispatcherQueueController_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) 106 +#define __x_ABI_CWindows_CSystem_CIDispatcherQueueController_AddRef(This) (This)->lpVtbl->AddRef(This) 107 +#define __x_ABI_CWindows_CSystem_CIDispatcherQueueController_Release(This) (This)->lpVtbl->Release(This) 108 +/*** IInspectable methods ***/ 109 +#define __x_ABI_CWindows_CSystem_CIDispatcherQueueController_GetIids(This,iidCount,iids) (This)->lpVtbl->GetIids(This,iidCount,iids) 110 +#define __x_ABI_CWindows_CSystem_CIDispatcherQueueController_GetRuntimeClassName(This,className) (This)->lpVtbl->GetRuntimeClassName(This,className) 111 +#define __x_ABI_CWindows_CSystem_CIDispatcherQueueController_GetTrustLevel(This,trustLevel) (This)->lpVtbl->GetTrustLevel(This,trustLevel) 112 +#else 113 +/*** IUnknown methods ***/ 114 +static FORCEINLINE HRESULT __x_ABI_CWindows_CSystem_CIDispatcherQueueController_QueryInterface(__x_ABI_CWindows_CSystem_CIDispatcherQueueController* This,REFIID riid,void **ppvObject) { 115 + return This->lpVtbl->QueryInterface(This,riid,ppvObject); 116 +} 117 +static FORCEINLINE ULONG __x_ABI_CWindows_CSystem_CIDispatcherQueueController_AddRef(__x_ABI_CWindows_CSystem_CIDispatcherQueueController* This) { 118 + return This->lpVtbl->AddRef(This); 119 +} 120 +static FORCEINLINE ULONG __x_ABI_CWindows_CSystem_CIDispatcherQueueController_Release(__x_ABI_CWindows_CSystem_CIDispatcherQueueController* This) { 121 + return This->lpVtbl->Release(This); 122 +} 123 +/*** IInspectable methods ***/ 124 +static FORCEINLINE HRESULT __x_ABI_CWindows_CSystem_CIDispatcherQueueController_GetIids(__x_ABI_CWindows_CSystem_CIDispatcherQueueController* This,ULONG *iidCount,IID **iids) { 125 + return This->lpVtbl->GetIids(This,iidCount,iids); 126 +} 127 +static FORCEINLINE HRESULT __x_ABI_CWindows_CSystem_CIDispatcherQueueController_GetRuntimeClassName(__x_ABI_CWindows_CSystem_CIDispatcherQueueController* This,HSTRING *className) { 128 + return This->lpVtbl->GetRuntimeClassName(This,className); 129 +} 130 +static FORCEINLINE HRESULT __x_ABI_CWindows_CSystem_CIDispatcherQueueController_GetTrustLevel(__x_ABI_CWindows_CSystem_CIDispatcherQueueController* This,TrustLevel *trustLevel) { 131 + return This->lpVtbl->GetTrustLevel(This,trustLevel); 132 +} 133 +#endif 134 +#ifdef WIDL_using_Windows_System 135 +#define IID_IDispatcherQueueController IID___x_ABI_CWindows_CSystem_CIDispatcherQueueController 136 +#define IDispatcherQueueControllerVtbl __x_ABI_CWindows_CSystem_CIDispatcherQueueControllerVtbl 137 +#define IDispatcherQueueController __x_ABI_CWindows_CSystem_CIDispatcherQueueController 138 +#define IDispatcherQueueController_QueryInterface __x_ABI_CWindows_CSystem_CIDispatcherQueueController_QueryInterface 139 +#define IDispatcherQueueController_AddRef __x_ABI_CWindows_CSystem_CIDispatcherQueueController_AddRef 140 +#define IDispatcherQueueController_Release __x_ABI_CWindows_CSystem_CIDispatcherQueueController_Release 141 +#define IDispatcherQueueController_GetIids __x_ABI_CWindows_CSystem_CIDispatcherQueueController_GetIids 142 +#define IDispatcherQueueController_GetRuntimeClassName __x_ABI_CWindows_CSystem_CIDispatcherQueueController_GetRuntimeClassName 143 +#define IDispatcherQueueController_GetTrustLevel __x_ABI_CWindows_CSystem_CIDispatcherQueueController_GetTrustLevel 144 +#endif /* WIDL_using_Windows_System */ 145 +#endif 146 + 147 +#endif 148 + 149 +#endif /* ____x_ABI_CWindows_CSystem_CIDispatcherQueueController_INTERFACE_DEFINED__ */ 150 +#endif /* WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0x50000 */ 151 + 152 /* 153 * Class Windows.System.User 154 */ 155 -- 156 2.25.1