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