Hard Disk Serial Number Delphi

Posted on -
Hard Disk Serial Number Delphi Rating: 4,3/5 9561 reviews

I am trying to make delphi program Server And Client so To Secure my App and To Make Sure all user are under control i should give them a unique Key that can't be change to not lose them Handle, So i think it should be HDD Serial Number + Bios SN, but i remember that Bios Can Be Change When remove motherboard Battery so it will not be work. Get Real HDD Serial Number with Delphi. I am trying to make delphi program Server And Client so To Secure my App and To Make Sure all. TGetDiskSerial VCL v4.20 - Easy to read the unique serial number of hard disk in your Delphi projects. Harddisk serial number delphi, ipad 2 refurbished serial number, arcsoft showbiz dvd 5 keygen. Board index » delphi » Help in a hard disk serial number problem. Vassilis Samaltanos. Delphi Developer. Tue, 14 Nov 2000 03:00:00 GMT. Help in a hard disk serial number problem. I am using the GetVolumeInformation function in order to get the Hard Disk serial Number.

  1. Get Hard Drive Serial Number Delphi
  2. Windows Hard Disk Serial Number
Active5 years, 11 months ago

At first it may seems it is very easy question and some body may be trying to give me advice to try Google, it may be so.But for me it is very hard I have try Google, Stack Overflow and can’t find any good solution.

Just want to get Serial number of Hard Disk or Hard Drive using C#

Please read carefully: serial number of Hard Disk, but not Serial number of Volume of Hard Disk (e.g. C, D, E, etc).

Get Hard Drive Serial Number Delphi

For getting serial no of volume of hard disk I have found solution on net and its work well but problem is with Getting serial number of Hard Disk.

Windows Hard Disk Serial Number

Some body may trying to make this question as possible copy of below Stake Overflow question or may suggest link of that question. But it is not

And not any below question provides good solution for this problem in C#:

Community
LookupPriteshPritesh
1,6348 gold badges43 silver badges69 bronze badges

5 Answers

This is the final solution:

write this much code:

Don't forgot to add reference to the DriveInfoEx.dll.

abatishchev
72.1k70 gold badges269 silver badges404 bronze badges
PriteshPritesh
1,6348 gold badges43 silver badges69 bronze badges

see this

just download demo from there and select 'data storage' tab and select Win32_DiskDrive from this you will get information all the Disk drives(HardDisk) mention below and see one property 'SerialNumber' after sectorpertrack and before signature property...

asharajayasharajay

The best way I found is:

  1. Download the .dll from here

  2. Add the .dll to your project

  3. Add this code:

    [DllImportAttribute('HardwareIDExtractorC.dll')]
    public static extern String GetIDESerialNumber(byte DriveNumber);

  4. Call the hard disk ID from where you need it:

    GetIDESerialNumber(0).Replace(' ', string.Empty);

Note: Go to the properties of the dll in explorer and set Build Action to Embedded Resource.

Scott
18.8k7 gold badges50 silver badges65 bronze badges
Azhar BandriAzhar Bandri
ZibriZibri
4,8732 gold badges30 silver badges32 bronze badges
Hard Disk Serial Number Delphi

I took a look with ILSpy (http://ilspy.net/) to System.IO.DriveInfo class and I figured outthis code that seems to work fine :

MassimoMassimo

Not the answer you're looking for? Browse other questions tagged c#.nethard-driveserial-number or ask your own question.