Solved

Some system stuff

Posted on 1998-11-09
2
145 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
Comment Utility
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
Comment Utility
I would appreciate more info about getting the Bios version. Thanx
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

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

9 Experts available now in Live!

Get 1:1 Help Now