Solved

Some system stuff

Posted on 1998-11-09
2
150 Views
Last Modified: 2010-04-04
How can I obtain the machine name (in Network Identification) and the BIOS version?
0
Comment
Question by:Bocian
2 Comments
 
LVL 4

Accepted Solution

by:
BoRiS earned 100 total points
ID: 1346289
Bocian

You can use the GetComputerName API call

procedure Tform1.Button1Click(Sender: TObject);
var
 Name: array [0..80] of Char;
 Size: Cardinal;
begin
Size := SizeOf(Name); //You don't really need this
 GetComputerName(Name, Size);
   Label1.Caption := Name;
end;

To get the Bois Version is a bit more difficult...

      Function MyGetExt: Integer; Assembler;
      asm
        Mov  AX,$3031;
        Out  $70,AL;
        NOP;
        IN   AL,$71;
        XCHG AH,AL;
        Out  $70,AL;
        NOP;
        IN   AL,$71;
      end;

    Then as needed call the function....

I don't remeber the rest of the addresses etc. but I must warn you don't play around with the CMOS to much as certain function etc. can
cause system crashes.

    the port to read in is $71
    and out is $70

You need to find out the port/s the version sits on
Hope this helps...

Later

BoRiS
0
 

Author Comment

by:Bocian
ID: 1346290
I would appreciate more info about getting the Bios version. Thanx
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Downloading email attachments 2 85
oracle global variables 4 80
Dev Express grid collapse 2 47
When i run adoquery my application freezes 26 190
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 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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

733 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