_Like Ping
Like (Ping) IP address
AI
Yapay Zeka Özeti: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
Kaynak Kod
<p>Private Type QOCINFO<br> dwSize As Long<br> dwFlags As Long<br> dwInSpeed As Long 'in bytes/second<br> dwOutSpeed As Long 'in bytes/second<br> End Type</p> <p><br> Private Declare Function IsDestinationReachable Lib "SENSAPI.DLL" Alias "IsDestinationReachableA" (ByVal lpszDestination As String, ByRef lpQOCInfo As QOCINFO) As Long<br> </p> <p>Private Sub Form_Load()<br> Dim Ret As QOCINFO<br> Dim IP As String<br> Ret.dwSize = Len(Ret)<br> 'Put desired IP<br> IP = "217.9.238.114"<br> If IsDestinationReachable(IP, Ret) = 0 Then<br> MsgBox "The destination cannot be reached!"<br> Else<br> MsgBox "The destination can be reached!" + vbCrLf + _<br> "The speed of data coming in from the destination is " + Format$(Ret.dwInSpeed / 1048576, "#.0") + " Mb/s," + vbCrLf + _<br> "and the speed of data sent to the destination is " + Format$(Ret.dwOutSpeed / 1048576, "#.0") + " Mb/s."<br> End If<br> End Sub </p> <p></p>
Orijinal Yorumlar (3)
Wayback Machine'den kurtarıldı