Solved

Some system stuff

Posted on 1998-11-09
2
149 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

828 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