How to Get Driver Install Date?
How do you get the install date of a driver using the Setup API?
(This is pretty much the same as this question, except that I'm looking for a solution with the Setup API, not WMI.)
The data I need is located in a value in a key like this:
HKLM\System\CurrentControlSet\ENUM\USB\VID_????\PID_????
\????????????????\Properties\{83da6326-97a6开发者_JAVA技巧-4088-9453-a1923f573b29}\00000064
However, the Properties
key is by default inaccessible due to permissions, and I'm sure there's a better way to do this with something like SetupDiGetDeviceRegistryProperty
, but I can't figure out how. Device manager does this really easily in the Details tab (it looks as though it's as easy as getting CM_DRP_INSTALL_STATE
), so it's gotta be easy...
Taking a peek at the XP registry, it seems like the information isn't even there, so it doesn't even do what I needed.
精彩评论