From 90e2e73dca9a45dc543c6d921b690dbb94badbdd Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Mon, 29 Jan 2018 13:22:56 -0600 Subject: [PATCH] Removed query by all classes --- DS4Windows/DS4Control/ScpUtil.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DS4Windows/DS4Control/ScpUtil.cs b/DS4Windows/DS4Control/ScpUtil.cs index 0f511b1..6325177 100644 --- a/DS4Windows/DS4Control/ScpUtil.cs +++ b/DS4Windows/DS4Control/ScpUtil.cs @@ -302,7 +302,7 @@ namespace DS4Windows var dataBuffer = new byte[4096]; ulong propertyType = 0; var requiredSize = 0; - IntPtr deviceInfoSet = NativeMethods.SetupDiGetClassDevs(ref sysGuid, null, 0, NativeMethods.DIGCF_DEVICEINTERFACE | NativeMethods.DIGCF_ALLCLASSES); + IntPtr deviceInfoSet = NativeMethods.SetupDiGetClassDevs(ref sysGuid, null, 0, 0); for (int i = 0; !result && NativeMethods.SetupDiEnumDeviceInfo(deviceInfoSet, i, ref deviceInfoData); i++) { if (NativeMethods.SetupDiGetDeviceProperty(deviceInfoSet, ref deviceInfoData, ref NativeMethods.DEVPKEY_Device_HardwareIds, ref propertyType,