如何使用C ++在Windows设备管理器中访问信息? [英] How do I access information in Windows Device Manager in C++?

查看:220
本文介绍了如何使用C ++在Windows设备管理器中访问信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在C ++代码中导入类似设备管理器的设备详细信息?

How do I import Device Manager-like details of devices in my C++ code?

我已经尝试过Setupapi例程,但是这些例程没有给我提供类似于设备管理器的设备属性值的详细信息.

I have tried Setupapi routines, but these do not give me Device Manager-like details of the device property value.

推荐答案

可以使用称为Windows Management Instrumentation(WMI)的方法.

Something called Windows Management Instrumentation (WMI) can be used for this.

这篇关于如何使用C ++在Windows设备管理器中访问信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆