SetupDiCancelDriverInfoSearch

BOOLEAN
    SetupDiCancelDriverInfoSearch(
        IN HDEVINFO DeviceInfoSet
        );

SetupDiCancelDriverInfoSearch cancels a driver list search that is currently underway in a different thread.

Parameters
DeviceInfoSet
Supplies a handle to the device information set for which a driver list is being built.
Return Value

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.

Comments

SetupDiCancelDriverInfoSearch is a synchronous call; therefore, it does not return until the driver search thread responds to the termination request.

See Also

SetupDIBuildDriverInfoList