Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Some system stuff

Posted on 1998-11-09
2
Medium Priority
?
154 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 400 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Screencast - Getting to Know the Pipeline

877 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