Tips and tricks to help you with your delphi applications.
function UserName: String; var User: PChar; i: DWord; begin i := 1024; user := StrAlloc(Succ(i)); if GetUserName(User, i) then
Result := StrPas(User) else
Result := 'unknown'; end;
Δεν υπάρχουν σχόλια:
Δημοσίευση σχολίου