PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
NetInfoRemoteAccess (Function)
In French: NetInfoAccèsDistant
Returns information about the status of a connection as well as the statistics about this connection.
Example
CurrentConnection is boolean
ConnectionDuration is Duration
CurrentConnection = NetInfoRemoteAccess("MyAccesss", niConnected)
IF CurrentConnection = True THEN
ConnectionDuration = NetInfoRemoteAccess("MyAccess", niConnectionDuration)
Info("The MyAccess connection is opened since " + ConnectionDuration)
END
Syntax
<Result> = NetInfoRemoteAccess(<Access Name> , <Type of Information>)
<Result>: Integer or boolean
Requested information.
<Access Name>: Character string (with quotes)
Name of "Remote network access" connection defined in Windows.
<Type of Information>: Integer constant
Type of information about the connection:
niConnected<Result> is a boolean.
Used to find out whether the connection is enabled.
<Result> is set to True if the connection is active.
niConnectionDuration<Result> is a duration.
Duration since the connection was established.
niNbByteReceived<Result> is an integer.
Number of bytes received since the connection was established.
niNbByteTransmitted<Result> is an integer.
Number of bytes transmitted since the connection was established.
Windows Mobile The niConnectionDuration, niNbByteReceived and niNbByteTransmitted constants do not operate on some Smartphones. In this case, <Result> is set to 0.
Components
WINDEVReports and Queries wd230com.dll
Windows Mobile wp230com.dll
Minimum required version
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment