Ver Mensaje Individual
  #4  
Antiguo 14-11-2008
Alliance Alliance is offline
Miembro
 
Registrado: may 2008
Posts: 29
Reputación: 0
Alliance Va por buen camino
Otra forma de obtener el nombre de la PC es.

Código Delphi [-]
function GetComputerName: String;
var
  Computer: PChar;
  Size: DWORD;
  begin
   GetMem(Computer, Size);
   Size := MAX_COMPUTERNAME_LENGTH + 1;
    try
      if Windows.GetComputerName(Computer, Size) then
         Result := computer;
    finally
     FreeMem(Computer);
  end;
end;
Responder Con Cita