How could get scsi HDD serial number?
I wanna get the serial number of a scsi harddisk, but it makes an error! I work with VC++ on Microsof开发者_如何转开发t Windows XP.
What must i do for that?
Take a look here to find out how to query WMI using C++: http://msdn.microsoft.com/en-us/library/aa394558%28VS.85%29.aspx
You'll need to look in Win32_DiskDrive
for the disk and then retrieve the SerialNumber
value.
精彩评论