Expand Minimize
This topic has not yet been rated - Rate this topic

SetupDiSetDriverInstallParams function

The SetupDiSetDriverInstallParams function sets driver installation parameters for a driver information element.

Syntax


BOOL SetupDiSetDriverInstallParams(
  _In_      HDEVINFO DeviceInfoSet,
  _In_opt_  PSP_DEVINFO_DATA DeviceInfoData,
  _In_      PSP_DRVINFO_DATA DriverInfoData,
  _In_      PSP_DRVINSTALL_PARAMS DriverInstallParams
);

Parameters

DeviceInfoSet [in]

A handle to a device information set that contains a driver information element that represents the driver for which to set installation parameters.

DeviceInfoData [in, optional]

A pointer to an SP_DEVINFO_DATA structure that specifies a device information element in DeviceInfoSet. This parameter is optional and can be set to NULL. If this parameter is specified, SetupDiSetDriverInstallParams sets the driver installation parameters for the specified device. If this parameter is NULL, SetupDiSetDriverInstallParams sets driver installation parameters for DeviceInfoSet.

DriverInfoData [in]

A pointer to an SP_DRVINFO_DATA structure that specifies the driver for which installation parameters are set. If DeviceInfoData is specified, this driver must be a member of a driver list that is associated with DeviceInfoData. If DeviceInfoData is NULL, this driver must be a member of the global class driver list for DeviceInfoSet.

DriverInstallParams [in]

A pointer to an SP_DRVINSTALL_PARAMS structure that specifies the new driver install parameters.

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.

Requirements

Version

Available in Microsoft Windows 2000 and later versions of Windows.

Header

Setupapi.h (include Setupapi.h)

Library

Contained in Setupapi.lib. Link to Setupapi.lib.

See also

SetupDiGetDriverInstallParams

 

 

Send comments about this topic to Microsoft

Build date: 5/16/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.