BOOLEAN
SetupDiSetSelectedDevice(
IN HDEVINFO DeviceInfoSet,
IN PSP_DEVINFO_DATA DeviceInfoData
);
SetupDiSetSelectedDevice sets the specified device information element to be the currently-selected member of a device information set. This function is typically used by an installation wizard.
The function returns TRUE if it is successful. Otherwise it returns FALSE and the logged error can be retrieved with a call to GetLastError.