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: Requires version 4.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in ras.h.
Import Library: Use rasapi32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.
Remote Access Service Overview, RAS Server Administration Functions, RASAUTODIALENTRY, RasGetAutodialAddress, RasSetAutodialAddress