ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Net functions
  • Overview
  • Functions for managing remote accesses
  • Specific features
  • Connection for the remote network access
  • Managing the automatic closing of a remote access
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Managing the remote accesses
Overview
The remote accesses are used to create a temporary network connection.
WINDEV allows you to easily manage the remote accesses by proposing several functions used to open, close and list these remote accesses.
Some "standard" examples for using the remote accesses:
  • Using a modem
  • Using a VPN (Virtual Private Network)
  • ...
Functions for managing remote accesses
The following WLanguage functions are used to manage remote accesses:
NetCloseRemoteAccessCloses the line that was opened by NetOpenRemoteAccess.
NetInfoRemoteAccessReturns information about the status of a connection as well as the statistics about this connection.
NetListRemoteAccessReturns the list of available remote accesses.
NetOpenRemoteAccessEstablishes a remote connection.
Specific features

Connection for the remote network access

A connection for remote network access is created in the Windows control panel. The following information is required to create the connection:
  • the caption of the connection (used by NetOpenRemoteAccess),
  • the phone number to dial,
  • the username,
  • the modem, the protocol, etc.
This information is supplied by the provider.
When the connection is run via a double click performed on the corresponding icon, you have the ability to specify a password for this connection. This password can be stored in order to be used whenever this connection is started.

Managing the automatic closing of a remote access

NetOpenRemoteAccess is used to specify whether the remote access must be automatically closed when closing the application.
If the automatic closing is requested, the connection will be automatically closed at the end of the application or during the call to NetCloseRemoteAccess (without parameter). In this case, the last connection opened by NetOpenRemoteAccess will be closed.
If the automatic closing is not requested, the connection will not be closed at the end of the application. This option allows you to create an application used to open a connection.
In this case, the connection will not be closed by NetCloseRemoteAccess (without parameter). To close this connection, the access name must be passed in parameter.
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/26/2023

Send a report | Local help