10/30/2020 Get Hard Drive Serial Number Delphi
HiI want to retrieve HDD unique (hardware) serial number.I use some functions but in Windows Seven or Vista they don't work correctly because of admin right.Is it possible retrieve it without run as Administrator?
Active6 years, 2 months ago
Volume Serial Number Editor. Volume Serial Number Editor allows you to modify your disk drive's volume serial number (not hard disk's physical serial number which you can find at back of your hard disk) without reformatting your hard drive. Volume Serial Number Editor supports NTFS, FAT and FAT32 file system. Jul 20, 2000 Delphi 5. How can I get an unique number for a specific PC, for example HDD Serial Number or Motherboard serial number?
Sertac Akyuz
49.4k33 gold badges7979 silver badges137137 bronze badges
AminAmin
79522 gold badges88 silver badges2323 bronze badges
5 Answers
Following the links in the question comments Sertac posted, I came across this interesting C++ question, where Fredou answered with a nice link to a codeproject example showing how to do this in .NET, which in turn was based on a link to Borland C++ code and article.
The cool thing is that this C++ code works as a non-administrator user too!
Now you need someone to help you translate this C++ code to Delphi.
Edit: Found a Delphi unit that does this for you.
I wrote some sample use for it:
Unit from http://www.delphipraxis.net/564756-post28.html
Edit: RAID configurations require special provisions.
For instance, I got a RAID system with multiple RAID 5 array; only the first one displays, and it does not show the drive serial numbers, but the serial number of the RAID array:
--jeroen
Community♦
Jeroen Wiert PluimersJeroen Wiert Pluimers
20.9k55 gold badges5353 silver badges133133 bronze badges
You can use the
WMI (Windows Management Instrumentation) to get information related to windows hardware.
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 .PHYSICALDRIVE0 . Another way is use a association class which link the Physical drive with the logical drive (C,D,E)
so you must find this link previous to obtain the serial number. the sequence to find this association is like this.
Win32_DiskPartition ->Win32_LogicalDiskToPartition ->Win32_DiskDrive
Note 1 : The
SerialNumber property for the Win32_DiskDrive class does not exist in Windows Server 2003, Windows XP, Windows 2000, and Windows NT 4.0, so how you are talking about use Windows Vista or Windows 7, will work ok for you.
Note 2 : The code does not require a administrator account to run.
check this code
RRUZRRUZ
125k1313 gold badges314314 silver badges446446 bronze badges
Here is another DiskId32 translation from C++ to Delphi by Victor Derevyanko
project:http://code.google.com/p/dvsrc/
Because the first method (WithZeroRights) doesn't work for me, I wrote another for ReadIdeDriveAsScsiDriveInNT method:
Sample usage:
This works great with my WD disk.
KachwahedKachwahed
I found this code, it is fixed one and working fine with me on windows 7 64
and this his all work
wahm sarabwahm sarab
Posting this purely for completeness sake, and to possibly satisfy those interested or die hard hardware fanatics.
I do not have a Pascal compiler at my disposal to test these routines on current Windows systems, but I do know this code worked back in the DOS era. Maybe it still works from a command prompt window.
Pascal code:
Please feel free to update this answer in order to get it working (if possible at all) in Delphi.
NGLNNGLN
37.8k77 gold badges9191 silver badges160160 bronze badges
Not the answer you're looking for? Browse other questions tagged delphihardwaredelphi-7 or ask your own question.
Multimedia |Business |Messengers |Desktop |Development |Education |Games |Graphics |Home |Networking |Security |Servers |Utilities |Web Dev| Other
Sort by: Relevance
Drive Serial Number Editor
Drive Serial Number Editor can modify your disk drive's Volume Serial Number (not hard disk's physical serial which you can find at back of your hard disk. Drive Volume Serial Number Editor has been released with improvements and fixes.System RequirementsWindows 98/NT/2000/XP/2003/Vista/7
Get Hard Drive Serial Numbers SoftwareHard Drive Serial Number Lookup
Lookup the serial number assigned to your hard drives.
Brilliant Code for Delphi
Brilliant Code for Delphi is a set of tools that lets you write code and read it in Delphi quickly and comfortably. It includes features such as enhanced code highlighting that gives you a better perceiving of code and optimized navigation and search functions that saves your time when you're searching for needed location in the program.
GetDiskSerial DLL
The GetDiskSerial.DLL is a standard 32-bit DLL file. You can use it to read the serial number of hard disk easily. As we all know, this serial number is unique in the world. So this DLL is of great use, for example, you can use this serial number to creat an encrypt number.
SureServo PRO
SureServo Pro™ is the configuration software for the SureServo™ drives. With SureServo Pro installed, the personal computer may be directly connected to the servo drive's serial port via the PC's RS-232 serial port. A six-foot configuration cable (SVC-PCCFG-CBL, $19) is available to make the connection between the drive serial port and PC DB-9 serial port simple.
Get System Info ActiveXGet Hard Drive Serial Number Delphi Number
Get System Info ActiveX is an ActiveX component(ActiveX control) for developer that can gain the system information. You can use it to read the serial number of hard disk or CPUID easily.
HardDiskSerial DLL
HardDiskSerial DLL is a standard Windows DLL. You can use it to read the serial number of hard disk easily. As we all know, this serial number is unique in the world.
GPSTime
GPSTime is a small freeware applet that corrects your PC clock using GPS.If you have a GPS receiver with a serial output port or bluetooth giving MEA-0183 compatible data, then GPSTime will read the serial data and make your PC clock accurate to the second.
Volume Serial Number Editor
Volume Serial Number Editor allows you to modify your disk drive's volume serial number (not hard disk's physical serial number which you can find at back of your hard disk) without reformatting your hard drive. Volume Serial Number Editor supports NTFS, FAT and FAT32 file system.
Read-a-Card
Read-a-Card is a software utility for reading ID data from most contactless RFID cards, proximity tokens and tags.Main features:- View a contactless smartcard’s unique ID and automatically insert it into text input fields.- Insert a custom prefix and suffix when performing RFID ‘keyboard wedge’ functions.
Notebook Manager
Notebook Manager is a management software that allows you to control various hardware and software settings on your personal laptop computer. The Notebook Manager contains 9 functions which allows you to view and/or config your laptop computer's BIOS settings and Microsoft Windows functions.
TachoSpeed
Tachospeed is a program that can be used for automatic reading of drive times, rest periods, breaks and POAs from tacho charts as well as for drivers hours analysis in WTD reports. The program includes modules such as:- analogue tachographs;- digital tachographs;- RTD report + current schedule of charges;- Drivers Timesheets in compliance with working time regulations;
DriveExplorer Lite
DriveExplorer software is a Windows-based application for monitoring and online editing parameters in Allen-Bradley SCANport, Drive Peripheral Interface (DPI), or Drive Serial Interface (DSI) products and adapters. It can also be used for monitoring and editing of parameters in a Bulletin 160 drive that uses a 160-RS1 adapter.
232key
232key can be used to capture numeric values sent from a serial device and automatically enter them into any application as if you had typed them on the keyboard. This program captures data sent from a device connected to a serial port and parses it to extract the first number, which is then processed and formatted according to your requirements and typed it into any program.
DataNumen Outlook Drive Recovery
DataNumen Outlook Drive Recovery is the savior of your Outlook data. For whatever reason you cannot retrieve or access your Outlook data, you can always use this magic tool to recover emails and other objects from the drives or disks for you.
Synrad WinMark
WinMark Pro is an ActiveX control empowering you to create high performance stand-alone laser marking applications using the most potent development suites you’re already familiar with, such as Microsoft Access, Office, Visual Basic, Visual C++, and Delphi. Laser mark serial numbers directly from your Access database application.
ECG Filing Software EFS-200
ECG Filing Software EFS-200 1.0
Linux How To Get Hard Drive Serial NumberConexus
Conexus was initially created to simplify the development of Isaac, a visual programming language for autonomous mobile robots that is being developed at New Mexico State University. This library was initially used to read/write serial data on the robot platform and to provide the robot the ability to transmit and receive data.
Hard Drive Serial NumbersComments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |