Platform SDK: Hardware

SetupDiDeleteDeviceInterfaceData

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

BOOL SetupDiDeleteDeviceInterfaceData(
  HDEVINFO DeviceInfoSet,
  PSP_DEVICE_INTERFACE_DATA DeviceInterfaceData
);

Parameters

DeviceInfoSet
[in] Pointer to the device information set that contains the interface and its underlying device. This handle is typically returned by the SetupDiGetClassDevs or SetupDiGetClassDevsEx function.
DeviceInterfaceData
[in] Pointer to an SP_DEVICE_INTERFACE_DATA structure that identifies the interface to be deleted. This structure is typically returned by the SetupDiEnumDeviceInterfaces function.

Return Values

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

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

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 98.
  Header: Declared in Setupapi.h.
  Library: Use Setupapi.lib.

See Also

Device Management Overview, Device Management Functions, SetupDiEnumDeviceInterfaces, SetupDiGetClassDevs, SetupDiGetClassDevsEx