Expand Minimize

SetupDiGetDriverInstallParams function

The SetupDiGetDriverInstallParams function retrieves driver installation parameters for a device information set or a particular device information element.

Syntax


BOOL SetupDiGetDriverInstallParams(
  _In_      HDEVINFO DeviceInfoSet,
  _In_opt_  PSP_DEVINFO_DATA DeviceInfoData,
  _In_      PSP_DRVINFO_DATA DriverInfoData,
  _Out_     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 retrieve installation parameters.

DeviceInfoData [in, optional]

A pointer to an SP_DEVINFO_DATA structure that contains a device information element that represents the device for which to retrieve installation parameters. This parameter is optional and can be NULL. If this parameter is specified, SetupDiGetDriverInstallParams retrieves information about a driver that is a member of a driver list for the specified device. If this parameter is NULL, SetupDiGetDriverInstallParams retrieves information about a driver that is a member of the global class driver list for DeviceInfoSet.

DriverInfoData [in]

A pointer to an SP_DRVINFO_DATA structure that specifies the driver information element that represents the driver for which to retrieve installation parameters. If DeviceInfoData is supplied, the driver must be a member of the driver list for the device that is specified by DeviceInfoData. Otherwise, the driver must be a member of the global class driver list for DeviceInfoSet.

DriverInstallParams [out]

A pointer to an SP_DRVINSTALL_PARAMS structure to receive the installation parameters for this driver.

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

Setupapi.lib

See also

SetupDiSetDriverInstallParams

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft