Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想得到一个scsi硬盘的序列号,但它出错了!我在 Microsoft Windows XP 上使用 VC++。
我必须为此做些什么?
看看这里了解如何使用 C++ 查询 WMI:http: //msdn.microsoft.com/en-us/library/aa394558%28VS.85%29.aspx
您需要查找Win32_DiskDrive磁盘,然后检索该SerialNumber值。
Win32_DiskDrive
SerialNumber