Jump to content


Photo

[TRUCO DELPHI] Usuario de tu Ordenador.


  • Please log in to reply
No replies to this topic

#1 sir.dev.a.lot

sir.dev.a.lot

    Advanced Member

  • Miembros
  • PipPipPip
  • 545 posts
  • Location127.0.0.1

Posted 10 December 2016 - 04:27 PM

[TRUCO DELPHI] Usuario de tu Ordenador.


delphi
  1. function GetLocalUserName: String;
  2. Var
  3. aLength : DWORD;
  4. aUserName: Array[0..MAX_PATH - 1] Of Char;
  5. begin
  6. aLength := MAX_PATH;
  7. GetUserName(aUserName, aLength);
  8. Result := aUserName;
  9. end;

Saludos!


  • 1




IP.Board spam blocked by CleanTalk.