LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

is there anyway to get serial number of harddrive?

I want to create an application which should work only on certain computers and for that I want to get hard drive serial number.
Do I have any other option?

Thanks.
Sheetal
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 1 of 2
(3,043 Views)
There really is (IMO) no good option for this.

Using Win API (kernel32.dll) for can find a function called GetVolumeInformation which will give you the Volume Serial Number, but this should be avoided if you can help it as every time we format the same hard drive, a new Volume Serial Number is generated. What you would really want is the Manufacturers Serial Number for the hard drive but thats much harder to get. You have to use a WMI (Windows Machine Interface) in order to get this.
0 Kudos
Message 2 of 2
(3,040 Views)