SetupDiGetDeviceInstallParams
[DllImport("setupapi.dll", SetLastError = true, CharSet = CharSet.Unicode)]
public static extern bool SetupDiGetDeviceInstallParams(
IntPtr DeviceInfoSet,
ref DeviceInfoData DeviceInfoData,
ref DeviceInstallParams DeviceInstallParams
);
Microsoft documentation: Link
Last updated