Windows Driver Kit: Device Installation
DEVPKEY_Device_Legacy
The DEVPKEY_Device_Legacy device property represents a Boolean value that indicates whether a device is a root-enumerated device that the Plug and Play (PnP) manager automatically created when the non-PnP driver for the device was loaded.
| Property key | DEVPKEY_Device_Legacy |
| Property-data-type identifier | DEVPROP_TYPE_BOOLEAN |
| Property access | Read-only access by installation applications and installers |
| Localized? | No |
Comments
The PnP manger sets the value of DEVPKEY_Device_Reported to DEVPROP_TRUE if the PnP manager automatically created the device as a root-enumerated device when the non-PnP driver for the device was loaded. Otherwise, the PnP manager sets the value of the property to DEVPROP_FALSE.
You can call SetupDiGetDeviceProperty to retrieve the value of DEVPKEY_Device_Legacy.
Windows Server 2003, Microsoft Windows XP, and Windows 2000 do not support this property.
Requirements
Versions: Available in Windows Vista and later versions of Windows.
Headers: Declared in Devpkey.h. Include Devpkey.h.
See Also
SetupDiGetDeviceProperty