Solved

Serial Number for 200points

Posted on 2001-09-10
10
239 Views
Last Modified: 2010-04-06
Can anyone show me how to get the BIOS Serial number using Delphi 4?

The serial number i am trying to obtain is the one that is shown on the screen when you boot up.

0
Comment
Question by:foxjax
  • 4
  • 3
  • 3
10 Comments
 
LVL 22

Accepted Solution

by:
Mohammed Nasman earned 200 total points
ID: 6472202
function GetBiosInfoAsText: string;
var
  p, q: pchar;
begin
  q := nil;
  p := PChar(Ptr($FE000));
  repeat
    if q <> nil then begin
      if not (p^ in [#10, #13, #32..#126, #169, #184]) then begin
        if (p^ = #0) and (p - q >= 8) then begin
          Result := Result + TrimRight(String(q)) + #13#10;
        end;
        q := nil;
      end;
    end else
      if p^ in [#33..#126, #169, #184] then
        q := p;
    inc(p);
  until p > PChar(Ptr($FFFFF));
  Result := TrimRight(Result);
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  Memo1.Lines.Text := GetBiosInfoAsText;
end;
0
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 6472215
0
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 6472225
also you can download free component for that
http://www.torry.net/systeminfo.htm
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 6

Expert Comment

by:Stuart_Johnson
ID: 6472997
How come the question is set to 0 points if you're prepared to give away 200?  It seems a bit strange to me...
0
 

Author Comment

by:foxjax
ID: 6477874
Thanks mnasman, i shall give your code a try later tonight and if it works i shall award you the 200 points.

Stuart, what's so strange?  
0
 
LVL 6

Expert Comment

by:Stuart_Johnson
ID: 6478132
Well, call me a skeptic and all, but it seems a great way of getting an answer for a problem without actually commiting any points.  Why are you posting a zero point question anyway?
0
 

Author Comment

by:foxjax
ID: 6483287
Thanks Mnasman - your code seems to have done the trick for my system.

Stuart, i posted a zero point question because i was unsure if it was possible to do it and did not want to wait a life time till the question was deleted to get the points back.  Also, i find with a zero point question those that have the true spirit of EE answer just to help and i think that says a lot don't you?

I do however see your point Stuart, but not all of us behave in such a manner - and i am one that would not do such a thing.  Mnasman trusted me and i repaid his trust by delivering what i promised - that is the spirit of EE.
0
 

Author Comment

by:foxjax
ID: 6483290
I gave you a grade A mnasman - for the trust you gave and the answer.
0
 
LVL 6

Expert Comment

by:Stuart_Johnson
ID: 6483310
So long as no one locks the question, you can delete it and get your points refunded immediately.

I would answer a zero point question if I knew the person.  However, I think that if you do post zero point questions, you limit the number of people who will be interested in providing you with an answer.

I agree about the true spirit of EE, but there is a fair bit of competition amongst a lot of the experts (nothing nasty of cause), and the points do make a bit of difference :)  The fatter the carrot, the better the response.

All the best,

Stu.
0
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 6483707
foxjax, Thanks alot for the points, and I'm glad that I helped you :o)
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
find a node in VST 2 68
Dynamically Created Query 3 55
Dev express lookupcombo 3 26
Twebbrowser add css to the header 3 24
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

785 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