如何获取驱动程序安装日期?
如何使用安装 API 获取驱动程序的安装日期?
(这与 这个问题,除了我正在寻找使用 Setup API 的解决方案,而不是 WMI。)
我需要的数据位于一个值中像这样的键:
HKLM\System\CurrentControlSet\ENUM\USB\VID_????\PID_????
\????????????????\Properties\{83da6326-97a6-4088-9453-a1923f573b29}\00000064
然而,由于权限的原因,Properties
键默认无法访问,我确信有更好的方法可以使用 SetupDiGetDeviceRegistryProperty
之类的方法来执行此操作,但我不知道怎么办。设备管理器在“详细信息”选项卡中非常轻松地完成此操作(看起来就像获取CM_DRP_INSTALL_STATE
一样简单),所以它一定很容易......
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-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...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看了一下XP注册表,似乎信息根本不存在,所以它甚至没有做我需要的事情。
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.