Hi,
there is a way in order to get the real name of a linux/windows user?
In order to get the login name (linux) I used:
Result.Name:= GetEnvironmentVariable('USERNAME');
if Result.Name = '' then
Result.Name:= GetEnvironmentVariable('USER');
I know that in linux I can use libc (getpwuid(fpgetuid)^.pw_gecos) but I
am trying to avoid use of libc.
Any suggestion?
Andrea
_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus