SetupDiDeleteDeviceInterfaceData function

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

Syntax

WINSETUPAPI BOOL SetupDiDeleteDeviceInterfaceData(
  HDEVINFO                  DeviceInfoSet,
  PSP_DEVICE_INTERFACE_DATA DeviceInterfaceData
);

Parameters

DeviceInfoSet

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

DeviceInterfaceData

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

   
Windows version Available in Microsoft Windows 2000 and later versions of Windows.
Target Platform Desktop
Header setupapi.h (include Setupapi.h)
Library Setupapi.lib
DLL Setupapi.dll

See Also

SetupDiEnumDeviceInterfaces

SetupDiGetClassDevs

SetupDiOpenDeviceInterface

SetupDiRemoveDeviceInterface