RasEnumDevices

This function returns the name and type of all available RAS-capable devices.

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 Values

Zero indicates success. A nonzero error value indicates failure. Valid error codes (as defined in Raserror.h) include: ERROR_BUFFER_TOO_SMALL.

Requirements

OS Versions: Windows CE 3.0 and later.
Header: Ras.h.
Link Library: Coredll.lib.

See Also

RASCONN | RasEnumEntries | RasGetConnectStatus

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.