Platform SDK: Hardware |
The SetupDiCreateDeviceInterfaceRegKey function creates a registry key for storing information about a device interface instance.
HKEY SetupDiCreateDeviceInterfaceRegKey( HDEVINFO DeviceInfoSet, PSP_DEVICE_INTERFACE_DATA DeviceInterfaceData, DWORD Reserved, REGSAM samDesired, HINF InfHandle, PCTSTR InfSectionName );
If the function succeeds, it returns a handle to the newly created registry key.
If the function fails, it returns INVALID_HANDLE_VALUE. To get extended error information, call GetLastError.
The SetupDiCreateDeviceInterfaceRegKey function creates a nonvolatile subkey of the registry key for the specified device interface. This subkey is used to store private configuration data for the device interface.
To close the handle returned from this function, call the RegCloseKey function.
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, SetupDiDeleteDeviceInterfaceRegKey, SetupDiOpenDeviceInterfaceRegKey, SP_DEVICE_INTERFACE_DATA