This topic has not yet been rated - Rate this topic

SetupDiCancelDriverInfoSearch function

The SetupDiCancelDriverInfoSearch function cancels a driver list search that is currently in progress in a different thread.

Syntax

BOOL SetupDiCancelDriverInfoSearch(
  __in  HDEVINFO DeviceInfoSet
);

Parameters

DeviceInfoSet [in]

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.

Remarks

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

Requirements

Version

Available in Microsoft Windows 2000 and later versions of Windows.

Header

Setupapi.h (include Setupapi.h)

Library

Contained in Setupapi.lib. Link to Setupapi.lib.

See also

SetupDiBuildDriverInfoList

 

 

Send comments about this topic to Microsoft

Build date: 4/3/2012

Did you find this helpful?
(1500 characters remaining)