Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
Removed old location flags for SetupAPI usage
Browse files Browse the repository at this point in the history
Not being used now
  • Loading branch information
Ryochan7 committed Sep 27, 2023
1 parent f9338f2 commit 9ba41c1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions DS4Windows/DS4Control/ScpUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ private static bool CheckForSysDevice(string searchHardwareId)
}

internal static string GetStringDeviceProperty(string deviceInstanceId,
NativeMethods.DEVPROPKEY prop, int extraFlags = NativeMethods.DIGCF_PRESENT)
NativeMethods.DEVPROPKEY prop)
{
string result = string.Empty;
NativeMethods.SP_DEVINFO_DATA deviceInfoData = new NativeMethods.SP_DEVINFO_DATA();
Expand Down Expand Up @@ -1237,7 +1237,7 @@ public static string GetInstanceIdFromDevicePath(string devicePath)
}

internal static string[] GetStringArrayDeviceProperty(string deviceInstanceId,
NativeMethods.DEVPROPKEY prop, int extraFlags = NativeMethods.DIGCF_PRESENT)
NativeMethods.DEVPROPKEY prop)
{
string[] result = null;
NativeMethods.SP_DEVINFO_DATA deviceInfoData = new NativeMethods.SP_DEVINFO_DATA();
Expand Down Expand Up @@ -1299,8 +1299,7 @@ public static bool CheckIfVirtualDevice(string devicePath)
}

// Check for potential non-present device as well
string parentInstanceId = GetStringDeviceProperty(testInstanceId, NativeMethods.DEVPKEY_Device_Parent,
NativeMethods.DIGCF_PRESENT | NativeMethods.DIGCF_PROFILE);
string parentInstanceId = GetStringDeviceProperty(testInstanceId, NativeMethods.DEVPKEY_Device_Parent);

// Found root enumerator. Use instanceId of device one layer lower in final check
if (parentInstanceId.Equals(@"HTREE\ROOT\0", StringComparison.OrdinalIgnoreCase))
Expand Down

0 comments on commit 9ba41c1

Please sign in to comment.