ReactOS 0.4.17-dev-691-gfdddc52
rtworkq.idl
Go to the documentation of this file.
1/*
2 * Copyright 2020 Nikolay Sivov for CodeWeavers
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19import "unknwn.idl";
20
21typedef enum
22{
27
28typedef unsigned __int64 RTWQWORKITEM_KEY;
29
30[
31 object,
32 uuid(ac6b7889-0740-4d51-8619-905994a55cc6),
33 local
34]
36{
42}
43
44[
45 object,
46 uuid(a27003cf-2354-4f2a-8d6a-ab7cff15437e),
47 local
48]
50{
53}
54
55[
56 object,
57 uuid(63d9255a-7ff1-4b61-8faf-ed6460dacf2b),
58 local
59]
61{
65}
66
67cpp_quote("#define RTWQ_E_ERROR(x) ((HRESULT)(0xc00d0000L+x))")
68cpp_quote("#define RTWQ_E_BUFFERTOOSMALL RTWQ_E_ERROR(14001)")
69cpp_quote("#define RTWQ_E_NOT_INITIALIZED RTWQ_E_ERROR(14006)")
70cpp_quote("#define RTWQ_E_UNEXPECTED RTWQ_E_ERROR(14011)")
71cpp_quote("#define RTWQ_E_NOT_FOUND RTWQ_E_ERROR(14037)")
72cpp_quote("#define RTWQ_E_OPERATION_CANCELLED RTWQ_E_ERROR(14061)")
73cpp_quote("#define RTWQ_E_INVALID_WORKQUEUE RTWQ_E_ERROR(14079)")
74cpp_quote("#define RTWQ_E_SHUTDOWN RTWQ_E_ERROR(16005)")
75
76cpp_quote("#ifdef __WINESRC__")
77cpp_quote("typedef struct tagRTWQASYNCRESULT")
78cpp_quote("{")
79cpp_quote(" IRtwqAsyncResult AsyncResult;")
80cpp_quote("#else")
81cpp_quote("typedef struct tagRTWQASYNCRESULT : public IRtwqAsyncResult {")
82cpp_quote("#endif")
83cpp_quote(" OVERLAPPED overlapped;")
84cpp_quote(" IRtwqAsyncCallback *pCallback;")
85cpp_quote(" HRESULT hrStatusResult;")
86cpp_quote(" DWORD dwBytesTransferred;")
87cpp_quote(" HANDLE hEvent;")
88cpp_quote("} RTWQASYNCRESULT;")
89
90cpp_quote("typedef void (WINAPI *RTWQPERIODICCALLBACK)(IUnknown *context);")
91
92cpp_quote("HRESULT WINAPI RtwqAddPeriodicCallback(RTWQPERIODICCALLBACK callback, IUnknown *context, DWORD *key);")
93cpp_quote("HRESULT WINAPI RtwqAllocateSerialWorkQueue(DWORD target_queue, DWORD *queue);")
94cpp_quote("HRESULT WINAPI RtwqAllocateWorkQueue(RTWQ_WORKQUEUE_TYPE queue_type, DWORD *queue);")
95cpp_quote("HRESULT WINAPI RtwqBeginRegisterWorkQueueWithMMCSS(DWORD queue, const WCHAR *mmcss_class, DWORD taskid, LONG priority, IRtwqAsyncCallback *callback, IUnknown *state);")
96cpp_quote("HRESULT WINAPI RtwqBeginUnregisterWorkQueueWithMMCSS(DWORD queue, IRtwqAsyncCallback *callback, IUnknown *state);")
97cpp_quote("HRESULT WINAPI RtwqCancelDeadline(HANDLE request);")
98cpp_quote("HRESULT WINAPI RtwqCancelWorkItem(RTWQWORKITEM_KEY key);")
99cpp_quote("HRESULT WINAPI RtwqCreateAsyncResult(IUnknown *object, IRtwqAsyncCallback *callback, IUnknown *state, IRtwqAsyncResult **result);")
100cpp_quote("HRESULT WINAPI RtwqEndRegisterWorkQueueWithMMCSS(IRtwqAsyncResult *result, DWORD *taskid);")
101cpp_quote("HRESULT WINAPI RtwqGetWorkQueueMMCSSClass(DWORD queue, WCHAR *mmcss_class, DWORD *length);")
102cpp_quote("HRESULT WINAPI RtwqGetWorkQueueMMCSSPriority(DWORD queue, LONG *priority);")
103cpp_quote("HRESULT WINAPI RtwqGetWorkQueueMMCSSTaskId(DWORD queue, DWORD *taskid);")
104cpp_quote("HRESULT WINAPI RtwqInvokeCallback(IRtwqAsyncResult *result);")
105cpp_quote("HRESULT WINAPI RtwqJoinWorkQueue(DWORD queue, HANDLE hFile, HANDLE *cookie);")
106cpp_quote("HRESULT WINAPI RtwqLockPlatform(void);")
107cpp_quote("HRESULT WINAPI RtwqLockSharedWorkQueue(const WCHAR *usageclass, LONG priority, DWORD *taskid, DWORD *queue);")
108cpp_quote("HRESULT WINAPI RtwqLockWorkQueue(DWORD queue);")
109cpp_quote("HRESULT WINAPI RtwqPutWaitingWorkItem(HANDLE event, LONG priority, IRtwqAsyncResult *result, RTWQWORKITEM_KEY *key);")
110cpp_quote("HRESULT WINAPI RtwqPutWorkItem(DWORD queue, LONG priority, IRtwqAsyncResult *result);")
111cpp_quote("HRESULT WINAPI RtwqRegisterPlatformEvents(IRtwqPlatformEvents *events);")
112cpp_quote("HRESULT WINAPI RtwqRegisterPlatformWithMMCSS(const WCHAR *mmcss_class, DWORD *taskid, LONG priority);")
113cpp_quote("HRESULT WINAPI RtwqRemovePeriodicCallback(DWORD key);")
114cpp_quote("HRESULT WINAPI RtwqScheduleWorkItem(IRtwqAsyncResult *result, INT64 timeout, RTWQWORKITEM_KEY *key);")
115cpp_quote("HRESULT WINAPI RtwqSetDeadline(DWORD queue_id, LONGLONG deadline, HANDLE *request);")
116cpp_quote("HRESULT WINAPI RtwqSetDeadline2(DWORD queue_id, LONGLONG deadline, LONGLONG predeadline, HANDLE *request);")
117cpp_quote("HRESULT WINAPI RtwqSetLongRunning(DWORD queue_id, BOOL enable);")
118cpp_quote("HRESULT WINAPI RtwqShutdown(void);")
119cpp_quote("HRESULT WINAPI RtwqStartup(void);")
120cpp_quote("HRESULT WINAPI RtwqUnjoinWorkQueue(DWORD queue, HANDLE cookie);")
121cpp_quote("HRESULT WINAPI RtwqUnlockPlatform(void);")
122cpp_quote("HRESULT WINAPI RtwqUnlockWorkQueue(DWORD queue);")
123cpp_quote("HRESULT WINAPI RtwqUnregisterPlatformEvents(IRtwqPlatformEvents *events);")
124cpp_quote("HRESULT WINAPI RtwqUnregisterPlatformFromMMCSS(void);")
static int state
Definition: maze.c:121
CD3D10_BUFFER_DESC D3D10_BUFFER_DESC cpp_quote(" ~CD3D10_BUFFER_DESC() {}") operator const D3D10_BUFFER_DESC &() const
Definition: d3d10.idl:491
#define __int64
Definition: corecrt.h:72
unsigned long DWORD
Definition: ntddk_ex.h:95
#define local
Definition: zutil.h:30
GLuint in
Definition: glext.h:9616
GLbitfield flags
Definition: glext.h:7161
GLuint64EXT * result
Definition: glext.h:11304
HRESULT GetParameters([out] DWORD *flags, [out] DWORD *queue)
HRESULT Invoke([in] IRtwqAsyncResult *result)
HRESULT GetState([out] IUnknown **state)
HRESULT SetStatus([in] HRESULT status)
IUnknown * GetStateNoAddRef()
HRESULT GetObject([out] IUnknown **object)
HRESULT GetStatus()
HRESULT ShutdownComplete(void)
HRESULT InitializationComplete(void)
HRESULT ShutdownStart(void)
Definition: msctf.idl:532
RTWQ_WORKQUEUE_TYPE
Definition: rtworkq.idl:22
@ RTWQ_WINDOW_WORKQUEUE
Definition: rtworkq.idl:24
@ RTWQ_MULTITHREADED_WORKQUEUE
Definition: rtworkq.idl:25
@ RTWQ_STANDARD_WORKQUEUE
Definition: rtworkq.idl:23
unsigned __int64 RTWQWORKITEM_KEY
Definition: rtworkq.idl:28
Definition: queue.c:179
Definition: ps.c:97
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
Definition: wcsftime.cpp:383