Accessing Device Interface Properties
In Windows Vista and later versions of Windows, applications and installers can access device interface properties by calling the following SetupAPI functions:
The SetupDiGetDeviceInterfacePropertyKeys function retrieves an array of the device interface property keys that identify the device interface properties that are currently set for a device interface instance. For information about how to determine what properties are set for a device interface, see Determining Which Properties are Set for a Device Interface.
The SetupDiGetDeviceInterfaceProperty function retrieves a device interface property that is set for a device interface.
The SetupDiSetDeviceInterfaceProperty function sets a device interface property for a device interface.
For information about how to access device interface properties on Windows Server 2003, Windows XP, and Windows 2000, see Accessing Device Interface Properties.