Get Hard Drive Serial Number Delphi

Buffer size in bytes cBufferSize: DWORD; // Structure with drive register values. IrDriveRegs: TIDERegs; // Physical drive number to send command to (0,1,2,3).

Delphi

Michael Gurnett wrote: >Sanepidrezhim procedurnogo kabineta. Is there an easy way to obtain the hard drive serial number (the factory ID, not the one created by windows). Google is your friend. The only 'easy' way would be to download a library that does it for you. DiskID32: Code and interesting links near bottom of page Otherwise, you could use C# and wmi_HD Then, there's this: Win32_PhysicalMedia Class http://msdn.microsoft.com/en-us/library/aa394346%28VS.85%29.aspx.