Platform SDK: Hardware |
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 );
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.
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.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 98.
Header: Declared in Setupapi.h.
Library: Use Setupapi.lib.
Device Management Overview, Device Management Functions, SetupDiCreateDeviceInterfaceRegKey, SetupDiEnumDeviceInterfaces