SetupDiSetClassInstallParams

[DllImport("setupapi.dll", SetLastError = true)]
public static extern bool SetupDiSetClassInstallParams(
   IntPtr DeviceInfoSet,
   ref DeviceInfoData DeviceInfoData,
   ref ClassInstallHeader ClassInstallParams,
   uint ClassInstallParamsSize
);

Microsoft documentation: Link

Last updated