BOOLEAN
SetupDiSelectDevice(
IN HDEVINFO DeviceInfoSet,
IN PSP_DEVINFO_DATA DeviceInfoData /* optional */
);
SetupDiSelectDevice is the default handler for the DIF_SELECTDEVICE class installation request.
The function returns TRUE if it is successful. Otherwise it returns FALSE and the logged error can be retrieved by a call to GetLastError.
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.