SetupDiSetDeviceInstallParams

BOOLEAN
SetupDiSetDeviceInstallParams(
IN HDEVINFO DeviceInfoSet,
IN PSP_DEVINFO_DATA DeviceInfoData,    /* optional */
IN PSP_DEVINSTALL_PARAMS DeviceInstallParams
);

SetupDiSetDeviceInstallParams sets install parameters for a device information set or a particular device information element.

Parameters

DeviceInfoSet

Supplies a handle to the device information set that contains the device install parameters to set.

DeviceInfoData

Supplies a pointer to an SP_DEVINFO_DATA structure that contains device install parameters to set. If this parameter is not specified, the install parameters set are associated with the device information set for the global class driver list.

DeviceInstallParams

Supplies a pointer to an SP_DEVINSTALL_PARAMS structure that contains the new values of the parameters. The cbSize field of this structure must be set to the size, in bytes, of the structure before calling this function.

Return Value

The function returns TRUE if it is successful. Otherwise it returns FALSE and the logged error can be retrieved with a call to GetLastError.

Comments

All parameters are validated before any changes are made. Therefore, a return value of FALSE indicates that no parameters were modified.

See Also

SetupDiGetDeviceInstallParams