Exist two wmi classes wich exposes a property called SerialNumber which store the Number allocated by the manufacturer to identify the physical media. These classes are Win32_DiskDrive and Win32_PhysicalMedia.to access the SerialNumber property of these classes you must know the DeviceId of the Disk which is something like this. Getting unique disk serial number with delphi I've seen various ways how to get the unique disk serial number (a format independent ID) proposed by experts, but none of these said solutions was in Delphi (but C++, Assembly and VB).

Reading Hard Disk Serial Hi Everybody, Does anyone knows how to read the haard disk sreial for protection purposes and also if anybody sees a better way for protection using key registration please,kindly , help me Thanks |
Re:Reading Hard Disk SerialHARDDRIVE SERIAL NUMBER procedure TForm1.Button1Click(Sender: TObject); QuoteKhaled Mnasour wrote: Charles Hacker Lecturer in Electronics and Computing School of Engineering Griffith University - Gold Coast |
Re:Reading Hard Disk SerialThe GetVolumeInformation function, as Charles described, doesn't work with D4. How change it ? Tom QuoteCharles Hacker <reply..@borland.newsgroups> wrote in message Quote> HARDDRIVE SERIAL NUMBER |
Re:Reading Hard Disk Serial Have a look at www.entechtaiwan.com/tools.htm Regards, Dejan. QuoteKhaled Mnasour wrote: Regards, Dejan M. CEO Alfa Co. E-mail : de..@alfaunits.co.yu ICQ# : 56570367 Professional file&system related components and libraries for Win32 developers. Alfa Units - #1 file and system handling units for Delphi. Alfa File Monitor - #1 file monitoring system for Win32 developers. Alfa Interceptor - #1 file protection and hiding system for Win32 developers. |
Re:Reading Hard Disk SerialDon't read the hard drive serial number, first of all, if the routine you aquire has timing problems, then you can{*word*222}up the data on your drive. Because you are accessing the controller directlly and if a data transfer was in progress, that would NOT be a good idea :) That is why programs that read the serial number seem to take a few seconds, because they pause in case of any delayed caching that may be going on, then they lock it and then they read it. Personally, there are other info you can read that would be AS specific as a HD Davie QuoteKhaled Mnasour wrote: |
Re:Reading Hard Disk SerialThat's the volume serial number which 'i think' is different from what he wants. He probably wants the 'manufacturer' serial number. Davie QuoteCharles Hacker wrote: |
1. HARD DISK - MODEL NO / SERIAL NO / FIRMWARE
2. Hard disk serial no.
3. Hard Disk Serial Number
4. Setting media (hard disk) serial number
5. Hard disk serial
6. Hard disk manufacturer's serial number
7. Hard disk serial number?

8. Hard disk serial
9. Get Bios or Hard Disk Serial Number
10. Hard Disk Serial Number Problems..