如何在Windows中使用C++获取硬件信息?
如何在c++中获取硬件信息(例如cpuId、biosId、diskId、baseId和videoId)?
谁能给我一个视觉工作室项目的例子吗?
How to get hardware information (for example cpuId, biosId, diskId, baseId and videoId) in c++?
Can anyone give me an example visual studio project for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
获取磁盘 ID(序列号?卷 ID?)或 CPU ID 或...的方法有很多种。我想你想建立计算机的指纹。
最方便的方法是使用 Windows Management Instrumentation (WMI) 并访问 DMI 。首先请参阅 MSDN。
有关如何获取以主板序列号为例。
There are very different ways to get a disk id (serial number? volume id?) or a CPU ID or ... . I think you want to build a fingerprint of the computer.
The most comfortable way is to use Windows Management Instrumentation (WMI) and access the DMI . See MSDN for a start.
See MSDN here for a hint how to get the mainboard serial number as an example.
GetSystemInfo 将帮助您开始使用CPU信息。每个子系统一般都有不同的查询功能。
GetSystemInfo will get you started with the CPU information. Each subsystem generally has different query functions.
标准 C++ 不为您提供此功能。这些API可能由操作系统或硬件驱动程序提供。
The standard c++ don`t provide this for you. These api may be provided by os or hardware driver.