Platform SDK: RAS/Routing and RAS |
The RasEnumAutodialAddresses function returns a list of all addresses in the AutoDial mapping database.
DWORD RasEnumAutodialAddresses( LPTSTR *lppAddresses, // pointer to buffer that // receives network address strings LPDWORD lpdwcbAddresses, // pointer to size, in bytes, // of the buffer LPDWORD lpdwcAddresses // pointer to number of strings // returned );
If lppAddresses is NULL, RasEnumAutodialAddresses sets the lpdwcbAddresses and lpdwcAddresses parameters to indicate the required size, in bytes, and the number of address entries in the database.
If the function succeeds, the return value is zero.
If the function fails, the return value is the following error code.
Value | Meaning |
---|---|
ERROR_INVALID_PARAMETER | NULL was passed for the lpdwcbAddresses or lpdwcAddresses parameter. |
Windows NT/2000: Requires Windows NT 4.0 or later.
Windows 95/98: Unsupported.
Header: Declared in Ras.h.
Library: Use Rasapi32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000.
Remote Access Service (RAS) Overview, Remote Access Service Functions, RASAUTODIALENTRY, RasGetAutodialAddress, RasSetAutodialAddress