summaryrefslogtreecommitdiff
path: root/libusb/os/windows_winusb.h
diff options
context:
space:
mode:
authorChris Dickens <christopher.a.dickens@gmail.com>2020-12-19 15:33:56 -0800
committerChris Dickens <christopher.a.dickens@gmail.com>2020-12-19 15:33:56 -0800
commit073f229fd11f0d3e3098af44e59b5607aae113e2 (patch)
treeed45443b8cf852d0952566b026bbbd33bbee1b17 /libusb/os/windows_winusb.h
parent9cb2e5c111a7fc1eec13dcf73667187b06f68628 (diff)
downloadlibusb-073f229fd11f0d3e3098af44e59b5607aae113e2.tar.gz
Windows: Break dependency on OLE32
The OLE32 library provides the IIDFromString() function to parse a string to a GUID, but we can implement a simple GUID parsing function and remove this dependence. Doing so also avoids fetching the Unicode form of the "DeviceInterfaceGUIDs" property. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'libusb/os/windows_winusb.h')
-rw-r--r--libusb/os/windows_winusb.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/libusb/os/windows_winusb.h b/libusb/os/windows_winusb.h
index 439042f..6646dc7 100644
--- a/libusb/os/windows_winusb.h
+++ b/libusb/os/windows_winusb.h
@@ -236,13 +236,9 @@ DLL_DECLARE_FUNC(WINAPI, CONFIGRET, CM_Get_Child, (PDEVINST, DEVINST, ULONG));
/* AdvAPI32 dependencies */
DLL_DECLARE_HANDLE(AdvAPI32);
-DLL_DECLARE_FUNC_PREFIXED(WINAPI, LONG, p, RegQueryValueExW, (HKEY, LPCWSTR, LPDWORD, LPDWORD, LPBYTE, LPDWORD));
+DLL_DECLARE_FUNC_PREFIXED(WINAPI, LONG, p, RegQueryValueExA, (HKEY, LPCSTR, LPDWORD, LPDWORD, LPBYTE, LPDWORD));
DLL_DECLARE_FUNC_PREFIXED(WINAPI, LONG, p, RegCloseKey, (HKEY));
-/* OLE32 dependency */
-DLL_DECLARE_HANDLE(OLE32);
-DLL_DECLARE_FUNC_PREFIXED(WINAPI, HRESULT, p, IIDFromString, (LPCOLESTR, LPIID));
-
/* SetupAPI dependencies */
DLL_DECLARE_HANDLE(SetupAPI);
DLL_DECLARE_FUNC_PREFIXED(WINAPI, HDEVINFO, p, SetupDiGetClassDevsA, (LPCGUID, PCSTR, HWND, DWORD));