The SetupDiCancelDriverInfoSearch function cancels a driver list search that is currently in progress in a different thread.
WINSETUPAPI BOOL SetupDiCancelDriverInfoSearch( HDEVINFO DeviceInfoSet );
A handle to the device information set for which a driver list is being built.
If a driver list search is underway for the specified device information set when this function is called, the search is terminated. SetupDiCancelDriverInfoSearch returns TRUE when the termination is confirmed. Otherwise, it returns FALSE and a call to GetLastError returns ERROR_INVALID_HANDLE.
SetupDiCancelDriverInfoSearch is a synchronous call. Therefore, it does not return until the driver search thread responds to the termination request.
|Minimum supported client||Available in Microsoft Windows 2000 and later versions of Windows.|
|Header||setupapi.h (include Setupapi.h)|