Verified with
https://github.com/microsoft/win32metadata/blob/4656cf4a75aaff953b0730ac5955ab6aea2b4cc6/generation/WinSDK/RecompiledIdlHeaders/um/dxvahd.idl
Also added the GUIDs.
---
mingw-w64-headers/include/dxvahd.h | 24 ++++++++++++------------
mingw-w64-headers/include/dxvahd.idl | 12 ++----------
2 files changed, 14 insertions(+), 22 deletions(-)
diff --git a/mingw-w64-headers/include/dxvahd.h
b/mingw-w64-headers/include/dxvahd.h
index 110de6948..71b027863 100644
--- a/mingw-w64-headers/include/dxvahd.h
+++ b/mingw-w64-headers/include/dxvahd.h
@@ -405,19 +405,16 @@ typedef struct _DXVAHDSW_CALLBACKS {
HRESULT DXVAHD_CreateDevice(IDirect3DDevice9Ex *pD3DDevice,const
DXVAHD_CONTENT_DESC *pContentDesc,DXVAHD_DEVICE_USAGE Usage,PDXVAHDSW_Plugin
pPlugin,IDXVAHD_Device **ppDevice);
-#ifdef __GNUC__
-#warning COM interfaces layout in this header has not been verified.
-#warning COM interfaces with incorrect layout may not work at all.
-__MINGW_BROKEN_INTERFACE(INTERFACE)
-#endif
/*****************************************************************************
* IDXVAHD_Device interface
*/
#ifndef __IDXVAHD_Device_INTERFACE_DEFINED__
#define __IDXVAHD_Device_INTERFACE_DEFINED__
+DEFINE_GUID(IID_IDXVAHD_Device, 0x95f12dfd, 0xd77e, 0x49be, 0x81,0x5f,
0x57,0xd5,0x79,0x63,0x4d,0x6d);
#if defined(__cplusplus) && !defined(CINTERFACE)
-interface IDXVAHD_Device : public IUnknown
+MIDL_INTERFACE("95f12dfd-d77e-49be-815f-57d579634d6d")
+IDXVAHD_Device : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE CreateVideoSurface(
UINT Width,
@@ -459,6 +456,9 @@ interface IDXVAHD_Device : public IUnknown
IDXVAHD_VideoProcessor **ppVideoProcessor) = 0;
};
+#ifdef __CRT_UUID_DECL
+__CRT_UUID_DECL(IDXVAHD_Device, 0x95f12dfd, 0xd77e, 0x49be, 0x81,0x5f,
0x57,0xd5,0x79,0x63,0x4d,0x6d)
+#endif
#else
typedef struct IDXVAHD_DeviceVtbl {
BEGIN_INTERFACE
@@ -589,19 +589,16 @@ static FORCEINLINE HRESULT
IDXVAHD_Device_CreateVideoProcessor(IDXVAHD_Device* T
#endif /* __IDXVAHD_Device_INTERFACE_DEFINED__ */
-#ifdef __GNUC__
-#warning COM interfaces layout in this header has not been verified.
-#warning COM interfaces with incorrect layout may not work at all.
-__MINGW_BROKEN_INTERFACE(INTERFACE)
-#endif
/*****************************************************************************
* IDXVAHD_VideoProcessor interface
*/
#ifndef __IDXVAHD_VideoProcessor_INTERFACE_DEFINED__
#define __IDXVAHD_VideoProcessor_INTERFACE_DEFINED__
+DEFINE_GUID(IID_IDXVAHD_VideoProcessor, 0x95f4edf4, 0x6e03, 0x4cd7, 0xbe,0x1b,
0x30,0x75,0xd6,0x65,0xaa,0x52);
#if defined(__cplusplus) && !defined(CINTERFACE)
-interface IDXVAHD_VideoProcessor : public IUnknown
+MIDL_INTERFACE("95f4edf4-6e03-4cd7-be1b-3075d665aa52")
+IDXVAHD_VideoProcessor : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE SetVideoProcessBltState(
DXVAHD_BLT_STATE State,
@@ -632,6 +629,9 @@ interface IDXVAHD_VideoProcessor : public IUnknown
const DXVAHD_STREAM_DATA *pStreams) = 0;
};
+#ifdef __CRT_UUID_DECL
+__CRT_UUID_DECL(IDXVAHD_VideoProcessor, 0x95f4edf4, 0x6e03, 0x4cd7, 0xbe,0x1b,
0x30,0x75,0xd6,0x65,0xaa,0x52)
+#endif
#else
typedef struct IDXVAHD_VideoProcessorVtbl {
BEGIN_INTERFACE
diff --git a/mingw-w64-headers/include/dxvahd.idl
b/mingw-w64-headers/include/dxvahd.idl
index c69057d88..bf00ca67f 100644
--- a/mingw-w64-headers/include/dxvahd.idl
+++ b/mingw-w64-headers/include/dxvahd.idl
@@ -388,13 +388,9 @@ cpp_quote("} DXVAHDSW_CALLBACKS;")
cpp_quote("")
cpp_quote("HRESULT DXVAHD_CreateDevice(IDirect3DDevice9Ex *pD3DDevice,const
DXVAHD_CONTENT_DESC *pContentDesc,DXVAHD_DEVICE_USAGE Usage,PDXVAHDSW_Plugin
pPlugin,IDXVAHD_Device **ppDevice);")
cpp_quote("")
-cpp_quote("#ifdef __GNUC__")
-cpp_quote("#warning COM interfaces layout in this header has not been
verified.")
-cpp_quote("#warning COM interfaces with incorrect layout may not work at all.")
-cpp_quote("__MINGW_BROKEN_INTERFACE(INTERFACE)")
-cpp_quote("#endif")
[
object,
+ uuid(95f12dfd-d77e-49be-815f-57d579634d6d),
local
]
interface IDXVAHD_Device : IUnknown
@@ -409,13 +405,9 @@ interface IDXVAHD_Device : IUnknown
HRESULT CreateVideoProcessor(const GUID *pVPGuid,IDXVAHD_VideoProcessor
**ppVideoProcessor);
};
-cpp_quote("#ifdef __GNUC__")
-cpp_quote("#warning COM interfaces layout in this header has not been
verified.")
-cpp_quote("#warning COM interfaces with incorrect layout may not work at all.")
-cpp_quote("__MINGW_BROKEN_INTERFACE(INTERFACE)")
-cpp_quote("#endif")
[
object,
+ uuid(95f4edf4-6e03-4cd7-be1b-3075d665aa52),
local
]
interface IDXVAHD_VideoProcessor : IUnknown
--
2.29.2
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public