(Gast)
n/a Beiträge
|
Re: PC_Namen auslesen ?
29. Aug 2007, 14:31
Diesen Code verwende ich
Code:
function GetComputerName: String;
var
Len: DWORD;
begin
Len := MAX_COMPUTERNAME_LENGTH + 1;
SetLength(Result, Len);
if Windows.GetComputerName(PChar(Result), Len) then
SetLength(Result, Len)
else
RaiseLastOSError;
end;
|
|
Zitat
|