SamLogic Internet Components - Home
ActiveX: SLInetInfo      (Filename: SLININFO.OCX)


SLInetInfo is an ActiveX component that returns technical Internet-related information about the local computer and remote computers connected to the Internet or intranet.
 
 
Properties
 
Name Type Description
InternetAccessAllowed Boolean Determines if properties and methods that need access to the Internet can be used in this control. If this property has the value False then LocalHostName, LocalIPAddress and GetRemoteIPAddress can not be used. If this property has the value True, these properties and methods can be used.
 
InternetConnectionType Long Returns type of current Internet connection. Returns one of the following values:

0 - Can't determine
1 - Modem
2 - LAN
4 - Proxy
 
IsInternetConnection Long Checks if we are connected to the Internet. Returns one of the following values:

0 - We are not connected
1 - We are connected
2 - Can't load WININET.DLL
3 - Can't determine
 
LocalHostName String Returns local host name. This property will only return a value if InternetAccessAllowed is True.
 
LocalIPAddress String Returns IP address for the local computer. This property will only return a value if InternetAccessAllowed is True.
 
OEActivePOP3Server String Returns the name of the standard POP3 server in Outlook Express.
 
OEActiveSMTPDisplayName String Returns the name of the mail sender used in Outlook Express. The standard mail account is read.
 
OEActiveSMTPEmailAddress String Returns the e-mail address of the mail sender used in Outlook Express. The standard mail account is read.
 
OEActiveSMTPReplyAddress String Returns the reply mail address of the mail sender used in Outlook Express. The standard mail account is read.
 
OEActiveSMTPServer String Returns the name of the standard SMTP server in Outlook Express.
 
OEIsDefaultMailClient Boolean Returns True if Outlook Express is the standard mail client in the system. If not, False is returned.
 
PathToDefaultMailClient String Returns the file path to the standard mail client in the system.
 
 
Methods
 

GetIEVersionNumber (VerMajor As Long, VerMinor As Long, BuildNr As Long) As Boolean

Returns the version number of the installed Internet Explorer. The version number is returned via the VerMajor, VerMinor and BuildNr parameters. If an error occurrs the method returns False, otherwise True.

GetRemoteIPAddress (DomainName As String) As String

Returns a remote IP address for a domain name. The DomainName parameter specifies the domain name which IP address should be obtained. If a domain name have more than one IP address, they will be separated with a space in the return string. If an error occurrs the return value will be an empty string and the error reason can be obtained by calling the GetLastError method. 

This method can only be used if the InternetAccessAllowed property is True.

GetLastError () As Long

Returns an error code for the last error that occurred in the control.  A list of possible error codes is available here.
 

 
 
< Go back
 
 
SamLogic