I wanna get the serial number of a scsi harddisk, but it makes an error! I work with VC++ on Microsoft Windows XP.
What must i do for that?
I wanna get the serial number of a scsi harddisk, but it makes an error! I work with VC++ on Microsoft 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.