Using Win32 functions in Visual FoxPro Image Gallery
Remote Access Service (RAS)
Code examples:
Retrieving list of all active RAS connections
..msdn    Add comment     W32 Constants      Translate this page
The RasEnumConnections function lists all active RAS connections. It returns each connection"s handle and phone-book entry name.
Code examples:
Retrieving list of all active RAS connections
DWORD RasEnumConnections(
  LPRASCONN lprasconn,   // buffer to receive connections data
  LPDWORD lpcb,          // size in bytes of buffer
  LPDWORD lpcConnections // number of connections written to buffer
FoxPro declaration:
DECLARE INTEGER RasEnumConnections IN rasapi32;
    STRING  @ lprasconn,;
    INTEGER @ lpcb,;
    INTEGER @ lpcConnections

[in, out] Pointer to a buffer that receives, on output, an array of RASCONN structures, one for each RAS connection.

[in, out] Pointer to a variable that, on input, contains the size, in bytes, of the buffer specified by lprasconn.

[out] Pointer to a variable that receives the number of RASCONN structures written to the buffer specified by lprasconn.
Return value:
If the function succeeds, the return value is zero.
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2002-08-11 18:30:52
Modified: 2002-08-11 18:32:14
Visited in last 7 days: 28
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
22 sec.Function: 'EnumForms'
43 sec.Function: 'GdipBitmapSetResolution'
1.05 min.Function: 'CreateSolidBrush'
1.35 min.Function: 'CreateDC'
1.7 min.Function: 'waveOutGetNumDevs'
2.03 min.Function: 'CeDeleteFile'
2.38 min.Function: 'RollbackTransaction'
2.68 min.Function: 'getservbyport'
3.03 min.Function: 'waveOutGetVolume'
3.35 min.Function: 'GetRgnBox'
Advertise here!