Hello JC,
another version I found ( a bit different and shorter returns just .T. or .F. ) :
Code: Select all | Expand
// API
Private Declare Function IsDestinationReachable Lib _
"Sensapi.dll" Alias "IsDestinationReachableA" _
(ByVal lpszDestination As String, _
lpQOCInfo As QOCINFO) As Long
Private Type QOCINFO
dwSize As Long
dwFlags As Long
dwInSpeed As Long
dwOutSpeed As Long
End Type
// Ping returns .T. or .F.
Public Function Ping(ByVal IP As String) As Boolean
Dim QuestStruct As QOCINFO
Dim lReturn As Long
// Structure-Size
QuestStruct.dwSize = Len(QuestStruct)
// Destination-test
lReturn = IsDestinationReachable(IP, QuestStruct)
// using answer
If lReturn = 1 Then
// Answer .T.
Ping = True
Else
// Answer .F.
Ping = False
End If
End Function
Infos :
DLL name: sensapi.dll or sensapi
How to find the DLL:
Typically located in: Windows instalation folder/some subfolder
Full version: 5.1.2600.1106 (xpsp1.020828-1920)
File size: 6144 bytes
Information saved in the DLL itself:
Howto display it: Press Ctrl+Enter on DLL name, then click on 'Version' tab and compare with values listed below. Please keep in mind that malicious software often saves here fake identification or author name (see disclaimer below). Some malware can use the same file name.
Author: Microsoft Corporation
Description: SENS Connectivity API DLL
Internal name: SensApi.dll
Information about Copyright: � Microsoft Corporation. All rights reserved.
Original file name: SensApi.dll
Product version: 5.1.2600.1106
Description:
Relates to: system rpm windows event api 2014 0200 internet image resource
Security risk: unknown
Description: This is a core DLL needed for Windows operating system. You should not delete it
Part of OS: YES
Designed for OS: Win NT 32
Some more infos :
EM Library: SensApi.dll error message
When running EM Library on Windows NT the error number 0x8007007e may be encountered in conjunction with a message about being unable to load system file "SensApi.dll":
0x8007007e Could not load system file "SensApi.dll"
This error message about SensApi.dll can occur on Windows NT computers where an earlier version of Internet Explorer than Internet Explorer 5 is in use.
This message should not be displayed on Windows 2000, Windows XP and Windows 2003 computers where SensApi.dll is installed as part of the operating system.
What to do
Upgrade to Internet Explorer 5, or higher.
Regards
Uwe