Hello,

this is needed by Dolphin.

Best Regards
Oleg Tolmatcev
From 3db487162974e0a643ee8572db4986e088a59b92 Mon Sep 17 00:00:00 2001
From: Oleg Tolmatcev <[email protected]>
Date: Sun, 13 Aug 2023 13:21:53 +0200
Subject: [PATCH] headers: add SetupDiGetDeviceProperty in setupapi.h

---
 mingw-w64-headers/include/setupapi.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mingw-w64-headers/include/setupapi.h 
b/mingw-w64-headers/include/setupapi.h
index c8d1f32b..416d15ef 100644
--- a/mingw-w64-headers/include/setupapi.h
+++ b/mingw-w64-headers/include/setupapi.h
@@ -1891,6 +1891,10 @@ extern "C" {
 #if _WIN32_WINNT >= 0x0600
   WINSETUPAPI WINBOOL WINAPI SetupDiGetDevicePropertyW(HDEVINFO DeviceInfoSet, 
PSP_DEVINFO_DATA DeviceInfoData, const DEVPROPKEY *PropertyKey, DEVPROPTYPE 
*PropertyType, PBYTE PropertyBuffer, DWORD PropertyBufferSize, PDWORD 
RequiredSize, DWORD Flags);
   WINSETUPAPI WINBOOL WINAPI SetupDiGetDevicePropertyKeys(HDEVINFO 
DeviceInfoSet, PSP_DEVINFO_DATA DeviceInfoData, DEVPROPKEY *PropertyKeyArray, 
DWORD PropertyKeyCount, PDWORD RequiredPropertyKeyCount, DWORD Flags);
+
+#ifdef UNICODE
+#define SetupDiGetDeviceProperty SetupDiGetDevicePropertyW
+#endif
 #endif
 
 #ifdef __cplusplus
-- 
2.41.0.windows.1

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to