SetupDiSetDriverInstallParams

BOOLEAN
SetupDiSetDriverInstallParams(
IN HDEVINFO DeviceInfoSet,
IN PSP_DEVINFO_DATA DeviceInfoData,    /* optional */
IN PSP_DRVINFO_DATA DriverInfoData,
IN PSP_DRVINSTALL_PARAMS DriverInstallParams
);

SetupDiSetDriverInstallParams establishes install parameters for the specified driver.

Parameters

DeviceInfoSet

Supplies a handle to the device information set containing a driver information structure for which to set installation parameters.

DeviceInfoData

Supplies a pointer to an SP_DEVINFO_DATA structure that contains a driver information structure for which to set installation parameters. If this parameter is not specified, the driver referenced is a member of the global class driver list owned by the device information set.

DriverInfoData

Supplies a pointer to an SP_DRVINFO_DATA structure that specifies the driver for which install parameters are to be set.

DriverInstallParams

Supplies a pointer to an SP_DRVINSTALL_PARAMS structure that specifies what the new driver install parameters should be. The cbSize field of this structure must be set to the size, in bytes, of the structure before this function is called.

Return Value

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

See Also

SetupDiGetDriverInstallParams