- Functions for managing remote accesses
- Specific features
- Connection for the remote network access
- Managing the automatic closing of a remote access
Managing the remote accesses
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:
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
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.
This page is also available for…