Platform SDK: Hardware

SetupDiDeleteDeviceInterfaceRegKey

The SetupDiDeleteDeviceInterfaceRegKey function deletes the registry subkey used by applications and drivers to store information specific to a device interface instance.

BOOL SetupDiDeleteDeviceInterfaceRegKey(
  HDEVINFO DeviceInfoSet,
  PSP_DEVICE_INTERFACE_DATA DeviceInterfaceData,
  DWORD Reserved
);

Parameters

DeviceInfoSet
[in] Pointer to a device information set containing the interface and its underlying device. The device information set must not contain remote devices.
DeviceInterfaceData
[in] Pointer to a structure that identifies the device interface. This structure is typically returned by the SetupDiEnumDeviceInterfaces function.
Reserved
Reserved; must be zero.

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 SetupDiDeleteDeviceInterfaceRegKey function deletes the subkey used by drivers and applications to store information about the device interface instance. This subkey was created by the SetupDiCreateDeviceInterfaceRegKey function or by the driver. The SetupDiDeleteDeviceInterfaceRegKey function does not affect the main registry key for the device interface instance nor any other subkeys that may have been created.

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, SetupDiCreateDeviceInterfaceRegKey, SetupDiEnumDeviceInterfaces