Hard Disk Serial Number Delphi
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.
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#:
5 Answers
This is the final solution:
write this much code:
Don't forgot to add reference to the DriveInfoEx.dll
.
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...
The best way I found is:
Download the .dll from here
Add the .dll to your project
Add this code:
[DllImportAttribute('HardwareIDExtractorC.dll')]
public static extern String GetIDESerialNumber(byte DriveNumber);
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
.
I took a look with ILSpy (http://ilspy.net/) to System.IO.DriveInfo class and I figured outthis code that seems to work fine :