Expand Minimize

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

Setupapi.lib

See also

SetupDiEnumDeviceInterfaces
SetupDiGetClassDevs
SetupDiOpenDeviceInterface
SetupDiRemoveDeviceInterface

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft