SetupDiSelectDevice

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

SetupDiSelectDevice is the default handler for the DIF_SELECTDEVICE class installation request.

Parameters

DeviceInfoSet

Supplies a handle to the device information set containing the device for which a driver is to be selected.

DeviceInfoData

Supplies a pointer to an SP_DEVINFO_DATA structure that indicates the member of the device information set for which a driver is to be selected. If this parameter is not specified, a driver is selected for the global class driver list associated with the device information set.

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.

Comments

The function handles the user interface that allows the user to select a driver for the device specified. By setting the Flags field of the SP_DEVINSTALL_PARAMS structure, the caller can specify special handling of the user interface such as to allow users to select a driver from an OEM installation disk.

See Also

SetupDiCallClassInstaller, SP_DEVINSTALL_PARAMS