about disk serial number
Posted on 2002-07-13
I wrote a program,I want to collect the hard disk No , the code i use is as follows:
GetVolumeInformation(PChar(Disk + ':\'),
SerialNumber := Format('%.4X-%.4X', [HiWord(VolumeSerialNumber), LoWord(VolumeSerialNumber)]);
But I found whenever the disk is formatted, the volume number will be changed, how can i get a disk information which will be unique and never be changed.