The operating system’s device tree can be enumerated by looking it up directly in the Registry under the key HKEY_DYN_DATA\Config Manager\Enum
. Each direct subkey corresponds to a loaded device driver; in particular the HardWareKey
value of each subkey contains an identifier, which for PCI devices usually contains VID/PID pairs, and usually corresponds to a subkey of HKEY_LOCAL_MACHINE\Enum
. In the latter key’s DeviceDesc
value, you can look up the device name as it appears in Device Manager. The difference between those keys is pretty straightforward: HKEY_LOCAL_MACHINE\Enum
covers all installed drivers, while HKEY_DYN_DATA\Config Manager\Enum
only covers drivers that are currently loaded. This is best seen when the system is running in Safe Mode.