DEVPKEY_Device_Driver

The DEVPKEY_Device_Driver device property represents the registry entry name of the driver key for a device instance. Driver key, also known as the driver's software key, is a device-specific registry state location for storing driver-specific information. For information on interpreting a driver key, see Introduction to Registry Keys for Drivers.

Attribute Value

Property key

DEVPKEY_Device_Driver

Property-data-type identifier

DEVPROP_TYPE_STRING

Property access

Read-only access by installation applications and installers

Corresponding SPDRP_Xxx identifier

SPDRP_DRIVER

Localized?

No

Remarks

Windows sets the value of DEVPKEY_Device_Driver after it installs a driver for device.

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

Windows Server 2003, Windows XP, and Windows 2000 support this property, but do not support the DEVPKEY_Device_Driver property key. Instead, you can use the corresponding SPDRP_DRIVER identifier to access the value of the property on these earlier versions of Windows. For information about how to access this property value on these earlier versions of Windows, see Accessing Device Instance SPDRP_Xxx Properties.

Requirements

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

See also

SetupDiGetDeviceProperty