| 1 |
/*** Autogenerated by WIDL 11.5 from include/windows.system.threading.idl - Do not edit ***/ |
| 2 |
|
| 3 |
#ifdef _WIN32 |
| 4 |
#ifndef __REQUIRED_RPCNDR_H_VERSION__ |
| 5 |
#define __REQUIRED_RPCNDR_H_VERSION__ 475 |
| 6 |
#endif |
| 7 |
#include <rpc.h> |
| 8 |
#include <rpcndr.h> |
| 9 |
#endif |
| 10 |
|
| 11 |
#ifndef COM_NO_WINDOWS_H |
| 12 |
#include <windows.h> |
| 13 |
#include <ole2.h> |
| 14 |
#endif |
| 15 |
|
| 16 |
#ifndef __windows_system_threading_h__ |
| 17 |
#define __windows_system_threading_h__ |
| 18 |
|
| 19 |
/* Forward declarations */ |
| 20 |
|
| 21 |
#ifndef ____x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler_FWD_DEFINED__ |
| 22 |
#define ____x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler_FWD_DEFINED__ |
| 23 |
typedef interface __x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler __x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler; |
| 24 |
#ifdef __cplusplus |
| 25 |
#define __x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler ABI::Windows::System::Threading::IWorkItemHandler |
| 26 |
namespace ABI { |
| 27 |
namespace Windows { |
| 28 |
namespace System { |
| 29 |
namespace Threading { |
| 30 |
interface IWorkItemHandler; |
| 31 |
} |
| 32 |
} |
| 33 |
} |
| 34 |
} |
| 35 |
#endif /* __cplusplus */ |
| 36 |
#endif |
| 37 |
|
| 38 |
#ifndef ____x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_FWD_DEFINED__ |
| 39 |
#define ____x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_FWD_DEFINED__ |
| 40 |
typedef interface __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics; |
| 41 |
#ifdef __cplusplus |
| 42 |
#define __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics ABI::Windows::System::Threading::IThreadPoolStatics |
| 43 |
namespace ABI { |
| 44 |
namespace Windows { |
| 45 |
namespace System { |
| 46 |
namespace Threading { |
| 47 |
interface IThreadPoolStatics; |
| 48 |
} |
| 49 |
} |
| 50 |
} |
| 51 |
} |
| 52 |
#endif /* __cplusplus */ |
| 53 |
#endif |
| 54 |
|
| 55 |
#ifndef ____x_ABI_CWindows_CSystem_CThreading_CThreadPool_FWD_DEFINED__ |
| 56 |
#define ____x_ABI_CWindows_CSystem_CThreading_CThreadPool_FWD_DEFINED__ |
| 57 |
#ifdef __cplusplus |
| 58 |
namespace ABI { |
| 59 |
namespace Windows { |
| 60 |
namespace System { |
| 61 |
namespace Threading { |
| 62 |
class ThreadPool; |
| 63 |
} |
| 64 |
} |
| 65 |
} |
| 66 |
} |
| 67 |
#else |
| 68 |
typedef struct __x_ABI_CWindows_CSystem_CThreading_CThreadPool __x_ABI_CWindows_CSystem_CThreading_CThreadPool; |
| 69 |
#endif /* defined __cplusplus */ |
| 70 |
#endif /* defined ____x_ABI_CWindows_CSystem_CThreading_CThreadPool_FWD_DEFINED__ */ |
| 71 |
|
| 72 |
/* Headers for imported files */ |
| 73 |
|
| 74 |
#include <inspectable.h> |
| 75 |
#include <asyncinfo.h> |
| 76 |
#include <windowscontracts.h> |
| 77 |
#include <windows.foundation.h> |
| 78 |
|
| 79 |
#ifdef __cplusplus |
| 80 |
extern "C" { |
| 81 |
#endif |
| 82 |
|
| 83 |
#if !defined(WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION) |
| 84 |
#define WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION 0xe0000 |
| 85 |
#endif // defined(WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION) |
| 86 |
|
| 87 |
#if WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0x10000 |
| 88 |
#ifndef ____x_ABI_CWindows_CSystem_CThreading_CWorkItemPriority_ENUM_DEFINED__ |
| 89 |
#define ____x_ABI_CWindows_CSystem_CThreading_CWorkItemPriority_ENUM_DEFINED__ |
| 90 |
#ifdef __cplusplus |
| 91 |
} /* extern "C" */ |
| 92 |
namespace ABI { |
| 93 |
namespace Windows { |
| 94 |
namespace System { |
| 95 |
namespace Threading { |
| 96 |
enum WorkItemPriority { |
| 97 |
WorkItemPriority_Low = -1, |
| 98 |
WorkItemPriority_Normal = 0, |
| 99 |
WorkItemPriority_High = 1 |
| 100 |
}; |
| 101 |
} |
| 102 |
} |
| 103 |
} |
| 104 |
} |
| 105 |
extern "C" { |
| 106 |
#else |
| 107 |
enum __x_ABI_CWindows_CSystem_CThreading_CWorkItemPriority { |
| 108 |
WorkItemPriority_Low = -1, |
| 109 |
WorkItemPriority_Normal = 0, |
| 110 |
WorkItemPriority_High = 1 |
| 111 |
}; |
| 112 |
#ifdef WIDL_using_Windows_System_Threading |
| 113 |
#define WorkItemPriority __x_ABI_CWindows_CSystem_CThreading_CWorkItemPriority |
| 114 |
#endif /* WIDL_using_Windows_System_Threading */ |
| 115 |
#endif |
| 116 |
|
| 117 |
#endif /* ____x_ABI_CWindows_CSystem_CThreading_CWorkItemPriority_ENUM_DEFINED__ */ |
| 118 |
#endif /* WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0x10000 */ |
| 119 |
#ifndef __cplusplus |
| 120 |
typedef enum __x_ABI_CWindows_CSystem_CThreading_CWorkItemPriority __x_ABI_CWindows_CSystem_CThreading_CWorkItemPriority; |
| 121 |
#endif /* __cplusplus */ |
| 122 |
|
| 123 |
#if WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0x10000 |
| 124 |
#ifndef ____x_ABI_CWindows_CSystem_CThreading_CWorkItemOptions_ENUM_DEFINED__ |
| 125 |
#define ____x_ABI_CWindows_CSystem_CThreading_CWorkItemOptions_ENUM_DEFINED__ |
| 126 |
#ifdef __cplusplus |
| 127 |
} /* extern "C" */ |
| 128 |
namespace ABI { |
| 129 |
namespace Windows { |
| 130 |
namespace System { |
| 131 |
namespace Threading { |
| 132 |
enum WorkItemOptions { |
| 133 |
WorkItemOptions_None = 0x0, |
| 134 |
WorkItemOptions_TimeSliced = 0x1 |
| 135 |
}; |
| 136 |
} |
| 137 |
} |
| 138 |
} |
| 139 |
} |
| 140 |
extern "C" { |
| 141 |
#else |
| 142 |
enum __x_ABI_CWindows_CSystem_CThreading_CWorkItemOptions { |
| 143 |
WorkItemOptions_None = 0x0, |
| 144 |
WorkItemOptions_TimeSliced = 0x1 |
| 145 |
}; |
| 146 |
#ifdef WIDL_using_Windows_System_Threading |
| 147 |
#define WorkItemOptions __x_ABI_CWindows_CSystem_CThreading_CWorkItemOptions |
| 148 |
#endif /* WIDL_using_Windows_System_Threading */ |
| 149 |
#endif |
| 150 |
|
| 151 |
#endif /* ____x_ABI_CWindows_CSystem_CThreading_CWorkItemOptions_ENUM_DEFINED__ */ |
| 152 |
#endif /* WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0x10000 */ |
| 153 |
#ifndef __cplusplus |
| 154 |
typedef enum __x_ABI_CWindows_CSystem_CThreading_CWorkItemOptions __x_ABI_CWindows_CSystem_CThreading_CWorkItemOptions; |
| 155 |
#endif /* __cplusplus */ |
| 156 |
|
| 157 |
/***************************************************************************** |
| 158 |
* IWorkItemHandler interface |
| 159 |
*/ |
| 160 |
#if WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0x10000 |
| 161 |
#ifndef ____x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler_INTERFACE_DEFINED__ |
| 162 |
#define ____x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler_INTERFACE_DEFINED__ |
| 163 |
|
| 164 |
DEFINE_GUID(IID___x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler, 0x1d1a8b8b, 0xfa66, 0x414f, 0x9c,0xbd, 0xb6,0x5f,0xc9,0x9d,0x17,0xfa); |
| 165 |
#if defined(__cplusplus) && !defined(CINTERFACE) |
| 166 |
} /* extern "C" */ |
| 167 |
namespace ABI { |
| 168 |
namespace Windows { |
| 169 |
namespace System { |
| 170 |
namespace Threading { |
| 171 |
MIDL_INTERFACE("1d1a8b8b-fa66-414f-9cbd-b65fc99d17fa") |
| 172 |
IWorkItemHandler : public IUnknown |
| 173 |
{ |
| 174 |
virtual HRESULT STDMETHODCALLTYPE Invoke( |
| 175 |
ABI::Windows::Foundation::IAsyncAction *operation) = 0; |
| 176 |
|
| 177 |
}; |
| 178 |
} |
| 179 |
} |
| 180 |
} |
| 181 |
} |
| 182 |
extern "C" { |
| 183 |
#ifdef __CRT_UUID_DECL |
| 184 |
__CRT_UUID_DECL(__x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler, 0x1d1a8b8b, 0xfa66, 0x414f, 0x9c,0xbd, 0xb6,0x5f,0xc9,0x9d,0x17,0xfa) |
| 185 |
#endif |
| 186 |
#else |
| 187 |
typedef struct __x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandlerVtbl { |
| 188 |
BEGIN_INTERFACE |
| 189 |
|
| 190 |
/*** IUnknown methods ***/ |
| 191 |
HRESULT (STDMETHODCALLTYPE *QueryInterface)( |
| 192 |
__x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler *This, |
| 193 |
REFIID riid, |
| 194 |
void **ppvObject); |
| 195 |
|
| 196 |
ULONG (STDMETHODCALLTYPE *AddRef)( |
| 197 |
__x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler *This); |
| 198 |
|
| 199 |
ULONG (STDMETHODCALLTYPE *Release)( |
| 200 |
__x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler *This); |
| 201 |
|
| 202 |
/*** IWorkItemHandler methods ***/ |
| 203 |
HRESULT (STDMETHODCALLTYPE *Invoke)( |
| 204 |
__x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler *This, |
| 205 |
__x_ABI_CWindows_CFoundation_CIAsyncAction *operation); |
| 206 |
|
| 207 |
END_INTERFACE |
| 208 |
} __x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandlerVtbl; |
| 209 |
|
| 210 |
interface __x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler { |
| 211 |
CONST_VTBL __x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandlerVtbl* lpVtbl; |
| 212 |
}; |
| 213 |
|
| 214 |
#ifdef COBJMACROS |
| 215 |
#ifndef WIDL_C_INLINE_WRAPPERS |
| 216 |
/*** IUnknown methods ***/ |
| 217 |
#define __x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) |
| 218 |
#define __x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler_AddRef(This) (This)->lpVtbl->AddRef(This) |
| 219 |
#define __x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler_Release(This) (This)->lpVtbl->Release(This) |
| 220 |
/*** IWorkItemHandler methods ***/ |
| 221 |
#define __x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler_Invoke(This,operation) (This)->lpVtbl->Invoke(This,operation) |
| 222 |
#else |
| 223 |
/*** IUnknown methods ***/ |
| 224 |
static inline HRESULT __x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler_QueryInterface(__x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler* This,REFIID riid,void **ppvObject) { |
| 225 |
return This->lpVtbl->QueryInterface(This,riid,ppvObject); |
| 226 |
} |
| 227 |
static inline ULONG __x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler_AddRef(__x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler* This) { |
| 228 |
return This->lpVtbl->AddRef(This); |
| 229 |
} |
| 230 |
static inline ULONG __x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler_Release(__x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler* This) { |
| 231 |
return This->lpVtbl->Release(This); |
| 232 |
} |
| 233 |
/*** IWorkItemHandler methods ***/ |
| 234 |
static inline HRESULT __x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler_Invoke(__x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler* This,__x_ABI_CWindows_CFoundation_CIAsyncAction *operation) { |
| 235 |
return This->lpVtbl->Invoke(This,operation); |
| 236 |
} |
| 237 |
#endif |
| 238 |
#ifdef WIDL_using_Windows_System_Threading |
| 239 |
#define IID_IWorkItemHandler IID___x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler |
| 240 |
#define IWorkItemHandlerVtbl __x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandlerVtbl |
| 241 |
#define IWorkItemHandler __x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler |
| 242 |
#define IWorkItemHandler_QueryInterface __x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler_QueryInterface |
| 243 |
#define IWorkItemHandler_AddRef __x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler_AddRef |
| 244 |
#define IWorkItemHandler_Release __x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler_Release |
| 245 |
#define IWorkItemHandler_Invoke __x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler_Invoke |
| 246 |
#endif /* WIDL_using_Windows_System_Threading */ |
| 247 |
#endif |
| 248 |
|
| 249 |
#endif |
| 250 |
|
| 251 |
#endif /* ____x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler_INTERFACE_DEFINED__ */ |
| 252 |
#endif /* WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0x10000 */ |
| 253 |
|
| 254 |
/***************************************************************************** |
| 255 |
* IThreadPoolStatics interface |
| 256 |
*/ |
| 257 |
#if WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0x10000 |
| 258 |
#ifndef ____x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_INTERFACE_DEFINED__ |
| 259 |
#define ____x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_INTERFACE_DEFINED__ |
| 260 |
|
| 261 |
DEFINE_GUID(IID___x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics, 0xb6bf67dd, 0x84bd, 0x44f8, 0xac,0x1c, 0x93,0xeb,0xcb,0x9d,0xba,0x91); |
| 262 |
#if defined(__cplusplus) && !defined(CINTERFACE) |
| 263 |
} /* extern "C" */ |
| 264 |
namespace ABI { |
| 265 |
namespace Windows { |
| 266 |
namespace System { |
| 267 |
namespace Threading { |
| 268 |
MIDL_INTERFACE("b6bf67dd-84bd-44f8-ac1c-93ebcb9dba91") |
| 269 |
IThreadPoolStatics : public IInspectable |
| 270 |
{ |
| 271 |
virtual HRESULT STDMETHODCALLTYPE RunAsync( |
| 272 |
ABI::Windows::System::Threading::IWorkItemHandler *handler, |
| 273 |
ABI::Windows::Foundation::IAsyncAction **operation) = 0; |
| 274 |
|
| 275 |
virtual HRESULT STDMETHODCALLTYPE RunWithPriorityAsync( |
| 276 |
ABI::Windows::System::Threading::IWorkItemHandler *handler, |
| 277 |
ABI::Windows::System::Threading::WorkItemPriority priority, |
| 278 |
ABI::Windows::Foundation::IAsyncAction **operation) = 0; |
| 279 |
|
| 280 |
virtual HRESULT STDMETHODCALLTYPE RunWithPriorityAndOptionsAsync( |
| 281 |
ABI::Windows::System::Threading::IWorkItemHandler *handler, |
| 282 |
ABI::Windows::System::Threading::WorkItemPriority priority, |
| 283 |
ABI::Windows::System::Threading::WorkItemOptions options, |
| 284 |
ABI::Windows::Foundation::IAsyncAction **operation) = 0; |
| 285 |
|
| 286 |
}; |
| 287 |
} |
| 288 |
} |
| 289 |
} |
| 290 |
} |
| 291 |
extern "C" { |
| 292 |
#ifdef __CRT_UUID_DECL |
| 293 |
__CRT_UUID_DECL(__x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics, 0xb6bf67dd, 0x84bd, 0x44f8, 0xac,0x1c, 0x93,0xeb,0xcb,0x9d,0xba,0x91) |
| 294 |
#endif |
| 295 |
#else |
| 296 |
typedef struct __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStaticsVtbl { |
| 297 |
BEGIN_INTERFACE |
| 298 |
|
| 299 |
/*** IUnknown methods ***/ |
| 300 |
HRESULT (STDMETHODCALLTYPE *QueryInterface)( |
| 301 |
__x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics *This, |
| 302 |
REFIID riid, |
| 303 |
void **ppvObject); |
| 304 |
|
| 305 |
ULONG (STDMETHODCALLTYPE *AddRef)( |
| 306 |
__x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics *This); |
| 307 |
|
| 308 |
ULONG (STDMETHODCALLTYPE *Release)( |
| 309 |
__x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics *This); |
| 310 |
|
| 311 |
/*** IInspectable methods ***/ |
| 312 |
HRESULT (STDMETHODCALLTYPE *GetIids)( |
| 313 |
__x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics *This, |
| 314 |
ULONG *iidCount, |
| 315 |
IID **iids); |
| 316 |
|
| 317 |
HRESULT (STDMETHODCALLTYPE *GetRuntimeClassName)( |
| 318 |
__x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics *This, |
| 319 |
HSTRING *className); |
| 320 |
|
| 321 |
HRESULT (STDMETHODCALLTYPE *GetTrustLevel)( |
| 322 |
__x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics *This, |
| 323 |
TrustLevel *trustLevel); |
| 324 |
|
| 325 |
/*** IThreadPoolStatics methods ***/ |
| 326 |
HRESULT (STDMETHODCALLTYPE *RunAsync)( |
| 327 |
__x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics *This, |
| 328 |
__x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler *handler, |
| 329 |
__x_ABI_CWindows_CFoundation_CIAsyncAction **operation); |
| 330 |
|
| 331 |
HRESULT (STDMETHODCALLTYPE *RunWithPriorityAsync)( |
| 332 |
__x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics *This, |
| 333 |
__x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler *handler, |
| 334 |
__x_ABI_CWindows_CSystem_CThreading_CWorkItemPriority priority, |
| 335 |
__x_ABI_CWindows_CFoundation_CIAsyncAction **operation); |
| 336 |
|
| 337 |
HRESULT (STDMETHODCALLTYPE *RunWithPriorityAndOptionsAsync)( |
| 338 |
__x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics *This, |
| 339 |
__x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler *handler, |
| 340 |
__x_ABI_CWindows_CSystem_CThreading_CWorkItemPriority priority, |
| 341 |
__x_ABI_CWindows_CSystem_CThreading_CWorkItemOptions options, |
| 342 |
__x_ABI_CWindows_CFoundation_CIAsyncAction **operation); |
| 343 |
|
| 344 |
END_INTERFACE |
| 345 |
} __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStaticsVtbl; |
| 346 |
|
| 347 |
interface __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics { |
| 348 |
CONST_VTBL __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStaticsVtbl* lpVtbl; |
| 349 |
}; |
| 350 |
|
| 351 |
#ifdef COBJMACROS |
| 352 |
#ifndef WIDL_C_INLINE_WRAPPERS |
| 353 |
/*** IUnknown methods ***/ |
| 354 |
#define __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) |
| 355 |
#define __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_AddRef(This) (This)->lpVtbl->AddRef(This) |
| 356 |
#define __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_Release(This) (This)->lpVtbl->Release(This) |
| 357 |
/*** IInspectable methods ***/ |
| 358 |
#define __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_GetIids(This,iidCount,iids) (This)->lpVtbl->GetIids(This,iidCount,iids) |
| 359 |
#define __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_GetRuntimeClassName(This,className) (This)->lpVtbl->GetRuntimeClassName(This,className) |
| 360 |
#define __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_GetTrustLevel(This,trustLevel) (This)->lpVtbl->GetTrustLevel(This,trustLevel) |
| 361 |
/*** IThreadPoolStatics methods ***/ |
| 362 |
#define __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_RunAsync(This,handler,operation) (This)->lpVtbl->RunAsync(This,handler,operation) |
| 363 |
#define __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_RunWithPriorityAsync(This,handler,priority,operation) (This)->lpVtbl->RunWithPriorityAsync(This,handler,priority,operation) |
| 364 |
#define __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_RunWithPriorityAndOptionsAsync(This,handler,priority,options,operation) (This)->lpVtbl->RunWithPriorityAndOptionsAsync(This,handler,priority,options,operation) |
| 365 |
#else |
| 366 |
/*** IUnknown methods ***/ |
| 367 |
static inline HRESULT __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_QueryInterface(__x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics* This,REFIID riid,void **ppvObject) { |
| 368 |
return This->lpVtbl->QueryInterface(This,riid,ppvObject); |
| 369 |
} |
| 370 |
static inline ULONG __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_AddRef(__x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics* This) { |
| 371 |
return This->lpVtbl->AddRef(This); |
| 372 |
} |
| 373 |
static inline ULONG __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_Release(__x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics* This) { |
| 374 |
return This->lpVtbl->Release(This); |
| 375 |
} |
| 376 |
/*** IInspectable methods ***/ |
| 377 |
static inline HRESULT __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_GetIids(__x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics* This,ULONG *iidCount,IID **iids) { |
| 378 |
return This->lpVtbl->GetIids(This,iidCount,iids); |
| 379 |
} |
| 380 |
static inline HRESULT __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_GetRuntimeClassName(__x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics* This,HSTRING *className) { |
| 381 |
return This->lpVtbl->GetRuntimeClassName(This,className); |
| 382 |
} |
| 383 |
static inline HRESULT __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_GetTrustLevel(__x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics* This,TrustLevel *trustLevel) { |
| 384 |
return This->lpVtbl->GetTrustLevel(This,trustLevel); |
| 385 |
} |
| 386 |
/*** IThreadPoolStatics methods ***/ |
| 387 |
static inline HRESULT __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_RunAsync(__x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics* This,__x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler *handler,__x_ABI_CWindows_CFoundation_CIAsyncAction **operation) { |
| 388 |
return This->lpVtbl->RunAsync(This,handler,operation); |
| 389 |
} |
| 390 |
static inline HRESULT __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_RunWithPriorityAsync(__x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics* This,__x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler *handler,__x_ABI_CWindows_CSystem_CThreading_CWorkItemPriority priority,__x_ABI_CWindows_CFoundation_CIAsyncAction **operation) { |
| 391 |
return This->lpVtbl->RunWithPriorityAsync(This,handler,priority,operation); |
| 392 |
} |
| 393 |
static inline HRESULT __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_RunWithPriorityAndOptionsAsync(__x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics* This,__x_ABI_CWindows_CSystem_CThreading_CIWorkItemHandler *handler,__x_ABI_CWindows_CSystem_CThreading_CWorkItemPriority priority,__x_ABI_CWindows_CSystem_CThreading_CWorkItemOptions options,__x_ABI_CWindows_CFoundation_CIAsyncAction **operation) { |
| 394 |
return This->lpVtbl->RunWithPriorityAndOptionsAsync(This,handler,priority,options,operation); |
| 395 |
} |
| 396 |
#endif |
| 397 |
#ifdef WIDL_using_Windows_System_Threading |
| 398 |
#define IID_IThreadPoolStatics IID___x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics |
| 399 |
#define IThreadPoolStaticsVtbl __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStaticsVtbl |
| 400 |
#define IThreadPoolStatics __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics |
| 401 |
#define IThreadPoolStatics_QueryInterface __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_QueryInterface |
| 402 |
#define IThreadPoolStatics_AddRef __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_AddRef |
| 403 |
#define IThreadPoolStatics_Release __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_Release |
| 404 |
#define IThreadPoolStatics_GetIids __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_GetIids |
| 405 |
#define IThreadPoolStatics_GetRuntimeClassName __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_GetRuntimeClassName |
| 406 |
#define IThreadPoolStatics_GetTrustLevel __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_GetTrustLevel |
| 407 |
#define IThreadPoolStatics_RunAsync __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_RunAsync |
| 408 |
#define IThreadPoolStatics_RunWithPriorityAsync __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_RunWithPriorityAsync |
| 409 |
#define IThreadPoolStatics_RunWithPriorityAndOptionsAsync __x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_RunWithPriorityAndOptionsAsync |
| 410 |
#endif /* WIDL_using_Windows_System_Threading */ |
| 411 |
#endif |
| 412 |
|
| 413 |
#endif |
| 414 |
|
| 415 |
#endif /* ____x_ABI_CWindows_CSystem_CThreading_CIThreadPoolStatics_INTERFACE_DEFINED__ */ |
| 416 |
#endif /* WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0x10000 */ |
| 417 |
|
| 418 |
/* |
| 419 |
* Class Windows.System.Threading.ThreadPool |
| 420 |
*/ |
| 421 |
#if WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0x10000 |
| 422 |
#ifndef RUNTIMECLASS_Windows_System_Threading_ThreadPool_DEFINED |
| 423 |
#define RUNTIMECLASS_Windows_System_Threading_ThreadPool_DEFINED |
| 424 |
#if !defined(_MSC_VER) && !defined(__MINGW32__) |
| 425 |
static const WCHAR RuntimeClass_Windows_System_Threading_ThreadPool[] = {'W','i','n','d','o','w','s','.','S','y','s','t','e','m','.','T','h','r','e','a','d','i','n','g','.','T','h','r','e','a','d','P','o','o','l',0}; |
| 426 |
#elif defined(__GNUC__) && !defined(__cplusplus) |
| 427 |
const DECLSPEC_SELECTANY WCHAR RuntimeClass_Windows_System_Threading_ThreadPool[] = L"Windows.System.Threading.ThreadPool"; |
| 428 |
#else |
| 429 |
extern const DECLSPEC_SELECTANY WCHAR RuntimeClass_Windows_System_Threading_ThreadPool[] = {'W','i','n','d','o','w','s','.','S','y','s','t','e','m','.','T','h','r','e','a','d','i','n','g','.','T','h','r','e','a','d','P','o','o','l',0}; |
| 430 |
#endif |
| 431 |
#endif /* RUNTIMECLASS_Windows_System_Threading_ThreadPool_DEFINED */ |
| 432 |
#endif /* WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0x10000 */ |
| 433 |
|
| 434 |
/* Begin additional prototypes for all interfaces */ |
| 435 |
|
| 436 |
|
| 437 |
/* End additional prototypes */ |
| 438 |
|
| 439 |
#ifdef __cplusplus |
| 440 |
} |
| 441 |
#endif |
| 442 |
|
| 443 |
#endif /* __windows_system_threading_h__ */ |