INF File Entry Values That Modify Device Properties
The following are the INF file entry values that modify device properties on Windows Vista and later:
INF file entry values that set corresponding system-defined device properties.
INF AddReg directives and INF DelReg directives that set or delete custom registry entry values
INF AddProperty directives and INF DelProperty directives that set and delete device properties. For more information about how to use these directives, see Using the INF AddProperty Directive and the INF DelProperty Directive.
Some INF file entry values provide information that Windows uses to set corresponding system-defined device properties. The following are a few examples of device properties whose values are supplied by such INF file entry values:
Many system-defined device properties have corresponding system-defined registry entry values. For a device property that has a corresponding registry entry value, using an INF AddReg directive to add the corresponding registry entry value sets the corresponding device property. Similarly, using an INF DelReg directive to delete a registry entry value, deletes the corresponding device property.
For example, the following AddReg directive would set the DeviceCharacteristics registry entry value and the corresponding DEVPKEY_Device_Characteristics property for a device instance that is installed by the "Abc_Device_Install.HW" section.
[Abc_Device_Install.HW] ... AddReg = Xxx_AddReg ... [Xxx_AddReg] ... [HKR,,DeviceCharacteristics,0x10001,0x00000001 ]
Windows Vista and later versions support using the INF AddReg directive and the INF DelReg directive to modify custom registry entry values that represent custom device properties. However, creating custom registry entry values to represent device properties is not supported by the unified device property model. If you create custom registry entry values for a device, you must manage the registry entry values in the same manner as you manage them on Windows Server 2003, Windows XP, and Windows 2000. To simplify the management of custom device properties, you should create device property keys to represent custom device properties instead of creating custom registry entry values.