SetupDiInstallDriverFiles

BOOLEAN
SetupDiInstallDriverFiles(
IN HDEVINFO DeviceInfoSet,
IN PSP_DEVINFO_DATA DeviceInfoData /* optional */
);

SetupDiInstallDriverFiles is the default handler for the DIF_INSTALLDEVICEFILES class installation request. It is similar to the SetupDiInstallDevice function; however, it performs only the file copy commands in an INF file Install section. The SetupDiInstallDriverFiles function does not configure the device.

Parameters

DeviceInfoSet

Supplies a handle to the device information set for which driver files are to be installed.

DeviceInfoData

Supplies a pointer to an SP_DEVINFO_DATA structure indicating a particular member for which to perform file installation.

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

A driver must be selected for the specified device information set or element before this function is called.

See Also

SetupDiCallClassInstaller, SetupDiInstallDevice