Ver Mensaje Individual
  #4  
Antiguo 25-10-2006
Avatar de Juanito-Kun
Juanito-Kun Juanito-Kun is offline
Miembro
 
Registrado: abr 2005
Ubicación: Merida, Yucatan
Posts: 65
Reputación: 20
Juanito-Kun Va por buen camino
Se que no cambia mucho pero me funciono asi:

[code]
function ComputerName: string;
var
Buffer: array[ 0..MAX_COMPUTERNAME_LENGTH ] of Char;
MaxSize: DWORD;
begin
MaxSize := SizeOf( Buffer );
if not GetComputerName(Pchar(@Buffer),MaxSize) then
raise Exception.Create( 'No puedo determinar el nombre de la máquina' );
Result := StrPas( @Buffer );
end;
[code]
Responder Con Cita