Как получить имя текущего пользователя?
01.01.2007
function GetCurrentUser: string;
var
pwrec: PPasswordRecord;
begin
pwrec := getpwuid(getuid);
Result := pwrec.pw_name;
end;
Взято с сайта https://www.swissdelphicenter.ch/en/tipsindex.php
function GetCurrentUser: string;
var
pwrec: PPasswordRecord;
begin
pwrec := getpwuid(getuid);
Result := pwrec.pw_name;
end;
Взято с сайта https://www.swissdelphicenter.ch/en/tipsindex.php