scanHardware XML Element

[DIFx is deprecated, for more info, see DIFx Guidelines.]

The scanHardware XML element is an empty element that sets the scanHardware flag to ON. Setting this flag to ON configures DPInst to install a driver package for a Plug and Play (PnP) function driver only if the driver package matches a device that is configured in a computer and the driver package is a better match for the device than the driver package that is currently installed on the device.

Element Tag

<scanHardware>

XML Attributes

None

Element Information

Parent elements

dpinst

Child elements

None permitted

Data contents

None permitted

Duplicate child elements

None permitted

Remarks

By default, the scanHardware flag is set to OFF. You can set the scanHardware flag to ON by including an scanHardware XML element as a child element of a dpinst XML element in a DPInst descriptor file or by using the /sh command-line switch.

The following code example demonstrates a scanHardware element.

<dpinst>
  ...
  <scanHardware/>
  ...
</dpinst>