BOOLEAN
SetupDiSetClassInstallParams(
IN HDEVINFO DeviceInfoSet,
IN PSP_DEVINFO_DATA DeviceInfoData, /* optional */
IN PSP_CLASSINSTALL_HEADER ClassInstallParams,
/* optional */
IN DWORD ClassInstallParamsSize
);
SetupDiSetClassInstallParams sets or clears class install parameters for a device information set or a particular device information element.
If ClassInstallParams is not specified, the current class install
parameters, if any, are cleared for the specified device information set or
element.
The function returns TRUE if it is successful. Otherwise it returns FALSE and the logged error can be retrieved with a call to GetLastError.
All parameters are validated before any changes are made. Therefore, a return value of FALSE indicates that no parameters where modified.
A consequence of setting class install parameters is that the DI_CLASSINSTALLPARAMS flag is set. If the caller wants to set the parameters, but disable their use, this flag must be cleared by a call to SetupDiSetDeviceInstallParams.
If the class install parameters are cleared, the DI_CLASSINSTALLPARAMS flag is reset.