PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Functions for managing the 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 GPRS (from a Pocket PC for example).
  • Using a VPN (Virtual Private Network)
  • ...
Functions for managing the remote accesses
The following WLanguage functions are used to manage the remote accesses:
Versions 09 and later
NetCloseRemoteAccess
New in version 09
NetCloseRemoteAccess
NetCloseRemoteAccess
Closes the line that was opened by NetOpenRemoteAccess.
Versions 10 and later
NetInfoRemoteAccess
New in version 10
NetInfoRemoteAccess
NetInfoRemoteAccess
Returns information about the status of a connection as well as the statistics about this connection.
Versions 10 and later
NetListRemoteAccess
New in version 10
NetListRemoteAccess
NetListRemoteAccess
Returns the list of available remote accesses.
Versions 09 and later
NetOpenRemoteAccess
New in version 09
NetOpenRemoteAccess
NetOpenRemoteAccess
Establishes a remote connection with a modem.
Specific features

Connection for the remote network access

A connection for remote network access is created in the control panel of Windows. The following information is required to create the connection:
  • the caption of the connection (used by NetOpenRemoteAccess),
  • the phone number to dial,
  • the user login,
  • 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 required version
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment