See 
https://docs.microsoft.com/en-us/windows/win32/api/dxvahd/nf-dxvahd-dxvahd_createdevice
---
 mingw-w64-headers/include/dxvahd.h   | 4 ++++
 mingw-w64-headers/include/dxvahd.idl | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/mingw-w64-headers/include/dxvahd.h 
b/mingw-w64-headers/include/dxvahd.h
index fd4a3c6f..6a60c657 100644
--- a/mingw-w64-headers/include/dxvahd.h
+++ b/mingw-w64-headers/include/dxvahd.h
@@ -42,6 +42,9 @@ interface IDXVAHD_VideoProcessor;
 extern "C" {
 #endif
 
+#include <winapifamily.h>
+
+#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
 
 #if (_WIN32_WINNT >= 0x0601)
 #if 0
@@ -735,6 +738,7 @@ static FORCEINLINE HRESULT 
IDXVAHD_VideoProcessor_VideoProcessBltHD(IDXVAHD_Vide
 #endif  /* __IDXVAHD_VideoProcessor_INTERFACE_DEFINED__ */
 
 #endif /*(_WIN32_WINNT >= 0x0601)*/
+#endif /*WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)*/
 /* Begin additional prototypes for all interfaces */
 
 
diff --git a/mingw-w64-headers/include/dxvahd.idl 
b/mingw-w64-headers/include/dxvahd.idl
index bbf3d162..beff8e56 100644
--- a/mingw-w64-headers/include/dxvahd.idl
+++ b/mingw-w64-headers/include/dxvahd.idl
@@ -4,6 +4,9 @@
  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  */
 
+cpp_quote("#include <winapifamily.h>")
+cpp_quote("")
+cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
 cpp_quote("")
 cpp_quote("#if (_WIN32_WINNT >= 0x0601)")
 
@@ -425,3 +428,4 @@ interface IDXVAHD_VideoProcessor : IUnknown
 };
 
 cpp_quote("#endif /*(_WIN32_WINNT >= 0x0601)*/")
+cpp_quote("#endif /*WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)*/")
-- 
2.17.1



_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to