Solved

Hardware id...

Posted on 1998-04-21
1
1,029 Views
Last Modified: 2008-02-01
how can i detect the BIOS or motherboard serial number ?
(delphi code please)

       thanks!!!
       kort77
0
Comment
Question by:kort77
1 Comment
 
LVL 8

Accepted Solution

by:
ZifNab earned 30 total points
ID: 1335857
Hi kort77,

I don't know what you want to do with it but I guess it's for some sort of copy-protection, well, you can't make something 'water-profed' copy protected. For instance if you use the BIOS number. What if the user updates his BIOS. Poof, program doesn't work anymore...
So I would be very causios using such things for serial numbers. Think thoroughly before you use them!

Here is a component doing it : www.bhnet.com.br/~simonet (ASPowertools)

Another usefull method :

Get serial ID of drive :

function GetSerialIDEx: string;
                              var
                                VolumeSerialNumber : DWORD;
                                MaximumComponentLength : DWORD;
                                FileSystemFlags : DWORD;
                                SerialNumber : string;
                              begin
                                GetVolumeInformation('C:',
                                                     nil,
                                                     0,
                                                     @VolumeSerialNumber,
                                                     MaximumComponentLength,
                                                     FileSystemFlags,
                                                     nil,
                                                     0);
                                SerialNumber := IntToHex(HiWord(VolumeSerialNumber), 4) +
                                                '-' +
                                                IntToHex(LoWord(VolumeSerialNumber), 4);
                                Result:=SerialNumber;
                              end;

Regards, Zif.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Virtuailstring tree compare node issue 14 116
find a node in VST 2 68
Making delphi communicate with a c# service 16 102
Firemonkey allowing RTL on android 6 28
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now