mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-11-23 09:54:39 +08:00
headers: Import headers from wine master
Signed-off-by: Liu Hao <lh_mouse@126.com>
This commit is contained in:
parent
eb87e56399
commit
902b16c6af
File diff suppressed because it is too large
Load Diff
@ -34,6 +34,14 @@ interface IMFTopology;
|
||||
#endif /* __cplusplus */
|
||||
#endif
|
||||
|
||||
#ifndef __IMFGetService_FWD_DEFINED__
|
||||
#define __IMFGetService_FWD_DEFINED__
|
||||
typedef interface IMFGetService IMFGetService;
|
||||
#ifdef __cplusplus
|
||||
interface IMFGetService;
|
||||
#endif /* __cplusplus */
|
||||
#endif
|
||||
|
||||
#ifndef __IMFClock_FWD_DEFINED__
|
||||
#define __IMFClock_FWD_DEFINED__
|
||||
typedef interface IMFClock IMFClock;
|
||||
@ -1156,6 +1164,87 @@ static FORCEINLINE HRESULT IMFTopology_GetOutputNodeCollection(IMFTopology* This
|
||||
|
||||
#endif /* __IMFTopology_INTERFACE_DEFINED__ */
|
||||
|
||||
/*****************************************************************************
|
||||
* IMFGetService interface
|
||||
*/
|
||||
#ifndef __IMFGetService_INTERFACE_DEFINED__
|
||||
#define __IMFGetService_INTERFACE_DEFINED__
|
||||
|
||||
DEFINE_GUID(IID_IMFGetService, 0xfa993888, 0x4383, 0x415a, 0xa9,0x30, 0xdd,0x47,0x2a,0x8c,0xf6,0xf7);
|
||||
#if defined(__cplusplus) && !defined(CINTERFACE)
|
||||
MIDL_INTERFACE("fa993888-4383-415a-a930-dd472a8cf6f7")
|
||||
IMFGetService : public IUnknown
|
||||
{
|
||||
virtual HRESULT STDMETHODCALLTYPE GetService(
|
||||
REFGUID guidService,
|
||||
REFIID riid,
|
||||
LPVOID *ppvObject) = 0;
|
||||
|
||||
};
|
||||
#ifdef __CRT_UUID_DECL
|
||||
__CRT_UUID_DECL(IMFGetService, 0xfa993888, 0x4383, 0x415a, 0xa9,0x30, 0xdd,0x47,0x2a,0x8c,0xf6,0xf7)
|
||||
#endif
|
||||
#else
|
||||
typedef struct IMFGetServiceVtbl {
|
||||
BEGIN_INTERFACE
|
||||
|
||||
/*** IUnknown methods ***/
|
||||
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
||||
IMFGetService *This,
|
||||
REFIID riid,
|
||||
void **ppvObject);
|
||||
|
||||
ULONG (STDMETHODCALLTYPE *AddRef)(
|
||||
IMFGetService *This);
|
||||
|
||||
ULONG (STDMETHODCALLTYPE *Release)(
|
||||
IMFGetService *This);
|
||||
|
||||
/*** IMFGetService methods ***/
|
||||
HRESULT (STDMETHODCALLTYPE *GetService)(
|
||||
IMFGetService *This,
|
||||
REFGUID guidService,
|
||||
REFIID riid,
|
||||
LPVOID *ppvObject);
|
||||
|
||||
END_INTERFACE
|
||||
} IMFGetServiceVtbl;
|
||||
|
||||
interface IMFGetService {
|
||||
CONST_VTBL IMFGetServiceVtbl* lpVtbl;
|
||||
};
|
||||
|
||||
#ifdef COBJMACROS
|
||||
#ifndef WIDL_C_INLINE_WRAPPERS
|
||||
/*** IUnknown methods ***/
|
||||
#define IMFGetService_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
|
||||
#define IMFGetService_AddRef(This) (This)->lpVtbl->AddRef(This)
|
||||
#define IMFGetService_Release(This) (This)->lpVtbl->Release(This)
|
||||
/*** IMFGetService methods ***/
|
||||
#define IMFGetService_GetService(This,guidService,riid,ppvObject) (This)->lpVtbl->GetService(This,guidService,riid,ppvObject)
|
||||
#else
|
||||
/*** IUnknown methods ***/
|
||||
static FORCEINLINE HRESULT IMFGetService_QueryInterface(IMFGetService* This,REFIID riid,void **ppvObject) {
|
||||
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
|
||||
}
|
||||
static FORCEINLINE ULONG IMFGetService_AddRef(IMFGetService* This) {
|
||||
return This->lpVtbl->AddRef(This);
|
||||
}
|
||||
static FORCEINLINE ULONG IMFGetService_Release(IMFGetService* This) {
|
||||
return This->lpVtbl->Release(This);
|
||||
}
|
||||
/*** IMFGetService methods ***/
|
||||
static FORCEINLINE HRESULT IMFGetService_GetService(IMFGetService* This,REFGUID guidService,REFIID riid,LPVOID *ppvObject) {
|
||||
return This->lpVtbl->GetService(This,guidService,riid,ppvObject);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* __IMFGetService_INTERFACE_DEFINED__ */
|
||||
|
||||
typedef LONGLONG MFTIME;
|
||||
typedef enum _MF_CLOCK_STATE {
|
||||
MFCLOCK_STATE_INVALID = 0,
|
||||
|
47
mingw-w64-headers/include/mulres.idl
Normal file
47
mingw-w64-headers/include/mulres.idl
Normal file
@ -0,0 +1,47 @@
|
||||
/*
|
||||
* Copyright (C) 2020 Alistair Leslie-Hughes
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#if 0
|
||||
#pragma makedep install
|
||||
#endif
|
||||
|
||||
[
|
||||
object,
|
||||
uuid(0c733a90-2a1c-11ce-ade5-00aa0044773d),
|
||||
pointer_default(unique)
|
||||
]
|
||||
interface IMultipleResults : IUnknown
|
||||
{
|
||||
typedef DB_LRESERVE DBRESULTFLAG;
|
||||
|
||||
enum DBRESULTFLAGENUM
|
||||
{
|
||||
DBRESULTFLAG_DEFAULT = 0,
|
||||
DBRESULTFLAG_ROWSET = 1,
|
||||
DBRESULTFLAG_ROW = 2,
|
||||
};
|
||||
|
||||
[local]
|
||||
HRESULT GetResult([in] IUnknown *outer, [in] DBRESULTFLAG result, [in] REFIID riid, [out] DBROWCOUNT *affected,
|
||||
[out, iid_is(riid), annotation("_Outptr_opt_result_maybenull_")] IUnknown ** rowset);
|
||||
|
||||
[call_as(GetResult)]
|
||||
HRESULT RemoteGetResult([in] IUnknown *outer, [in] DBRESULTFLAG result, [in] REFIID riid,
|
||||
[in, out, unique] DBROWCOUNT *affected, [in, out, unique, iid_is(riid)] IUnknown **rowset,
|
||||
[out] IErrorInfo **error);
|
||||
}
|
124
mingw-w64-headers/include/rtworkq.idl
Normal file
124
mingw-w64-headers/include/rtworkq.idl
Normal file
@ -0,0 +1,124 @@
|
||||
/*
|
||||
* Copyright 2020 Nikolay Sivov for CodeWeavers
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
import "unknwn.idl";
|
||||
|
||||
typedef enum
|
||||
{
|
||||
RTWQ_STANDARD_WORKQUEUE = 0,
|
||||
RTWQ_WINDOW_WORKQUEUE = 1,
|
||||
RTWQ_MULTITHREADED_WORKQUEUE = 2,
|
||||
} RTWQ_WORKQUEUE_TYPE;
|
||||
|
||||
typedef unsigned __int64 RTWQWORKITEM_KEY;
|
||||
|
||||
[
|
||||
object,
|
||||
uuid(ac6b7889-0740-4d51-8619-905994a55cc6),
|
||||
local
|
||||
]
|
||||
interface IRtwqAsyncResult : IUnknown
|
||||
{
|
||||
HRESULT GetState([out] IUnknown **state);
|
||||
HRESULT GetStatus();
|
||||
HRESULT SetStatus([in] HRESULT status);
|
||||
HRESULT GetObject([out] IUnknown **object);
|
||||
IUnknown *GetStateNoAddRef();
|
||||
}
|
||||
|
||||
[
|
||||
object,
|
||||
uuid(a27003cf-2354-4f2a-8d6a-ab7cff15437e),
|
||||
local
|
||||
]
|
||||
interface IRtwqAsyncCallback : IUnknown
|
||||
{
|
||||
HRESULT GetParameters([out] DWORD *flags, [out] DWORD *queue);
|
||||
HRESULT Invoke([in] IRtwqAsyncResult *result);
|
||||
}
|
||||
|
||||
[
|
||||
object,
|
||||
uuid(63d9255a-7ff1-4b61-8faf-ed6460dacf2b),
|
||||
local
|
||||
]
|
||||
interface IRtwqPlatformEvents : IUnknown
|
||||
{
|
||||
HRESULT InitializationComplete(void);
|
||||
HRESULT ShutdownStart(void);
|
||||
HRESULT ShutdownComplete(void);
|
||||
}
|
||||
|
||||
cpp_quote("#define RTWQ_E_ERROR(x) ((HRESULT)(0xc00d0000L+x))")
|
||||
cpp_quote("#define RTWQ_E_BUFFERTOOSMALL RTWQ_E_ERROR(14001)")
|
||||
cpp_quote("#define RTWQ_E_NOT_INITIALIZED RTWQ_E_ERROR(14006)")
|
||||
cpp_quote("#define RTWQ_E_UNEXPECTED RTWQ_E_ERROR(14011)")
|
||||
cpp_quote("#define RTWQ_E_NOT_FOUND RTWQ_E_ERROR(14037)")
|
||||
cpp_quote("#define RTWQ_E_OPERATION_CANCELLED RTWQ_E_ERROR(14061)")
|
||||
cpp_quote("#define RTWQ_E_INVALID_WORKQUEUE RTWQ_E_ERROR(14079)")
|
||||
cpp_quote("#define RTWQ_E_SHUTDOWN RTWQ_E_ERROR(16005)")
|
||||
|
||||
cpp_quote("#ifdef __WINESRC__")
|
||||
cpp_quote("typedef struct tagRTWQASYNCRESULT")
|
||||
cpp_quote("{")
|
||||
cpp_quote(" IRtwqAsyncResult AsyncResult;")
|
||||
cpp_quote("#else")
|
||||
cpp_quote("typedef struct tagRTWQASYNCRESULT : public IRtwqAsyncResult {")
|
||||
cpp_quote("#endif")
|
||||
cpp_quote(" OVERLAPPED overlapped;")
|
||||
cpp_quote(" IRtwqAsyncCallback *pCallback;")
|
||||
cpp_quote(" HRESULT hrStatusResult;")
|
||||
cpp_quote(" DWORD dwBytesTransferred;")
|
||||
cpp_quote(" HANDLE hEvent;")
|
||||
cpp_quote("} RTWQASYNCRESULT;")
|
||||
|
||||
cpp_quote("typedef void (WINAPI *RTWQPERIODICCALLBACK)(IUnknown *context);")
|
||||
|
||||
cpp_quote("HRESULT WINAPI RtwqAddPeriodicCallback(RTWQPERIODICCALLBACK callback, IUnknown *context, DWORD *key);")
|
||||
cpp_quote("HRESULT WINAPI RtwqAllocateSerialWorkQueue(DWORD target_queue, DWORD *queue);")
|
||||
cpp_quote("HRESULT WINAPI RtwqAllocateWorkQueue(RTWQ_WORKQUEUE_TYPE queue_type, DWORD *queue);")
|
||||
cpp_quote("HRESULT WINAPI RtwqBeginRegisterWorkQueueWithMMCSS(DWORD queue, const WCHAR *mmcss_class, DWORD taskid, LONG priority, IRtwqAsyncCallback *callback, IUnknown *state);")
|
||||
cpp_quote("HRESULT WINAPI RtwqBeginUnregisterWorkQueueWithMMCSS(DWORD queue, IRtwqAsyncCallback *callback, IUnknown *state);")
|
||||
cpp_quote("HRESULT WINAPI RtwqCancelDeadline(HANDLE request);")
|
||||
cpp_quote("HRESULT WINAPI RtwqCancelWorkItem(RTWQWORKITEM_KEY key);")
|
||||
cpp_quote("HRESULT WINAPI RtwqCreateAsyncResult(IUnknown *object, IRtwqAsyncCallback *callback, IUnknown *state, IRtwqAsyncResult **result);")
|
||||
cpp_quote("HRESULT WINAPI RtwqEndRegisterWorkQueueWithMMCSS(IRtwqAsyncResult *result, DWORD *taskid);")
|
||||
cpp_quote("HRESULT WINAPI RtwqGetWorkQueueMMCSSClass(DWORD queue, WCHAR *mmcss_class, DWORD *length);")
|
||||
cpp_quote("HRESULT WINAPI RtwqGetWorkQueueMMCSSPriority(DWORD queue, LONG *priority);")
|
||||
cpp_quote("HRESULT WINAPI RtwqGetWorkQueueMMCSSTaskId(DWORD queue, DWORD *taskid);")
|
||||
cpp_quote("HRESULT WINAPI RtwqInvokeCallback(IRtwqAsyncResult *result);")
|
||||
cpp_quote("HRESULT WINAPI RtwqJoinWorkQueue(DWORD queue, HANDLE hFile, HANDLE *cookie);")
|
||||
cpp_quote("HRESULT WINAPI RtwqLockPlatform(void);")
|
||||
cpp_quote("HRESULT WINAPI RtwqLockSharedWorkQueue(const WCHAR *usageclass, LONG priority, DWORD *taskid, DWORD *queue);")
|
||||
cpp_quote("HRESULT WINAPI RtwqLockWorkQueue(DWORD queue);")
|
||||
cpp_quote("HRESULT WINAPI RtwqPutWaitingWorkItem(HANDLE event, LONG priority, IRtwqAsyncResult *result, RTWQWORKITEM_KEY *key);")
|
||||
cpp_quote("HRESULT WINAPI RtwqPutWorkItem(DWORD queue, LONG priority, IRtwqAsyncResult *result);")
|
||||
cpp_quote("HRESULT WINAPI RtwqRegisterPlatformEvents(IRtwqPlatformEvents *events);")
|
||||
cpp_quote("HRESULT WINAPI RtwqRegisterPlatformWithMMCSS(const WCHAR *mmcss_class, DWORD *taskid, LONG priority);")
|
||||
cpp_quote("HRESULT WINAPI RtwqRemovePeriodicCallback(DWORD key);")
|
||||
cpp_quote("HRESULT WINAPI RtwqScheduleWorkItem(IRtwqAsyncResult *result, INT64 timeout, RTWQWORKITEM_KEY *key);")
|
||||
cpp_quote("HRESULT WINAPI RtwqSetDeadline(DWORD queue_id, LONGLONG deadline, HANDLE *request);")
|
||||
cpp_quote("HRESULT WINAPI RtwqSetDeadline2(DWORD queue_id, LONGLONG deadline, LONGLONG predeadline, HANDLE *request);")
|
||||
cpp_quote("HRESULT WINAPI RtwqSetLongRunning(DWORD queue_id, WINBOOL enable);")
|
||||
cpp_quote("HRESULT WINAPI RtwqShutdown(void);")
|
||||
cpp_quote("HRESULT WINAPI RtwqStartup(void);")
|
||||
cpp_quote("HRESULT WINAPI RtwqUnjoinWorkQueue(DWORD queue, HANDLE cookie);")
|
||||
cpp_quote("HRESULT WINAPI RtwqUnlockPlatform(void);")
|
||||
cpp_quote("HRESULT WINAPI RtwqUnlockWorkQueue(DWORD queue);")
|
||||
cpp_quote("HRESULT WINAPI RtwqUnregisterPlatformEvents(IRtwqPlatformEvents *events);")
|
||||
cpp_quote("HRESULT WINAPI RtwqUnregisterPlatformFromMMCSS(void);")
|
115
mingw-w64-headers/include/windows.media.speechsynthesis.idl
Normal file
115
mingw-w64-headers/include/windows.media.speechsynthesis.idl
Normal file
@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2020 Rémi Bernon for CodeWeavers
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#ifdef __WIDL__
|
||||
#pragma winrt ns_prefix
|
||||
#endif
|
||||
|
||||
import "inspectable.idl";
|
||||
import "windows.foundation.idl";
|
||||
|
||||
namespace Windows {
|
||||
namespace Foundation {
|
||||
interface IClosable;
|
||||
}
|
||||
namespace Media {
|
||||
namespace SpeechSynthesis {
|
||||
typedef enum VoiceGender VoiceGender;
|
||||
interface IInstalledVoicesStatic;
|
||||
interface IInstalledVoicesStatic2;
|
||||
interface ISpeechSynthesizer;
|
||||
interface ISpeechSynthesizer2;
|
||||
interface IVoiceInformation;
|
||||
runtimeclass SpeechSynthesizer;
|
||||
runtimeclass VoiceInformation;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
namespace Windows {
|
||||
namespace Media {
|
||||
namespace SpeechSynthesis {
|
||||
declare {
|
||||
interface Windows.Foundation.Collections.IIterator<Windows.Media.SpeechSynthesis.VoiceInformation*>;
|
||||
interface Windows.Foundation.Collections.IIterable<Windows.Media.SpeechSynthesis.VoiceInformation*>;
|
||||
interface Windows.Foundation.Collections.IVectorView<Windows.Media.SpeechSynthesis.VoiceInformation*>;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
namespace Windows {
|
||||
namespace Media {
|
||||
namespace SpeechSynthesis {
|
||||
[contract(Windows.Foundation.UniversalApiContract, 1.0)]
|
||||
enum VoiceGender
|
||||
{
|
||||
Male = 0,
|
||||
Female = 1
|
||||
};
|
||||
|
||||
[
|
||||
contract(Windows.Foundation.UniversalApiContract, 1.0),
|
||||
exclusiveto(Windows.Media.SpeechSynthesis.VoiceInformation),
|
||||
uuid(b127d6a4-1291-4604-aa9c-83134083352c)
|
||||
]
|
||||
interface IVoiceInformation : IInspectable
|
||||
{
|
||||
[propget] HRESULT DisplayName([out] [retval] HSTRING* value);
|
||||
[propget] HRESULT Id([out] [retval] HSTRING* value);
|
||||
[propget] HRESULT Language([out] [retval] HSTRING* value);
|
||||
[propget] HRESULT Description([out] [retval] HSTRING* value);
|
||||
[propget] HRESULT Gender([out] [retval] VoiceGender* value);
|
||||
}
|
||||
|
||||
[
|
||||
contract(Windows.Foundation.UniversalApiContract, 1.0),
|
||||
exclusiveto(Windows.Media.SpeechSynthesis.SpeechSynthesizer),
|
||||
uuid(7d526ecc-7533-4c3f-85be-888c2baeebdc)
|
||||
]
|
||||
interface IInstalledVoicesStatic : IInspectable
|
||||
{
|
||||
[propget] HRESULT AllVoices([out, retval] Windows.Foundation.Collections.IVectorView<VoiceInformation*>** value);
|
||||
[propget] HRESULT DefaultVoice([out, retval] VoiceInformation** value);
|
||||
}
|
||||
|
||||
[
|
||||
contract(Windows.Foundation.UniversalApiContract, 1.0),
|
||||
marshaling_behavior(agile)
|
||||
]
|
||||
runtimeclass VoiceInformation
|
||||
{
|
||||
[default] interface Windows.Media.SpeechSynthesis.IVoiceInformation;
|
||||
}
|
||||
|
||||
[
|
||||
activatable(Windows.Foundation.UniversalApiContract, 1.0),
|
||||
contract(Windows.Foundation.UniversalApiContract, 1.0),
|
||||
marshaling_behavior(agile),
|
||||
static(Windows.Media.SpeechSynthesis.IInstalledVoicesStatic, Windows.Foundation.UniversalApiContract, 1.0),
|
||||
static(Windows.Media.SpeechSynthesis.IInstalledVoicesStatic2, Windows.Foundation.UniversalApiContract, 5.0)
|
||||
]
|
||||
runtimeclass SpeechSynthesizer
|
||||
{
|
||||
[default] interface Windows.Media.SpeechSynthesis.ISpeechSynthesizer;
|
||||
interface Windows.Foundation.IClosable;
|
||||
[contract(Windows.Foundation.UniversalApiContract, 4.0)] interface Windows.Media.SpeechSynthesis.ISpeechSynthesizer2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user