Solved

Hardware id...

Posted on 1998-04-21
1
1,026 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

16 Experts available now in Live!

Get 1:1 Help Now