c++ Is there any windows API for listing device drivers shown in the windows driver manager console?

1.7k Views Asked by At

I want to list device drivers as shown in the device drivers(devmgmt.msc) window. SetupDiGetClassDevs() API provides basic informations about the device. But I need more information like driver install date, driver Signer.

1

There are 1 best solutions below

1
Ben On

You can interrogate just about every aspect of the system configuration or running state using WMI - Windows Management Instrumentation.

There is a command-line tool, wmic, which will do this, and also a PowerShell cmdlet, Get-WmiObject.

E.g. to list devices:

Get-WmiObject -Class CIM_LogicalDevice

Accessing WMI from C++: