SetupDiDeleteDeviceInterfaceData function (setupapi.h)
The SetupDiDeleteDeviceInterfaceData function deletes a device interface from a device information set.
Syntax
WINSETUPAPI BOOL SetupDiDeleteDeviceInterfaceData(
[in] HDEVINFO DeviceInfoSet,
[in] PSP_DEVICE_INTERFACE_DATA DeviceInterfaceData
);
Parameters
[in] DeviceInfoSet
A pointer to the device information set that contains the interface to delete. This handle is typically returned by SetupDiGetClassDevs.
[in] 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
Requirement | Value |
---|---|
Minimum supported client | 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 |