function TienePing(Host : string) : boolean;
var
Handle : THandle;
InAddr : IPAddr;
DW : DWORD;
rep : Array[1..128] of byte;
begin
result := false;
Handle := IcmpCreateFile;
if Handle = INVALID_HANDLE_VALUE then
Exit;
TranslateStringToTInAddr(Host, InAddr);
DW := IcmpSendEcho(Handle, InAddr, nil, 0, nil, @rep, 128, 0);
Result := (DW <> 0);
IcmpCloseHandle(Handle);
end;
Agradezco cualquier información al respecto....


 
	 
					
 
				
				
			 
			
			 
				
				
			 
				
				
			
 
					
					







