开发者

How could get scsi HDD serial number?

开发者 https://www.devze.com 2022-12-29 22:58 出处:网络
I wanna get the serial number of a scsi harddisk, but it makes an error! I work with VC++ on Microsof开发者_如何转开发t Windows XP.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消