Export (0) Print
Expand All
Expand Minimize

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

Target platform

Desktop

Version

Available in Microsoft Windows 2000 and later versions of Windows.

Header

Setupapi.h (include Setupapi.h)

Library

Setupapi.lib

DLL

Setupapi.dll

See also

SetupDiBuildDriverInfoList

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft