Setting Device Object Registry Properties During Installation

To set device object properties during installation, you must provide an INF file that specifies the properties. You can specify device object properties for either a device, or a device setup class.

These are specified as follows.

  • For an individual device, properties are set in the add-registry-section for the device. The INF AddReg directive within the device's DDInstall.HW section specifies the add-registry-section for the device.

  • For a device setup class, properties are set in the add-registry-section for the device setup class. The INF AddReg directive within the ClassInstall32 section for the class specifies the add-registry-section for the class.

Within an add-registry-section, the following keywords can be used to specify the individual device object property to set.

Keyword Device object property

DeviceType

Device type

DeviceCharacteristics

Device characteristics

Exclusive

Exclusive

Security

Security descriptor

For more information about using these keywords, see INF AddReg Directive.

The settings can be set by a user-mode component by using the device installation functions. For more information, see Setting Device Object Registry Properties After Installation.