Using Win32 functions in Visual FoxPro Image Gallery
Remote Access Service (RAS)
RasEnumAutodialAddresses
RasEnumConnections
RasEnumDevices
RasGetCountryInfo
RasPhonebookDlg
Code examples:
Retrieving the name and type of all available RAS-capable devices
RasEnumDevices
..msdn    Add comment     W32 Constants      Translate this page
The RasEnumDevices function returns the name and type of all available RAS-capable devices.
Code examples:
Retrieving the name and type of all available RAS-capable devices
Declaration:
DWORD RasEnumDevices(
  LPRASDEVINFO lpRasDevInfo,  // buffer to receive
                              //  information about RAS devices
  LPDWORD lpcb,               // size, in bytes, of the buffer
  LPDWORD lpcDevices          // receives the number of
                              //  entries written to the buffer
);
FoxPro declaration:
DECLARE INTEGER RasEnumDevices IN rasapi32;
    STRING  @ lpRasDevInfo,;
    INTEGER @ lpcb,;
    INTEGER @ lpcDevices
Parameters:
lpRasDevInfo
[in] Pointer to a buffer that receives an array of RASDEVINFO structures, one for each RAS-capable device.

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

lpcDevices
[out] Pointer to a variable that receives the number of RASDEVINFO structures written to the lpRasDevInfo buffer.
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-10 23:31:36
Modified: 2002-08-10 23:37:03
Visited in last 7 days: 7
User Contributed Notes:
c.carter | 2006-06-08 12:25:45
this would be nice if com port number was returned with modem types

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.196.79.241)
19 sec.Function: 'WritePrivateProfileString'
28 sec.Function: 'QueryDosDevice'
37 sec.Function: 'SQLFreeHandle'
46 sec.Function: 'WNetAddConnection'
56 sec.Function: 'ReleaseSemaphore'
1.08 min.Function: 'UrlUnescape'
1.23 min.Function: 'SQLDrivers'
1.37 min.Function: 'WNetGetUniversalName'
1.67 min.Function: 'StrTrim'
1.92 min.Function: 'RegisterClipboardFormat'
Google
Advertise here!