Solved

retrieve bios date using delphi

Posted on 2015-02-17
3
388 Views
Last Modified: 2015-02-17
Hi,

I use Delphi 6.
Under WinXP I used following code to retrieve bios information

Function GetBIosInfo: string;
var
BiosDate, BiosName, BiosVersion, BiosNum: String;
begin
try
    BiosDate:=string(pchar(ptr($ffff5)));
    BiosName:=string(pchar(ptr($ffa68)));
    BiosVersion:=string(pchar(ptr($fe061)));
    BiosNum:=string(pchar(ptr($fec71)));
    Result := BiosDate; //BiosName, BiosVersion etc
except
    Result := 'no result';
end;
end;

Moved to Win 7 I noticed that there is no result. Code withing try is not ecexuted.

I also noticed answerID=1215430. Trying it was ineffective too, giving a compiling error in the line
  Selector := AllocSelector(DSeg);  // undeclared identifier: AllocSelector
(Might be more compiling errors in later laines)

Could you please propose something?

Best regards
Nikiforos
0
Comment
Question by:nikif
3 Comments
 
LVL 32

Accepted Solution

by:
Stefan Hoffmann earned 300 total points
Comment Utility
I'm surprised that this really worked on all machines. Did this really work on NT windows? Cause the only direct available BIOS I know where addressable in DOS.

Newer computers don't have a BIOS anymore, they have UEFI. So you should explain why you want to interact with the hardware.

Maybe this is what you're looking for: ...read the ROM-BIOS?
0
 
LVL 19

Assisted Solution

by:MerijnB
MerijnB earned 200 total points
Comment Utility
I agree with ste5an, besides, this is tricky stuff and might be different for different bioses and operating systems.

I would either use something commercial like:
http://www.mitec.cz/msics.html

Or try to get this info through WMI:
https://msdn.microsoft.com/en-us/library/aa394077%28v=vs.85%29.aspx
http://delphi.xcjc.net/viewthread.php?tid=46207
http://stackoverflow.com/questions/9939725/get-bios-uuid-from-c-or-delphi-from-win32
0
 

Author Closing Comment

by:nikif
Comment Utility
Thank you both. I really ignored the status of new machines. I recently went to Win7, so I tried to have some of my applications in the the W7 environment
nikif
0

Featured Post

How does your email signature look on mobiles?

Do your employees use mobile devices to reply to emails? With mobile becoming increasingly important to the business world, it is in your best interest to make sure that your email signature looks great across all types of devices.

Join & Write a Comment

Suggested Solutions

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…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

728 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

15 Experts available now in Live!

Get 1:1 Help Now