function GetLocalComputerName: string;
var
; Count: DWORD;
begin
; Count := MAX_COMPUTERNAME_LENGTH + 1;
; // set buffer size to MAX_COMPUTERNAME_LENGTH + 2 characters for safety
; SetLength(Result, Count);
; Win32Check(GetComputerName(PChar(Result), Count));
; SetLength(Result, StrLen(PChar(Result)));
end;