Autor Beitrag
Roy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 184

Windows7 Ultimate
Delphi 2007, NET, Embarcadero
BeitragVerfasst: Do 19.01.12 15:56 
Hallo Freunde,
wie kann ich mir Delphi den Motherboardnamen auslesen lassen und in bsp. einem Memofeld anzeigen lassen?

Danke
Mitmischer 1703
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Do 19.01.12 18:05 
Auf meinem System gibt es die Keys HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\BIOS\BaseBoardProduct oder HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\BIOS\SystemProductName . Alternativ einfach googlen: Suche bei Google DELPHI MOTHERBOARD AUSLESEN, da findet sich auch was.

_________________
Die Lösung ist nicht siebzehn.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Fr 20.01.12 22:38 
Moin!
Suche in: Delphi-Forum, Delphi-Library WMI :lupe: :les: :think: ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
JuniorProgrammierer86
Hält's aus hier
Beiträge: 13



BeitragVerfasst: Di 24.01.12 18:42 
wie wär es mit diesen Ausschnitt hier??

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
function CurrentComputerName: string;
var
a: array[0..255of Char;
b: Dword;
begin
b := SizeOf(a);
GetComputerName(a, b);
Result := a;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
label1.caption:=CurrentComputerName;
end;


Moderiert von user profile iconMartok: Delphi-Tags hinzugefügt

hab ich alles bei wimdu.de gelernt, ich bin ein wenig stolz auf mich! :)


Zuletzt bearbeitet von JuniorProgrammierer86 am Mi 29.02.12 16:53, insgesamt 2-mal bearbeitet
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19312
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Di 24.01.12 19:57 
Sorry, aber was hat der Code mit dem Thema zu tun? :gruebel:

Es geht um den Namen des Mainboards, nicht um den Namen des Computers im Netzwerk.
JuniorProgrammierer86
Hält's aus hier
Beiträge: 13



BeitragVerfasst: Mi 25.01.12 11:41 
sorry, dachte er wollte die id rausbekommen? war ein zu langer für mich gestern tut mir leid hehe