This topic has not yet been rated - Rate this topic

SetupDiDeleteDeviceInterfaceData function

The SetupDiDeleteDeviceInterfaceData function deletes a device interface from a device information set.

Syntax

BOOL SetupDiDeleteDeviceInterfaceData(
  __in  HDEVINFO DeviceInfoSet,
  __in  PSP_DEVICE_INTERFACE_DATA DeviceInterfaceData
);

Parameters

DeviceInfoSet [in]

A pointer to the device information set that contains the interface to delete. This handle is typically returned by SetupDiGetClassDevs.

DeviceInterfaceData [in]

A pointer to an SP_DEVICE_INTERFACE_DATA structure that specifies the interface in DeviceInfoSet to delete. This structure is typically returned by SetupDiEnumDeviceInterfaces.

Return value

SetupDiDeleteDeviceInterfaceData returns TRUE if the function completed without error. If the function completed with an error, it returns FALSE and the error code for the failure can be retrieved by calling GetLastError.

Remarks

SetupDiDeleteDeviceInterfaceData deletes a device interface element from a device information set. This function has no effect on the device interface or the underlying device.

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

SetupDiEnumDeviceInterfaces
SetupDiGetClassDevs
SetupDiOpenDeviceInterface
SetupDiRemoveDeviceInterface

 

 

Send comments about this topic to Microsoft

Build date: 4/3/2012

Did you find this helpful?
(1500 characters remaining)