Using Win32 functions in Visual FoxPro Image Gallery
Remote Access Service (RAS)
RasEnumAutodialAddresses
RasEnumConnections
RasEnumDevices
RasGetCountryInfo
RasPhonebookDlg
Code examples:
Retrieving list of all active RAS connections
RasEnumConnections
..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
Declaration:
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

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

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

lpcConnections
[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  
FreeTranslation.com 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: 15
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.36), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.81.216.152)
6 sec.Function: 'WNetGetProviderName'
13 sec.Function: 'StartDoc'
46 sec.Function: 'waveInUnprepareHeader'
52 sec.Function: 'SetParent'
1.07 min.Function: 'SizeofResource'
1.17 min.Function: 'WinHttpReadData'
1.27 min.Function: 'SetComputerName'
1.38 min.Function: 'SetDoubleClickTime'
1.48 min.Function: 'waveInPrepareHeader'
1.58 min.Function: 'waveOutReset'
Google
Advertise here!