RasEnumDevices
A version of this page is also available for
4/8/2010
This function returns the name and type of all available RAS-capable devices.
Syntax
DWORD RasEnumDevices(
LPRASDEVINFOW lpRasDevinfo,
LPDWORD lpcb,
LPDWORD lpcDevices
);
Parameters
- lpRasDevinfo
Long pointer to a buffer that receives an array of RASDEVINFO structures, one for each RAS-capable device. Before calling the function, set the dwSize member of the first RASDEVINFO structure in the buffer to sizeof(RASDEVINFO) to identify the version of the structure.
- lpcb
Long pointer to a variable that contains the size, in bytes, of the lpRasDevInfo buffer. On return, the function sets this variable to the number of bytes required to enumerate the devices.
- lpcDevices
Long pointer to a variable that the function sets to the number of RASDEVINFO structures written to the lpRasDevinfo buffer.
Return Value
Zero indicates success. A nonzero error value indicates failure. Valid error codes (as defined in Raserror.h) include: ERROR_BUFFER_TOO_SMALL.
Requirements
Header | ras.h |
Library | coredll.lib |
Windows Embedded CE | Windows CE 3.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |