DEVPKEY_Device_DriverVersion

The PKEY_Device_DriverVersion device property represents the version of the driver that is currently installed on a device instance.

Attribute Value

Property key

DEVPKEY_Device_DriverVersion

Property-data-type identifier

DEVPROP_TYPE_STRING

Property access

Read-only access by installation applications and installers

Corresponding registry value identifier and registry value name

REGSTR_VAL_DRIVERVERSION

DriverVersion

Localized?

No

Remarks

The value of DEVPKEY_Device_DriverVersion is supplied by the INF DriverVer directive that is included in the INF Version section of an INF file that installs a device or is supplied by a device-specific INF DriverVer directive that is included in the INF DDInstall section that installs a device.

You can call CM_Get_DevNode_Property or SetupDiGetDeviceProperty to retrieve the value of PKEY_Device_DriverVersion.

Windows Server 2003, Windows XP, and Windows 2000 support this property, but do not support the DEVPKEY_Device_DriverVersion property key. On these earlier versions of Windows, you can access the value of this property by accessing the corresponding DriverVersion registry value under the software key for the device instance. For information about how to access this property value on these earlier versions of Windows, see Accessing Device Driver Properties.

Requirements

Version: Windows Vista and later versions of Windows Header: Devpkey.h (include Devpkey.h)

See also

INF DDInstall Section

INF DriverVer Directive

INF Version Section

SetupDiGetDeviceProperty